/* =========================================================
   PRODUCTS PAGE
   ========================================================= */

.products-page {
    position: relative;
    overflow: hidden;

    background: #f4f4f4;
    color: #111;
}


/* =========================================================
   PRODUCT DIRECTORY
   ========================================================= */

.product-directory {
    position: relative;

    min-height: 1050px;

    overflow: hidden;

    padding:
        70px 0
        90px;

    background: #f4f4f4;
}


/* =========================================================
   FULL BACKGROUND IMAGE
   ========================================================= */

.products-background-image {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    z-index: 0;

    pointer-events: none;

    background-image:
        url("../images/products-background.png");

    background-repeat: no-repeat;

    /*
       The image fills the entire section.
       The right side of the image naturally
       provides the clean negative space.
    */

    background-position:
        left center;

    background-size:
        cover;

    opacity: 1;

    filter: none;
}


/* =========================================================
   DIRECTORY CONTENT
   ========================================================= */

.product-directory-container {
    position: relative;

    z-index: 2;
}


/* =========================================================
   DIRECTORY HEADING
   ========================================================= */

.product-directory-heading {
    position: relative;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, .85fr);

    align-items: end;

    gap: 80px;

    min-height: 240px;

    padding-bottom: 38px;

    border-bottom:
        1px solid
        rgba(0,0,0,.15);
}


/* =========================================================
   TITLE BLOCK
   ========================================================= */

.product-directory-title-block {
    position: relative;
}


.product-directory-title-block .eyebrow {
    display: block;

    margin-bottom: 18px;
}


.product-directory-title-block h1 {
    margin: 0;

    color: #050505;

    font-family: var(--condensed);

    font-size:
        clamp(
            68px,
            7vw,
            105px
        );

    font-weight: 900;

    line-height: .78;

    letter-spacing: -3px;

    text-transform: uppercase;
}


.product-directory-title-block h1 span {
    color: var(--orange);
}


/* =========================================================
   INTRO
   ========================================================= */

.product-directory-intro {
    align-self: center;

    max-width: 510px;
}


.product-directory-intro p {
    margin: 0;

    color: #414141;

    font-family: var(--body);

    font-size: 15px;

    line-height: 1.65;
}


/* =========================================================
   CATEGORY DIRECTORY
   ========================================================= */

.product-category-directory {
    position: relative;

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 0;

    margin-top: 24px;

    border-top:
        1px solid
        rgba(0,0,0,.18);

    border-left:
        1px solid
        rgba(0,0,0,.18);
}


/* =========================================================
   CATEGORY CARD
   ========================================================= */

.product-directory-category {
    position: relative;

    display: block;

    min-width: 0;

    min-height: 315px;

    padding:
        18px 20px
        25px;

    overflow: hidden;

    border-right:
        1px solid
        rgba(0,0,0,.16);

    border-bottom:
        1px solid
        rgba(0,0,0,.16);

    /*
       Slightly transparent so the photography
       remains part of the design.
    */

    background:
        rgba(255,255,255,.91);

    color: #111;

    text-decoration: none;

    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}


/* =========================================================
   ORANGE TOP LINE
   ========================================================= */

.product-directory-category::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--orange) 0%,
            var(--orange) 28%,
            rgba(240,126,33,.12) 28%,
            rgba(240,126,33,.12) 100%
        );

    transition:
        background .25s ease;
}


.product-directory-category:hover {
    z-index: 5;

    background:
        rgba(255,255,255,.97);

    transform:
        translateY(-3px);

    box-shadow:
        0 16px 35px
        rgba(0,0,0,.10);
}


.product-directory-category:hover::before {
    background:
        var(--orange);
}


/* =========================================================
   CATEGORY TITLE
   ========================================================= */

.product-directory-title {
    position: relative;

    display: flex;

    align-items: center;

    min-height: 48px;

    margin-bottom: 17px;

    padding:
        10px 0
        12px;

    border-bottom:
        1px solid
        rgba(0,0,0,.10);
}


/* =========================================================
   CATEGORY NUMBER
   ========================================================= */

.product-category-number {
    position: absolute;

    top: -2px;
    left: 0;

    color: var(--orange);

    font-family: var(--condensed);

    font-size: 9px;

    font-weight: 900;

    letter-spacing: 1px;
}


/* =========================================================
   CATEGORY NAME
   ========================================================= */

.product-directory-title h2 {
    margin: 8px 0 0;

    padding: 0;

    max-width:
        calc(100% - 25px);

    color: #0b0b0b;

    font-family: var(--condensed);

    font-size: 20px;

    font-weight: 900;

    line-height: 1;

    letter-spacing: -.3px;

    text-transform: uppercase;
}


/* =========================================================
   ARROW
   ========================================================= */

.product-directory-arrow {
    flex-shrink: 0;

    margin-left: auto;

    color: var(--orange);

    font-size: 17px;

    opacity: .55;

    transform:
        translateX(-3px);

    transition:
        opacity .2s ease,
        transform .2s ease;
}


.product-directory-category:hover
.product-directory-arrow {
    opacity: 1;

    transform:
        translateX(3px);
}


