/* =========================================================
   HOME — CUSTOMER REVIEW SLIDER
========================================================= */

.home-reviews-section {
    position: relative;
    overflow: hidden;
    padding: 115px var(--side) 90px;
    background: #f3f0e7;
    color: var(--green);
}

.home-reviews-inner {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
}

.home-reviews-head {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
    gap: 70px;
    align-items: end;
    margin-bottom: 48px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(6, 76, 63, .18);
}

.home-reviews-label {
    display: block;
    margin-bottom: 20px;
    color: #df6338;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.home-reviews-head h2 {
    margin: 0;
    color: var(--green);
    font-size: clamp(44px, 5vw, 76px);
    line-height: .94;
    font-weight: 500;
    letter-spacing: -.05em;
}

.home-reviews-head h2 em {
    color: #cf6c4b;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

.home-reviews-head-copy {
    max-width: 480px;
    justify-self: end;
}

.home-reviews-head-copy p {
    margin: 0 0 25px;
    color: rgba(6, 76, 63, .7);
    font-size: 15px;
    line-height: 1.7;
}

.home-reviews-link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    min-width: 190px;
    min-height: 50px;

    padding: 0 18px;

    box-sizing: border-box;

    border-radius: 8px;

    background: var(--green);
    color: #f3f0e7;

    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;

    text-decoration: none;
    text-transform: uppercase;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}


.home-reviews-link span {
    font-size: 17px;
    color: #e4a400;

    transition:
        transform .25s ease,
        color .25s ease;
}


.home-reviews-link:hover {
    background: var(--green-dark, #052f26);
    color: #ffffff;

    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(6, 76, 63, .18);
}


.home-reviews-link:hover span {
    color: #ffffff;

    transform: translate(4px, -3px);
}


/* =========================================================
   REVIEW SLIDER
========================================================= */

.home-reviews-slider {
    width: 100%;
    overflow: hidden;
}

.home-reviews-track {
    display: flex;
    gap: 22px;
    will-change: transform;
    transition: transform .65s cubic-bezier(.22, 1, .36, 1);
}


/* =========================================================
   REVIEW CARD
========================================================= */

.home-review-card {
    flex: 0 0 calc((100% - 44px) / 3);
    min-width: 0;

    background: #fffdf8;

    border: 1px solid rgba(6, 76, 63, .14);

    overflow: hidden;
}


/* =========================================================
   REVIEW IMAGE
   Show the COMPLETE screenshot instead of cropping it.
========================================================= */

.home-review-image-wrap {
    width: 100%;

    /*
       Allow the screenshot to keep its natural proportions.
       This prevents Google review screenshots from being
       cropped at the top or bottom.
    */
    min-height: 310px;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e6e2d8;
}


/*
   IMPORTANT:
   contain = entire screenshot remains visible.
   center = screenshot stays centered inside the card.
*/

.home-review-image-wrap img {
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;
    max-height: 420px;

    object-fit: contain;
    object-position: center center;

    background: #e6e2d8;

    transition: transform .5s ease;
}


/*
   Keep the screenshot stable.
   Do not zoom it because zooming can crop
   the review text and customer details.
*/

.home-review-card:hover .home-review-image-wrap img {
    transform: none;
}


/* =========================================================
   REVIEW CARD INFORMATION
========================================================= */

.home-review-card-info {
    min-height: 76px;

    padding: 17px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 18px;

    border-top: 1px solid rgba(6, 76, 63, .12);
}

.home-review-card-info h3 {
    margin: 0 0 5px;

    color: var(--green);

    font-size: 15px;
    font-weight: 500;
}

.home-review-card-info span {
    color: rgba(6, 76, 63, .52);

    font-size: 8px;
    font-weight: 600;

    letter-spacing: .14em;

    text-transform: uppercase;
}

.home-review-card-info strong {
    flex: 0 0 auto;

    color: #e4a400;

    font-size: 12px;

    letter-spacing: 1px;
}


/* =========================================================
   REVIEW CONTROLS
========================================================= */

.home-reviews-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 27px;
}


/* =========================================================
   REVIEW DOTS
========================================================= */

.home-reviews-dots {
    display: flex;
    align-items: center;
    gap: 7px;
}

.home-review-dot {
    width: 7px;
    height: 7px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(6, 76, 63, .25);

    cursor: pointer;

    transition:
        width .25s ease,
        background .25s ease;
}

