/* ============================================================
   TESTIMONIALS.CSS
   Section: #testimonials  |  Classes: .reviews, .review-card
   Animation: .tr-animate (stagger via inline --tr-delay)
   Keyframes: rvPulse (in main.css)
   ============================================================ */

.reviews {
  position: relative;
  background: var(--white);
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: 0 1200px;
}

.reviews::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 70%; max-width: 560px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-200), transparent);
  pointer-events: none;
}

.reviews__glow-tr {
  position: absolute;
  top: -140px; right: -140px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--teal-50) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}

.reviews__glow-bl {
  position: absolute;
  bottom: -120px; left: -120px;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--gold-100) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
  opacity: 0.55;
}

.reviews__container {
  position: relative; z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding: var(--sp-16) var(--sp-4) var(--sp-16);
}


/* ── Section header ── */
.reviews__header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--sp-10);
}

.reviews__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 6px 14px 6px 10px;
  background: var(--white);
  border: 1px solid var(--teal-200);
  border-radius: var(--r-full);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--teal-700);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
  box-shadow: var(--shadow-xs);
}
.reviews__badge-icon { width: 15px; height: 15px; flex-shrink: 0; color: var(--gold-500); }

.reviews__title {
  font-family: var(--font-head);
  font-size: clamp(26px, 5.5vw, 42px);
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.18;
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-5);
}
.reviews__title-accent {
  color: var(--teal-700);
  position: relative;
  display: inline;
}
.reviews__title-accent::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-400), var(--gold-400));
  border-radius: var(--r-full);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.65s var(--ease-out);
}
.reviews__title.is-visible .reviews__title-accent::after { transform: scaleX(1); transition-delay: 0.35s; }

.reviews__intro { font-size: clamp(15px, 3.5vw, 17px); line-height: 1.75; color: var(--slate-500); max-width: 62ch; margin-inline: auto; }
.reviews__intro strong { font-weight: 600; color: var(--slate-700); }


/* ── Trust bar ── */
.reviews__trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: var(--slate-200);
  border: 1px solid var(--slate-200);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: var(--sp-12);
}

.rv-stat {
  flex: 1;
  min-width: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: var(--sp-5) var(--sp-3);
  background: var(--white);
  text-align: center;
}
.rv-stat__icon { font-size: 18px; line-height: 1; margin-bottom: 1px; }
.rv-stat__value {
  font-family: var(--font-head);
  font-size: clamp(18px, 4.2vw, 24px);
  font-weight: 800;
  color: var(--teal-700);
  line-height: 1.1;
  letter-spacing: -0.022em;
}
.rv-stat__value--gold { color: var(--gold-500); }
.rv-stat__label { font-size: 11px; font-weight: 500; color: var(--slate-400); line-height: 1.3; }


/* ── Reviews grid ── */
.reviews__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5);
  align-items: stretch;
  margin-bottom: var(--sp-12);
}


/* ── Review card ── */
.review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 240ms;
}
.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.11), 0 4px 12px rgba(0,0,0,0.06);
  border-color: var(--teal-200);
}
.review-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal-400), var(--teal-200));
  opacity: 0;
  transition: opacity 240ms;
}
.review-card:hover::before { opacity: 1; }

.review-card__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  gap: var(--sp-4);
}

.review-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-3);
}
.review-card__quote-icon { width: 36px; height: 36px; flex-shrink: 0; color: var(--teal-100); margin-top: -2px; }

.review-card__stars { display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.rv-star { width: 14px; height: 14px; flex-shrink: 0; color: var(--gold-500); }
.review-card__rating-val { font-family: var(--font-head); font-size: 12px; font-weight: 700; color: var(--slate-700); margin-left: 4px; }

.review-card__text { font-size: clamp(14px, 3vw, 15px); line-height: 1.78; color: var(--slate-600); flex: 1; }

.review-card__divider { height: 1px; background: var(--slate-100); flex-shrink: 0; }

.review-card__reviewer { display: flex; align-items: center; gap: var(--sp-3); }

.review-card__avatar {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.review-card__avatar-bg { position: absolute; inset: 0; border-radius: 50%; }

/* Unique gradient per reviewer */
.reviews__grid > li:nth-child(1) .review-card__avatar-bg { background: linear-gradient(135deg, #0A3D3D 0%, #22B8B8 100%); }
.reviews__grid > li:nth-child(2) .review-card__avatar-bg { background: linear-gradient(135deg, #0D5454 0%, #0E8585 100%); }
.reviews__grid > li:nth-child(3) .review-card__avatar-bg { background: linear-gradient(135deg, #0D6E6E 0%, #E2B84A 100%); }
.reviews__grid > li:nth-child(4) .review-card__avatar-bg { background: linear-gradient(135deg, #0A3D3D 0%, #5CCECC 100%); }
.reviews__grid > li:nth-child(5) .review-card__avatar-bg { background: linear-gradient(135deg, #C9871A 0%, #0D6E6E 100%); }
.reviews__grid > li:nth-child(6) .review-card__avatar-bg { background: linear-gradient(135deg, #0D5454 0%, #D4A017 100%); }

.review-card__avatar-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 8px 8px;
  pointer-events: none;
}
.review-card__avatar-initials {
  position: relative;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.02em;
  z-index: 1;
}

.review-card__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.review-card__name {
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--slate-900);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.review-card__country { font-size: 12px; font-weight: 500; color: var(--slate-400); display: flex; align-items: center; gap: 5px; line-height: 1.3; }
.rv-country-flag { font-size: 14px; line-height: 1; flex-shrink: 0; }

.review-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  flex-wrap: wrap;
  padding: var(--sp-3) var(--sp-6) var(--sp-5);
  background: var(--slate-50);
  border-top: 1px solid var(--slate-100);
  flex-shrink: 0;
}

.rv-course-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--teal-50);
  border: 1px solid var(--teal-100);
  border-radius: var(--r-full);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--teal-700);
  white-space: nowrap;
}
.rv-course-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal-400); flex-shrink: 0; }

.rv-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  background: linear-gradient(135deg, var(--teal-50) 0%, var(--slate-50) 100%);
  border: 1px solid var(--teal-100);
  border-radius: var(--r-full);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--teal-600);
  white-space: nowrap;
}
.rv-verified__icon { width: 11px; height: 11px; flex-shrink: 0; color: var(--teal-500); }


/* ── CTA band ── */
.reviews__cta-band {
  position: relative;
  border-radius: var(--r-3xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-900) 0%, var(--teal-700) 50%, var(--teal-600) 100%);
  padding: var(--sp-10) var(--sp-6);
  text-align: center;
}
.reviews__cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 20px 20px;
  pointer-events: none;
}
.reviews__cta-band::after {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,184,184,0.22) 0%, transparent 65%);
  pointer-events: none;
}

.reviews__cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-6);
}

