/* ============================================================
   TESTIMONIAL.CSS — Testimonials page styles
   Depends on: base.css, layout.css, components.css
   Exium Classes · exium.in
   ============================================================ */

/* ── BREADCRUMB ── */
/* Reuses .label font pattern from base.css */
.t-breadcrumb {
  position: relative;
  z-index: 1;
  padding: 1.1rem 4rem 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.t-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.t-breadcrumb a:hover        { color: var(--white); }
.t-breadcrumb__sep           { opacity: 0.4; }

/* ── PAGE HEADER ── */
.t-page-header {
  position: relative;
  z-index: 1;
  padding: 8rem 4rem 5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.t-page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 100% at 85% 50%, rgba(74, 111, 199, 0.08), transparent 70%),
    radial-gradient(ellipse 40% 70% at 5% 40%,  rgba(204, 31,  31, 0.04), transparent 60%);
}

.t-page-header::after {
  content: '"';
  position: absolute;
  right: 3rem; top: 40%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: 22rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(74, 111, 199, 0.07);
  pointer-events: none;
  user-select: none;
}

.t-header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header text reuses .header-label, .header-sub from policy.css pattern;
   we define our own so there's no cross-page dependency */
.t-header-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f07070;
  margin-bottom: 1rem;
  display: block;
}

.t-header-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 5.5vw, 5.5rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
  animation: fadeUp 0.6s ease both;
}

.t-header-title em {
  font-style: italic;
  color: var(--blue-light);
}

.t-header-sub {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(200, 210, 232, 0.6);
  line-height: 1.75;
  max-width: 44ch;
  animation: fadeUp 0.6s 0.12s ease both;
}

/* ── RATING HERO (top-right of header) ── */
.rating-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
  animation: fadeUp 0.6s 0.2s ease both;
}

.rating-hero__score {
  font-family: var(--font-serif);
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.04em;
}

.rating-hero__stars {
  display: flex;
  gap: 0.3rem;
  font-size: 1.4rem;
}

.star { color: #f5c842; }

.rating-hero__meta {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

.rating-hero__source {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(74, 111, 199, 0.1);
  border: 1px solid rgba(74, 111, 199, 0.25);
  color: var(--blue-light);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 2px;
  margin-top: 0.4rem;
}

.rating-hero__source::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue-acc);
  animation: blink 2s infinite;
}

/* ── STATS STRIP ── */
.t-stats-strip {
  position: relative;
  z-index: 1;
  background: rgba(26, 45, 90, 0.45);
  border-bottom: 1px solid var(--line);
  padding: 2rem 4rem;
}

.t-stats-strip__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.t-stat {
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.t-stat__num {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--blue-acc);
  line-height: 1;
}

.t-stat__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.4rem;
}

.t-stat-divider {
  width: 1px;
  height: 3rem;
  background: var(--line);
  flex-shrink: 0;
}

/* ── PAGE CONTENT WRAPPER ── */
.t-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 4rem 7rem;
}

/* ── SECTION HEADER (label + title row) ── */
.t-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.t-section-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f07070;
  margin-bottom: 0.5rem;
  display: block;
}

.t-section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

/* ── SOURCE BADGES ── */
/* Small pill indicating review origin */
.badge-google {
  background: rgba(74, 144, 217, 0.12);
  border: 1px solid rgba(74, 144, 217, 0.25);
  color: #7ab8f5;
}

.badge-direct {
  background: rgba(52, 199, 89, 0.1);
  border: 1px solid rgba(52, 199, 89, 0.25);
  color: #5de87a;
}

.badge-parent {
  background: rgba(200, 149, 58, 0.12);
  border: 1px solid rgba(200, 149, 58, 0.25);
  color: #e8b96a;
}

.review-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}

