/* ----- Reviews slider (home page). Loaded only by index.html ----- */
.review-box.has-slider { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
.review-box.has-slider > * { min-width: 0; }
.review-box.has-slider .review-intro h2 { margin-bottom: 0.35rem; }
.reviews-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem;
  margin: 0; color: var(--white) !important; font-weight: 600; font-size: 0.98rem;
}
.reviews-summary .rv-sum-stars { color: #F5C04E; display: inline-flex; gap: 1px; }
.review-cta { display: grid; gap: 1rem; align-items: center; padding-top: 1.2rem; border-top: 1px solid rgba(155, 138, 240, 0.22); }
.review-cta h3 { color: var(--white); margin: 0 0 0.3rem; }
@media (min-width: 800px) {
  .review-cta { grid-template-columns: 1.4fr 0.8fr; gap: 2rem; }
}

.rv-carousel { position: relative; min-width: 0; }
.rv-viewport { overflow: hidden; border-radius: var(--radius-sm); touch-action: pan-y; }
.rv-track {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: stretch;
  transition: transform 0.45s ease;
  will-change: transform;
}
.rv-carousel.no-motion .rv-track { transition: none; }
.rv-slide {
  flex: 0 0 calc(100% / var(--rv-per-view, 1));
  max-width: calc(100% / var(--rv-per-view, 1));
  padding: 0.25rem 0.4rem;
  display: flex;
}
.rv-card {
  margin: 0; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.2rem 1.1rem;
  background: rgba(27, 20, 66, 0.72);
  border: 1px solid rgba(155, 138, 240, 0.26);
  border-radius: var(--radius-sm);
}
.rv-quote { margin: 0; position: relative; }
.rv-quote::before {
  content: "\201C"; display: block; height: 1.4rem; margin-bottom: 0.2rem;
  font-family: Georgia, serif; font-size: 2.6rem; line-height: 1; color: var(--teal); opacity: 0.8;
}
.rv-text { margin: 0; color: var(--text) !important; font-size: 0.98rem; line-height: 1.6; max-width: none !important; }
.rv-more {
  margin-top: 0.55rem; padding: 0.2rem 0; border: 0; background: none; cursor: pointer;
  color: var(--teal); font: inherit; font-weight: 600; font-size: 0.92rem; text-decoration: underline; text-underline-offset: 0.18em;
}
.rv-more:hover { color: var(--sky); }
.rv-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; }
.rv-name { color: var(--white); font-weight: 600; }
.rv-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.78rem;
  border: 1px solid rgba(214, 222, 245, 0.22); background: rgba(255, 255, 255, 0.04);
}
.rv-src { color: var(--text); font-weight: 600; letter-spacing: 0.02em; }
.rv-stars { display: inline-flex; gap: 1px; color: #F5C04E; }
.rv-rec { color: var(--sky); }

.rv-controls { display: flex; align-items: center; justify-content: center; gap: 0.75rem; margin-top: 1rem; flex-wrap: wrap; }
.rv-btn {
  width: 2.75rem; height: 2.75rem; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(127, 245, 224, 0.5); background: rgba(127, 245, 224, 0.06); color: var(--white);
}
.rv-btn:hover { background: rgba(127, 245, 224, 0.16); color: var(--teal); }
.rv-btn svg { width: 1.1rem; height: 1.1rem; }
.rv-play .rv-icon-play { display: none; }
.rv-play.is-paused .rv-icon-play { display: block; }
.rv-play.is-paused .rv-icon-pause { display: none; }
.rv-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.15rem; }
.rv-dot {
  width: 1.75rem; height: 1.75rem; padding: 0; border: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.rv-dot::before {
  content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: rgba(214, 222, 245, 0.35); transition: background 0.2s, transform 0.2s;
}
.rv-dot:hover::before { background: var(--sky); }
.rv-dot[aria-current="true"]::before { background: var(--teal); transform: scale(1.3); }
.rv-carousel button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.rv-carousel:not(.is-ready) .rv-controls { display: none; }
@media (prefers-reduced-motion: reduce) {
  .rv-track, .rv-dot::before { transition: none; }
}
@media (max-width: 619px) {
  .review-box.has-slider { padding: 1.4rem 1rem; }
  .rv-slide { padding: 0.25rem 0.15rem; }
  .rv-dots { order: -1; flex-basis: 100%; gap: 0; }
  .rv-dot { width: 1.5rem; height: 1.75rem; }
}