.reviews__cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 5px 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.rv-pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  flex-shrink: 0;
  animation: rvPulse 2.4s ease-in-out infinite;
}

.reviews__cta-heading {
  font-family: var(--font-head);
  font-size: clamp(22px, 5vw, 34px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 22ch;
}
.reviews__cta-heading em { font-style: normal; color: var(--gold-300); }

.reviews__cta-sub { font-size: clamp(14px, 3vw, 16px); line-height: 1.65; color: rgba(255,255,255,0.72); max-width: 46ch; }

.reviews__cta-btns { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }

.rv-btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 28px;
  min-height: 52px;
  background: var(--white);
  color: var(--teal-800);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--r-lg);
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
  overflow: hidden;
  transition: transform 150ms var(--ease-in-out), box-shadow 150ms var(--ease-in-out);
}
.rv-btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(13,110,110,0.06) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 450ms var(--ease-out);
}
.rv-btn-primary:hover::before { transform: translateX(100%); }
.rv-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(0,0,0,0.24); }
.rv-btn-primary:active { transform: translateY(0); }
.rv-btn-primary svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform 200ms var(--ease-out); }
.rv-btn-primary:hover svg { transform: translateX(3px); }

.rv-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 14px 24px;
  min-height: 52px;
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.90);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,0.22);
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 150ms, border-color 150ms, transform 150ms;
}
.rv-btn-ghost:hover { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.38); transform: translateY(-1px); }

.reviews__cta-trust { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; justify-content: center; }
.rv-trust-item { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.60); }
.rv-trust-item svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--teal-300); }
.rv-trust-sep { width: 3px; height: 3px; border-radius: 50%; background: rgba(255,255,255,0.25); flex-shrink: 0; }


/* ────────────────────────────────────────────────────────────
   REDUCED MOTION
   ──────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .rv-pulse-dot { animation: none !important; }
  .review-card, .rv-btn-primary, .rv-btn-ghost { transition: none !important; }
  .reviews__title-accent::after { transform: scaleX(1) !important; transition: none !important; }
}


/* ────────────────────────────────────────────────────────────
   RESPONSIVE BREAKPOINTS
   ──────────────────────────────────────────────────────────── */
@media (min-width: 375px) { .reviews__container { padding-inline: var(--sp-5); } }

@media (min-width: 425px) {
  .reviews__container { padding-top: var(--sp-16); padding-bottom: var(--sp-20); }
  .review-card__inner { padding: var(--sp-7); }
  .review-card__footer { padding: var(--sp-4) var(--sp-7) var(--sp-6); }
}

@media (min-width: 640px) { .reviews__trust-bar { flex-wrap: nowrap; } .rv-stat { min-width: 0; } }

@media (min-width: 768px) {
  .reviews__container { padding: var(--sp-16) var(--sp-8) var(--sp-20); }
  .reviews__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__cta-band { padding: var(--sp-14) var(--sp-10); }
}

@media (min-width: 1024px) {
  .reviews__container { padding: var(--sp-20) var(--sp-8) var(--sp-24); }
  .reviews__grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
  .reviews__cta-band { padding: var(--sp-16) var(--sp-16); }
  .reviews__cta-heading { font-size: 36px; }
}

@media (min-width: 1280px) { .reviews__container { padding-block: var(--sp-24); } .reviews__title { font-size: 44px; } }
@media (min-width: 1440px) { .reviews__grid { gap: var(--sp-7); } }