/* ── AVATAR COLOUR PALETTE ── */
/* Used across all card types */
.av-blue   { background: linear-gradient(135deg, #1a3c8f, #4a6fc7); }
.av-red    { background: linear-gradient(135deg, #7a1a1a, #cc1f1f); }
.av-teal   { background: linear-gradient(135deg, #0d4f4f, #1a8f8f); }
.av-purple { background: linear-gradient(135deg, #3a1a7a, #7a4fc7); }
.av-green  { background: linear-gradient(135deg, #0d4f1a, #1a8f3c); }
.av-amber  { background: linear-gradient(135deg, #4f3a0d, #c8953a); }
.av-indigo { background: linear-gradient(135deg, #1a2d7a, #4a5fc7); }
.av-rose   { background: linear-gradient(135deg, #7a1a4f, #c74f8f); }

/* ── SCROLL-REVEAL BASE STATE ── */
/* JS adds .visible to trigger transition */
.t-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.25s;
}

.t-reveal-left {
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.5s ease, transform 0.5s ease, border-color 0.3s;
}

.t-reveal.visible,
.t-reveal-left.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ============================================================
   CAROUSEL (Featured Reviews)
   ============================================================ */

.carousel-wrap {
  position: relative;
  overflow: hidden;
  margin-bottom: 5rem;
}

.carousel-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 calc(50% - 0.625rem);
  min-width: 0;
}

/* Featured review card */
.review-featured {
  background: rgba(26, 45, 90, 0.5);
  border: 1px solid rgba(74, 111, 199, 0.25);
  border-radius: 8px;
  padding: 2.5rem;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s;
}

.review-featured:hover { border-color: rgba(74, 111, 199, 0.5); }

.review-featured::before {
  content: '"';
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-family: var(--font-serif);
  font-size: 8rem;
  line-height: 1;
  color: rgba(74, 111, 199, 0.08);
  pointer-events: none;
  font-weight: 900;
}

.review-featured__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.reviewer-info {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.reviewer-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.reviewer-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.reviewer-role {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

.review-stars {
  display: flex;
  gap: 0.2rem;
}

.review-stars .star { font-size: 0.9rem; }

.review-featured__body {
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.review-featured__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.review-date {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
  justify-content: center;
}

.carousel-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(200, 210, 232, 0.2);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.carousel-btn:hover {
  background: rgba(74, 111, 199, 0.15);
  border-color: rgba(74, 111, 199, 0.4);
  color: var(--white);
}

.carousel-btn svg {
  width: 16px; height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(200, 210, 232, 0.25);
  cursor: pointer;
  border: none;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.dot.active {
  background: var(--blue-acc);
  transform: scale(1.4);
}

/* ============================================================
   LONG-FORM TESTIMONIALS
   ============================================================ */

.long-testimonials { margin-bottom: 3rem; }

.long-card {
  background: rgba(26, 45, 90, 0.4);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2rem 2.5rem;
  margin-bottom: 1.25rem;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  align-items: flex-start;
}

.long-card:hover { border-color: rgba(74, 111, 199, 0.3); }

.long-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.long-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.long-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.2rem;
}

.long-role {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.long-stars { display: flex; gap: 0.2rem; }
.long-stars .star { font-size: 0.85rem; }

.long-text {
  font-size: 0.93rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.88;
}

.long-text::before {
  content: '"';
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--blue-acc);
  line-height: 0.5;
  vertical-align: -0.4rem;
  margin-right: 0.25rem;
}

/* ============================================================
   ALL REVIEWS GRID
   ============================================================ */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-bottom: 5rem;
}

.review-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.6rem;
  position: relative;
}

.review-card:hover { border-color: rgba(200, 210, 232, 0.28); }

.review-card__stars {
  display: flex;
  gap: 0.18rem;
  margin-bottom: 0.85rem;
}

.review-card__stars .star { font-size: 0.78rem; }

.review-card__text {
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.82;
  margin-bottom: 1.25rem;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.author-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.author-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
}

.author-meta {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.author-badge { margin-left: auto; }

/* ============================================================
   PARENT REVIEWS
   ============================================================ */

.parent-section { margin-bottom: 5rem; }

.parent-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.parent-card {
  background: rgba(200, 149, 58, 0.05);
  border: 1px solid rgba(200, 149, 58, 0.18);
  border-radius: 8px;
  padding: 1.75rem;
  position: relative;
}

.parent-card::before {
  content: 'Parent Review';
  position: absolute;
  top: 1rem; right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e8b96a;
  background: rgba(200, 149, 58, 0.12);
  border: 1px solid rgba(200, 149, 58, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}

.parent-card__stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
  padding-top: 1.5rem;
}

.parent-card__stars .star { font-size: 0.8rem; }

.parent-card__text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.82;
  margin-bottom: 1.25rem;
}

.parent-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(200, 149, 58, 0.15);
}

.parent-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(200, 149, 58, 0.2);
  border: 1px solid rgba(200, 149, 58, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: #e8b96a;
  flex-shrink: 0;
}

.parent-name {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--white);
}

.parent-sub {
  font-size: 0.73rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

/* ============================================================
   GOOGLE CTA STRIP
   ============================================================ */

.google-strip {
  background: rgba(74, 111, 199, 0.06);
  border: 1px solid rgba(74, 111, 199, 0.2);
  border-radius: 8px;
  padding: 2rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.google-strip__title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--white);
}

.google-strip__sub {
  font-size: 0.88rem;
  color: var(--muted);
}

.google-strip__actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

/* Google-white button — only used here */
.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--navy);
  border: none;
  border-radius: 3px;
  padding: 0.7rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-google:hover { opacity: 0.9; transform: translateY(-2px); }

.btn-google svg {
  width: 15px; height: 15px;
  stroke: var(--navy);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* ── LOADING SHIMMER ── */
.reviews-loading {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.reviews-loading[hidden] {
  display: none;
}

.loading-shimmer {
  flex: 1;
  height: 240px;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── ERROR STATE ── */
.reviews-error {
  background: rgba(204, 31, 31, 0.07);
  border: 1px solid rgba(204, 31, 31, 0.2);
  border-radius: 6px;
  padding: 1.2rem 1.6rem;
  font-size: 0.88rem;
  color: rgba(240, 112, 112, 0.85);
  margin-bottom: 1.75rem;
}

.reviews-error a { color: #f07070; text-decoration: underline; }

/* ── GOOGLE ATTRIBUTION ── */
.google-attribution {
  text-align: right;
  margin-top: 0.75rem;
  font-size: 0.72rem;
}

.google-attribution a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.google-attribution a:hover { color: var(--white); }

/* ── REVIEWER PHOTO ── */
.reviewer-photo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Override global section padding for testimonials page */
.t-content section {
  padding: 0;
  margin-bottom: 2rem;
}

.cta-section {
  padding-top: 1rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .t-breadcrumb       { padding: 1rem 1.5rem 0; }
  .t-page-header      { padding: 7rem 1.5rem 4rem; }
  .t-page-header::after { display: none; }
  .t-header-inner     { flex-direction: column; align-items: flex-start; }
  .rating-hero        { align-items: flex-start; }
  .t-stats-strip      { padding: 1.5rem; }
  .t-content          { padding: 3rem 1.5rem 5rem; }
  .carousel-slide     { flex: 0 0 100%; }
  .reviews-grid       { grid-template-columns: 1fr; }
  .long-card          { grid-template-columns: 1fr; }
  .long-avatar        { display: none; }
  .parent-grid        { grid-template-columns: 1fr; }
  .google-strip       { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .t-stats-strip__inner { flex-direction: column; gap: 1rem; }
  .t-stat-divider       { display: none; }
}
