/* ============================================================
   REVIEWS SECTION
   ============================================================ */
.reviews {
  position: relative;
  width: 100%;
  padding: 120px 48px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(245, 166, 35, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #060e1e 0%, #0a1628 50%, #050d1c 100%);
  overflow: hidden;
  isolation: isolate;
}
.reviews__divider {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(640px, 80%);
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(245, 166, 35, 0.45) 50%, transparent 100%);
}
.reviews__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.reviews__glow--a {
  top: 10%; left: -180px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.10) 0%, transparent 60%);
}
.reviews__glow--b {
  bottom: 0; right: -160px;
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(66, 133, 244, 0.07) 0%, transparent 60%);
}

.reviews__inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
}

.reviews__header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 56px;
}

/* ============================================================
   HERO RATING CARD
   ============================================================ */
.rating-card {
  position: relative;
  padding: 36px 40px;
  margin-bottom: 64px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
}
.rating-card::before {
  content: "";
  position: absolute;
  top: -60%; right: -10%;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.10) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}

.rating-card__primary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  margin-bottom: 26px;
}

/* Brand block (Google mark + label) */
.rating-card__brand { display: flex; align-items: center; gap: 14px; }
.google-mark {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
.google-mark svg { width: 28px; height: 28px; }
.rating-card__brand-text { display: flex; flex-direction: column; }
.rating-card__brand-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.rating-card__brand-sub {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

/* Big rating number + stars */
.rating-card__big {
  display: flex;
  align-items: center;
  gap: 22px;
  justify-self: center;
}
.rating-card__num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(56px, 7vw, 84px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hot) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(245, 166, 35, 0.35));
  font-variant-numeric: tabular-nums;
}
.rating-card__num-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rating-card__num-sub {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.01em;
}

/* CTA link */
.rating-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(245, 166, 35, 0.10);
  border: 1px solid rgba(245, 166, 35, 0.35);
  border-radius: 100px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.rating-card__cta svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.rating-card__cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-base);
  transform: translateY(-2px);
}
.rating-card__cta:hover svg { transform: translate(2px, -2px); }

/* Stats row */
.rating-card__stats {
  position: relative;
  z-index: 1;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.rating-card__stats li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.rating-card__stats li:first-child { padding-left: 0; }
.rating-card__stats li:last-child { border-right: none; padding-right: 0; }
.rating-card__stats li svg {
  width: 26px; height: 26px;
  flex-shrink: 0;
  color: var(--accent);
  padding: 5px;
  background: rgba(245, 166, 35, 0.10);
  border-radius: 10px;
  border: 1px solid rgba(245, 166, 35, 0.25);
}
.rating-card__stats li strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.rating-card__stats li span {
  display: block;
  font-size: 12.5px;
  color: var(--ink-mute);
  line-height: 1.4;
}

/* ============================================================
   STAR SHAPES (CSS-only)
   ============================================================ */
.stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.stars .star {
  display: inline-block;
  width: 14px; height: 14px;
  background-color: rgba(255, 255, 255, 0.18);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/></svg>") no-repeat center / contain;
  opacity: 0;
  transform: scale(0.4) rotate(-30deg);
  transition: background-color 0.4s var(--ease), opacity 0.4s var(--ease), transform 0.5s var(--ease-out);
}
.stars--lg .star { width: 24px; height: 24px; }
.stars--sm .star { width: 14px; height: 14px; opacity: 1; transform: none; background-color: var(--accent); filter: drop-shadow(0 0 4px var(--accent-glow)); }

/* Partial (half-ish) star — used for 4.9 */
.stars--lg .star--partial {
  position: relative;
}
.stars--lg .star--partial::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--accent);
  -webkit-mask: inherit;
  mask: inherit;
  clip-path: inset(0 12% 0 0);
}

/* Reveal: hero stars fill in sequentially */
.rating-card.is-revealed .stars--lg .star {
  opacity: 1;
  transform: scale(1) rotate(0);
  background-color: var(--accent);
  filter: drop-shadow(0 0 6px var(--accent-glow));
  transition-delay: var(--sd, 0s);
}

/* ============================================================
   REVIEWS GRID
   ============================================================ */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 56px;
}

/* ============================================================
   REVIEW CARD
   ============================================================ */
.review {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 26px 24px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out), border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.4s var(--ease-out);
}

/* Animated reveal on scroll-in */
.reviews__grid.is-revealed .review {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--rd, 0s);
}

.review:hover {
  border-color: rgba(245, 166, 35, 0.22);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
  transform: translateY(-4px);
}

