/* ═══════════════════════════════════════════
   TESTIMONIALS.CSS — Shaq's Auto Spa
   Reviews: hero, stats strip, masonry grid,
   review cards, leave-a-review CTA
   ═══════════════════════════════════════════ */

/* ─────────────────────────────────────
   REDUCED MOTION
   ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0s !important;
  }
}

/* ─────────────────────────────────────
   PAGE HERO — 40vh, grain texture
   ───────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.rev-hero {
  position: relative;
  height: 40vh;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0a0a0a;
  overflow: hidden;
  text-align: center;
}

.rev-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 1;
}

.rev-hero__content {
  position: relative;
  z-index: 2;
}

.rev-hero__reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease 0.1s forwards;
}

.rev-hero__eyebrow {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #84cc16;
  margin-bottom: 12px;
}

.rev-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 72px);
  color: #e5e5e5;
  line-height: 1.05;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.rev-hero__accent {
  color: #84cc16;
}

.rev-hero__subtext {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 400;
  color: #888888;
  margin-top: 12px;
}

/* ─────────────────────────────────────
   STATS STRIP
   Count-up numbers, horizontal row
   ───────────────────────────────────── */
.stats-strip {
  background-color: #111111;
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
  padding: 32px 0;
}

.stats-strip__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-strip__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
  }
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

@media (min-width: 768px) {
  .stat {
    flex: 1;
  }
}

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 64px);
  color: #84cc16;
  line-height: 1;
  letter-spacing: 0.02em;
}

.stat__label {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 400;
  color: #888888;
}

/* Vertical dividers between stats (desktop only) */
.stat__divider {
  display: none;
}

@media (min-width: 768px) {
  .stat__divider {
    display: block;
    width: 1px;
    height: 48px;
    background-color: #2a2a2a;
    flex-shrink: 0;
  }
}

/* ─────────────────────────────────────
   REVIEWS GRID — CSS Columns Masonry
   ───────────────────────────────────── */
.reviews-grid {
  columns: 1;
  column-gap: 16px;
}

@media (min-width: 768px) {
  .reviews-grid {
    columns: 3;
  }
}

/* ─────────────────────────────────────
   REVIEW CARD
   ───────────────────────────────────── */
.review-card {
  background-color: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 16px;
  break-inside: avoid;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.review-card:hover {
  border-color: #84cc16;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(132, 204, 22, 0.06);
}

/* ── Featured card variant ── */
.review-card--featured {
  border-color: #84cc16;
  border-left: 3px solid #84cc16;
  background-color: #1f2a0e;
}

/* ── Card header — avatar + stars ── */
.review-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

/* TODO: photo slot — replace initials with <img> */
.review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  color: #84cc16;
  flex-shrink: 0;
}

.review-card__stars {
  font-size: 14px;
  color: #84cc16;
  letter-spacing: 2px;
  line-height: 1;
}

.review-card__source {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
  font-style: italic;
  color: #555555;
  margin-top: 2px;
}

.review-card__featured-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  color: #84cc16;
  margin-top: 2px;
}

/* ── Reviewer name + city ── */
.review-card__name {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  color: #e5e5e5;
  margin-bottom: 6px;
}

.review-card__city {
  font-weight: 400;
  font-size: 12px;
  color: #888888;
  margin-left: 4px;
}

/* ── Service badge ── */
.review-card__service {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background-color: rgba(132, 204, 22, 0.12);
  color: #84cc16;
  margin-bottom: 12px;
}

/* ── Review text ── */
.review-card__text {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  color: #888888;
  line-height: 1.7;
  margin-bottom: 12px;
}

/* ── Date ── */
.review-card__date {
  display: block;
  text-align: right;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 400;
  color: #555555;
}

/* ── Scroll reveal ── */
.rev-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.rev-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────
   LEAVE A REVIEW CTA
   Full-width lime bar
   ───────────────────────────────────── */
.review-cta {
  background-color: #84cc16;
  padding: 48px 0;
}

.review-cta__inner {
  text-align: center;
}

.review-cta__headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  color: #0a0a0a;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.review-cta__subtext {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  color: rgba(10, 10, 10, 0.75);
  margin-top: 8px;
  margin-bottom: 24px;
}

.review-cta__btn {
  display: inline-block;
  background-color: #0a0a0a;
  color: #84cc16;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  transition: background-color 0.2s ease;
}

.review-cta__btn:hover {
  background-color: #111111;
}

.review-cta__hint {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  color: rgba(10, 10, 10, 0.5);
  margin-top: 10px;
}
