/* ============================================================
   Reviews (h2g/reviews) — dynamische slider op basis van CPT
   `review`, met legacy-fallback (oude InnerBlocks-kaarten) tot
   de content is gemigreerd.
   ============================================================ */

.reviews { background: var(--nile-900); }

/* gecentreerde sectiekop-variant (gedeeld door slider + legacy-fallback) */
.sec-head.centered { text-align: center; margin-left: auto; margin-right: auto; }
.sec-head.centered .eyebrow { justify-content: center; }
.sec-head.centered p { margin-left: auto; margin-right: auto; }

/* ── Legacy fallback (oude review-items, tot content-migratie) ── */
.rv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.rv-card {
  border: 1px solid rgba(255,255,255,.10); border-radius: 12px; padding: 34px 30px; position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
  transition: transform .5s, border-color .4s;
}
.rv-card:hover { transform: translateY(-6px); border-color: rgba(47,158,141,.45); }

.rv-mark { font-family: var(--font-h); font-size: 70px; line-height: .6; color: var(--teal-700); height: 34px; }
.rv-stars { color: var(--gold-500); letter-spacing: 3px; margin: 6px 0 16px; font-size: 15px; }
.rv-quote { font-size: 16.5px; line-height: 1.55; color: rgba(255,255,255,.9); font-weight: 300; }

.rv-person { display: flex; align-items: center; gap: 14px; margin-top: 26px; }
.rv-person img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.rv-name { font-family: var(--font-h); font-weight: 600; font-size: 15px; }
.rv-role { font-size: 13px; color: var(--nile-300); }

@media (max-width: 820px) { .rv-grid { grid-template-columns: 1fr; } }

/* ── Reviews-slider (nieuw — h2g/reviews dynamisch via CPT `review`) ─────── */
/* Sectie-padding uit de handoff (130px boven / 120px onder) i.p.v. de generieke clamp. */
.reviews.reviews-slider { padding: 130px 0 120px; }

.rvs-viewport { overflow: hidden; margin-top: 56px; }
.rvs-track {
  display: flex;
  transition: transform .8s cubic-bezier(.25,.6,.2,1);
}
.rvs-slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: grid;
  /* Kolommen schalen mee met de "Kaarten per slide"-instelling (--rvs-cols
     wordt door render.php als inline custom property op de sectie gezet). */
  grid-template-columns: repeat(var(--rvs-cols, 4), 1fr);
  gap: 20px;
}

/* Kaart: vaste hoogte ⇒ altijd gelijke blokken (desktop) */
.rvs-card {
  background: #0D1420;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: 420px;
}
.rvs-quotemark {
  font-family: Georgia, serif;
  font-size: 42px;
  line-height: 1;
  height: 29px;
  color: rgba(59,198,177,.45);
}
.rvs-stars {
  color: var(--gold-500);
  font-size: 15px;
  letter-spacing: 2.5px;
  margin: 14px 0 16px;
}
.rvs-quote {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #DFE5ED;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}
.rvs-person {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.rvs-avatar {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  overflow: hidden;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  color: rgba(255,255,255,.85);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-h);
  letter-spacing: .5px;
}
.rvs-name { font-family: var(--font-b); font-size: 14.5px; font-weight: 700; color: #fff; }
.rvs-role { font-size: 13.5px; line-height: 1.4; color: var(--nile-300); }

/* ── Controls ── */
.rvs-controls { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; }
.rvs-voortgang { display: flex; align-items: center; gap: 18px; }
.rvs-teller { font-family: var(--font-h); font-weight: 600; font-size: 14px; color: var(--nile-300); min-width: 52px; }
.rvs-balk { width: 220px; height: 3px; background: rgba(255,255,255,.1); border-radius: var(--r-pill); overflow: hidden; }
.rvs-vulling { height: 100%; background: var(--teal-300); border-radius: var(--r-pill); transition: width .45s; }
.rvs-pijlen { display: flex; gap: 12px; }
.rvs-pijl {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  color: #fff;
  cursor: pointer;
  transition: .3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rvs-pijl .ico { width: 20px; height: 20px; }
.rvs-pijl:hover { border-color: var(--teal-300); color: var(--teal-300); background: rgba(59,198,177,.08); }

/* ── CTA (hergebruikt de bestaande .btn/.btn-primary-knopstijl, zie buttons.css) ── */
.rvs-cta { margin-top: 44px; display: flex; justify-content: center; }

/* ── Responsive: 4 → 2 → 1 kolommen (exact uit reviews-slider.html) ──────── */
@media (max-width: 1024px) {
  .rvs-slide { grid-template-columns: repeat(2, 1fr); }
  .rvs-card { height: auto; min-height: 340px; }
  .reviews-slider .sec-head h2 { font-size: 36px; }
}
@media (max-width: 640px) {
  .reviews.reviews-slider { padding: 80px 0; }
  .rvs-slide { grid-template-columns: 1fr; }
  .reviews-slider .sec-head h2 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  .rvs-track,
  .rvs-vulling { transition: none; }
}

/* ── Toetsenbord-focus: duidelijke teal ring op de donkere achtergrond ───── */
.rvs-pijl:focus-visible,
.rvs-cta .btn:focus-visible {
  outline: 2px solid var(--teal-300);
  outline-offset: 3px;
}

/* ── Editor-only: placeholder i.p.v. kaarten (geen ServerSideRender meer) ── */
.h2g-reviews-editor-placeholder {
  margin-top: 32px;
  padding: 28px 24px;
  border: 1px dashed rgba(255,255,255,.18);
  border-radius: var(--r-lg);
  text-align: center;
  color: rgba(255,255,255,.6);
}
.h2g-reviews-editor-placeholder p { margin: 0 0 6px; }
.h2g-reviews-editor-placeholder p:last-child { margin-bottom: 0; }
.h2g-reviews-editor-placeholder__count { color: var(--teal-300); font-weight: 600; }