/* Edge-glow ring on hover */
.review::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.5), rgba(245, 166, 35, 0) 50%, rgba(245, 166, 35, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
  z-index: 3;
}
.review:hover::before { opacity: 1; }

/* Giant decorative quote mark */
.review__quote-mark {
  position: absolute;
  top: -34px; right: 6px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 200px;
  font-weight: 900;
  line-height: 1;
  color: rgba(245, 166, 35, 0.07);
  pointer-events: none;
  z-index: 0;
  user-select: none;
  transition: color 0.4s var(--ease), transform 0.4s var(--ease);
}
.review:hover .review__quote-mark {
  color: rgba(245, 166, 35, 0.13);
  transform: translate(-4px, 4px);
}

.review__top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.review__verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px 4px 8px;
  background: rgba(34, 197, 94, 0.10);
  border: 1px solid rgba(34, 197, 94, 0.30);
  border-radius: 100px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4ade80;
}
.review__verified svg {
  width: 12px; height: 12px;
}

.review__quote {
  position: relative;
  z-index: 1;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  flex-grow: 1;
}
.review__quote strong {
  color: var(--ink);
  font-weight: 700;
  background: linear-gradient(180deg, transparent 70%, rgba(245, 166, 35, 0.22) 70%);
  padding: 0 2px;
}

.review__foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.review__person {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink);
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.avatar--amber {
  background: linear-gradient(135deg, #f5a623 0%, #c97b16 100%);
  color: var(--bg-base);
}
.avatar--blue {
  background: linear-gradient(135deg, #4a8ec2 0%, #2a5a8a 100%);
  color: #fff;
}
.review__name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.review__loc {
  display: block;
  font-size: 12px;
  color: var(--ink-mute);
  font-weight: 500;
  margin-top: 1px;
}

.review__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.vehicle-chip {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  background: rgba(245, 166, 35, 0.08);
  border: 1px solid rgba(245, 166, 35, 0.30);
  border-radius: 100px;
  color: var(--accent);
}
.review__source {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-mute);
}
.review__source-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}
.review__source-mark--google {
  background: #fff;
  background: conic-gradient(from -45deg, #ea4335 0deg 90deg, #fbbc05 90deg 180deg, #34a853 180deg 270deg, #4285f4 270deg);
  color: transparent;
}
.review__source-mark--google::after {
  content: "G";
  background: #fff;
  width: 80%; height: 80%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #4285f4;
  font-family: Arial, sans-serif;
}
.review__source-mark--facebook {
  background: #1877f2;
  color: #fff;
  font-family: Arial, sans-serif;
  font-style: italic;
}
.review__date {
  font-weight: 500;
}

/* ============================================================
   BOTTOM CTA
   ============================================================ */
.reviews__cta-row {
  display: flex;
  justify-content: center;
}
.reviews__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hot) 100%);
  border-radius: 100px;
  color: var(--bg-base);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 12px 30px rgba(245, 166, 35, 0.32);
}
.reviews__cta svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.reviews__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(245, 166, 35, 0.45);
}
.reviews__cta:hover svg { transform: translateX(4px); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .reviews { padding: 100px 36px; }
  .rating-card__primary { gap: 22px; }
}

@media (max-width: 920px) {
  .reviews { padding: 88px 28px; }
  .rating-card { padding: 28px 26px; }
  .rating-card__primary {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 18px;
    justify-items: center;
  }
  .rating-card__brand { justify-content: center; }
  .rating-card__big { justify-content: center; gap: 16px; }
  .rating-card__num-meta { align-items: center; }
  .rating-card__stats {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .rating-card__stats li {
    padding: 18px 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    justify-content: center;
  }
  .rating-card__stats li:last-child { border-bottom: none; }
  .reviews__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .reviews { padding: 72px 20px; }
  .reviews__header { margin-bottom: 40px; }
  .rating-card__num { font-size: 56px; }
  .stars--lg .star { width: 20px; height: 20px; }
  .review { padding: 24px 22px 22px; }
  .review__quote { font-size: 14.5px; }
  .review__quote-mark { font-size: 140px; top: -22px; }
}

@media (prefers-reduced-motion: reduce) {
  .review, .stars .star, .review__quote-mark, .rating-card__cta, .reviews__cta {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
  .review { opacity: 1; }
  .rating-card.is-revealed .stars--lg .star,
  .stars .star {
    opacity: 1;
    transform: none;
    background-color: var(--accent);
  }
}
