﻿/* ==========================================================================
   pages/home.css – Home page sections (Phase 3)
   Loaded only by Views/Home/Home.cshtml (@section pagecss), after
   components.css – so every rule here is Home-scoped by load order.

   Contents
     1. Section rhythm & header (shared by every Home section)
     2. Hero carousel (.main-banner – Home overrides only; base in style.css)
     3. Home carousel arrows (hero, community, testimonials)
     4. Intro line (.key-factors)
     5. Explore collections by categories (.categories)
     6. Why retailers choose Tsilivi (.whyBuy – Web grid + Mobile list)
     7. Credit programme (.credit-program – component currently not invoked)
     8. Click-to-play video (.clickPlay)
     9. Join our retailer community (.joinCommunity-section)
    10. Testimonials (.testimonial)

   JS hooks kept (wwwroot/js/core/script.js): .main-banner / .categories /
   .joinCommunity-wrapper / .testimonial `.slick-container`, `.whyBuy`,
   `.whyBuy .card .card-icon` (+ `.logo-card`, sets --gx/--gy).
   ========================================================================== */


/* 1. Section rhythm & header ============================================= */

.categories,
.whyBuy,
.credit-program,
.joinCommunity-section,
.testimonial {
    padding-block: var(--section-y);
    padding-inline: 0;
    letter-spacing: normal;
}

/* `.section-head` / `.section-title` / `.section-sub` come from components.css;
   `.section-header` (style.css) supplies the brand gold hairline. */
.section-head {
    margin-bottom: var(--space-7);
}

    .section-head .section-header {
        margin-bottom: 0;
        padding-bottom: var(--space-3);
    }

    .section-head .section-sub {
        margin-top: var(--space-4);
        margin-bottom: 0;
        font-size: var(--fs-md);
    }

.section-cta {
    display: flex;
    justify-content: center;
    margin-top: var(--space-7);
}

@media (max-width: 767.98px) {
    .section-head {
        margin-bottom: var(--space-6);
    }

        .section-head .section-sub {
            font-size: var(--fs-base);
        }

    .section-cta {
        margin-top: var(--space-6);
    }
}


/* 2. Hero carousel ========================================================
   The banners are 1920×620 (desktop) and 540×768 (mobile designs), so the
   frame takes the asset's ratio instead of a fixed height – nothing in the
   artwork (headline text) is cropped any more. style.css keeps the slick
   height chain at 100%, which resolves against this aspect-ratio box. */

.main-banner {
    height: auto;
    aspect-ratio: 1920 / 620;
    background: var(--surface-sand);
}

    .main-banner .card {
        border: 0;
        border-radius: var(--radius-0);
        background: transparent;
    }

        .main-banner .card > a {
            display: block;
            height: 100%;
        }

    .main-banner picture {
        display: block;
        height: 100%;
    }

    /* Centre crop: only a video without a mobile source (or a mobile upload
       that is not 540×768) is cropped on phones – the product stays in frame. */
    .main-banner img,
    .main-banner video {
        object-position: center;
    }

@media (max-width: 767.98px) {
    .main-banner {
        aspect-ratio: 540 / 768;
    }
}

/* Dots (desktop only – slick turns them off below 991px; style.css keeps
   them 1rem from the bottom) */
.main-banner .slick-container .slick-dots li {
    width: 24px;
    height: 24px;
    margin: 0 2px;
}

    .main-banner .slick-container .slick-dots li button {
        width: 24px;
        height: 24px;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: var(--radius-pill);
    }

        .main-banner .slick-container .slick-dots li button::before {
            width: 8px;
            height: 8px;
            opacity: 1;
            background: var(--surface);
            border: 1px solid var(--line-strong);
            border-radius: var(--radius-pill);
            box-shadow: var(--shadow-sm);
            transition: width var(--dur) var(--ease), background-color var(--dur) var(--ease);
        }

    .main-banner .slick-container .slick-dots li.slick-active button::before {
        width: 20px;
        background: var(--brand-gold);
        border-color: var(--brand-gold);
    }


/* 3. Home carousel arrows (the .main-banner arrows live in style.css §8, shared with the blog carousel) ================================================= */

