/* =============================================================
   7ARAKA — responsive / mobile styles (loaded after site.css)
   ============================================================= */

/* ---------- Mobile nav ---------- */
.nav-burger {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  background: transparent;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}
.nav-burger:hover { border-color: var(--ink); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 4px 24px 12px;
  background: var(--canvas);
  border-top: 1px solid var(--hairline-soft);
}
.nav-mobile-link {
  display: block;
  padding: 14px 2px;
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav-mobile-link:last-child { border-bottom: none; }
.nav-mobile-link.active { color: var(--ink); font-weight: 600; }

@media (max-width: 900px) {
  .nav-burger { display: grid; }
  .nav-mobile.open { display: flex; }
}

/* ---------- Tablet & below: stack every multi-column layout ---------- */
@media (max-width: 860px) {
  html, body { overflow-x: hidden; }

  /* Collapse all inline multi-column grids to a single column */
  main [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  /* Tame the oversized desktop gaps once stacked */
  main [style*="gap: 48px"],
  main [style*="gap: 64px"],
  main [style*="gap: 80px"] {
    gap: 28px !important;
  }

  /* Home bento grid — explicit single-column re-flow */
  .home-bento {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    grid-template-areas:
      "photo"
      "nutrition"
      "recovery"
      "progress"
      "quote" !important;
  }
  .home-bento > .card-image { min-height: 260px !important; }
  .home-bento > .card-accent { min-height: 200px; }

  /* Wide cinematic bands grow naturally when stacked */
  main .card-image[style*="aspect-ratio: 21 / 9"] { aspect-ratio: auto !important; }
  main .card-image[style*="aspect-ratio: 21 / 8"] { aspect-ratio: 3 / 2 !important; }

  /* Home goal band — keep text readable over the photo */
  .goal-band { padding: 12px !important; }
  .goal-band-copy {
    background: linear-gradient(180deg, rgba(38,37,30,.45), rgba(38,37,30,.8));
    border-radius: 12px;
    padding: 24px 20px !important;
  }

  /* Testimonials featured hero */
  .testi-hero > div:first-of-type { padding: 28px 20px !important; }
  .testi-hero blockquote { font-size: 20px !important; }
  .testi-hero > div:last-of-type { display: none; }

  /* Dark full-width bands (programs, pillars, reset) */
  .dark-band { padding: 36px 24px !important; }

  /* Service cards: image always on top, sensible height & padding */
  .svc-card > .card-image { order: 0 !important; min-height: 280px !important; }
  .svc-card > div:not(.card-image) { padding: 24px 20px !important; }

  /* Hero photo: portrait crop, drop the floating info card */
  .hero-photo { aspect-ratio: 1 / 1; }
  .hero-info-card { display: none; }

  /* Program rows (dark band on home) */
  .program-row { grid-template-columns: 1fr auto; gap: 6px 16px; }
  .program-year { grid-column: 1 / -1; }
  .program-row .title { font-size: 18px; }
  .program-row .sub { font-size: 13px; }

  /* Stats strip */
  .stats { padding: 20px 24px; }

  /* Footer */
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
}

/* ---------- Phones ---------- */
@media (max-width: 680px) {
  .display-mega { font-size: clamp(34px, 10.5vw, 48px); }
  .display-xl   { font-size: clamp(28px, 8.5vw, 40px); }
  .display-lg   { font-size: clamp(26px, 7.5vw, 34px); }

  .container, .container-wide { padding: 0 20px; }
  .section { padding: 56px 0; }

  /* Big inline card paddings shrink on phones */
  main .card[style*="padding: 36px"] { padding: 24px 20px !important; }
  main .card[style*="padding: 40px"] { padding: 24px 20px !important; }

  .btn-lg { padding: 12px 18px; font-size: 14px; }

  .modal-scrim { padding: 16px; }
  .modal { max-height: calc(100dvh - 32px); }

  .photo-badge { font-size: 12px; padding: 7px 10px; }
}
