/* ==========================================================================
   ALHAZAWA ORPHANS & GIRL CHILD FOUNDATION — responsive.css
   Breakpoints re-compose layouts rather than simply stacking them.
   ========================================================================== */

/* -------------------------------------------------------------------------
   Large desktop / 4K polish
   ------------------------------------------------------------------------- */
@media (min-width: 1600px) {
  :root { --container-w: 1440px; }
}

/* -------------------------------------------------------------------------
   Laptop
   ------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .zones-grid { grid-template-columns: 1fr 1fr; }
  .zones-grid .zone-card:last-child { grid-column: 1 / -1; }
  .beneficiary-grid { grid-template-columns: repeat(2, 1fr); }
  .values-row { grid-template-columns: repeat(3, 1fr); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .stories-grid { grid-template-columns: repeat(2, 1fr); }
}

/* -------------------------------------------------------------------------
   Tablet
   ------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  /* The header CTA has no room next to the full brand lockup once the
     nav-links collapse — it was overlapping/clipping against the logo.
     The mobile slide-out menu already carries its own full "Support Our
     Mission" button, so the header keeps only the logo and the toggle. */
  .nav-cta .btn-primary { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: clamp(360px, 70vw, 480px); margin-top: 2.5rem; order: -1; }
  .hero-copy .lead { max-width: 60ch; }

  .impact-strip { grid-template-columns: repeat(3, 1fr); }
  .impact-item:nth-child(3) { border-right: none; }
  .impact-item { border-bottom: 1px solid var(--border-soft); }

  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media { max-width: 460px; margin-inline: auto; }

  .problem-layout { grid-template-columns: 1fr; }

  .vm-grid { grid-template-columns: 1fr; }

  .values-row { grid-template-columns: repeat(2, 1fr); }

  .beneficiary-grid { grid-template-columns: repeat(2, 1fr); }

  .zones-grid { grid-template-columns: 1fr; }
  .zones-grid .zone-card:last-child { grid-column: auto; }
  .phase-track { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }

  .pilot-grid { grid-template-columns: 1fr; }

  .roadmap-track { grid-template-columns: 1fr; gap: 3rem; }
  .roadmap-track::before { top: 0; bottom: 0; left: 22px; right: auto; width: 3px; height: auto; background: repeating-linear-gradient(180deg, var(--cyan-300) 0 10px, transparent 10px 18px); }

  .donation-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }

  .founder-layout { grid-template-columns: 1fr; }
  .founder-media { max-width: 420px; margin-inline: auto; }

  .story-feature { grid-template-columns: 1fr; }
  .story-feature .f-body { padding: 2rem; }
  .stories-grid { grid-template-columns: repeat(2, 1fr); }

  .events-grid { grid-template-columns: 1fr; }

  .contact-layout { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* -------------------------------------------------------------------------
   Mobile
   ------------------------------------------------------------------------- */
@media (max-width: 640px) {
  :root { --section-pad: clamp(3rem, 12vw, 5rem); }

  .hero { padding-top: 6.5rem; }
  .hero-copy .lead { max-width: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-visual { height: 380px; }
  .hero-photo-main { width: 78%; left: 4%; }
  .hero-photo-float { width: 54%; }
  .hero-badge { padding: .85rem 1rem; }

  .impact-strip-wrap { margin-top: -2rem; }
  .impact-strip { grid-template-columns: repeat(2, 1fr); border-radius: var(--radius-md); }
  .impact-item:nth-child(2n) { border-right: none; }
  .impact-item p { display: none; }

  .section-head h2, .hero-copy h1 { word-break: break-word; }

  .values-row { grid-template-columns: 1fr; }
  .beneficiary-grid { grid-template-columns: 1fr; }
  .zones-grid { grid-template-columns: 1fr; }
  .phase-track { grid-template-columns: 1fr; }
  .donation-grid { grid-template-columns: 1fr; }
  .partner-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .stories-grid { grid-template-columns: 1fr; }
  .masonry { columns: 1; }

  .form-row { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .vm-panel { min-height: 260px; }

  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; }
  .lightbox-prev { left: .6rem; }
  .lightbox-next { right: .6rem; }
  .lightbox-close { top: 1rem; right: 1rem; }

  .cursor-dot, .cursor-ring { display: none !important; }
}

@media (max-width: 400px) {
  .hero-photo-main { width: 82%; }
  .partner-grid, .trust-grid { grid-template-columns: 1fr; }
}