.joinCommunity-section .slick-arrow,
.testimonial .slick-arrow {
    z-index: 2;
    width: 44px;
    height: 44px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

    .joinCommunity-section .slick-arrow::before,
    .testimonial .slick-arrow::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 9px;
        height: 9px;
        opacity: 1;
        border: solid var(--brand-plum);
        border-width: 0 1.5px 1.5px 0;
    }

    .joinCommunity-section .slick-next::before,
    .testimonial .slick-next::before {
        transform: translate(-70%, -50%) rotate(-45deg);
    }

    .joinCommunity-section .slick-prev::before,
    .testimonial .slick-prev::before {
        transform: translate(-30%, -50%) rotate(135deg);
    }

    .joinCommunity-section .slick-arrow:hover,
    .joinCommunity-section .slick-arrow:focus-visible,
    .testimonial .slick-arrow:hover,
    .testimonial .slick-arrow:focus-visible {
        background: var(--brand-plum);
        border-color: var(--brand-plum);
    }

        .joinCommunity-section .slick-arrow:hover::before,
        .joinCommunity-section .slick-arrow:focus-visible::before,
        .testimonial .slick-arrow:hover::before,
        .testimonial .slick-arrow:focus-visible::before {
            border-color: var(--text-on-dark);
        }

.joinCommunity-section .slick-prev,
.testimonial .slick-prev {
    left: 0;
}

.joinCommunity-section .slick-next,
.testimonial .slick-next {
    right: 0;
}



/* 4. Intro line (.key-factors – CMS strip below the hero) ================= */

.key-factors {
    padding-block: var(--space-7);
    text-align: center;
    color: var(--brand-plum);
    background-color: var(--surface);
}

    .key-factors p,
    .key-factors .indexPage-text {
        max-width: 62ch;
        margin: 0 auto;
        font-family: var(--font-serif);
        font-size: var(--fs-lg);
        font-weight: var(--fw-regular);
        line-height: 1.5;
        letter-spacing: normal;
        color: var(--brand-plum);
    }

@media (max-width: 991.98px) {
    .key-factors {
        display: none;
    }
}


/* 5. Explore collections by categories ==================================== */

.categories {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    text-align: center;
    color: var(--text-on-dark);
    background: var(--brand-plum);
    background: linear-gradient(180deg, var(--brand-plum) 0%, color-mix(in srgb, var(--brand-plum) 45%, var(--surface-sand)) 60%, var(--surface-sand) 100%);
}

    .categories .category-bg {
        position: absolute;
        inset: 0;
        z-index: -1;
        pointer-events: none;
    }

        .categories .category-bg img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            mix-blend-mode: multiply;
        }

    .categories .section-title {
        color: var(--text-on-dark);
    }

    .categories .section-header {
        border-bottom-color: var(--brand-gold-light);
    }

    .categories a:not(.btn) {
        display: block;
        border-radius: var(--radius);
    }

/* Category card – square tiles (the category photos are 1:1) */
.category-card,
.categories .card {
    position: relative;
    height: auto;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius);
    background: var(--brand-plum-deep);
    box-shadow: var(--shadow-sm);
    aspect-ratio: 1 / 1;
}

    .categories .card img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .6s var(--ease);
    }

    .categories .card .category-title {
        position: absolute;
        inset: auto 0 0 0;
        padding: var(--space-7) var(--space-3) var(--space-3);
        background: linear-gradient(0deg, color-mix(in srgb, var(--brand-plum-deep) 88%, transparent) 0%, transparent 100%);
        pointer-events: none;
    }

        .categories .card .category-title h4 {
            margin: 0;
            font-family: var(--font-sans);
            font-size: var(--fs-sm);
            font-weight: var(--fw-medium);
            line-height: 1.3;
            letter-spacing: .14em;
            text-transform: uppercase;
            color: var(--text-on-dark);
        }

