/* Client reviews strip (partials/reviews.php): cards slide across by themselves, pause on hover or focus,
   and become a normal scrollable row for visitors who prefer reduced motion. Every card has the same size; a review that
   does not fit gets a "Read full review" button and the card flips to show all of it. Colours are the site's pastels and brand blue. */

.rv-sec { overflow: hidden; }
.rv-sec .hv-lead { max-width: none; }
.rv-marquee { margin-top: 48px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.rv-track { display: flex; width: max-content; animation: rv-slide var(--rv-time, 60s) linear infinite; will-change: transform; }
.rv-marquee:hover .rv-track, .rv-marquee:focus-within .rv-track, .rv-marquee.is-paused .rv-track { animation-play-state: paused; }
.rv-list { display: flex; gap: 20px; margin: 0; padding: 0 10px; list-style: none; }
@keyframes rv-slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.rv-card { flex: 0 0 360px; height: 360px; perspective: 1400px; }
.rv-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.22, .8, .24, 1); }
.rv-card.is-flipped .rv-inner { transform: rotateY(180deg); }
.rv-face { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; padding: 28px 30px; border-radius: 28px; background: var(--p-blue); border: 1px solid rgba(20, 69, 194, .08); -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: visibility 0s .3s; overflow: hidden; }
.rv-card--sky .rv-face { background: var(--p-sky); }
.rv-card--lav .rv-face { background: var(--p-lav); }
.rv-card--mint .rv-face { background: var(--p-mint); }
.rv-back { transform: rotateY(180deg); visibility: hidden; }
.rv-card.is-flipped .rv-back { visibility: visible; }
.rv-card.is-flipped .rv-front { visibility: hidden; }

.rv-top { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.rv-pill { display: inline-block; max-width: 100%; padding: 5px 12px; border-radius: 14px; background: #fff; font-size: 12px; font-weight: 600; line-height: 1.25; color: var(--brand, #1445c2); }
.rv-stars { font-size: 17px; letter-spacing: 3px; line-height: 1; color: #f2a516; }
.rv-stars span { color: rgba(20, 69, 194, .2); }

.rv-front blockquote { flex: none; max-height: calc(4 * 1.7em); margin: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; font-size: 16px; line-height: 1.7; color: var(--ink); }
.rv-full { flex: 1; min-height: 0; overflow-y: auto; padding-right: 6px; font-size: 16px; line-height: 1.7; color: var(--ink); scrollbar-width: thin; }
.rv-more-row { min-height: 22px; margin-top: auto; }
.rv-more { padding: 0; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--brand, #1445c2); cursor: pointer; }
.rv-more:hover { text-decoration: underline; }
.rv-more:focus-visible { outline: 2px solid var(--brand, #1445c2); outline-offset: 3px; border-radius: 4px; }

.rv-by { display: flex; align-items: center; gap: 12px; }
.rv-by img { width: 46px; height: 46px; border-radius: 14px; object-fit: contain; background: #fff; }
.rv-av { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border-radius: 14px; background: #fff; font-size: 16px; font-weight: 700; color: var(--brand, #1445c2); }
.rv-who { display: grid; line-height: 1.3; }
.rv-who strong { font-size: 15px; color: var(--ink); }
.rv-who small { font-size: 13px; color: var(--muted); }

@media (max-width: 560px) {
  .rv-card { flex-basis: 285px; height: 360px; }
  .rv-face { padding: 24px; }
  .rv-front blockquote { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .rv-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .rv-track { animation: none; }
  .rv-list[aria-hidden="true"] { display: none; }
  .rv-inner, .rv-face { transition: none; }
}
