/* ==========================================================================
   Testimonials wall – /reviews (video + written testimonials in one collage)
   Namespaced .rv-*. Colours follow the Altrainer DS tokens.
   The staggered placement is done by js/pages/testimonial-wall.js, which
   adds .is-masonry and sets each card's row span; without it the grid
   still lays out as plain rows.
   ========================================================================== */
.rv { --rv-navy:#0d2d4f; --rv-slate:#4b5b6c; --rv-muted:#5c728a; --rv-rule:#d3dae2; --rv-mist:#d9e5f2; --rv-surface:#f3f5f7; --rv-green:#138b4c; --rv-gap:24px; background:#fff; }

/* ---------- intro ---------- */
.rv-intro { padding:120px 0 56px; }
.rv-intro__row { display:flex; justify-content:space-between; align-items:flex-end; gap:48px; }
/* Same type as the homepage hero title (.hw-hero__title): Poppins 600, 56px / 1.08 */
.rv-intro__title { max-width:650px; margin:0; font-family:'Poppins',sans-serif; font-weight:600; font-size:56px; line-height:1.08; letter-spacing:normal; color:var(--rv-navy); }
.rv-intro__lead { max-width:420px; margin:0; font-size:17px; line-height:28px; color:var(--rv-slate); }
.rv-intro__side { display:flex; flex-direction:column; align-items:flex-start; gap:20px; }
/* "Write a review" link to the Google Business Profile: outline button on white. */
/* Scoped under .rv: story-motion.css (with the base .sp-btn) loads after this file. */
.rv .rv-review-btn, .rv .rv-review-btn:focus { gap:10px; min-height:48px; padding:12px 22px; background:#fff; color:var(--rv-navy); border-color:var(--rv-rule); }
.rv .rv-review-btn:hover { background:var(--rv-surface); color:var(--rv-navy); border-color:var(--rv-muted); }

/* ---------- toolbar: filter ---------- */
.rv-wall { padding:0 0 120px; }
.rv-toolbar { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; margin-bottom:32px; }
.rv-filter { display:inline-flex; gap:4px; padding:4px; border-radius:999px; background:var(--rv-surface); }
.rv-filter__btn { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:0 18px; border:0; border-radius:999px; background:transparent; font-size:15px; font-weight:600; line-height:1; color:var(--rv-slate); cursor:pointer; transition:background .2s ease, color .2s ease; }
.rv-filter__btn i { font-size:12px; }
.rv-filter__btn:hover { color:var(--rv-navy); }
.rv-filter__btn[aria-pressed="true"] { background:var(--rv-navy); color:#fff; }
.rv-filter__count { font-size:13px; font-weight:500; opacity:.7; font-variant-numeric:tabular-nums; }
.rv-filter__btn:focus-visible, .rv-thumb:focus-visible { outline:3px solid #2ec77e; outline-offset:3px; }

/* ---------- the wall ---------- */
.rv-wall__grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:var(--rv-gap); align-items:start; }
/* Masonry: 4px rows; the script gives each card a row span of its height + the gap. */
.rv-wall__grid.is-masonry { grid-auto-rows:4px; row-gap:0; grid-auto-flow:row dense; }

.rv-card { position:relative; display:flex; flex-direction:column; margin:0; border-radius:10px; overflow:hidden; background:var(--rv-surface); scroll-margin-top:120px; transition:box-shadow .3s ease; }
.rv-card[hidden] { display:none; }
.rv-card--featured { grid-column:span 2; }
.rv-card.is-target { box-shadow:0 0 0 3px #2ec77e, 0 16px 40px rgba(13,45,79,.14); }

/* quotes */
.rv-card--quote { gap:24px; padding:32px; }
.rv-card--navy { background:var(--rv-navy); }
.rv-card--green { background:#e6f4ec; }

/* videos */
.rv-card__body { display:flex; flex-direction:column; gap:20px; padding:24px 24px 22px; }
.rv-card--featured .rv-card__body { padding:32px 36px 30px; }

/* photos */
.rv-card--photo { background:var(--rv-navy); }

.rv-thumb { position:relative; display:block; overflow:hidden; background:var(--rv-navy); }
.rv-thumb--feature, .rv-thumb--landscape { aspect-ratio:16 / 9; }
.rv-thumb--portrait { aspect-ratio:4 / 5; }
.rv-thumb--square { aspect-ratio:1 / 1; }
.rv-thumb img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.rv-play { position:absolute; top:50%; left:50%; display:inline-flex; align-items:center; justify-content:center; width:60px; height:60px; margin:-30px 0 0 -30px; border-radius:50%; background:#fff; color:var(--rv-navy); font-size:18px; padding-left:3px; transition:transform .2s ease, box-shadow .2s ease; }
.rv-thumb--feature .rv-play { width:84px; height:84px; margin:-42px 0 0 -42px; font-size:26px; padding-left:5px; }
.rv-card:hover .rv-play { transform:scale(1.06); box-shadow:0 8px 24px rgba(10,35,61,.25); }
.rv-duration { position:absolute; right:12px; bottom:12px; padding:4px 8px; border-radius:4px; background:rgba(10,35,61,.8); color:#fff; font-size:12px; font-weight:600; line-height:1.2; }

/* quote type – reset the theme's default blockquote decoration */
.rv-quote::before, .rv-quote::after { content:none; display:none; }
.rv-quote { position:static; margin:0; padding:0; border:0; background:none; font-size:17px; line-height:27px; color:var(--rv-navy); }
.rv-quote--md, .rv-quote--lg, .rv-quote--xl { font-family:'Poppins',sans-serif; font-weight:500; }
.rv-quote--md { font-size:20px; line-height:28px; letter-spacing:-.25px; }
.rv-quote--lg { font-size:25px; line-height:33px; letter-spacing:-.4px; }
.rv-quote--xl { font-size:28px; line-height:37px; letter-spacing:-.45px; }

.rv-card__foot { display:flex; justify-content:space-between; align-items:flex-end; gap:12px; margin:0; }
.rv-who { display:flex; flex-direction:column; gap:2px; min-width:0; }
.rv-who__name { font-size:14px; line-height:20px; font-weight:600; color:var(--rv-navy); }
.rv-who__detail { font-size:14px; line-height:20px; color:var(--rv-muted); }
.rv-card--navy .rv-quote, .rv-card--navy .rv-who__name { color:#fff; }
.rv-card--navy .rv-who__detail { color:#b4cbe4; }

/* "Read more" under a long quote on phones (added by testimonial-wall.js) */
.rv-more { align-self:flex-start; min-height:44px; margin:-12px 0 -8px; padding:0; border:0; background:none; font-size:14px; font-weight:600; color:var(--rv-navy); text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.rv-card--navy .rv-more { color:#fff; }
.rv-more:focus-visible { outline:3px solid #2ec77e; outline-offset:3px; }

/* ---------- logos ---------- */
.rv-logos { padding:80px 0; background:#f3f5f6; }
.rv-logos__row { display:flex; align-items:center; gap:96px; }
.rv-logos__lead { flex:0 0 380px; margin:0; font-family:'Poppins',sans-serif; font-weight:500; font-size:24px; line-height:32px; letter-spacing:-.4px; color:var(--rv-navy); }
.rv-logos__grid { flex:1 1 auto; display:flex; flex-wrap:wrap; align-items:center; gap:32px 40px; margin:0; padding:0; list-style:none; }
.rv-logos__item { display:flex; align-items:center; justify-content:center; width:120px; height:60px; }
.rv-logos__item img { max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; }

/* ---------- CTA ---------- */
.rv-cta { padding:120px 0; background:var(--rv-navy); }
.rv-cta__row { display:flex; justify-content:space-between; align-items:flex-end; gap:48px; flex-wrap:wrap; }
.rv-cta__title { max-width:640px; margin:0 0 20px; font-family:'Poppins',sans-serif; font-weight:600; font-size:52px; line-height:58px; letter-spacing:-1.5px; color:#fff; }
.rv-cta__lead { max-width:520px; margin:0; font-size:17px; line-height:28px; color:var(--rv-mist); }
.rv-cta__actions { display:flex; flex-wrap:wrap; gap:12px; }

/* ---------- responsive ---------- */
@media (max-width:1199px) {
    .rv-quote--xl { font-size:25px; line-height:34px; }
    .rv-quote--lg { font-size:23px; line-height:31px; }
    .rv-logos__row { gap:56px; }
    .rv-logos__lead { flex-basis:300px; }
}
@media (max-width:991px) {
    .rv-intro { padding:80px 0 40px; }
    .rv-intro__row { flex-direction:column; align-items:flex-start; gap:20px; }
    .rv-wall { padding:0 0 88px; }
    .rv-wall__grid { grid-template-columns:repeat(2,minmax(0,1fr)); --rv-gap:20px; }
    .rv-logos { padding:64px 0; }
    .rv-logos__row { flex-direction:column; align-items:flex-start; gap:32px; }
    .rv-logos__lead { flex-basis:auto; }
    .rv-cta { padding:88px 0; }
    .rv-cta__title { font-size:40px; line-height:46px; letter-spacing:-1px; }
}
@media (max-width:900px) {
    .rv-intro__title { font-size:42px; }
}
@media (max-width:575px) {
    .rv .container { padding-left:16px; padding-right:16px; }
    .rv-intro { padding:56px 0 28px; }
    .rv-intro__title { font-size:30px; }
    .rv-intro__lead { font-size:16px; line-height:26px; }
    .rv-toolbar { margin-bottom:20px; }
    .rv-filter { width:100%; }
    .rv-filter__btn { flex:1 1 0; justify-content:center; gap:6px; padding:0 10px; font-size:14px; }
    .rv-filter__btn i { display:none; }
    .rv-wall__grid { grid-template-columns:1fr; --rv-gap:16px; }
    .rv-card--featured { grid-column:auto; }
    .rv-card--quote { gap:20px; padding:24px; }
    .rv-card__body, .rv-card--featured .rv-card__body { padding:20px 20px 18px; }
    .rv-thumb--feature .rv-play { width:64px; height:64px; margin:-32px 0 0 -32px; font-size:20px; padding-left:4px; }
    /* Phones: every quote at one even size. A long quote is cut to four lines with a "Read more"
       button; the description line shows again once the card is open (testimonial-wall.js). */
    .rv-quote, .rv-quote--md, .rv-quote--lg, .rv-quote--xl { font-family:'Poppins',sans-serif; font-weight:500; font-size:18px; line-height:28px; letter-spacing:-.2px; }
    .rv-who__name { font-size:15px; line-height:22px; }
    .rv-card.is-collapsed .rv-quote { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:4; overflow:hidden; }
    .rv-card.is-collapsed .rv-who__detail { display:none; }
    .rv-logos__grid { gap:24px 28px; }
    .rv-logos__item { width:96px; height:48px; }
    .rv-cta { padding:64px 0; }
    .rv-cta__title { font-size:32px; line-height:38px; letter-spacing:-.6px; }
    .rv-cta__lead { font-size:16px; line-height:26px; }
    .rv-cta__actions, .rv-cta__actions .sp-btn { width:100%; }
}
@media (prefers-reduced-motion:reduce) {
    .rv-play, .rv-card, .rv-filter__btn { transition:none; }
}