@media (hover: hover) {
    .categories a:hover .card img {
        transform: scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .categories .card img {
        transition: none;
    }

    .categories a:hover .card img {
        transform: none;
    }
}

/* Web: featured category fills the height of the two grid rows */
.categoryCollection .card.card-large {
    height: 100%;
    aspect-ratio: auto;
}

@media (max-width: 991.98px) {
    .categoryCollection .card.card-large {
        height: auto;
        aspect-ratio: 21 / 9;
    }
}

/* Mobile: slick strip – spacing via slide padding (a flex column-gap on the
   track breaks slick's width maths and drifts the slides). */
.categories .slick-slide {
    padding-inline: 6px;
}

.categories .slick-list {
    margin-inline: -6px;
}

@media (max-width: 575.98px) {
    .categories .card .category-title {
        padding: var(--space-6) var(--space-2) var(--space-2);
    }

        .categories .card .category-title h4 {
            font-size: var(--fs-xs);
            letter-spacing: .1em;
        }
}


/* 6. Why retailers choose Tsilivi ========================================= */

.whyBuy {
    text-align: center;
    color: var(--brand-plum);
}

    .whyBuy .card {
        border: 0;
        background: transparent;
        cursor: default;
    }

        .whyBuy .card .card-title,
        .whyBuy .card h4.card-title {
            margin-bottom: var(--space-2);
            font-family: var(--font-serif);
            font-size: var(--fs-lg);
            font-weight: var(--fw-medium);
            line-height: var(--lh-tight);
            color: var(--brand-plum);
        }

        .whyBuy .card h6 {
            margin-bottom: 0;
            font-family: var(--font-sans);
            font-size: var(--fs-sm);
            font-weight: var(--fw-medium);
            line-height: 1.45;
            letter-spacing: .02em;
            color: var(--brand-gold-deep);
        }

        .whyBuy .card p {
            margin-bottom: 0;
            font-size: var(--fs-base);
            font-weight: var(--fw-regular);
            line-height: var(--lh-base);
            color: var(--text);
        }

    /* Icon tile (the art carries its own tile; we add depth + the JS outline) */
    .whyBuy .card .card-icon {
        position: relative;
        flex: none;
        width: 88px;
        aspect-ratio: 1 / 1;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        border-radius: var(--radius);
        box-shadow: var(--shadow-sm);
        transition: box-shadow var(--dur) var(--ease);
    }

        .whyBuy .card .card-icon img {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        /* Pointer-following gradient outline (script.js sets --gx / --gy) */
        .whyBuy .card .card-icon::before {
            content: "";
            position: absolute;
            inset: 0;
            padding: 1.5px;
            border-radius: inherit;
            background: radial-gradient(120px circle at var(--gx, 50%) var(--gy, 50%), var(--brand-plum-soft), var(--brand-gold), transparent 60%);
            -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
        }

        .whyBuy .card .card-icon.logo-card {
            width: 160px;
            border-radius: 50%;
            box-shadow: var(--shadow);
        }

            .whyBuy .card .card-icon.logo-card::before {
                background: radial-gradient(200px circle at var(--gx, 50%) var(--gy, 50%), var(--brand-plum-soft), var(--brand-gold), transparent 65%);
            }

    /* Refined divider: a row of fine gold dots ending in a small plum bead */
    .whyBuy .card .line-divider {
        position: relative;
        width: 100%;
        height: 3px;
        margin-block: var(--space-4);
        border: 0;
        background-image: radial-gradient(circle, var(--brand-gold) 0.9px, transparent 1.3px);
        background-size: 6px 3px;
        background-repeat: repeat-x;
    }

        .whyBuy .card .line-divider::before {
            content: '';
            position: absolute;
            top: 50%;
            left: -3px;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background-color: var(--brand-plum);
            transform: translateY(-50%);
        }

    .whyBuy .card.card-right .line-divider::before {
        left: auto;
        right: -3px;
    }

/* Web layout: features either side of the brand mark, on one grid */
.whyBuy-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: var(--space-8);
    row-gap: var(--space-8);
    align-items: start;
}

    .whyBuy-grid > .card {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        column-gap: var(--space-5);
    }

        .whyBuy-grid > .card.card-left {
            grid-column: 1;
            justify-content: flex-end;
        }

        .whyBuy-grid > .card.card-right {
            grid-column: 3;
        }

    .whyBuy-grid .card-content {
        flex: 1 1 auto;
        max-width: 46ch;
    }

    .whyBuy-grid .card.card-left .card-content {
        text-align: right;
    }

    .whyBuy-grid .card.card-right .card-content {
        text-align: left;
    }

    .whyBuy-grid > .whyBuy-logo {
        grid-column: 2;
        grid-row: 1 / span 3;
        align-self: center;
    }

@media (max-width: 1199.98px) {
    .whyBuy-grid {
        column-gap: var(--space-6);
    }

        .whyBuy-grid .card .card-icon {
            width: 72px;
        }

            .whyBuy-grid .card .card-icon.logo-card {
                width: 128px;
            }
}

/* Below lg the Web view (desktop UA in a narrow window) becomes one column */
@media (max-width: 991.98px) {
    .whyBuy-grid {
        grid-template-columns: minmax(0, 1fr);
        row-gap: var(--space-6);
        max-width: 640px;
        margin-inline: auto;
    }

        .whyBuy-grid > .card.card-left,
        .whyBuy-grid > .card.card-right {
            grid-column: 1;
            flex-direction: row-reverse;
            justify-content: flex-end;
        }

        .whyBuy-grid > .card.card-right {
            flex-direction: row;
        }

        .whyBuy-grid .card.card-left .card-content {
            text-align: left;
        }

        .whyBuy-grid .card.card-left .line-divider::before {
            left: auto;
            right: -3px;
        }

        .whyBuy-grid > .whyBuy-logo {
            display: none;
        }
}

/* Mobile view (TrustSectionMobile): icon + title list with hairlines */
.whyBuy.mobile-div .row {
    max-width: 640px;
    margin-inline: auto;
}

.whyBuy.mobile-div .card {
    flex-direction: column;
    text-align: left;
}

    .whyBuy.mobile-div .card .flex-div {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        column-gap: var(--space-4);
        width: 100%;
    }

        .whyBuy.mobile-div .card .flex-div > div:last-child {
            flex: 1 1 auto;
            min-width: 0;
        }

    .whyBuy.mobile-div .card .card-icon {
        width: 56px;
    }

    .whyBuy.mobile-div .card .card-title,
    .whyBuy.mobile-div .card h4.card-title {
        margin-bottom: var(--space-1);
        font-size: var(--fs-lg);
    }

    .whyBuy.mobile-div .card .line-divider {
        height: 1px;
        margin-block: var(--space-4) 0;
        background: var(--line);
    }

        .whyBuy.mobile-div .card .line-divider::before {
            display: none;
        }


/* 7. Credit programme =====================================================
   CreditProgram is currently commented out in Home.cshtml; kept tokenised so
   it renders on-brand when re-enabled (views: Components/CreditProgram). */

.credit-program {
    position: relative;
    isolation: isolate;
}

    .credit-program .img-bg,
    .credit-program .purple-bg {
        position: absolute;
        inset: 0 auto 0 0;
        width: 50%;
        z-index: -1;
        background-color: var(--surface-ivory);
    }

        .credit-program .img-bg img {
            height: 100%;
            object-fit: cover;
            object-position: right;
        }

    .credit-program .purple-bg {
        inset: 0 0 0 auto;
        background-color: var(--brand-plum);
    }

    .credit-program .btn {
        width: 100%;
        margin-top: var(--space-4);
        color: var(--brand-plum-deep);
        background-color: var(--brand-gold);
        border-color: var(--brand-gold);
    }

        .credit-program .btn:hover {
            background-color: var(--brand-gold-light);
            border-color: var(--brand-gold-light);
        }

    .credit-program .sub-header {
        padding-bottom: var(--space-3);
        color: var(--text-on-dark);
    }

    .credit-program .growBusiness-form {
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-left: var(--space-4);
        color: var(--text-on-dark);
    }

        .credit-program .growBusiness-form input {
            width: 100%;
            margin-bottom: var(--space-2);
            border-color: transparent;
            background-color: var(--surface-cream);
        }

@media (max-width: 991.98px) {
    .credit-program .img-bg,
    .credit-program .purple-bg {
        width: 100%;
    }

    .credit-program .growBusiness-form input {
        color: var(--text-on-dark);
        background: color-mix(in srgb, var(--surface) 6%, transparent);
        border: 1px solid color-mix(in srgb, var(--line) 18%, transparent);
    }

    .credit-program .modal-body {
        padding: var(--space-6) var(--space-6) var(--space-8);
    }

    #joinCommunityModal.modal {
        top: auto;
        bottom: -100%;
        transition: bottom .3s var(--ease);
    }

        #joinCommunityModal.modal.show {
            bottom: -40%;
        }

        #joinCommunityModal.modal .modal-dialog {
            max-width: 100%;
        }

        #joinCommunityModal.modal .modal-content {
            border-radius: var(--radius) var(--radius) 0 0;
            background-color: var(--brand-plum);
        }

        #joinCommunityModal.modal .modal-title {
            color: var(--text-on-dark);
            font-weight: var(--fw-regular);
        }
}


