/* ============================================================
   LIGHT A LIFE — RESPONSIVE + REDUCED MOTION (load last)
   ============================================================ */

/* ---- Tablet / small laptop ---- */
@media (max-width: 880px) {
  .mission__grid { grid-template-columns: 1fr; }
  .detail__grid { grid-template-columns: 1fr; }

  .story__panel { grid-template-columns: 1fr; }
  .story__col--impact {
    border-left: 0; padding-left: 0;
    border-top: 2px solid rgba(255, 255, 255, 0.28);
    padding-top: clamp(2rem, 5vw, 3rem);
  }

  .donate__panel { grid-template-columns: 1fr; }
  .donate__ways { order: 0; }
}

/* ---- Mobile nav: links collapse into a ☰ toggle menu (.nav--menu) ---- */
@media (max-width: 820px) {
  .nav--menu .nav__inner { position: relative; }
  .nav--menu .nav__toggle { display: inline-grid; }
  .nav--menu .nav__links {
    display: none;
    position: absolute; top: calc(100% - var(--space-2)); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: var(--space-1);
    padding: var(--space-4);
    background: var(--paper);
    border: 3px solid var(--ink);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-pop);
  }
  .nav--menu .nav__links.is-open { display: flex; }
  .nav--menu .nav__links .nav__link {
    display: block;
    padding: var(--space-3) var(--space-2);
    font-size: var(--text-base);
  }
  .nav--menu .nav__links .btn { margin-top: var(--space-2); width: 100%; }
}

/* ---- Mobile hero spacing ----
   Top: clear the fixed header (104px logo + nav padding) plus breathing room.
   Bottom: clear the "Scroll" cue (2.5rem offset + ~60px tall) and the ticker
   that overlaps the hero by 46px, so the buttons never collide with either. */
@media (max-width: 820px) {
  .hero {
    padding-top: calc(104px + var(--space-3) * 2 + var(--space-8));
    padding-bottom: calc(2.5rem + 60px + var(--space-8));
  }
}

/* ---- Footer ---- */
@media (max-width: 680px) {
  .footer__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer__inner > :last-child { justify-self: center; }
}

/* ---- Phone ---- */
@media (max-width: 520px) {
  .video-modal__close { top: 8px; right: 8px; }
  .contact-form__row { grid-template-columns: 1fr; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}
