/* StatsBar — source: sections/StatsBar.tsx */

/* Background and the clamp() padding live here: Elementor's controls take
   neither a var() nor a clamp() without stringly-typed hacks. */
#lt-statsbar {
  background: var(--brand-primary);
  padding: clamp(18px, 3.5vw, 44px) 0;
}

/*
 * Real CSS grid, not Elementor's flex row — the source is a 4-track grid and
 * the 600px override below swaps the track count, which flex cannot express.
 * !important beats .e-con's display:flex.
 */
#lt-statsbar-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 32px);
}

/* Cells yield their width to the grid track (see CONVENTIONS trap 2) and drop
   Elementor's default container gap — the source spaces these with margins. */
#lt-statsbar .lt-stat-cell {
  width: auto !important;
  max-width: none !important;
  gap: 0;
  text-align: center;
  padding: 8px 0;
}

/* Divider between cells only — the source omits it on the last one. */
#lt-statsbar .lt-stat-cell:not(:last-child) {
  border-inline-end: 1px solid rgba(255, 255, 255, 0.18);
}

/* currentColor on the SVG resolves against this. */
#lt-statsbar .lt-stat-ico {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.88);
}

/*
 * Typography targets .elementor-heading-title, NOT the wrapper that carries
 * _css_classes. Elementor's own frontend.css sets
 *   .elementor-heading-title { line-height: 1; margin: 0; padding: 0 }
 * directly on the inner element, and a directly-matched declaration always
 * beats a value inherited from the wrapper — whatever the wrapper's
 * specificity. Setting line-height on the wrapper here would silently lose to
 * that 1, which matters: both labels below wrap to two lines.
 * Margins are the exception — they don't inherit, so they stay on the wrapper.
 */
#lt-statsbar .lt-stat-v .elementor-heading-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

#lt-statsbar .lt-stat-l {
  margin-top: 6px;
}

#lt-statsbar .lt-stat-l .elementor-heading-title {
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.35;
}

/* 2×2. The divider still falls on cells 1 and 3, i.e. between the columns of
   each row — the source's :not(:last-child) rule behaves the same way. */
@media (max-width: 600px) {
  #lt-statsbar-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }
}
