/* =========================================================
   V38 Hero Stats + Section Overlap Repair
   Fixes:
   - 10 min / 2X / 24/7 disappearing because broad selector
     accidentally styled .hero-stats as a stat card
   - Scroll hint and bird-eye video overlapping the hero section
   ========================================================= */

/* 1) Restore the stat row container. It must be a grid, not a card. */
body main#home .hero-copy .hero-stats,
body main#home .hero-sticky .hero-stats,
body .hero-copy > .hero-stats,
body .hero-sticky .hero-stats {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  width: min(100%, 620px) !important;
  max-width: 620px !important;

  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;

  align-items: stretch !important;
  justify-content: stretch !important;
  flex-direction: unset !important;
}

/* 2) Style only the actual stat cards. */
body main#home .hero-stats > .stat-card,
body main#home .hero-stats > .counter-card,
body .hero-stats > .stat-card,
body .hero-stats > .counter-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 8px !important;

  min-height: 112px !important;
  height: 112px !important;
  width: auto !important;

  padding: 20px 22px !important;
  margin: 0 !important;

  overflow: hidden !important;
  border: 1px solid rgba(8, 120, 164, 0.10) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

/* 3) Normalize number/unit sizing so 10 min, 2x, 24/7 are balanced. */
body main#home .hero-stats > .stat-card strong,
body main#home .hero-stats > .counter-card strong,
body .hero-stats > .stat-card strong,
body .hero-stats > .counter-card strong {
  display: inline-flex !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: 5px !important;

  min-height: 30px !important;
  margin: 0 !important;

  color: #075b82 !important;
  font-family: "Red Hat Display", "Prompt", ui-sans-serif, system-ui, sans-serif !important;
  font-size: 26px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
  white-space: nowrap !important;
}

body main#home .hero-stats > .stat-card strong span,
body main#home .hero-stats > .counter-card strong span,
body .hero-stats > .stat-card strong span,
body .hero-stats > .counter-card strong span {
  display: inline-block !important;
  color: inherit !important;
  font-size: 26px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
}

body main#home .hero-stats > .stat-card > span,
body main#home .hero-stats > .counter-card > span,
body .hero-stats > .stat-card > span,
body .hero-stats > .counter-card > span {
  display: block !important;
  margin: 0 !important;
  color: #607985 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
}

/* 4) Give the hero enough bottom room before the next video section starts. */
@media (min-width: 761px) {
  body main#home > .hero-scroll-stage,
  body .hero-scroll-stage {
    height: 120vh !important;
    min-height: 900px !important;
    max-height: none !important;
    padding-top: 118px !important;
    padding-bottom: 120px !important;
    margin-bottom: 0 !important;
    overflow: hidden !important;
  }

  body main#home .hero-sticky,
  body .hero-sticky {
    height: 100vh !important;
    min-height: 760px !important;
    padding-top: 0 !important;
    padding-bottom: 96px !important;
    overflow: visible !important;
    align-items: center !important;
  }

  body main#home .hero-motion-card,
  body .hero-motion-card {
    min-height: min(670px, calc(100vh - 160px)) !important;
    margin-bottom: 0 !important;
  }

  /* Keep the scroll hint below the card but inside the hero section. */
  body main#home .hero-scroll-stage > .scroll-hint,
  body .hero-scroll-stage > .scroll-hint {
    position: absolute !important;
    left: 50% !important;
    bottom: 42px !important;
    top: auto !important;
    z-index: 8 !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    pointer-events: none !important;
  }

  /* Add breathing space before the bird-eye video starts. */
  body main#home > .hero-scroll-stage + .birdeye-video-section,
  body .hero-scroll-stage + .birdeye-video-section {
    margin-top: 0 !important;
  }
}

/* 5) Medium screens */
@media (max-width: 1180px) and (min-width: 761px) {
  body main#home .hero-stats,
  body .hero-stats {
    gap: 12px !important;
  }

  body main#home .hero-stats > .stat-card,
  body main#home .hero-stats > .counter-card,
  body .hero-stats > .stat-card,
  body .hero-stats > .counter-card {
    min-height: 104px !important;
    height: 104px !important;
    padding: 18px !important;
  }

  body main#home .hero-stats > .stat-card strong,
  body main#home .hero-stats > .counter-card strong,
  body main#home .hero-stats > .stat-card strong span,
  body main#home .hero-stats > .counter-card strong span,
  body .hero-stats > .stat-card strong,
  body .hero-stats > .counter-card strong,
  body .hero-stats > .stat-card strong span,
  body .hero-stats > .counter-card strong span {
    font-size: 23px !important;
  }
}

/* 6) Mobile */
@media (max-width: 760px) {
  body main#home .hero-copy .hero-stats,
  body main#home .hero-sticky .hero-stats,
  body .hero-copy > .hero-stats,
  body .hero-sticky .hero-stats {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: none !important;
  }

  body main#home .hero-stats > .stat-card,
  body main#home .hero-stats > .counter-card,
  body .hero-stats > .stat-card,
  body .hero-stats > .counter-card {
    min-height: 92px !important;
    height: auto !important;
    padding: 18px 20px !important;
  }

  body main#home .hero-scroll-stage,
  body .hero-scroll-stage {
    height: auto !important;
    min-height: auto !important;
    padding-bottom: 72px !important;
    overflow: hidden !important;
  }

  body main#home .hero-sticky,
  body .hero-sticky {
    height: auto !important;
    min-height: auto !important;
    padding-bottom: 56px !important;
  }

  body main#home .hero-scroll-stage > .scroll-hint,
  body .hero-scroll-stage > .scroll-hint {
    bottom: 24px !important;
  }
}
