/* ══════════════════════════════════════════════════════════════════
   reviews.css — Reviews, testimonials & what others say (landing).
   Ported 1:1 from prototype ReviewsPage: hero, 4-col trust strip,
   featured-testimonials puzzle grid, filterable product-review list.
   White page background throughout.
   ══════════════════════════════════════════════════════════════════ */

/* ── HERO ─────────────────────────────────────────────────────── */
.rv-hero { border-bottom: 1px solid var(--border); padding: 28px 0 32px; }
.rv-eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--fg-tertiary); }
.rv-hero h1 {
  font-family: var(--font-display); font-size: 56px; line-height: 1.04;
  letter-spacing: -.02em; font-weight: 500; margin: 12px 0 16px; color: var(--ink-900);
  text-wrap: balance;
}
.rv-hero p { font-size: 16px; line-height: 1.55; color: var(--fg-secondary); max-width: 560px; margin: 0; }

/* ── TRUST STRIP ──────────────────────────────────────────────── */
.rv-trust { border-bottom: 1px solid var(--border); padding: 40px 0; }
.rv-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.rv-trust-col { padding: 8px 24px; border-right: 1px solid var(--border); }
.rv-trust-col:first-child { padding-left: 0; padding-right: 24px; }
.rv-trust-col:last-child { border-right: 0; padding: 8px 0 8px 24px; }
.rv-trust-num {
  font-family: var(--font-display); font-size: 44px; font-weight: 500; line-height: 1;
  color: var(--ink-900); margin-top: 10px; letter-spacing: -.02em;
}
.rv-trust-num .plus { color: var(--accent-600); }
.rv-trust-sub { font-size: 13px; color: var(--fg-secondary); margin-top: 8px; }
.rv-score-row { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.rv-score-big { font-family: var(--font-display); font-size: 44px; font-weight: 500; color: var(--ink-900); letter-spacing: -.02em; line-height: 1; }
.rv-score-of { font-size: 16px; color: var(--fg-tertiary); }

.rv-ext { display: block; border-radius: 6px; transition: background .15s; }
.rv-ext:hover { background: rgba(15,26,24,.03); }
.rv-ext-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rv-ext-arrow { color: var(--fg-tertiary); opacity: .55; transition: opacity .15s, transform .15s; }
.rv-ext:hover .rv-ext-arrow { opacity: 1; transform: translate(1px,-1px); }
.rv-ext-score { font-family: var(--font-display); font-size: 36px; font-weight: 500; line-height: 1; color: var(--ink-900); border-bottom: 1px solid transparent; transition: border-color .15s; }
.rv-ext:hover .rv-ext-score { border-bottom-color: var(--ink-900); }
.rv-ext-foot { font-size: 12px; color: var(--fg-secondary); margin-top: 8px; }
.rv-mark { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; letter-spacing: -.01em; }

/* ── STARS ────────────────────────────────────────────────────── */
.rv-stars { display: inline-flex; gap: 2px; color: var(--accent-600); }
.rv-stars svg { display: block; }
.rv-stars .off { color: var(--border); }

/* ── FEATURED TESTIMONIALS ────────────────────────────────────── */
.rv-tst { padding: 72px 0; border-bottom: 1px solid var(--border); }
.rv-tst-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; gap: 24px; }
.rv-tst-head h2 { font-family: var(--font-display); font-size: 36px; margin: 8px 0 0; font-weight: 500; letter-spacing: -.01em; color: var(--ink-900); }
.rv-tst-note { font-size: 13px; color: var(--fg-secondary); max-width: 320px; text-align: right; }
.rv-tst-stack { display: grid; gap: 24px; }
.rv-tst-squares { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.rv-tcard { border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; color: var(--ink-900); }
.rv-tcard--dark { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.rv-tcard--wide { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; padding: 36px 40px; }
.rv-tcard--square { display: flex; flex-direction: column; padding: 28px 26px; }
.rv-tcard-quotemark { flex-shrink: 0; }
.rv-tcard blockquote { margin: 0; font-family: var(--font-display); letter-spacing: -.005em; font-weight: 400; }
.rv-tcard--wide blockquote { font-size: 22px; line-height: 1.45; }
.rv-tcard--square blockquote { font-size: 16px; line-height: 1.5; margin: 12px 0 20px; }
.rv-tcard--square .rv-tcard-person { margin-top: auto; }
.rv-tcard-person { display: flex; align-items: center; gap: 14px; }
.rv-tcard--wide .rv-tcard-person { min-width: 220px; flex-shrink: 0; }
.rv-tcard-avatar {
  width: 88px; height: 88px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 30px; font-weight: 500; letter-spacing: .02em;
  color: #fff; box-shadow: inset 0 -6px 14px rgba(0,0,0,.2);
}
.rv-tcard-name { font-size: 14px; font-weight: 600; }
.rv-tcard-role { font-size: 12px; margin-top: 2px; }
.rv-tcard-role--dark { color: rgba(255,255,255,.65); }
.rv-tcard-role--light { color: var(--fg-secondary); }
.rv-watch { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.rv-watch--dark { color: var(--accent-500); }
.rv-watch--light { color: var(--brand-700); }

/* ── REVIEWS LIST ─────────────────────────────────────────────── */
.rv-list { padding: 72px 0 96px; }
.rv-list-head { margin-bottom: 28px; }
.rv-list-head h2 { font-family: var(--font-display); font-size: 36px; margin: 8px 0 0; font-weight: 500; letter-spacing: -.01em; color: var(--ink-900); }

.rv-filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; align-items: center; }
.rv-filter-label { font-size: 12px; color: var(--fg-tertiary); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; margin-right: 4px; min-width: 92px; }
.rv-pill {
  padding: 8px 14px; border-radius: var(--r-md); border: 1px solid var(--border);
  background: #fff; color: var(--fg-primary); font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}
.rv-pill:hover { border-color: var(--border-strong); }
.rv-pill.is-active { border-color: var(--ink-900); background: var(--ink-900); color: #fff; font-weight: 600; }

.rv-widget { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin: 28px 0 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.rv-widget-metrics { display: flex; align-items: flex-end; gap: 48px; flex-wrap: wrap; }
.rv-metric-label { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--fg-tertiary); font-weight: 600; }
.rv-metric-row { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; }
.rv-metric-num { font-family: var(--font-display); font-weight: 500; font-size: 44px; color: var(--ink-900); letter-spacing: -.02em; line-height: 1; }
.rv-metric-sub { font-size: 14px; color: var(--fg-tertiary); }
.rv-sort { display: flex; gap: 10px; align-items: center; }
.rv-sort span { font-size: 12px; color: var(--fg-tertiary); }
.rv-sort select { padding: 8px 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; font-size: 13px; color: var(--fg-primary); }

.rv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rv-empty { padding: 80px 0; text-align: center; color: var(--fg-tertiary); font-size: 14px; }

/* Review card — identical to the homepage "From our customers" card */
.review-card {
  min-width: 0; background: #fff; border: 1px solid var(--border); border-radius: 8px;
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
  cursor: pointer; transition: border-color .18s, box-shadow .2s, transform .2s;
}
.review-card:hover { border-color: var(--ink-400); box-shadow: var(--sh-3, var(--sh-2)); transform: translateY(-2px); }
.review-card-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review-card-name { font-size: 15px; font-weight: 500; color: var(--ink-900); }
.review-verified { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ok-600); font-weight: 600; letter-spacing: .04em; }
.review-card-product { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.review-card-product-img { width: 28px; height: 28px; border-radius: 4px; overflow: hidden; background: var(--ink-200); flex-shrink: 0; display: block; }
.review-card-product-img img { width: 100%; height: 100%; object-fit: cover; }
.review-card-product-title { font-size: 13px; color: var(--fg-secondary); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-card-text { font-size: 15px; line-height: 24px; color: var(--ink-800); }
.review-readmore { color: var(--fg-secondary); font-weight: 500; }
.review-thumbs { display: flex; gap: 6px; flex-wrap: nowrap; overflow: hidden; }
.review-thumb { height: 63px; border-radius: 4px; flex-shrink: 0; background: var(--ink-200); position: relative; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--fg-tertiary); opacity: .9; }
.review-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.review-thumb-play { position: relative; z-index: 1; }
.review-thumb--wide { width: 94px; }
.review-thumb--sq { width: 63px; }
.review-thumb--vert { width: 42px; }
.review-thumb--video { width: 63px; color: rgba(255,255,255,.55); background: linear-gradient(135deg, #2a2a28 0%, #0f0f0e 100%); }
.review-thumb-play { width: 26px; height: 26px; border-radius: 50%; background: rgba(8,88,78,.85); border: 1px solid rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform .18s, background-color .18s; }
.review-thumb--video:hover .review-thumb-play { transform: scale(1.12); background: rgb(8,88,78); }
.review-card-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12px; color: var(--fg-tertiary); display: flex; justify-content: space-between; gap: 8px; }

/* ── PAGINATION ───────────────────────────────────────────────── */
.rv-pager { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 40px; }
.rv-pager-row { display: flex; gap: 6px; align-items: center; }
.rv-page-btn {
  min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--border);
  border-radius: var(--r-md); background: #fff; color: var(--ink-900);
  font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .15s, background .15s;
}
.rv-page-btn:hover { border-color: var(--border-strong); }
.rv-page-btn.is-active { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.rv-page-btn:disabled { opacity: .4; cursor: default; }
.rv-pager-note { font-size: 12px; color: var(--fg-tertiary); font-variant-numeric: tabular-nums; }

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .rv-grid { grid-template-columns: repeat(2, 1fr); }
  .rv-tst-squares { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .rv-hero { padding: 24px 0 28px; }
  .rv-hero h1 { font-size: 40px; }
  .rv-trust-grid { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .rv-trust-col { border-right: 0; padding: 8px 20px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
  .rv-trust-col:first-child, .rv-trust-col:nth-child(2) { border-bottom: 1px solid var(--border); }
  .rv-tst { padding: 48px 0; }
  .rv-tst-head { flex-direction: column; align-items: flex-start; }
  .rv-tst-head h2 { font-size: 28px; }
  .rv-tst-note { text-align: left; }
  .rv-tcard--wide { grid-template-columns: 1fr; gap: 20px; padding: 28px 24px; }
  .rv-tcard--wide .rv-tcard-quotemark { display: none; }
  .rv-list { padding: 48px 0 64px; }
  .rv-list-head h2 { font-size: 28px; }
  .rv-filter-label { min-width: 0; width: 100%; margin-bottom: 2px; }
}
@media (max-width: 560px) {
  .rv-grid { grid-template-columns: 1fr; }
  .rv-tst-squares { grid-template-columns: 1fr; }
  .rv-hero h1 { font-size: 32px; }
  .rv-widget-metrics { gap: 28px; }
  .rv-metric-num { font-size: 34px; }
}

/* ─── WordPress integration (not in the handoff) ───────────── */
/* trust strip - external profile tiles: the hover tint needs room on every side */
.rv-ext { color: inherit; text-decoration: none; margin: -8px 0; padding-top: 16px; padding-bottom: 16px; }
.rv-trust-col.rv-ext:last-child { padding: 16px 16px 16px 24px; }
.rv-ext:hover { color: inherit; text-decoration: none; background: rgba(15, 26, 24, .045); }
.rv-ext:focus-visible { outline: 2px solid var(--ink-900); outline-offset: 2px; }
.rv-ext:hover .rv-mark { color: var(--ink-900); }
.rv-ext-foot--cta { margin-top: 18px; font-size: 13px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.rv-mark-r { width: 18px; height: 18px; border-radius: 4px; background: #0e1f43; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.rv-mark-tld { color: var(--fg-tertiary); }

/* featured testimonials (acf repeater, reviews-page.php) - the handoff's inline styles as classes */
.rv-tcard-quotemark { color: var(--accent-600); opacity: .18; }
.rv-tcard--dark .rv-tcard-quotemark { color: var(--accent-500); opacity: .32; }
.rv-tcard-who { min-width: 0; }
.rv-tcard blockquote { overflow-wrap: anywhere; }
/* last group of two square cards */
.rv-tst-squares--2 { grid-template-columns: repeat(2, 1fr); }
/* initials: colour per card (--rv-avatar); a photo replaces them */
.rv-tcard-avatar { background: var(--rv-avatar, #4a5d57); background: linear-gradient(135deg, var(--rv-avatar, #4a5d57) 0%, color-mix(in srgb, var(--rv-avatar, #4a5d57), #000 28%) 100%); }
.rv-tcard-avatar--img { display: block; object-fit: cover; background: var(--ink-200); box-shadow: none; }
.rv-tcard--dark .rv-tcard-avatar--img { background: rgba(255, 255, 255, .08); }
/* the global a:hover turns links ink-900 - invisible on the dark card */
.rv-watch { text-decoration: none; }
.rv-watch:hover { text-decoration: underline; text-underline-offset: 3px; }
.rv-watch--dark:hover { color: var(--accent-500); }
.rv-watch--light:hover { color: var(--brand-700); }
.rv-watch:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }
@media (max-width: 560px) {
  .rv-tst-squares--2 { grid-template-columns: 1fr; }
}

/* featured testimonials - YouTube popup (reviews.js [yt-modal]) - same backdrop + close button as the video
   testimonial modal (main.css .vt-overlay / .vt-close) */
.rv-yt {
  --rv-yt-py: 72px; --rv-yt-px: 24px;
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: var(--rv-yt-py) var(--rv-yt-px);
  background: rgba(0, 0, 0, .82); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.rv-yt-frame {
  position: relative; aspect-ratio: 16 / 9; background: #000;
  border-radius: 12px; overflow: hidden; box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
  width: min(1120px, 100%, calc((100vh - 2 * var(--rv-yt-py)) * 16 / 9));
  width: min(1120px, 100%, calc((100svh - 2 * var(--rv-yt-py)) * 16 / 9));
}
.rv-yt-frame--shorts {
  aspect-ratio: 9 / 16;
  width: min(405px, 100%, calc((100vh - 2 * var(--rv-yt-py)) * 9 / 16));
  width: min(405px, 100%, calc((100svh - 2 * var(--rv-yt-py)) * 9 / 16));
}
.rv-yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rv-yt-close {
  position: absolute; top: 16px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(57, 57, 57, .6); color: #fff; border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(32px); backdrop-filter: blur(32px);
}
.rv-yt-close:hover { background: rgba(57, 57, 57, .85); }
.rv-yt-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 560px) {
  .rv-yt { --rv-yt-px: 12px; }
}
.rv-page-gap { min-width: 20px; height: 38px; display: inline-flex; align-items: center; justify-content: center; color: var(--fg-tertiary); }
.review-card-product { color: inherit; text-decoration: none; }
.review-card-product:hover .review-card-product-title { color: var(--ink-900); text-decoration: underline; }
.review-thumb { overflow: hidden; }
[data-rv-grid].is-loading { opacity: .5; transition: opacity .15s; }
@media (max-width: 860px) {
  /* 2 x 2: the profile tiles are the bottom row, lined up with the columns above */
  .rv-trust-col.rv-ext, .rv-trust-col.rv-ext:last-child { margin: 0; padding: 16px 20px; border-bottom: 0; }
  .rv-trust-col.rv-ext:nth-child(3) { padding-left: 0; }
}
