/* ============================================================
   Atheria Stats widget
   ============================================================ */

.ath-stats {
  width: 100%;
}

.ath-stats__inner {
  display: flex;
  flex-direction: column;
}

/* ── Eyebrow ── */
.ath-stats__eyebrow {
  display: block;
  font-family: var(--ath-font-body, sans-serif);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ath-arctic-blue);
  margin-bottom: 1rem;
}

/* ── Heading ── */
.ath-stats__heading {
  font-family: var(--ath-font-body, sans-serif);
  font-weight: 450;
  font-size: var(--ath-size-heading-l);
  line-height: 1.35;
  color: var(--ath-text);
  max-width: 44rem;
  margin: 0;
}

/* ── Grid ── */
.ath-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 1rem + 2vw, 2rem);
  margin-top: clamp(2.5rem, 1.75rem + 3vw, 4rem);
}

/* ── Card ── */
.ath-stats__card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: clamp(14rem, 11rem + 12vw, 19rem);
  padding: clamp(2rem, 1.5rem + 2vw, 3rem);
  background: var(--ath-frost);
  border-radius: var(--ath-radius-md);
}

.ath-stats__number-wrap {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}

.ath-stats__number,
.ath-stats__prefix,
.ath-stats__suffix {
  font-family: var(--ath-font-body, sans-serif);
  font-weight: 600;
  font-size: clamp(2.75rem, 2rem + 3vw, 4.5rem);
  line-height: 1;
  letter-spacing: var(--ath-ls-heading);
  color: var(--ath-text);
}

.ath-stats__number {
  font-variant-numeric: tabular-nums;
}

.ath-stats__card-foot {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ath-stats__label {
  font-family: var(--ath-font-body, sans-serif);
  font-weight: 600;
  font-size: var(--ath-size-heading-xs);
  line-height: 1.3;
  color: var(--ath-text);
}

.ath-stats__desc {
  font-family: var(--ath-font-body, sans-serif);
  font-weight: 400;
  font-size: var(--ath-size-text-s);
  line-height: 1.5;
  color: var(--ath-muted);
}

/* ── Mobile ── */
@media (max-width: 1024px) {
  .ath-stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .ath-stats__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .ath-stats__card {
    min-height: 0;
  }
}

/* Intentionally no fixed-delay CSS failsafe here (unlike some other
   widgets): .ath-reveal/.ath-stagger/.ath-blur-group are scroll-triggered
   by design and this widget is typically below the fold, so a blind
   "reveal after N seconds regardless" timer would win the race against
   the user actually scrolling to it and fire before it's ever seen. The
   Motion Engine's own .ath-no-motion fallback (GSAP missing, reduced
   motion, no-JS) already guarantees visibility in every case where the
   scroll-triggered reveal genuinely cannot run.                         */

/* ── Conflict guard ──────────────────────────────────────────────────
   When this widget uses the Atheria animation control, Elementor's own
   "Entrance Animation" (which adds .elementor-invisible → visibility:hidden
   and waits for Elementor's animation JS) must NOT also run, or the whole
   widget stays hidden. Force the widget visible; our Motion Engine handles
   the reveal independently.                                             */
.elementor-widget-atheria_stats.elementor-invisible {
  visibility: visible !important;
}

/* ── Editor ── */
body.elementor-editor-active .ath-stats { min-height: 80px; }