.home-review-dot.active {
    width: 23px;

    border-radius: 10px;

    background: var(--green);
}


/* =========================================================
   REVIEW ARROWS
========================================================= */

.home-reviews-arrows {
    display: flex;
    gap: 8px;
}

.home-reviews-arrows button {
    width: 45px;
    height: 45px;

    border: 1px solid rgba(6, 76, 63, .28);
    border-radius: 50%;

    background: transparent;
    color: var(--green);

    font-size: 17px;

    cursor: pointer;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;
}

.home-reviews-arrows button:hover {
    background: var(--green);
    color: #f3f0e7;

    transform: translateY(-2px);
}


/* =========================================================
   FAQ
   The desktop answer panel should not duplicate the first
   question on smaller screens.
========================================================= */

@media (max-width: 1000px) {

    .faq-left .faq-display {
        display: none;
    }


    /* Reviews heading */

    .home-reviews-head {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .home-reviews-head-copy {
        justify-self: start;
        max-width: 620px;
    }


    /* Two review cards */

    .home-review-card {
        flex-basis: calc((100% - 22px) / 2);
    }


    /* Review screenshot */

    .home-review-image-wrap {
        min-height: 300px;
    }

    .home-review-image-wrap img {
        width: 100%;
        height: auto;
        max-height: 420px;

        object-fit: contain;
        object-position: center center;
    }
}


/* =========================================================
   MOBILE — CUSTOMER REVIEWS
========================================================= */

@media (max-width: 650px) {

    .home-reviews-section {
        padding: 80px 18px 65px;
    }


    .home-reviews-head {
        margin-bottom: 35px;
        padding-bottom: 24px;
    }


    .home-reviews-head h2 {
        font-size: 43px;
    }


    .home-reviews-head-copy p {
        font-size: 14px;
    }


    /* =====================================================
       ONE REVIEW CARD AT A TIME
    ===================================================== */

    .home-review-card {
        flex: 0 0 100% !important;
        width: 100% !important;

        min-width: 0 !important;
        min-height: 0 !important;

        height: auto !important;
        max-height: none !important;

        aspect-ratio: auto !important;

        box-sizing: border-box;
    }


    /* =====================================================
       REVIEW SCREENSHOT
       Show the COMPLETE screenshot.
       Do NOT crop it.
    ===================================================== */

    .home-review-image-wrap {
        width: 100% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        aspect-ratio: auto !important;

        display: block !important;

        overflow: visible !important;

        box-sizing: border-box;
    }


    .home-review-image-wrap img {
        display: block !important;

        width: 100% !important;
        height: auto !important;

        min-width: 0 !important;
        min-height: 0 !important;

        max-width: 100% !important;
        max-height: none !important;

        aspect-ratio: auto !important;

        object-fit: contain !important;
        object-position: center center !important;

        margin: 0 auto !important;

        transform: none !important;
    }


    /* =====================================================
       DISABLE HOVER ZOOM ON MOBILE
    ===================================================== */

    .home-review-card:hover .home-review-image-wrap img {
        transform: none !important;
    }


    /* =====================================================
       REVIEW INFORMATION
    ===================================================== */

    .home-review-card-info {
        min-height: 76px;

        height: auto !important;

        padding: 16px;

        box-sizing: border-box;
    }


    /* =====================================================
       SLIDER CONTROLS
    ===================================================== */

    .home-reviews-controls {
        margin-top: 20px;
    }


    .home-reviews-arrows button {
        width: 42px;
        height: 42px;
    }

}


/* =========================================================
   SMALL MOBILE — 400px AND BELOW
========================================================= */

@media (max-width: 400px) {

    .home-reviews-head h2 {
        font-size: 38px;
    }


    .home-review-card {
        flex: 0 0 100% !important;
        width: 100% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        aspect-ratio: auto !important;
    }


    .home-review-image-wrap {
        width: 100% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        aspect-ratio: auto !important;

        display: block !important;

        overflow: visible !important;
    }


    .home-review-image-wrap img {
        display: block !important;

        width: 100% !important;
        height: auto !important;

        min-width: 0 !important;
        min-height: 0 !important;

        max-width: 100% !important;
        max-height: none !important;

        aspect-ratio: auto !important;

        object-fit: contain !important;
        object-position: center center !important;

        margin: 0 auto !important;

        transform: none !important;
    }


    .home-review-card-info {
        height: auto !important;
        min-height: 76px;

        padding: 16px;
    }

}