/* ==========================================================================
   ExtractHelp — Client reviews: homepage section, service pages and /reviews/
   Stars use the brand orange. Moving rows pause on hover and focus, and become
   a plain scrollable row when the visitor prefers reduced motion.
   ========================================================================== */

/* Heading row with the score card */
.rv-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-block-end: clamp(24px, 3.5vw, 40px); }
.rv-head__copy { max-width: 640px; }
.rv-head__copy h2 { margin: 0 0 12px; }
.rv-head__text { margin: 0; color: var(--muted); font-size: 1.05rem; max-width: 54ch; }

.rv-score {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "num side" "src src"; align-items: center; gap: 12px 16px;
  min-width: 260px; padding: 18px 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.rv-score__num { grid-area: num; color: var(--heading); font-size: clamp(2.4rem, 2rem + 1.4vw, 3.1rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rv-score__icon { grid-area: num; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-text); }
.rv-score__icon .icon { width: 24px; height: 24px; }
.rv-score__side { grid-area: side; display: grid; gap: 5px; }
.rv-score__side .rv-star { width: 20px; height: 20px; }
.rv-score__text { color: var(--muted); font-size: .88rem; font-weight: 650; }
.rv-score__label { color: var(--heading); font-size: 1.08rem; }
.rv-score__note { color: var(--muted); font-size: .78rem; }
.rv-score__src { grid-area: src; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-block-start: 12px; border-block-start: 1px dashed var(--line); color: var(--muted); font-size: .86rem; }
.rv-score__src .platform-logo { width: 18px; height: 18px; flex: none; }

/* Stars and the "Recommends" badge (Facebook recommendations have no stars) */
.rv-stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.rv-star { width: 17px; height: 17px; fill: var(--line-strong); }
.rv-star.is-on { fill: var(--accent); }
.rv-rec { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: .8rem; font-weight: 750; }
.rv-rec .icon { width: 14px; height: 14px; }

/* Card */
.rv-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.rv-card::after { content: "\201C"; position: absolute; top: 2px; inset-inline-end: 18px; color: var(--accent); opacity: .16; font: 800 4.6rem/1 Georgia, "Times New Roman", serif; pointer-events: none; }
.rv-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-float); border-color: color-mix(in srgb, var(--accent) 32%, var(--line)); }
.rv-card__top { display: flex; align-items: center; gap: 8px; min-height: 26px; padding-inline-end: 48px; }
.rv-card__title { margin: 0; font-size: 1.05rem; line-height: 1.35; }
.rv-card__body { flex: 1; margin: 0; color: var(--text); font-size: .97rem; line-height: 1.62; overflow-wrap: anywhere; }
.rv-card__body p { margin: 0; }
.rv-card__who { display: flex; align-items: center; gap: 12px; padding-block-start: 14px; border-block-start: 1px dashed var(--line); }
.rv-avatar { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--grad-navy); color: #fff; font-size: .88rem; font-weight: 800; letter-spacing: .03em; }
.rv-who { display: grid; min-width: 0; }
.rv-who b { overflow: hidden; color: var(--heading); font-size: .95rem; text-overflow: ellipsis; white-space: nowrap; }
.rv-who small { color: var(--muted); font-size: .8rem; }
.rv-src {
  display: inline-flex; align-items: center; gap: 6px; flex: none; margin-inline-start: auto; padding: 5px 10px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted); font-size: .78rem; font-weight: 700; text-decoration: none;
  transition: color .15s, border-color .15s;
}
a.rv-src:hover { color: var(--heading); border-color: var(--line-strong); }
.rv-src .platform-logo { width: 15px; height: 15px; }
.rv-src .icon { width: 12px; height: 12px; }

/* Grid (fewer than 4 reviews, service pages, the reviews page) */
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.rv-grid--1 { max-width: 560px; }
.rv-grid--2 { max-width: 980px; }

/* Moving rows */
.rv-marquee {
  display: grid; gap: 20px; overflow: hidden; padding-block: 10px 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.rv-marquee:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.rv-track { display: flex; gap: 20px; width: max-content; margin: 0; padding: 0; list-style: none; --rv-d: 60s; }
.rv-track .rv-card { flex: none; width: min(380px, 84vw); }
.rv-track .rv-card__body p { display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.rv-track[data-n="4"] { --rv-d: 44s; }
.rv-track[data-n="5"] { --rv-d: 55s; }
.rv-track[data-n="6"] { --rv-d: 66s; }
.rv-track[data-n="7"] { --rv-d: 77s; }
.rv-track[data-n="8"] { --rv-d: 88s; }
@media (prefers-reduced-motion: no-preference) {
  .rv-track { animation: rv-scroll var(--rv-d) linear infinite; }
  .rv-track--rev { animation-direction: reverse; }
  [dir="rtl"] .rv-track { animation-name: rv-scroll-rtl; }
  .rv-marquee:hover .rv-track, .rv-marquee:focus-within .rv-track { animation-play-state: paused; }
}
@keyframes rv-scroll { to { transform: translateX(calc(-50% - 10px)); } }
@keyframes rv-scroll-rtl { to { transform: translateX(calc(50% + 10px)); } }
@media (prefers-reduced-motion: reduce) {
  .rv-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; scroll-snap-type: x proximity; }
  .rv-track { padding-inline: 16px; }
  .rv-track > [aria-hidden="true"] { display: none; }
  .rv-track .rv-card { scroll-snap-align: start; }
}

.rv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block-start: clamp(24px, 3vw, 34px); }
.rv-actions .platform-logo { width: 18px; height: 18px; }

