/* ============================================================
   responsive.css — mobile & tablet adjustments
   Loaded after style.css. Breakpoints match Bootstrap 5:
   sm 576 · md 768 · lg 992 (nav collapses below) · xl 1200
   Reference: docs/design-system.md §9
   ============================================================ */

/* Below the lg breakpoint the navbar becomes hamburger + panel */
@media (max-width: 991.98px) {
  :root {
    --section-pad-block: 4rem; /* tighter section rhythm on mobile */
  }

  .site-container {
    padding-inline: 1.5rem;
  }

  /* Contact CTA renders as a full-width menu row inside the collapse panel */
  .site-nav__cta {
    display: inline-block;
    margin-top: 0.5rem;
    text-align: center;
  }

  /* Active underline indicator becomes a left border in the stacked menu
     (the Contact CTA keeps its filled state from style.css instead) */
  .site-nav .nav-link.is-active:not(.site-nav__cta) {
    box-shadow: inset 2px 0 0 var(--color-accent);
  }

  .navbar-collapse {
    background-color: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-panel);
    padding: 0.75rem;
    margin-top: 0.5rem;
  }

  /* Hero: intentional mobile stacking — text first, portrait below
     at reduced width; CTAs go full-width for easy tapping (§9) */
  .hero {
    text-align: left;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn-jc {
    width: 100%;
  }

  .hero__portrait {
    max-width: 60%;
    margin-inline: auto;
  }

  /* Mobile menu links: generous tap targets (≥44px tall rows) */
  .navbar-collapse .nav-link {
    padding-block: 0.75rem;
  }
}

/* Small phones (≤ 575.98px, Bootstrap's xs range) */
@media (max-width: 575.98px) {
  /* Facts rows stack: term above value, no squeezing at 375px */
  .facts-list__item {
    flex-direction: column;
    gap: 0.15rem;
  }

  .facts-list dd {
    text-align: left;
  }

  /* Footer centers and stacks instead of stretching apart */
  .site-footer__row {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Hero portrait a touch larger on the smallest screens */
  .hero__portrait {
    max-width: 75%;
  }
}

/* Desktop horizontal padding */
@media (min-width: 992px) {
  .site-container {
    padding-inline: 2rem;
  }
}
