/* ==========================================================================
   Stats Counter Component
   ========================================================================== */
.lc-stats-counter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.lc-stats-item {
  text-align: center;
}

.lc-stats-counter .lc-stats-item:first-child {
  text-align: left;
}

.lc-stats-counter .lc-stats-item:last-child {
  text-align: right;
}

.lc-stats-number {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.lc-stats-label {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.lc-stats-divider {
  width: 1px;
  height: 60px;
  flex-shrink: 0;
}

/* ── Mobile / tablet (≤ 959px) ──────────────────────────────────────────────
   stats-counter.css loads AFTER style.css — mobile overrides must live here.
   ─────────────────────────────────────────────────────────────────────────── */
@media (max-width: 959px) {
  .lc-stats-counter {
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
  }

  .lc-stats-item {
    flex: auto;
  }

  .lc-stats-number {
    font-size: 32px;
  }

  .lc-stats-label {
    font-size: 14px;
  }

  .lc-stats-divider {
    display: none;
  }
}

/* ── Small phones (≤ 480px) ─────────────────────────────────────────────────
   Alle drie de tellers op één rij houden (niet 2+1 wrappen). Kleinere cijfers/
   labels zodat ze passen; geen divider; labels mogen onder het getal wrappen. */
@media (max-width: 480px) {
  .lc-stats-counter {
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 8px;
  }

  .lc-stats-counter .lc-stats-divider {
    display: none;
  }

  .lc-stats-counter .lc-stats-item,
  .lc-stats-counter .lc-stats-item:first-child,
  .lc-stats-counter .lc-stats-item:last-child {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
  }

  .lc-stats-number {
    font-size: 23px;
  }

  .lc-stats-label {
    font-size: 13px; /* was 11px — te klein voor 55+ op mobiel (audit 02-07) */
    line-height: 1.3;
  }
}

/* ── Stats vrij van de schuine groene rand ──────────────────────────────────
   De sectie heeft een tilt onderaan (::after op bottom:35px, hoogte 50px → loopt
   tot ~85px). Op mobiel was de sectie-padding te klein (28px) waardoor die rand
   over de cijfers/labels liep. Genoeg ruimte onder (boven de tilt) + boven (los
   van de CTA-kaart erboven). */
@media (max-width: 959px) {
  .home .section-tilt-bottom-left.angle-green {
    padding-top: 40px !important;
    padding-bottom: 96px !important;
  }
}

/* ── "Wat is een energielabel?"-sectie: meer lucht tussen de foto (linkerkolom)
   en de stats/tekst (rechterkolom). De Gutenberg block-gap was 24px, waardoor
   "500+" pal naast de onderhoek van de foto (met de groene skew-accent) viel
   (Bas 04-07). Alleen desktop verruimen; ≤959px staan de kolommen toch al anders.
   :has() → raakt precies het ene columns-blok met de stats-counter. ──────────── */
@media (min-width: 960px) {
  .home .wp-block-columns.is-layout-flex:has(.lc-stats-counter) {
    gap: 48px;
  }
}
