/**
 * Social Proof / Stats section – dark break block
 * Desktop: 3-column, centered. Mobile: vertical stack. Count-up numbers, premium typography.
 * Scoped to .stats-section. High contrast for accessibility.
 */

.stats-section {
  --stats-bg: #1e2328;
  --stats-text: #f8fafc;
  --stats-text-muted: #cbd5e1;
  --stats-accent: rgba(255, 255, 255, 0.2);
  --stats-number-size: clamp(2.5rem, 8vw, 4rem);
  --stats-label-spacing: 0.2em;

  background: var(--stats-bg);
  color: var(--stats-text);
  padding: clamp(3rem, 10vw, 5rem) clamp(1.25rem, 5vw, 2rem)
    clamp(2rem, 6vw, 3rem);
  position: relative;
}

.stats-section__container {
  max-width: 1100px;
  margin: 0 auto;
}

.stats-section__heading {
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--stats-label-spacing);
  color: var(--stats-text-muted);
  text-align: center;
  margin-bottom: clamp(2rem, 6vw, 3rem);
}

/* Phone: 2x2 grid (2 items per row, 2 rows) */
.stats-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 4vw, 2rem);
  align-items: start;
  justify-items: center;
  max-width: 100%;
}

@media (min-width: 768px) {
  .stats-section__grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(2rem, 4vw, 3rem);
    align-items: stretch;
  }
}

.stats-section__stat {
  text-align: center;
  position: relative;
  flex: 1;
  min-width: 0;
  max-width: 320px;
}

/* Phone 2x2 grid: let stat cards use equal column width */
@media (max-width: 767px) {
  .stats-section__stat {
    max-width: none;
  }
}

/* Faded icon behind number */
.stats-section__icon-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -0.5rem);
  opacity: 0.2;
  pointer-events: none;
}

.stats-section__icon {
  font-size: clamp(3rem, 10vw, 5rem);
  color: var(--stats-text);
}

.stats-section__number-wrap {
  margin: 0 0 0.75rem;
  position: relative;
  z-index: 1;
}

.stats-section__number {
  font-size: var(--stats-number-size);
  font-weight: 800;
  line-height: 1.1;
  color: var(--stats-text);
  letter-spacing: -0.02em;
}

.stats-section__label {
  font-size: clamp(0.7rem, 1.8vw, 0.8rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--stats-label-spacing);
  color: var(--stats-text-muted);
  margin-bottom: 0.5rem;
}

.stats-section__subtext {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  color: var(--stats-text-muted);
  line-height: 1.5;
  margin: 0;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

/* High contrast: ensure focus and reduced-motion respect */
@media (prefers-reduced-motion: reduce) {
  .stats-section__number {
    transition: none;
  }
}