/* /reviews/ page: filter tabs, the list and the form */
.rv-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.rv-filter button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-size: .92rem; font-weight: 650; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.rv-filter button .platform-logo { width: 16px; height: 16px; }
.rv-filter button span { color: var(--muted); font-size: .82rem; }
.rv-filter button[aria-pressed="true"] { background: var(--heading); border-color: var(--heading); color: var(--bg); }
.rv-filter button[aria-pressed="true"] span { color: inherit; opacity: .7; }
.rv-grid .rv-card[hidden] { display: none; }

.rv-write { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.rv-write__intro h2 { margin: 0 0 12px; }
.rv-write__intro p { margin: 0 0 14px; color: var(--muted); }
.rv-write__card { padding: clamp(20px, 3vw, 32px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.rv-write__done { display: grid; justify-items: start; gap: 10px; padding: 28px; border-radius: 24px; background: var(--success-soft); color: var(--text); }
.rv-write__done .icon { width: 30px; height: 30px; color: var(--success); }
.rv-write__done h3 { margin: 0; }
.rv-write__done p { margin: 0; color: var(--muted); }

/* Star picker: five radio buttons, the chosen star and the ones before it light up */
.rv-rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; border: 0; margin: 0; padding: 0; }
.rv-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rv-rate label { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; cursor: pointer; transition: transform .15s var(--ease), background-color .15s; }
.rv-rate label svg { width: 30px; height: 30px; fill: var(--line-strong); transition: fill .15s; }
.rv-rate label:hover { background: var(--accent-soft); transform: scale(1.08); }
.rv-rate input:checked ~ label svg, .rv-rate label:hover svg, .rv-rate label:hover ~ label svg { fill: var(--accent); }
.rv-rate:hover input:checked ~ label:not(:hover):not(:hover ~ label) svg { fill: var(--line-strong); }
.rv-rate input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.rv-rate-text { margin: 4px 0 0; color: var(--muted); font-size: .86rem; min-height: 1.3em; }

@media (max-width: 900px) {
  .rv-write { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .rv-head { align-items: stretch; }
  .rv-actions { flex-direction: column; align-items: stretch; }
  .rv-actions .btn { justify-content: center; }
  .rv-score { min-width: 0; width: 100%; }
  .rv-card { padding: 20px; }
}
@media (min-width: 901px) {
  .rv-write__intro { position: sticky; top: calc(var(--header-h) + 28px); }
}

/* Hero: the score and three real reviews as floating cards (/reviews/) -------- */
.vz--rv { height: 474px; }
.vz-rv__score { position: absolute; z-index: 4; top: 0; inset-inline-end: 0; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(13, 30, 84, .86); border: 1px solid rgba(255, 255, 255, .22); color: #fff; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .8); }
.vz-rv__score strong { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.vz-rv__score > span { display: grid; gap: 3px; }
.vz-rv__score small { color: rgba(255, 255, 255, .75); font-size: .72rem; }
.vz-rv__score .rv-star { width: 15px; height: 15px; fill: rgba(255, 255, 255, .28); }
.vz-rv__score .rv-star.is-on { fill: #F86219; }
.vz-rv__card { position: absolute; display: grid; gap: 10px; width: 330px; padding: 16px 18px; border-radius: 18px; background: var(--surface); color: var(--text); border: 1px solid rgba(255, 255, 255, .22); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .8); }
.vz-rv__card p { margin: 0; color: var(--text); font-size: .84rem; line-height: 1.5; }
.vz-rv__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vz-rv__top .rv-star { width: 15px; height: 15px; }
.vz-rv__top .rv-rec { padding: 2px 9px 2px 7px; font-size: .7rem; }
.vz-rv__src { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.vz-rv__src .platform-logo { width: 14px; height: 14px; }
.vz-rv__who { display: flex; align-items: center; gap: 8px; }
.vz-rv__who .rv-avatar { width: 30px; height: 30px; font-size: .7rem; }
.vz-rv__who b { color: var(--heading); font-size: .82rem; }
.vz-rv__c1 { z-index: 1; top: 76px; inset-inline-start: 0; transform: rotate(-3deg); }
.vz-rv__c2 { z-index: 2; top: 180px; inset-inline-start: 20%; transform: rotate(1.5deg); }
.vz-rv__c3 { z-index: 3; top: 292px; inset-inline-start: 6%; transform: rotate(-1deg); }
@media (prefers-reduced-motion: no-preference) {
  :root:not(.motion-paused) .vz-rv__c1 { animation: vz-rv-a 7s var(--ease) infinite; }
  :root:not(.motion-paused) .vz-rv__c2 { animation: vz-rv-b 8s var(--ease) infinite; }
  :root:not(.motion-paused) .vz-rv__c3 { animation: vz-rv-c 9s var(--ease) infinite; }
  :root:not(.motion-paused) .vz-rv__score { animation: vz-rv-s 6s var(--ease) infinite; }
}
@keyframes vz-rv-a { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-9px); } }
@keyframes vz-rv-b { 0%, 100% { transform: rotate(1.5deg) translateY(0); } 50% { transform: rotate(2.5deg) translateY(-11px); } }
@keyframes vz-rv-c { 0%, 100% { transform: rotate(-1deg) translateY(0); } 50% { transform: rotate(-2deg) translateY(-7px); } }
@keyframes vz-rv-s { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 640px) {
  .vz--rv { height: 400px; }
  .vz-rv__card { width: 270px; padding: 14px; }
  .vz-rv__c1 { top: 72px; }
  .vz-rv__c2 { inset-inline-start: 10%; top: 178px; }
  .vz-rv__c3 { display: none; }
  .vz-rv__score { padding: 10px 12px; }
}
