/* Review sections (HAB-11): home strip, service-page quotes, /reviews/, About Google feed.
   Generated markup comes from scripts/reviews.mjs; live badges / feed are filled by reviews.js.
   Fits the Beaver Builder theme: Questrial body, Cutive headings, ink #333b47, brand red #D11F46,
   teal #7fc2c2 (footer hover accent), 1100px content width. Every class is prefixed rv-. */

.rv {
  --rv-ink: #333b47;
  --rv-muted: #59606c;          /* 6.2:1 on white */
  --rv-red: #d11f46;            /* 5.0:1 on white, white text on it 5.0:1 */
  --rv-red-dark: #a8173a;
  --rv-teal: #7fc2c2;           /* decorative only (borders, quote glyph bg) */
  --rv-teal-ink: #2b6f6f;       /* teal for text: 5.9:1 on white */
  --rv-star: #b07a00;           /* 3.6:1, non-text graphic; rating also given as text */
  --rv-line: #e2e2e2;
  --rv-soft: #f7f6f4;
  --rv-radius: 6px;
  font-family: "Questrial", sans-serif;
  color: var(--rv-ink);
  box-sizing: border-box;
}
.rv *, .rv *::before, .rv *::after { box-sizing: inherit; }

/* ---------- section shell ---------- */
.rv-section { padding: 56px 16px; background: #fff; }
.rv-section--soft { background: var(--rv-soft); }
.rv-section--ink { background: var(--rv-ink); color: #fff; }
.rv-container { max-width: 1100px; margin: 0 auto; }
.rv-section h2.rv-h2 {
  font-family: "Cutive", serif; font-weight: 400; font-size: 30px; line-height: 1.3;
  color: var(--rv-ink); margin: 0 0 8px; text-transform: none; letter-spacing: 0;
}
.rv-section--ink h2.rv-h2, .rv-section--ink h1.rv-h1 { color: #fff; }
.rv-h1 { font-family: "Cutive", serif; font-weight: 400; font-size: 36px; line-height: 1.25; margin: 0 0 12px; }
.rv-lede { font-size: 18px; line-height: 1.6; max-width: 720px; margin: 0 0 24px; }
.rv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.rv-head p { margin: 0; color: var(--rv-muted); }
.rv-kicker { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--rv-teal-ink); margin: 0 0 6px; }
.rv-section--ink .rv-kicker { color: var(--rv-teal); }

/* [hidden] must win over the display rules below (live badges / feed stay hidden without data). */
.rv [hidden], .rv[hidden] { display: none !important; }
.rv-sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Service-page block (inside the Beaver Builder column that held the old carousel). */
.rv-inline { padding: 8px 0 24px; }
.rv-inline h2.rv-h2 {
  font-family: "Cutive", serif; font-weight: 400; font-size: 30px; line-height: 1.3;
  color: var(--rv-ink); margin: 0 0 6px; text-transform: none; letter-spacing: 0;
}
.rv-more { margin: 8px 0 0; }

/* The badge slot keeps the badge's height whether or not live data arrives (no layout shift). */
.rv-badge-slot { height: 52px; display: flex; align-items: center; }
.rv-badge-slot .rv-badge { height: 52px; box-sizing: border-box; padding-top: 0; padding-bottom: 0; }
/* In a section head the slot also reserves its width, so a revealed badge never wraps onto a new row. */
.rv-head .rv-badge-slot { min-width: 250px; justify-content: flex-end; }
.rv-band__links { margin: 16px 0 0; font-size: 15px; color: #e8ebef; }
.rv-band__links a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.rv-avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: block; }
.rv-feed__who a { color: var(--rv-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.rv-section--cta { padding-top: 0; }

/* ---------- focus (shared) ---------- */
.rv a:focus-visible, .rv button:focus-visible, .rv [tabindex]:focus-visible {
  outline: 3px solid var(--rv-ink); outline-offset: 3px; border-radius: 3px;
}
.rv-section--ink a:focus-visible, .rv-section--ink button:focus-visible { outline-color: #fff; }


/* ---------- stars ---------- */
.rv-stars { color: var(--rv-star); letter-spacing: 1px; font-size: 16px; line-height: 1; white-space: nowrap; }
.rv-stars .rv-star-off { color: #cfcfcf; }

/* ---------- testimonial card ---------- */
.rv-card {
  position: relative; margin: 0; background: #fff; border: 1px solid var(--rv-line);
  border-top: 4px solid var(--rv-teal); border-radius: var(--rv-radius);
  padding: 28px 24px 22px; display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 1px 2px rgba(51,59,71,.06);
}
.rv-card::before {
  content: "\201C"; content: "\201C" / ""; font-family: "Cutive", serif; font-size: 64px; line-height: 1;
  color: var(--rv-red); position: absolute; top: 6px; left: 18px; opacity: .9; pointer-events: none;
}
.rv-card blockquote { margin: 0; padding: 26px 0 0; border: 0; font-size: 16px; line-height: 1.6; color: var(--rv-ink); quotes: none; }
.rv-card blockquote p { margin: 0 0 10px; font-size: inherit; line-height: inherit; }
.rv-card blockquote p:last-child { margin-bottom: 0; }
.rv-card figcaption { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rv-line); display: grid; gap: 2px; }
.rv-card__name { font-family: "Cutive", serif; font-size: 17px; color: var(--rv-ink); }
.rv-card__context { font-size: 14px; color: var(--rv-muted); }
.rv-card__source { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--rv-teal-ink); margin-top: 4px; }
.rv-card--feature { border-top-color: var(--rv-red); }
.rv-card--feature blockquote { font-family: "Cutive", serif; font-size: 21px; line-height: 1.55; }

/* ---------- rating badge ---------- */
.rv-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.rv-badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px; background: #fff;
  border: 1px solid var(--rv-line); border-radius: 999px; text-decoration: none; color: var(--rv-ink);
  box-shadow: 0 1px 3px rgba(51,59,71,.08); transition: border-color .2s, box-shadow .2s;
}
a.rv-badge:hover { border-color: var(--rv-ink); box-shadow: 0 2px 8px rgba(51,59,71,.14); text-decoration: none; color: var(--rv-ink); }
.rv-badge__score { font-family: "Cutive", serif; font-size: 28px; line-height: 1; }
.rv-badge__meta { display: grid; gap: 3px; font-size: 13px; line-height: 1.2; color: var(--rv-muted); }
.rv-badge__meta strong { color: var(--rv-ink); font-weight: 700; }
.rv-badge--link .rv-badge__score { font-size: 15px; font-family: "Questrial", sans-serif; font-weight: 700; }
.rv-badge--link { padding: 10px 18px; }

/* ---------- quote strip (home) ---------- */
.rv-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none;
}
.rv-strip > li { display: flex; }
.rv-strip .rv-card { width: 100%; }
.rv-strip .rv-card blockquote { font-size: 15px; }
.rv-strip-foot { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-top: 28px; }

/* ---------- grid + filters ---------- */
.rv-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 0; }
.rv-filter {
  font: 15px/1 "Questrial", sans-serif; padding: 10px 16px; min-height: 44px; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--rv-ink); border: 1px solid #b9bdc4; transition: background .2s, color .2s;
}
.rv-filter:hover { border-color: var(--rv-ink); }
.rv-filter[aria-pressed="true"] { background: var(--rv-ink); border-color: var(--rv-ink); color: #fff; }
.rv-filter .rv-count { opacity: .75; }
.rv-grid { columns: 3 300px; column-gap: 20px; }
.rv-grid > .rv-card { break-inside: avoid; margin: 0 0 20px; display: flex; width: 100%; }
.rv-grid > .rv-card[hidden] { display: none; }
.rv-grid--2 { columns: 2 320px; }
.rv-status { font-size: 14px; color: var(--rv-muted); margin: -12px 0 16px; min-height: 1em; }

/* ---------- live Google feed ---------- */
.rv-feed { background: #fff; border: 1px solid var(--rv-line); border-radius: var(--rv-radius); padding: 24px; }
.rv-feed__head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--rv-line); }
.rv-feed__title { font-family: "Cutive", serif; font-size: 22px; margin: 0; color: var(--rv-ink); }
.rv-feed__summary { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--rv-muted); }
.rv-feed__summary strong { font-family: "Cutive", serif; font-size: 22px; color: var(--rv-ink); font-weight: 400; }
.rv-feed__list { list-style: none; margin: 0; padding: 0; }
.rv-feed__item { display: grid; grid-template-columns: 44px 1fr; gap: 4px 14px; padding: 18px 0; border-bottom: 1px solid var(--rv-line); }
.rv-feed__item:last-child { border-bottom: 0; }
.rv-avatar {
  grid-row: span 3; width: 44px; height: 44px; border-radius: 50%; background: #e7f2f2; color: var(--rv-teal-ink);
  display: flex; align-items: center; justify-content: center; font-family: "Cutive", serif; font-size: 18px;
}
.rv-feed__who { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 15px; }
.rv-feed__who b { font-weight: 700; }
.rv-feed__when { color: var(--rv-muted); font-size: 13px; }
.rv-feed__text { margin: 4px 0 0; font-size: 15px; line-height: 1.55; }
.rv-feed__foot { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--rv-line); font-size: 13px; color: var(--rv-muted); }
.rv-attrib { font-size: 13px; color: var(--rv-muted); }
.rv-link { color: var(--rv-red-dark); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }
.rv-link:hover { color: var(--rv-ink); }
.rv-section--ink .rv-link { color: #fff; }

/* ---------- CTA row ---------- */
.rv-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 28px; border-radius: var(--rv-radius); background: var(--rv-ink); color: #fff; }
.rv-cta h2, .rv-cta h3 { font-family: "Cutive", serif; font-weight: 400; color: #fff; margin: 0 0 4px; font-size: 24px; }
.rv-cta p { margin: 0; color: #dfe3e8; }
.rv-cta__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.rv-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 22px;
  font: 16px/1 "Questrial", sans-serif; text-decoration: none; border-radius: 3px; border: 2px solid transparent;
  transition: background .25s, color .25s, border-color .25s;
}
.rv-btn--primary { background: var(--rv-red); color: #fff; }
.rv-btn--primary:hover { background: #fff; color: var(--rv-ink); text-decoration: none; }
.rv-btn--ghost { background: transparent; color: #fff; border-color: #fff; }
.rv-btn--ghost:hover { background: #fff; color: var(--rv-ink); text-decoration: none; }
.rv-cta a:focus-visible { outline-color: #fff; }

/* ---------- page band (/reviews/ hero) ---------- */
.rv-band { padding: 64px 16px 48px; background: var(--rv-ink) linear-gradient(135deg, #333b47 0%, #3d4756 100%); color: #fff; }
.rv-band .rv-lede { color: #e8ebef; }
.rv-band h1.rv-h1, .rv-band .rv-h1 { color: #fff; }
.rv-band .rv-kicker { color: var(--rv-teal); }
.rv-band .rv-badge { box-shadow: none; }


/* ---------- responsive ---------- */
@media (max-width: 992px) {
  .rv-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .rv-section { padding: 40px 16px; }
  .rv-section h2.rv-h2, .rv-inline h2.rv-h2 { font-size: 26px; }
  .rv-head .rv-badge-slot { flex: 1 0 100%; min-width: 0; justify-content: flex-start; }
  .rv-h1 { font-size: 30px; }
  .rv-lede { font-size: 16px; }
  /* Strip becomes a swipeable row with scroll-snap; the next card peeks to signal more. */
  .rv-strip {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px;
    margin: 0 -16px; padding: 4px 16px 12px; scroll-padding: 0 16px;
  }
  .rv-strip > li { flex: 0 0 84%; scroll-snap-align: start; }
  .rv-card { padding: 24px 18px 18px; }
  .rv-card--feature blockquote { font-size: 18px; }
  .rv-feed { padding: 18px 16px; }
  .rv-cta { padding: 22px 18px; }
  .rv-cta__buttons, .rv-cta__buttons .rv-btn { width: 100%; }
  .rv-band { padding: 44px 16px 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv * { transition: none !important; scroll-behavior: auto !important; }
}
