/*
 * stats.css — Build H-5: Stats Block
 * Full-bleed red background. Numbers scale with clamp().
 */

.section-stats {
  background: var(--color-red);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.section-stats .section-content {
  max-width: 1400px;
  position: relative;
}

/* ── Headline with hand-drawn underline ── */
.stats-headline-wrap {
  text-align: center;
  margin-bottom: 28px;
  position: relative;
  display: inline-block;
  width: 100%;
}

.stats-headline {
  text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  color: rgba(250, 249, 246, 0.85);
  margin-bottom: 0;
}

.doodle-underline {
  display: block;
  margin: 8px auto 0;
  width: clamp(100px, 16vw, 180px);
  height: auto;
  opacity: 0.55;
}

/* ── Ambient star doodles ── */
.doodle {
  pointer-events: none;
  user-select: none;
}

.doodle-stars-tr {
  position: absolute;
  top: 20px;
  right: clamp(4px, 2vw, 20px);
  width: clamp(40px, 10vw, 130px);
  height: auto;
  opacity: 0.25;
  transform: rotate(12deg);
}

.doodle-stars-bl {
  position: absolute;
  bottom: 40px;
  left: clamp(4px, 2vw, 20px);
  width: clamp(32px, 8vw, 105px);
  height: auto;
  opacity: 0.20;
  transform: rotate(-20deg) scaleX(-1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 32px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* 2-col default: columns are wide, numbers can be bold */
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.0;
  color: var(--color-off-white);
  letter-spacing: -0.02em;
  display: block;
}

.stat-label {
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(250, 249, 246, 0.90);
  margin-top: 14px;
  display: block;
}

.stat-sublabel {
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  color: rgba(250, 249, 246, 0.50);
  margin-top: 5px;
  display: block;
}

/* Gold accent line between headline and numbers */
.stats-grid::before {
  content: '';
  grid-column: 1 / -1;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold-900), transparent);
  opacity: 0.55;
  margin-bottom: 4px;
}

/* 4-col desktop: bump font size, wider max-width */
@media (min-width: 1200px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
  }

  .stat-number {
    font-size: clamp(2.5rem, 4vw, 3.75rem);
  }
}

/* ── Hide stars only on very narrow mobile ── */
@media (max-width: 480px) {
  .doodle-stars-tr,
  .doodle-stars-bl {
    display: none;
  }
}

@media (max-width: 768px) {
  .section-stats {
    padding: 80px 0;
  }

  .stats-grid {
    gap: 48px 24px;
  }

  .stat-sublabel {
    display: none;
  }
}