/* 8. Click-to-play video ==================================================
   The film (1920×620) carries its own headline, so the frame keeps that
   ratio (no side crop) and a faint plum wash sits behind the text side. */

.clickPlay {
    position: relative;
    height: auto;
    aspect-ratio: 1920 / 620;
    overflow: hidden;
    background: var(--brand-plum-deep);
}

    .clickPlay video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .clickPlay::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, color-mix(in srgb, var(--brand-plum-deep) 30%, transparent) 0%, transparent 55%);
        pointer-events: none;
    }


/* 9. Join our retailer community ========================================== */

.joinCommunity-section {
    color: var(--brand-plum);
    background-color: var(--surface-sand);
}

    .joinCommunity-section .card.content-card {
        height: 100%;
        border: 0;
        background-color: transparent;
        cursor: default;
    }

        .joinCommunity-section .card.content-card h3 {
            margin-bottom: 0;
            font-family: var(--font-serif);
            font-size: var(--fs-2xl);
            font-weight: var(--fw-regular);
            line-height: var(--lh-tight);
            letter-spacing: normal;
            color: var(--brand-plum);
        }

            .joinCommunity-section .card.content-card h3 strong {
                font-weight: var(--fw-semibold);
            }

        .joinCommunity-section .card.content-card hr {
            width: 64px;
            height: 1px;
            margin: var(--space-5) 0;
            background-color: var(--brand-gold);
            opacity: 1;
        }

        .joinCommunity-section .card.content-card p {
            max-width: 48ch;
            margin-bottom: var(--space-5);
            font-size: var(--fs-md);
            color: var(--text);
        }

    /* Stats: number over a small label */
    .joinCommunity-section .community-stats {
        display: flex;
        align-items: center;
        column-gap: var(--space-6);
        margin-bottom: var(--space-5);
    }

    .joinCommunity-section .card.content-card h4 {
        margin: 0;
        font-family: var(--font-serif);
        font-size: var(--fs-xl);
        font-weight: var(--fw-medium);
        line-height: 1.1;
        color: var(--brand-plum);
    }

        .joinCommunity-section .card.content-card h4 sup {
            display: block;
            top: 0;
            margin-top: var(--space-1);
            font-family: var(--font-sans);
            font-size: var(--fs-xs);
            font-weight: var(--fw-medium);
            line-height: 1.4;
            letter-spacing: .16em;
            text-transform: uppercase;
            color: var(--text-muted);
        }

    .joinCommunity-section .card.content-card .vertical-line {
        width: 1px;
        height: 40px;
        border: 0;
        background-color: var(--line-strong);
    }

    .joinCommunity-section .card.content-card .btn-insta {
        margin-top: 0;
    }

    /* Instagram strip – spacing via slide padding (see .categories note) */
    .joinCommunity-section .slick-container {
        position: relative;
        padding-inline: var(--space-7);
    }

    .joinCommunity-section .slick-track {
        column-gap: 0;
    }

    .joinCommunity-section .slick-slide {
        padding-inline: 6px;
    }