/* =========================================================
   PRODUCT LIST
   ========================================================= */

.product-directory-category ul {
    display: flex;

    flex-direction: column;

    gap: 7px;

    margin: 0;

    padding: 0;

    list-style: none;
}


.product-directory-category li {
    position: relative;

    padding-left: 11px;

    color: #454545;

    font-family: var(--body);

    font-size: 13px;

    line-height: 1.45;

    transition:
        color .2s ease,
        transform .2s ease;
}


.product-directory-category li::before {
    content: "";

    position: absolute;

    left: 0;
    top: 7px;

    width: 4px;
    height: 4px;

    background:
        var(--orange);
}


.product-directory-category:hover li {
    color: #171717;
}


.product-directory-category li:hover {
    transform:
        translateX(3px);
}


/* =========================================================
   SECOND ROW
   ========================================================= */

.product-directory-category:nth-child(n+6) {
    min-height: 245px;
}


/* =========================================================
   REVEAL ANIMATION
   ========================================================= */

.product-directory .reveal {
    opacity: 0;

    transform:
        translateY(18px);

    transition:
        opacity .55s ease,
        transform .55s ease;
}


.product-directory .reveal.visible {
    opacity: 1;

    transform:
        translateY(0);
}


.product-directory .delay-1 {
    transition-delay: .06s;
}


.product-directory .delay-2 {
    transition-delay: .12s;
}


.product-directory .delay-3 {
    transition-delay: .18s;
}


/* =========================================================
   CTA
   ========================================================= */

.products-cta {
    position: relative;

    overflow: hidden;

    padding:
        85px 0;

    background:
        #080808;

    color: #fff;
}


.products-cta::before {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    opacity: .18;

    background-image:
        linear-gradient(
            rgba(255,255,255,.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.035) 1px,
            transparent 1px
        );

    background-size:
        70px 70px;
}


.products-cta-inner {
    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 50px;
}


.products-cta h2 {
    margin:
        12px 0 0;

    font-family: var(--condensed);

    font-size:
        clamp(
            45px,
            5vw,
            75px
        );

    font-weight: 900;

    line-height: .85;

    letter-spacing: -1px;
}


.products-cta h2 span {
    color: var(--orange);
}


.products-cta p {
    max-width: 560px;

    margin:
        20px 0 0;

    color:
        rgba(255,255,255,.62);

    font-size: 15px;

    line-height: 1.65;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1150px) {

    .product-directory {
        min-height: 1000px;

        padding:
            65px 0
            80px;
    }


    .product-directory-heading {
        gap: 50px;
    }


    .product-category-directory {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }


    .product-directory-category {
        min-height: 285px;
    }


    .product-directory-category:nth-child(n+5) {
        min-height: 245px;
    }

}


/* =========================================================
   SMALL TABLET
   ========================================================= */

@media (max-width: 900px) {

    .product-directory {
        min-height: auto;

        padding:
            60px 0
            70px;
    }


    .product-directory-heading {
        grid-template-columns: 1fr;

        gap: 25px;

        min-height: auto;

        padding-bottom: 35px;
    }


    .product-directory-title-block h1 {
        font-size:
            clamp(
                65px,
                10vw,
                90px
            );
    }


    .product-directory-intro {
        max-width: 600px;
    }


    .product-category-directory {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }


    .product-directory-category,
    .product-directory-category:nth-child(n+5) {
        min-height: 270px;
    }


    .products-cta-inner {
        flex-direction: column;

        align-items: flex-start;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 650px) {

    .product-directory {
        padding:
            50px 0
            60px;
    }


    .product-directory-title-block h1 {
        font-size: 62px;

        letter-spacing: -2px;
    }


    .product-directory-intro p {
        font-size: 14px;
    }


    .product-category-directory {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        margin-top: 25px;
    }


    .product-directory-category,
    .product-directory-category:nth-child(n+5) {
        min-height: 255px;

        padding:
            18px 16px
            22px;
    }


    .product-directory-title h2 {
        font-size: 18px;
    }


    .product-directory-category li {
        font-size: 12px;
    }


    .products-cta {
        padding:
            70px 0;
    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 430px) {

    .product-directory-title-block h1 {
        font-size: 52px;
    }


    .product-category-directory {
        grid-template-columns: 1fr;
    }


    .product-directory-category,
    .product-directory-category:nth-child(n+5) {
        min-height: auto;

        padding:
            22px 20px
            25px;
    }


    .product-directory-category ul {
        gap: 9px;
    }


    .product-directory-category li {
        font-size: 13px;
    }

}


/* =========================================================
   LARGE DESKTOP — MOCKUP PROPORTIONS
   ========================================================= */

@media (min-width: 1400px) {

    .product-directory {
        min-height: 1080px;

        padding-top: 75px;
    }


    .product-directory-heading {
        min-height: 250px;
    }


    .product-category-directory {
        margin-top: 24px;
    }


    .product-directory-category {
        min-height: 315px;
    }


    .product-directory-category:nth-child(n+6) {
        min-height: 245px;
    }

}