/* ── Testimonials ────────────────────────────────────────────
   Figma (Stay, Reviews & trust): desktop 1366:66720,
   mobile 1366:66402. Laid out as the Weddings one (Caleb: the
   side-by-side quotes were a design slip): one quote in the
   middle, centred, the ones either side faded at the screen's
   edges; swipe, drag or click a faded one to bring it over, round
   and round (Swiper, testimonials.js).
   ─────────────────────────────────────────────────────────── */

.testimonials {
    container-type: inline-size; /* cqw: the section's width, no scrollbar */
    overflow: hidden;
    padding: var(--section-y) 0; /* the side padding is the inner's, so 100cqw is the full width */
    background: var(--color-beamwood);
    color: var(--color-canvas);
}

.testimonials__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: calc(var(--site-max-w) + 2 * var(--pad-x));
    padding-inline: var(--pad-x);
    margin: 0 auto;
}

/* Figma Desktop/H2, with a short copper line under it */
.testimonials__title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 64px;
    font-weight: 300;
    line-height: 0.9;
    letter-spacing: -0.96px;
    text-align: center;
}

.testimonials__title::after {
    content: "";
    width: 40px;
    height: 1px;
    background: var(--color-copper);
}

.testimonials__track {
    --quote-w: min(1058px, 80cqw);
    --gap: 40px; /* Swiper's spaceBetween (JS) */
    width: 100cqw;
    margin-inline: calc((100% - 100cqw) / 2);
    overflow: hidden;
    cursor: grab;
}

.testimonials__track:active {
    cursor: grabbing;
}

.testimonials__track:focus-visible {
    outline: 2px solid var(--color-copper);
    outline-offset: 4px;
}

/* Swiper moves this row */
.testimonials__slides {
    display: flex;
    box-sizing: content-box;
    transition-property: transform;
}

.testimonials__item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: var(--quote-w);
    opacity: 0.3;
    text-align: center;
    cursor: pointer;
    user-select: none;
    transition: opacity var(--transition);
}

.testimonials__item.swiper-slide-active {
    opacity: 1;
    cursor: inherit;
}

.testimonials__quote {
    font-family: var(--font-heading);
    font-size: 26px;
    font-style: italic;
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: -0.13px;
}

.testimonials__source {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 14px;
    line-height: 1.4;
    letter-spacing: 4.48px;
    text-transform: uppercase;
}

.testimonials__source cite {
    font-style: normal;
}

.testimonials__dot {
    font-size: 11px;
    letter-spacing: 0;
    color: rgba(240, 240, 237, 0.5);
}

.testimonials__year {
    color: var(--color-candle-wax);
}

/* Dots: phones and tablets only */
.testimonials__dots {
    display: none;
}

.testimonials .stats {
    width: 100%;
}


/* Tablet and mobile — 1024px and below: a quote fills the content width,
   the next just off screen; dots under them */
@media (max-width: 1024px) {
    .testimonials__inner {
        gap: 32px;
    }

    /* Figma Mobile/H2, no line */
    .testimonials__title {
        font-size: 28px;
        line-height: 1.1;
        letter-spacing: -0.21px;
    }

    .testimonials__title::after {
        display: none;
    }

    .testimonials__track {
        --quote-w: calc(100cqw - 2 * var(--pad-x));
        --gap: var(--pad-x);
    }

    .testimonials__dots {
        display: flex;
        align-items: center;
        gap: 9px;
    }

    .testimonials__dot-button {
        width: 9px;
        height: 9px;
        padding: 0;
        border: 0;
        border-radius: 9px;
        background: var(--color-ochre);
        opacity: 0.5;
        cursor: pointer;
        transition: width var(--transition), opacity var(--transition);
    }

    .testimonials__dot-button.is-active {
        width: 60px;
        opacity: 1;
    }

    .testimonials__dot-button:focus-visible {
        outline: 2px solid var(--color-canvas);
        outline-offset: 2px;
    }
}


/* ── Teal: Said about the table (Dining) ─────────────────────
   Figma: desktop 1366:71273, mobile 1366:71606. Shorter quotes
   in the regular italic, an ochre line, big italic ochre
   figures.
   ─────────────────────────────────────────────────────────── */
.testimonials--teal {
    background: var(--color-teal);
}

.testimonials--teal .testimonials__title::after {
    background: var(--color-ochre);
}

.testimonials--teal .testimonials__quote {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
}

.testimonials--teal .stats--trust {
    padding-top: 32px;
    border-top-color: rgba(219, 144, 63, 0.2);
}

.testimonials--teal .stats__item {
    gap: 8px;
}

.testimonials--teal .stats__figure {
    font-size: 48px;
    font-style: italic;
    line-height: 1;
    letter-spacing: 0;
    color: var(--color-ochre);
}

@media (max-width: 1024px) {
    .testimonials--teal .testimonials__quote {
        font-size: 20px;
    }

    .testimonials--teal .stats__figure {
        font-size: 32px;
        line-height: 1.06;
    }
}


/* ── Burgundy: From couples married here (Weddings) ──────────
   Figma: desktop 1366:72596, mobile 1366:75664. Longer quotes,
   a little smaller.
   ─────────────────────────────────────────────────────────── */
.testimonials--burgundy {
    background: var(--color-burgundy);
    color: var(--color-candle-wax);
}

.testimonials--burgundy .testimonials__title::after {
    background: var(--color-candle-wax);
}

.testimonials--burgundy .testimonials__quote {
    font-size: 22px;
    line-height: 1.35;
    letter-spacing: -0.11px;
}

@media (max-width: 1024px) {
    .testimonials--burgundy .testimonials__quote {
        font-size: 18px;
    }

    .testimonials--burgundy .testimonials__dot-button {
        background: var(--color-candle-wax);
    }
}
