/* Client reviews — homepage section + reviews page. Uses the site's existing design tokens. */
.rv-section { background: linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%); }
.rv-summary { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 0 32px; }
.rv-avg { font-family: var(--font-display); font-size: 3rem; line-height: 1; color: var(--teal-deep); font-weight: 700; }
.rv-summary-meta { display: flex; flex-direction: column; gap: 4px; }
.rv-summary-meta small { color: var(--text-muted); font-size: 0.85rem; }

.rv-stars { display: inline-flex; gap: 2px; font-size: 1.1rem; letter-spacing: 0; line-height: 1; }
.rv-stars .on { color: var(--turquoise); }
.rv-stars .off { color: #D5DAE1; }
.rv-stars.is-muted span { color: #D5DAE1; }

/* Cards */
.rv-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 28px 26px 24px; background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.rv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.rv-quote { position: absolute; top: 6px; right: 20px; font-family: var(--font-display); font-size: 4.5rem; line-height: 1; color: var(--turquoise); opacity: 0.28; pointer-events: none; }
.rv-text { margin: 0; font-size: 1rem; line-height: 1.7; color: var(--text-dark); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.rv-author { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.rv-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.rv-initials { display: inline-flex; align-items: center; justify-content: center; background: var(--teal-deep); color: var(--white); font-weight: 700; font-size: 0.95rem; }
.rv-who { display: flex; flex-direction: column; min-width: 0; }
.rv-who strong { color: var(--teal-deep); font-size: 0.98rem; }
.rv-who small { color: var(--text-muted); font-size: 0.82rem; }
.rv-card.is-sample { background: var(--bg-light); border-style: dashed; box-shadow: none; }
.rv-card.is-sample .rv-text { color: var(--text-muted); font-style: italic; }
.rv-card.is-sample .rv-initials { background: #C9D1DB; }
.rv-sample-badge { position: absolute; top: 14px; left: 18px; padding: 2px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--border-soft); color: var(--text-muted); font-size: 0.7rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.rv-card.is-sample .rv-stars { margin-top: 18px; }

/* Layout: 3 across on desktop, swipeable carousel on mobile */
.rv-carousel { position: relative; }
.rv-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; outline: none; }
.rv-track > :nth-child(n+4) { display: none; }          /* desktop shows three */
.rv-dots { display: none; }
.rv-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.rv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rv-pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 32px; color: var(--text-muted); }

@media (max-width: 1000px) { .rv-track:not(.is-carousel), .rv-grid { grid-template-columns: repeat(2, 1fr); } .rv-track > :nth-child(n+4) { display: flex; } .rv-track > :nth-child(n+5) { display: none; } }
@media (max-width: 760px) {
  .rv-grid { grid-template-columns: 1fr; }
  .rv-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 6px 4px 16px; margin: 0 -4px; overscroll-behavior-x: contain; }
  .rv-track::-webkit-scrollbar { display: none; }
  .rv-track > .rv-card, .rv-track > :nth-child(n+4), .rv-track > :nth-child(n+5) { display: flex; flex: 0 0 86%; scroll-snap-align: center; }
  .rv-track:focus-visible { outline: 3px solid var(--blue-green); outline-offset: 2px; border-radius: var(--radius-md); }
    .rv-dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
  .rv-dots span { width: 8px; height: 8px; border-radius: 50%; background: #CBD3DD; transition: background 0.2s ease, transform 0.2s ease; }
  .rv-dots span.is-active { background: var(--turquoise); transform: scale(1.25); }
  .rv-actions .btn { flex: 1 1 100%; text-align: center; }
  .rv-avg { font-size: 2.4rem; }
}

/* Form */
.rv-form-wrap { max-width: 720px; }
.rv-form { background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow-soft); }
.rv-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .rv-row { grid-template-columns: 1fr; } }
.rv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rv-rating-field { border: none; padding: 0; margin: 0 0 18px; }
.rv-rating-field legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.rv-rating-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rv-rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-rating-input label { font-size: 2rem; line-height: 1; color: #D5DAE1; cursor: pointer; padding: 2px 2px; min-width: 40px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; transition: color 0.15s ease, transform 0.15s ease; }
.rv-rating-input label:hover, .rv-rating-input label:hover ~ label, .rv-rating-input input:checked ~ label { color: var(--turquoise); }
.rv-rating-input label:hover { transform: scale(1.12); }
.rv-rating-input input:focus-visible + label { outline: 3px solid var(--blue-green); outline-offset: 2px; border-radius: 8px; }
.rv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rv-consent { display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 14px; font-size: 0.9rem; color: var(--text-muted); cursor: pointer; }
.rv-consent input { margin-top: 3px; }
.rv-err { display: block; margin-top: 4px; color: #A32E24; font-size: 0.85rem; }
.rv-alert { margin: 0 0 18px; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.95rem; }
.rv-alert-ok { background: #E3F4EA; color: #1E6B3A; }
.rv-alert-err { background: #FBDEDC; color: #A32E24; }
@media (prefers-reduced-motion: reduce) { .rv-card, .rv-rating-input label, .rv-dots span { transition: none; } .rv-card:hover { transform: none; } }
