/* ============================================================
   PRUNN Social Foundation — Responsive
   ============================================================ */

@media (max-width: 1199px) {
  .hero__grid,
  .split,
  .split--reverse,
  .band,
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero__collage {
    min-height: 380px;
    max-width: 560px;
  }

  .page-intro__grid,
  .quote-grid,
  .impact-wall,
  .mosaic {
    grid-template-columns: 1fr;
  }

  .page-intro--flip .page-intro__copy { order: 0; }

  .page-intro__visual img { height: 380px; }

  .mosaic {
    grid-template-rows: 260px 180px 180px;
  }

  .mosaic img:first-child { grid-row: auto; }

  .split__visual {
    grid-template-columns: 1fr 0.85fr;
  }

  .split__visual img { height: 420px; }

  .split__float { height: 280px; }

  .feature {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .feature__media img { min-height: 380px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-mid {
    grid-template-columns: 1fr;
  }

  .footer-reach { justify-content: flex-start; }
}

@media (max-width: 991px) {
  :root { --header-h: 74px; }

  .nav-toggle { display: grid; place-items: center; z-index: 1102; }

  .site-header.is-nav-open {
    z-index: 1300;
    backdrop-filter: none;
  }

  .site-header.is-nav-open .nav-toggle {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(12, 36, 28, 0.55);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s var(--ease);
    z-index: 1098;
  }

  .nav-backdrop.is-on {
    opacity: 1;
    visibility: visible;
  }

  body.is-nav-open .float-dock,
  body.is-nav-open .cursor-dot {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .nav-menu {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(86vw, 360px);
    height: 100dvh;
    background: #fbf8f2;
    flex-direction: column;
    align-items: stretch;
    padding: 18px 22px 32px;
    gap: 0.15rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    box-shadow: -18px 0 50px rgba(12, 36, 28, 0.18);
    overflow-y: auto;
    z-index: 1101;
    isolation: isolate;
  }

  .nav-menu.is-open { transform: none; }

  .nav-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 1.2rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-drawer-head span {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--charcoal);
  }

  .nav-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--terracotta);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
  }

  .nav-close__icon {
    position: relative;
    display: block;
    width: 16px;
    height: 16px;
  }

  .nav-close__icon::before,
  .nav-close__icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
  }

  .nav-close__icon::before { transform: translate(-50%, -50%) rotate(45deg); }
  .nav-close__icon::after { transform: translate(-50%, -50%) rotate(-45deg); }

  .nav-menu .nav-link,
  .site-header.is-scrolled .nav-menu .nav-link,
  .site-header.is-solid .nav-menu .nav-link {
    color: var(--charcoal);
    padding: 0.75rem 0.4rem;
    font-size: 1.05rem;
  }

  .nav-dropdown {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .nav-dropdown > .nav-link {
    flex: 1;
  }

  .nav-dropdown > .nav-link::after {
    display: none;
  }

  .nav-sub-toggle {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 0;
    background: var(--ivory);
    color: var(--charcoal);
    border-radius: 10px;
    font-size: 0.95rem;
  }

  .nav-dropdown.is-open .nav-sub-toggle i {
    transform: rotate(180deg);
  }

  .nav-dropdown__menu {
    display: none;
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    background: var(--ivory);
    padding: 0.35rem 0.5rem 0.45rem 0.9rem;
    min-width: 100%;
    flex-basis: 100%;
    border-radius: 12px;
    margin: 0.2rem 0 0.5rem;
  }

  .nav-dropdown.is-open > .nav-dropdown__menu {
    display: block;
  }

  .stats { margin-top: 0; padding: 32px 0 8px; }

  .stats__panel,
  .program-grid,
  .story-grid,
  .value-grid,
  .team-grid,
  .approach,
  .plan-grid {
    grid-template-columns: 1fr 1fr;
  }

  .plan-card--plus { grid-column: 1 / -1; }

  .program-card--wide { grid-column: span 2; }

  .masonry { columns: 2; }

  .hero {
    min-height: auto;
    padding-bottom: 56px;
  }

  .hero__frame--lg { inset: 0 8% 18% 0; }

  .section { padding: 80px 0; }
}

@media (max-width: 767px) {
  .container-site,
  .container-wide {
    width: min(100% - 32px, 1180px);
  }

  .hero h1,
  .page-intro h1 {
    font-size: clamp(2.05rem, 9.4vw, 2.7rem);
    overflow-wrap: break-word;
    max-width: 100%;
  }

  .hero__text,
  .page-intro p {
    max-width: 100%;
  }

  .hero__collage,
  .scroll-hint {
    display: none;
  }

  .hero {
    padding-bottom: 40px;
  }

  .ticker {
    padding: 0.7rem 0;
  }

  .split__visual {
    grid-template-columns: 1fr;
  }

  .hero__chip { display: none; }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__actions .btn-prunn {
    width: 100%;
  }

  .stats__panel,
  .program-grid,
  .story-grid,
  .value-grid,
  .team-grid,
  .approach,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stat { border-right: 0; border-bottom: 1px solid var(--line); }

  .stat:last-child { border-bottom: 0; }

  .program-card,
  .program-card--wide {
    grid-column: auto;
    min-height: 360px;
  }

  .masonry { columns: 1; }

  .split__visual img { height: 320px; }

  .split__float { height: 220px; }

  .feature__panel { padding: 2.2rem 1.4rem 2.6rem; }

  .page-intro__grid { gap: 1.6rem; padding-bottom: 36px; }

  .page-intro__visual img { height: 280px; }

  .hero__actions { min-height: 0; }

  .section { padding: 64px 0; }

  .donate-panel { padding: 2rem 1.4rem; }

  .footer-bar { justify-content: center; text-align: center; }

  .footer-news {
    flex-direction: column;
    border-radius: 22px;
    padding: 0.65rem;
  }

  .footer-news button { width: 100%; }

  .footer-reach { gap: 1rem; }

  .float-dock {
    right: 12px;
    bottom: 16px;
  }

  .float-btn {
    width: 48px;
    height: 48px;
  }

  .float-btn::after { display: none; }

  .btn-prunn { width: 100%; justify-content: center; }

  .hero__actions .btn-prunn { width: auto; }

  .plan-grid { grid-template-columns: 1fr; }

  .form-card { padding: 1.3rem; }
}

@media (max-width: 390px) {
  .brand__name { font-size: 0.92rem; }
  .hero { padding-top: calc(var(--header-h) + 24px); }
}

@media (min-width: 1920px) {
  .container-wide { width: min(1440px, calc(100% - 80px)); }
  .container-site { width: min(1240px, calc(100% - 80px)); }
}

@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; }
}
