

/* =========================================================
   RESPONSIVE — COMPREHENSIVE OVERRIDES
   These only activate at smaller widths and do NOT change
   the desktop layout (≥ 1200px) in any way.
   ========================================================= */

/* ── Tablet: 768px – 1199px ────────────────────────────── */
@media (max-width: 1199px) {

  /* NAV */
  .nav { padding: 12px 40px; }

  /* HERO */
  .hero { padding: 48px 40px 80px; }
  .hero-collage-wrap { padding-top: 28px; }

  /* STATS */
  .stats-section { padding: 0 40px 48px; }

  /* PROCESS */
  .process-section { padding: 48px 40px 0; }

  /* DONATE */
  .donate-panel { padding: 80px 40px 48px; }

  /* FAQ */
  .faq-section { padding: 48px 40px 80px; }

  /* GALLERY */
  .gallery-section { padding: 48px 40px; }

  /* FOOTER */
  .site-footer { padding: 48px 40px; }
}

/* ── Show hamburger, hide inline nav from 900px and below ── */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
}

/* ── Mobile: below 768px ────────────────────────────────── */
@media (max-width: 767px) {

  /* ---- NAVIGATION ---- */
  .nav { padding: 12px 20px; }
  .nav-logo img { height: 44px; }
  .nav-toggle { display: flex; }

  /* ---- HERO ---- */
  .hero { padding: 36px 20px 56px; gap: 20px; }
  .hero-heading { font-size: clamp(30px, 8vw, 42px); letter-spacing: -0.8px; }
  .hero-sub { font-size: 16px; line-height: 26px; }
  .hero-heading-wrap { max-width: 100%; }

  /* Collage: keep the three-card fan but scale it down */
  .hero-collage-wrap { padding-top: 20px; overflow: visible; }
  .collage-card--sm  { width: 100px; height: 126px; }
  .collage-card--md  { width: 128px; height: 156px; }
  .collage-card--lg  { width: 148px; height: 185px; }
  .collage-card { margin: 0 -14px; }
  .pill-badge--grow  { width: 72px;  height: 72px;  font-size: 13px; top: -32px; }
  .pill-badge--learn { width: 60px;  height: 60px;  font-size: 12px; }
  .pill-badge--eat   { width: 46px;  height: 46px;  font-size: 12px; }

  /* ---- STATS ---- */
  .stats-section { padding: 0 20px 40px; }
  .stats-intro { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px 0; }
  .stats-intro .eyebrow { white-space: normal; }
  .stats-paragraph { text-align: left; font-size: clamp(20px, 5vw, 28px); }

  /* Stats FIRST, map BELOW — use flex order */
  .stats-body {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }
  .stats-list {
    order: 1;          /* renders first */
    gap: 40px;
    padding-bottom: 32px;
  }
  .stat-row { max-width: 100%; align-items: flex-start; text-align: left; }
  .stat-copy { align-items: flex-start; }
  .stat-number { font-size: clamp(52px, 14vw, 80px); }
  .stat-heading { font-size: clamp(22px, 6vw, 32px); }

  /* Map: BELOW statistics */
  .stats-map-wrapper {
    order: 2;          /* renders after stats-list */
    position: relative;
    width: 100%;
    height: 260px;
    right: auto; top: auto; bottom: auto;
    margin: 0 auto;
    pointer-events: none;
  }
  .stats-map { transform: scale(1.5); transform-origin: center center; }


  /* ---- PROCESS ---- */
  .process-section { padding: 40px 20px 0; gap: 40px; }
  .process-intro-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .process-intro-row .eyebrow { white-space: normal; }
  .process-paragraph { text-align: left; font-size: clamp(18px, 4.5vw, 24px); }
  .section-title--right { text-align: left; font-size: clamp(28px, 7vw, 42px); }

  /* All process items: single column */
  .process-item,
  .process-item--reverse {
    flex-direction: column !important;
    align-items: stretch;
    gap: 20px;
  }
  .process-media,
  .process-item--reverse .process-media { flex-direction: column; gap: 8px; }
  .process-media img { width: 100%; height: 240px; }
  .process-step-label { writing-mode: horizontal-tb; transform: none; }
  .process-text { font-size: clamp(18px, 4.5vw, 24px); }

  /* IMAGE always above text — use flex order */
  /* Normal items: media is first in DOM → stays order:0, text stays order:0 — already correct */
  .process-item .process-media  { order: 1; } /* image first  */
  .process-item .process-text   { order: 2; } /* text second  */

  /* Reverse items: text is first in DOM, media is second — flip them */
  .process-item--reverse .process-text  { order: 2; } /* push text below  */
  .process-item--reverse .process-media { order: 1; } /* bring image up   */


  /* ---- DONATE / FUND ---- */
  .donate-panel { padding: 56px 20px 40px; gap: 48px; }
  .fund-card { padding: 24px 20px; }
  .fund-bar {
    flex-direction: column;
    border-radius: var(--radius-lg);
    padding-right: 0;
  }
  .fund-segment--a { border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 14px 24px; }
  .fund-segment--b { padding: 12px 24px; }
  .fund-segment--c { padding: 12px 24px; }
  .fund-legend { flex-direction: column; gap: 20px; }
  .legend-label { font-size: 18px; }
  .legend-desc { font-size: 16px; padding-left: 22px; }
  .fund-card-title { font-size: 18px; }

  /* ---- TESTIMONIALS ---- */
  .testimonial-quote { font-size: clamp(20px, 5.5vw, 28px); }
  .testimonial-body { font-size: 16px; }

  /* ---- FAQ ---- */
  .faq-section { padding: 40px 20px 64px; gap: 32px; }
  .faq-layout { flex-direction: column; gap: 24px; }
  /* Single column on mobile */
  .faq-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .faq-col { gap: 16px; }
  .faq-question { font-size: 16px; padding: 20px 20px; }
  .faq-answer { font-size: 14px; }
  /* Sidenav becomes horizontal chips */
  .faq-sidenav {
    border-left: none;
    border-top: 2px dashed var(--c-pill-1);
    padding-left: 0;
    padding-top: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
  }
  .faq-sidenav-link { padding: 10px 14px; font-size: 14px; }

  /* ---- GALLERY ("Moments That Tell the Story") ---- */
  /* Single-column vertical stack — DO NOT reproduce desktop masonry */
  .gallery-section { padding: 40px 20px; }
  .gallery-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .gallery-header .section-title { font-size: clamp(26px, 7vw, 38px); }

  /* Outer grid: single column, items stack top to bottom */
  .gallery-grid {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 16px !important;
    width: 100%;
  }

  /* Each column div also stacks its children */
  .gallery-col {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    width: 100%;
  }

  /* Every photo: full-width, good height, keep border-radius */
  .gallery-photo,
  .gallery-photo--sm,
  .gallery-photo--md,
  .gallery-photo--tall,
  .gallery-photo--tallest,
  .gallery-photo--framed {
    width: 100% !important;
    max-width: 100% !important;
    height: 240px !important;
    object-fit: cover;
    flex-shrink: 0;
  }

  /* Standalone images that are direct children of gallery-grid */
  .gallery-grid > .gallery-photo {
    width: 100% !important;
    height: 240px !important;
  }

  /* Stat cards: full-width */
  .gallery-stat {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 20px 20px;
  }
  .gallery-stat--black { width: 100% !important; }
  .gallery-stat--terracotta { width: 100% !important; }
  .gallery-stat-number { font-size: 28px; }
  .gallery-stat-desc { font-size: 14px; }


  /* ---- FOOTER ---- */
  .site-footer { padding: 40px 20px 32px; }
  .footer-top { flex-direction: column; gap: 32px; }
  .footer-brand { max-width: 100%; }
  .footer-links { flex-direction: column; gap: 24px; }
  .footer-links-col { min-width: 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* ---- BUTTONS ---- */
  .btn { font-size: 15px; padding: 11px 20px; }
  .hero-ctas { gap: 10px; }

  /* ---- SECTION TITLES ---- */
  .section-title { font-size: clamp(28px, 7vw, 42px); }
  .section-desc { font-size: clamp(15px, 4vw, 20px); }
}

/* ── Small mobile: below 480px ─────────────────────────── */
@media (max-width: 479px) {

  /* NAV */
  .nav { padding: 10px 16px; }
  .nav-logo img { height: 38px; }

  /* HERO */
  .hero { padding: 28px 16px 48px; }
  .hero-heading { font-size: clamp(26px, 8.5vw, 36px); }
  .collage-card--sm  { width: 80px;  height: 100px; }
  .collage-card--md  { width: 104px; height: 128px; }
  .collage-card--lg  { width: 122px; height: 154px; }
  .collage-card { margin: 0 -10px; }
  .pill-badge--grow  { width: 60px; height: 60px; font-size: 11px; }
  .pill-badge--learn { width: 50px; height: 50px; font-size: 11px; }
  .pill-badge--eat   { width: 40px; height: 40px; font-size: 11px; }

  /* FAQ */
  .faq-question { font-size: 15px; padding: 18px 16px; }
  .faq-item--open .faq-answer { padding: 0 16px 20px 16px !important; }

  /* GALLERY COLLAGE — at very small sizes keep single-column, adjust heights */
  .gallery-photo,
  .gallery-photo--sm,
  .gallery-photo--md,
  .gallery-photo--tall,
  .gallery-photo--tallest,
  .gallery-photo--framed {
    width: 100% !important;
    height: 200px !important;
  }
  .gallery-grid > .gallery-photo { height: 200px !important; }
  .gallery-stat-number { font-size: 24px; }

  /* STATS */
  .stat-number { font-size: clamp(44px, 13vw, 64px); }

  /* PROCESS */
  .process-media img { height: 200px; }

  /* FUND */
  .fund-card { padding: 20px 16px; }
  .fund-segment { font-size: clamp(16px, 5vw, 22px); padding: 10px 16px; }

  /* FOOTER */
  .site-footer { padding: 32px 16px 24px; }

  /* SECTIONS */
  .stats-section { padding: 0 16px 32px; }
  .process-section { padding: 32px 16px 0; }
  .donate-panel { padding: 40px 16px 32px; }
  .faq-section { padding: 32px 16px 48px; }
  .gallery-section { padding: 32px 16px; }

  /* CONTACT photo strip safety */
  .contact-photo-strip { padding-left: 16px; padding-right: 16px; padding-bottom: 32px; }
  .contact-photo-row {
    flex-wrap: wrap !important;
    gap: 8px !important;
    overflow: visible !important;
  }
  .contact-photo-row img {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    height: 180px !important;
  }

  /* FUTURE ROADMAP hero visual — full-width image at very small sizes */
  .fr-hero { padding-left: 16px !important; padding-right: 16px !important; padding-top: 56px !important; }
  .fr-visual { width: 100% !important; height: 220px !important; margin: 0 !important; order: 1 !important; }
  .fr-visual img { width: 100% !important; height: 220px !important; }
}