.joinCommunity-wrapper .slick-container .slick-slide {
    transition: opacity .6s ease;
}

.joinCommunity-section .slider-eventCard {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

    .joinCommunity-section .slider-eventCard a {
        display: block;
    }

    .joinCommunity-section .slider-eventCard img {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 4 / 5;
        object-fit: cover;
        object-position: center;
    }

@media (max-width: 991.98px) {
    .joinCommunity-section .card.content-card {
        text-align: center;
    }

        .joinCommunity-section .card.content-card hr {
            margin-inline: auto;
        }

        .joinCommunity-section .card.content-card p {
            margin-inline: auto;
        }

    .joinCommunity-section .community-stats {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .joinCommunity-section .card.content-card .btn-insta {
        width: 100%;
    }

    .joinCommunity-section .slick-container {
        padding-inline: 0;
    }
}


/* 10. Testimonials ======================================================== */

.testimonial {
    position: relative;
    isolation: isolate;
    text-align: center;
    color: var(--brand-plum);
}

    .testimonial .testimonial-bg {
        position: absolute;
        inset: 0;
        z-index: -1;
    }

        .testimonial .testimonial-bg img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* Cream veil keeps the quote legible over the photograph */
        .testimonial .testimonial-bg::after {
            content: '';
            position: absolute;
            inset: 0;
            background: color-mix(in srgb, var(--surface-cream) 72%, transparent);
        }

    .testimonial .slick-container {
        position: relative;
        padding-inline: var(--space-8);
    }

    .testimonial .card {
        max-width: 72ch;
        margin: 0 auto;
        padding-inline: var(--space-2);
        border: 0;
        background-color: transparent;
        cursor: default;
    }

        .testimonial .card .rating {
            display: flex;
            justify-content: center;
            gap: var(--space-1);
            margin-bottom: var(--space-4);
        }

            .testimonial .card .rating .icon {
                width: 16px;
                margin: 0;
            }

    /* Quote: gold serif opening mark, readable measure */
    .testimonial .testimonial-quote,
    .testimonial .card > p {
        margin: 0 auto;
        max-width: 68ch;
        font-size: var(--fs-md);
        line-height: 1.75;
        color: var(--text);
    }

    .testimonial .testimonial-mark {
        display: block;
        height: 32px;
        margin-bottom: var(--space-3);
        font-family: var(--font-serif);
        font-size: 64px;
        line-height: 1;
        color: var(--brand-gold);
    }

    /* Long reviews: 6 lines + a no-JS "Read more" toggle (full text stays in
       the DOM). Only where :has() exists – elsewhere the text is just shown. */
    .testimonial .testimonial-more {
        display: none;
    }

@supports selector(:has(*)) {
    .testimonial .testimonial-quote.is-long {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 6;
        line-clamp: 6;
        overflow: hidden;
    }

    .testimonial .testimonial-more {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        margin-top: var(--space-2);
        padding-inline: var(--space-2);
        font-size: var(--fs-sm);
        font-weight: var(--fw-semibold);
        letter-spacing: .08em;
        text-transform: uppercase;
        color: var(--brand-plum);
        cursor: pointer;
    }

        .testimonial .testimonial-more input {
            position: absolute;
            width: 1px;
            height: 1px;
            opacity: 0;
            pointer-events: none;
        }

        .testimonial .testimonial-more .less,
        .testimonial .testimonial-more input:checked ~ .more {
            display: none;
        }

        .testimonial .testimonial-more input:checked ~ .less {
            display: inline;
        }

        .testimonial .testimonial-more span {
            border-bottom: 1px solid var(--brand-gold);
        }

        .testimonial .testimonial-more:has(input:focus-visible) {
            box-shadow: var(--ring);
        }

    .testimonial .card:has(.testimonial-more input:checked) .testimonial-quote.is-long {
        display: block;
        -webkit-line-clamp: unset;
        line-clamp: none;
        overflow: visible;
    }
}

    .testimonial .customer-name {
        margin-top: var(--space-5);
    }

        .testimonial .customer-name h4 {
            margin-bottom: var(--space-1);
            font-family: var(--font-serif);
            font-size: var(--fs-lg);
            font-weight: var(--fw-medium);
            color: var(--brand-plum);
        }

            .testimonial .customer-name h4::before {
                content: '';
                display: block;
                width: 32px;
                height: 1px;
                margin: 0 auto var(--space-4);
                background-color: var(--brand-gold);
            }

        .testimonial .customer-name p {
            margin: 0;
            font-size: var(--fs-xs);
            font-weight: var(--fw-medium);
            letter-spacing: .14em;
            text-transform: uppercase;
            color: var(--text-muted);
        }
