/* ============================================
   STATS BAR SECTION
   Brain & Mind Foundation WordPress Theme
   ============================================
   Horizontal stat bar with 3-column grid,
   coral gradient divider, vertical separators,
   and responsive mobile stack layout.
   ============================================ */

.stats {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

/* Coral gradient line at top */
.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--coral), transparent);
  opacity: 0.3;
}

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 24px;
}

/* ============================================
   STAT ITEM
   ============================================ */
.stat-item {
  text-align: center;
  padding: 20px;
  position: relative;
}

/* Vertical divider between items */
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}

/* ============================================
   STAT NUMBER
   ============================================ */
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 600;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 10px;
}

/* ============================================
   STAT LABEL
   ============================================ */
.stat-label {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-light-muted);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* ============================================
   RESPONSIVE — Mobile stack
   ============================================ */
@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px 24px;
  }

  /* Centered stack, one stat per band, separated by hairlines —
     the side-by-side row read badly with mixed-width numbers. */
  .stat-item {
    padding: 26px 8px;
    text-align: center;
  }

  .stat-item:not(:last-child)::after {
    top: auto;
    bottom: 0;
    left: 20%;
    right: 20%;
    width: auto;
    height: 1px;
  }

  .stat-number {
    font-size: 2.4rem;
    margin-bottom: 8px;
  }

  .stat-label {
    font-size: 0.9rem;
  }
}
