/* ═══════════════════════════════════════════════════════════════════════════
   ivs-testimonial — Client testimonials, "single stage" (option C, ketok bos
   9 Agu 2026).

   One guest speaks at a time, set in Playfair italic so the quote reads as
   testimony rather than a list entry. Stars, rule, name, then dots.

   Reusable: no page owns this. Every colour goes through var(--v5-*, fallback)
   so it also renders correctly on pages that never load homepage.css or
   ivs-tokens.css. Load with ?v=filemtime.

   Markup contract: partials/ivs-testimonial.blade.php
   Behaviour:      js/components/ivs-testimonial.js (self-boots on
                   [data-ivs-testimonial]; works without JS as a plain list)
   ═══════════════════════════════════════════════════════════════════════════ */

.ivs-testi {
    --ivs-testi-ink: var(--v5-ink, #201f1d);
    --ivs-testi-stone: var(--v5-stone, #5b574d);
    --ivs-testi-mist: var(--v5-mist, #8b877c);
    --ivs-testi-line: var(--v5-line, #e4e0d5);
    --ivs-testi-gold: var(--v5-gold, #b9995b);
    --ivs-testi-olive: var(--v5-olive-700, #4a5e2f);
    --ivs-testi-olive-deep: var(--v5-olive-900, #33421f);
    --ivs-testi-display: var(--v5-font-display, 'Playfair Display', Georgia, serif);
    --ivs-testi-body: var(--v5-font-body, 'Lora', Georgia, serif);
    --ivs-testi-label: var(--v5-font-label, 'Inter', 'Segoe UI', sans-serif);
}

/* ── Section head ── */
.ivs-testi__head {
    text-align: center;
    margin-bottom: clamp(30px, 4vw, 48px);
}
/* modern-base.css forces `main.modernpage p/a/div { font-family:
   var(--font-body) !important }` and the same for headings via --font-heading.
   Those rules read a variable, so redefining it LOCALLY on the element wins
   through the !important without a specificity fight. Both variables are set
   on every text node here because a given tag may be caught by either rule
   (gotcha-teknis.md: the gallery button needed exactly this). */
.ivs-testi__eyebrow {
    --font-body: var(--ivs-testi-label);
    --font-heading: var(--ivs-testi-label);
    font-family: var(--ivs-testi-label);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ivs-testi-olive);
    margin: 0 0 12px;
}
/* the same gold hairline that closes the hero deck and the Overview eyebrow */
.ivs-testi__eyebrow::after {
    content: "";
    display: block;
    width: 46px;
    height: 1px;
    background: var(--ivs-testi-gold);
    margin: 10px auto 0;
}
.ivs-testi__title {
    --font-body: var(--ivs-testi-display);
    --font-heading: var(--ivs-testi-display);
    font-family: var(--ivs-testi-display);
    font-weight: 500;
    font-size: clamp(1.85rem, 3vw, 2.7rem);
    line-height: 1.15;
    color: var(--ivs-testi-ink);
    margin: 0;
    text-wrap: balance;
}
.ivs-testi__sub {
    --font-body: var(--ivs-testi-body);
    --font-heading: var(--ivs-testi-body);
    font-family: var(--ivs-testi-body);
    font-style: italic;
    font-size: clamp(1rem, 1.2vw, 1.1rem);
    line-height: 1.6;
    color: var(--ivs-testi-stone);
    max-width: 62ch;
    margin: clamp(14px, 1.6vw, 22px) auto 0;
}

/* ── Stage ── */
.ivs-testi__stage {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

/* Every quote is stacked in the same grid cell so the stage never jumps
   height between guests; only the active one is painted. */
.ivs-testi__slides {
    display: grid;
}
.ivs-testi__slide {
    grid-area: 1 / 1;
    margin: 0;
}

/* Without JS every quote simply stacks and stays readable. The script adds
   .is-enhanced once it takes over, and only then does hiding kick in. */
.ivs-testi__slides.is-enhanced .ivs-testi__slide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--ivs-anim-soft, 520ms) var(--ivs-anim-ease, cubic-bezier(.22,.61,.36,1));
}
.ivs-testi__slides.is-enhanced .ivs-testi__slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.ivs-testi__slides:not(.is-enhanced) .ivs-testi__slide + .ivs-testi__slide {
    margin-top: 44px;
    padding-top: 44px;
    border-top: 1px solid var(--ivs-testi-line);
}

.ivs-testi__stars {
    display: inline-flex;
    gap: 3px;
    margin-bottom: 26px;
}
.ivs-testi__star {
    width: 15px;
    height: 15px;
    fill: var(--ivs-testi-gold);
}

.ivs-testi__quote {
    --font-body: var(--ivs-testi-display);
    --font-heading: var(--ivs-testi-display);
    font-family: var(--ivs-testi-display);
    font-weight: 500;
    font-style: italic;
    font-size: clamp(1.3rem, 2.4vw, 1.95rem);
    line-height: 1.5;
    color: var(--ivs-testi-ink);
    margin: 0;
    /* Progressive: browsers without it just wrap normally, nothing breaks. */
    text-wrap: balance;
}

/* A <span> is inline by default, so width/height were being ignored and the
   gold rule measured 0x0 (invisible). It has to become a block to have a box. */
.ivs-testi__rule {
    display: block;
    width: 46px;
    height: 1px;
    background: var(--ivs-testi-gold);
    margin: 30px auto 22px;
}

.ivs-testi__name {
    --font-body: var(--ivs-testi-label);
    --font-heading: var(--ivs-testi-label);
    font-family: var(--ivs-testi-label);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ivs-testi-ink);
    font-style: normal;
    display: block;
}

.ivs-testi__more {
    --font-body: var(--ivs-testi-label);
    --font-heading: var(--ivs-testi-label);
    display: inline-block;
    margin-top: 18px;
    font-family: var(--ivs-testi-label);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ivs-testi-olive);
    text-decoration: none;
    position: relative;
}
/* house underline gesture: 1px, scaleX from the left */
.ivs-testi__more::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--ivs-anim-micro, 300ms) var(--ivs-anim-ease, cubic-bezier(.22,.61,.36,1));
}
.ivs-testi__more:hover,
.ivs-testi__more:focus-visible {
    color: var(--ivs-testi-olive-deep);
    text-decoration: none;
}
.ivs-testi__more:hover::after,
.ivs-testi__more:focus-visible::after {
    transform: scaleX(1);
}

/* ── Dots ── */
.ivs-testi__dots {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 34px;
}
/* Pagination dots are one of the documented exceptions to the 0px-corner rule
   (like map pins and chevrons), but the pages carry a blanket square-corner
   rule that measured this at radius 0px, so it is restated with !important
   rather than out-specified. */
.ivs-testi__dot {
    width: 8px;
    height: 8px;
    border-radius: 50% !important;
    border: 1px solid var(--ivs-testi-mist);
    background: none;
    padding: 0;
    cursor: pointer;
    transition: background var(--ivs-anim-micro, 300ms) var(--ivs-anim-ease, ease),
                border-color var(--ivs-anim-micro, 300ms) var(--ivs-anim-ease, ease);
}
.ivs-testi__dot[aria-selected="true"] {
    background: var(--ivs-testi-olive);
    border-color: var(--ivs-testi-olive);
}
.ivs-testi__dot:hover {
    border-color: var(--ivs-testi-olive);
}
.ivs-testi__dot:focus-visible {
    outline: 2px solid var(--ivs-testi-olive);
    outline-offset: 3px;
}

@media (max-width: 575.98px) {
    .ivs-testi__stars { margin-bottom: 20px; }
    .ivs-testi__rule { margin: 24px auto 18px; }
    .ivs-testi__dots { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    .ivs-testi__slides.is-enhanced .ivs-testi__slide,
    .ivs-testi__more::after,
    .ivs-testi__dot {
        transition: none;
    }
}
