/* ===================== TESTIMONIALS ===================== */
.reviews {
  position: relative;
  padding: clamp(70px, 8vw, 120px) clamp(20px, 4vw, 60px) clamp(60px, 7vw, 100px);
  background: #ffffff;
  overflow: hidden;
}

/* ---------- Heading ---------- */
.rev-head {
  text-align: center;
  max-width: 1000px;
  margin: 0 auto clamp(40px, 4.5vw, 60px);
}
.rev-heading {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: #16202f;
}
.rev-heading .grad {
  background: linear-gradient(100deg, #6aa0ff 0%, #3f7fe6 60%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Stage / stacked deck ---------- */
.rev-stage {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-top: 58px;
}
.rev-stack {
  position: relative;
  min-height: clamp(420px, 40vw, 480px);
}

.rev-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  min-height: clamp(420px, 40vw, 480px);
  display: flex;
  flex-direction: column;
  padding: clamp(34px, 4vw, 52px);
  border-radius: 26px;
  background: linear-gradient(160deg, #ffffff 0%, #f3f7ff 100%);
  border: 1px solid rgba(74, 124, 230, 0.30);
  box-shadow: 0 34px 80px rgba(40, 60, 110, 0.14);
  transform-origin: center top;
  /* position/scale/opacity driven by JS — these are the smooth transitions */
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

/* stars */
.rev-stars { display: flex; gap: 6px; margin-bottom: 26px; }
.rev-stars svg { width: 22px; height: 22px; fill: #f5b50a; }

/* text */
.rev-text {
  flex: 1 1 auto;
  font-size: clamp(1.02rem, 1.4vw, 1.32rem);
  font-weight: 400;
  line-height: 1.62;
  color: #3c4658;
}

/* author */
.rev-author { margin-top: 30px; }
.rev-name {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  color: #16202f;
  margin-bottom: 4px;
}
.rev-role {
  font-size: 0.98rem;
  font-weight: 600;
  color: #3f7fe6;
}

/* ---------- Controls ---------- */
.rev-controls {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: clamp(34px, 4vw, 50px);
}
.rev-arrow {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(90, 130, 200, 0.22);
  background: #ffffff;
  color: #3f7fe6;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(40, 60, 110, 0.10);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.rev-arrow svg { width: 22px; height: 22px; }
.rev-arrow:hover {
  background: #3f7fe6;
  color: #fff;
  transform: translateY(-2px);
}
.rev-arrow:active { transform: scale(0.92); }

/* ---------- Dots ---------- */
.rev-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 26px;
}
.rev-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: #c3cce0;
  cursor: pointer;
  transition: width 0.3s ease, background 0.3s ease;
}
.rev-dot.active { width: 28px; background: #3f7fe6; }

/* ---------- Reveal ---------- */
.reviews .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reviews .reveal.in-view { opacity: 1; transform: translateY(0); }

@media (max-width: 600px) {
  .rev-card { padding: 30px 24px; min-height: 440px; }
  .rev-text { font-size: 1.02rem; }
}

@media (prefers-reduced-motion: reduce) {
  .rev-card { transition: opacity 0.2s ease; }
}
