/* =====================================================
   CATEGORIES PAGE
===================================================== */

.categories-page {
    background: #f4f4f4;

}


/* =====================================================
   HERO
===================================================== */

.categories-page-hero {
    padding: 150px 0 110px;
    background: #262626;
    color: #ffffff;

}


.categories-page-hero-inner {
    display: grid;
    grid-template-columns: 1fr 0.6fr;
    align-items: end;
    gap: 80px;

}


.categories-page-hero h1 {
    margin-top: 20px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(60px,
            9vw,
            125px);
    font-weight: 500;
    line-height: 0.85;
    letter-spacing: -0.07em;

}


.categories-page-hero h1 em {
    display: block;
    color: #c9a97a;
    font-style: italic;

}


.categories-page-intro {
    max-width: 380px;

}


.categories-page-intro p {
    color: rgba(255,
            255,
            255,
            0.6);
    font-size: 13px;
    line-height: 1.9;

}


.category-count {
    display: block;
    margin-top: 30px;
    color: #c9a97a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;

}


/* =====================================================
   DIRECTORY
===================================================== */

.categories-directory {
    padding: 100px 0 130px;

}


/* =====================================================
   TOOLBAR
===================================================== */

.categories-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 45px;

}


.category-search {
    position: relative;
    width: 100%;
    max-width: 420px;

}


.category-search input {
    width: 100%;
    padding: 17px 20px 17px 50px;
    border: 1px solid #d6d6d6;
    outline: none;
    background: #ffffff;
    color: #262626;
    font-family: inherit;
    font-size: 12px;
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease;

}


.category-search input:focus {
    border-color: #c9a97a;
    box-shadow:
        0 0 0 4px rgba(201,
            169,
            122,
            0.1);

}


.search-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    z-index: 2;
    color: #c9a97a;
    font-size: 22px;
    transform: translateY(-50%);

}


.category-result-count {
    color: #888888;
    font-size: 10px;
    letter-spacing: 0.08em;

}


.category-result-count span {
    color: #262626;
    font-weight: 700;

}


/* =====================================================
   GRID
===================================================== */

.categories-directory-grid {
    display: grid;
    grid-template-columns: repeat(3,
            1fr);
    gap: 24px;

}


/* =====================================================
   CARD
===================================================== */

.directory-category-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    color: #262626;
    text-decoration: none;
    transition:
        transform 0.6s cubic-bezier(.16,
            1,
            .3,
            1),
        box-shadow 0.6s ease;

}


.directory-category-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 25px 60px rgba(38,
            38,
            38,
            0.12);

}


/* =====================================================
   IMAGE
===================================================== */

.directory-category-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #333333;

}


.directory-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.9s cubic-bezier(.16,
            1,
            .3,
            1);

}


.directory-category-card:hover .directory-category-image img {
    transform: scale(1.08);

}


.directory-category-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(38,
                38,
                38,
                0.05),
            rgba(38,
                38,
                38,
                0.7));

}


.directory-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg,
            #333333,
            #4b4b4b);
    color: rgba(255,
            255,
            255,
            0.5);
    text-align: center;

}


.directory-image-placeholder span {
    padding: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 25px;

}


.directory-image-placeholder small {
    color: #c9a97a;
    font-size: 7px;
    letter-spacing: 0.18em;

}


/* =====================================================
   NUMBER
===================================================== */

.directory-category-number {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #ffffff;
    font-family: 'Playfair Display', serif;
    font-size: 22px;

}


/* =====================================================
   ARROW
===================================================== */

.directory-category-arrow {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,
            255,
            255,
            0.5);
    border-radius: 50%;
    color: #ffffff;
    font-size: 18px;
    transition:
        background 0.4s ease,
        color 0.4s ease,
        transform 0.4s ease;

}


.directory-category-card:hover .directory-category-arrow {
    background: #c9a97a;
    color: #262626;
    transform: rotate(45deg);

}


/* =====================================================
   CONTENT
===================================================== */

.directory-category-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 28px;

}


.category-card-eyebrow {
    color: #c9a97a;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.16em;

}


.directory-category-content h2 {
    margin-top: 14px;
    font-family: 'Playfair Display', serif;
    font-size: 29px;
    font-weight: 500;
    line-height: 1.05;

}


.directory-category-content p {
    margin-top: 14px;
    color: #777777;
    font-size: 12px;
    line-height: 1.8;

}


.directory-category-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: auto;
    padding-top: 25px;
    color: #888888;
    font-size: 9px;
    letter-spacing: 0.05em;

}


.directory-category-footer span:last-child {
    color: #c9a97a;
    font-weight: 700;
    text-transform: uppercase;

}


/* =====================================================
   NO RESULTS
===================================================== */

.categories-no-results {
    display: none;
    padding: 100px 20px;
    text-align: center;

}


.categories-no-results.is-visible {
    display: block;

}


.categories-no-results>span {
    color: #c9a97a;
    font-size: 35px;

}


.categories-no-results h3 {
    margin-top: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 500;

}


.categories-no-results p {
    margin-top: 10px;
    color: #777777;
    font-size: 12px;

}


/* =====================================================
   CTA
===================================================== */

.categories-page-cta {
    padding: 120px 0;
    background: #c9a97a;

}


.categories-page-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;

}


.categories-page-cta h2 {
    margin-top: 15px;
    font-family: 'Playfair Display', serif;
    font-size: clamp(45px,
            6vw,
            80px);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.05em;

}


.categories-page-cta h2 em {
    font-style: italic;

}


.primary-button {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    padding: 18px 24px;
    background: #262626;
    color: #ffffff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    transition:
        background 0.4s ease,
        color 0.4s ease,
        gap 0.4s ease;

}


.primary-button:hover {
    gap: 35px;
    background: #ffffff;
    color: #262626;

}


/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1000px) {
    .categories-directory-grid {
        grid-template-columns: repeat(2,
                1fr);
    }

}


@media (max-width: 800px) {
    .categories-page-hero-inner {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .categories-page-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

}


@media (max-width: 600px) {
    .categories-page-hero {
        padding: 110px 0 80px;
    }

    .categories-directory {
        padding: 70px 0 90px;
    }

    .categories-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .categories-directory-grid {
        grid-template-columns: 1fr;
    }

    .directory-category-image {
        height: 250px;
    }

    .categories-page-cta {
        padding: 90px 0;
    }

}