/* ============================================================
   YOUTH NU'U — mobile pass (load LAST, after styles.css + styles-v2.css)
   13 Aug 2026.

   Brief (Ryan): "optimise for mobile … make mobile less clunky and big …
   easier to scroll … what we do different blocks can be 2 across instead of
   1 across. just make it more intuitive." Reference for how mobile should
   behave: the Discover Selah landing page.

   The three things it does:
   1. gives phones a real menu — before this the nav links were display:none
      under 960px, so a phone had NO navigation at all;
   2. puts card grids 2 (and 3) across instead of one long single-file column;
   3. halves the vertical rhythm and steps the type down, so the page is a
      handful of screens rather than a dozen and a half.
   ============================================================ */

/* ---------- anchors land below the fixed header ------------------------- */
html{scroll-behavior:smooth}
section[id],[id]{scroll-margin-top:104px}
@media(max-width:960px){ [id]{scroll-margin-top:84px} }
@media(prefers-reduced-motion:reduce){ html{scroll-behavior:auto} }

/* the swipe cue under a testimonial row only exists on phones */
.voices-hint{display:none;align-items:center;justify-content:center;gap:8px;
  margin-top:12px;color:var(--muted);font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;font-weight:700}
.voices-hint i{display:block;width:16px;height:1px;background:currentColor;opacity:.5}

/* ---------- header + mobile drawer -------------------------------------- */
header.nav{z-index:50}
.nav-toggle{display:none;background:none;border:0;padding:8px;cursor:pointer;
  flex-direction:column;gap:5px;position:relative;z-index:40}
.nav-toggle span{display:block;width:26px;height:2px;border-radius:2px;background:#fff;
  transition:transform .3s cubic-bezier(.16,1,.3,1),opacity .2s ease,background .3s ease}
.nav-toggle[aria-expanded="true"] span{background:var(--brown)}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.nav-backdrop{position:fixed;inset:0;z-index:30;background:rgba(29,25,21,.55);
  opacity:0;visibility:hidden;transition:opacity .35s ease,visibility .35s ease}
.nav-backdrop.show{opacity:1;visibility:visible}
body.nav-locked{overflow:hidden}

@media(max-width:960px){
  .nav-toggle{display:flex}
  /* the frosted header becomes a containing block and would clip the drawer */
  header.nav.menu-open{backdrop-filter:none;-webkit-backdrop-filter:none;
    background:transparent;box-shadow:none;border-bottom:0}

  nav.links{display:flex;position:fixed;top:0;right:0;bottom:0;
    width:min(78vw,330px);padding:98px 24px 34px;
    background:var(--paper);flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;
    transform:translateX(101%);transition:transform .42s cubic-bezier(.16,1,.3,1);
    box-shadow:-26px 0 64px -34px rgba(29,25,21,.9);z-index:35;overflow-y:auto}
  nav.links.open{transform:none}
  nav.links a{color:var(--brown);font-family:"Murs Gothic","Archivo",system-ui,sans-serif;
    font-weight:800;font-size:1.16rem;letter-spacing:-.01em;opacity:1;
    padding:15px 2px;border-bottom:1px solid var(--line)}
  nav.links a.active{color:var(--olive);text-decoration:none}
  nav.links a.navcta{margin-top:24px;border-bottom:0;border-radius:12px;
    background:var(--olive);color:#fff;text-align:center;padding:.92em 1em;font-size:1.02rem}
}

/* ---------- PHONES ------------------------------------------------------ */
@media(max-width:560px){
  .wrap{padding:0 20px}

  /* vertical rhythm — the single biggest lever on "too many scrolls" */
  .section{padding:38px 0}
  .section.tight{padding:26px 0}
  .section-head{margin-bottom:20px}
  .section-head p{font-size:.98rem}
  .head-split{gap:12px;margin-bottom:20px}
  .head-split p{font-size:.96rem;line-height:1.58}
  .cta{padding:46px 0}
  .center-cta{margin-top:22px}

  /* headings: one clear step down, and no orphaned single words */
  h2.title{font-size:clamp(1.72rem,7.4vw,2.1rem);margin:.3em 0 .4em;max-width:none;text-wrap:balance}
  .lede{font-size:1.04rem}
  .eyebrow{font-size:.68rem;letter-spacing:.15em}

  /* home hero — let the next band peek so it reads as scrollable.
     The desktop scrim is a left-to-right wipe because the copy sits in the
     left third. On a phone the copy runs the full width, so the gradient has
     to run top-to-bottom or the lead paragraph sits on a bright window. */
  .hero{min-height:auto}
  .hero .scrim{background:linear-gradient(to bottom,
    rgba(29,25,21,.84) 0%,rgba(29,25,21,.72) 38%,rgba(29,25,21,.6) 70%,rgba(29,25,21,.68) 100%)}
  .hero .content{padding:104px 0 40px;max-width:none}
  .hero .eyebrow{font-size:.63rem;letter-spacing:.11em}
  .hero h1{font-size:clamp(2.5rem,12.5vw,3.3rem)}
  .hero p.lead{font-size:1.02rem;line-height:1.5;max-width:none;margin-bottom:1.3rem}
  .hero .cta-row{gap:10px}
  .hero .cta-row .btn{flex:1;justify-content:center;padding:.82em 1em;font-size:.92rem}

  /* inner page heroes were a full screen of nothing but a heading */
  .page-hero{padding:104px 0 40px}
  .page-hero h1{font-size:clamp(1.95rem,9vw,2.5rem)}
  .page-hero p.sub{font-size:1rem;max-width:none;margin-bottom:1.3rem}
  .page-hero .cta-row{gap:10px}
  .page-hero .cta-row .btn{flex:1;justify-content:center;padding:.8em .9em;font-size:.9rem}

  /* buttons: side by side, not two full-width slabs */
  .btn{font-size:.95rem;padding:.8em 1.3em}
  .btn-lg{font-size:.96rem;padding:.85em 1.2em}
  .cta .paths,.cta-row{gap:10px}
  .cta .paths .btn{flex:1;justify-content:center;text-align:center}

  /* ---- WHAT WE DO: two across (was one long single-file column) -------- */
  .cards{grid-template-columns:1fr 1fr;gap:10px}
  .card{border-radius:13px}
  .card .ph{aspect-ratio:4/3}
  .card .body{padding:12px 13px 15px}
  .card .num{font-size:.58rem;letter-spacing:.07em}
  .card h3{font-size:1rem;line-height:1.14;margin:.34em 0 .34em}
  .card p{font-size:.79rem;line-height:1.45;
    display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
  .card ul li{font-size:.82rem;padding-left:16px}

  /* ---- text + photo splits -------------------------------------------- */
  .split{gap:20px}
  /* the portrait 4:5 crop cost half a screen per programme block */
  .split .photo img{aspect-ratio:3/2;border-radius:13px}
  .split .photo.wide img{aspect-ratio:4/3;border-radius:13px}
  .split .txt p,.mission .split .txt p{font-size:.96rem;line-height:1.6;margin-bottom:.8em;max-width:none}
  .photo .tag{left:-8px;bottom:14px;font-size:.9rem;padding:.45em .85em;border-radius:10px}
  .creed{gap:8px;margin-top:18px}
  .creed span{font-size:.84rem;padding:.42em .85em}

  /* ---- session flow: two across --------------------------------------- */
  .flow{grid-template-columns:1fr 1fr;gap:20px 14px}
  .flow .f{padding-top:20px}
  .flow .f::before{width:28px;height:28px;font-size:.82rem;border-radius:8px}
  .flow .f h4{font-size:.98rem;margin:12px 0 .3em}
  .flow .f .te{font-size:.74rem}
  .flow .f p{font-size:.85rem;line-height:1.45}

  /* ---- impact stats: 2 x 2, not a four-storey stack -------------------- */
  .stats{grid-template-columns:1fr 1fr;gap:10px}
  .stat{padding:18px 16px;border-radius:13px}
  .stat .n{font-size:1.85rem;letter-spacing:-.02em}
  .stat .l{font-size:.86rem;line-height:1.35;margin-top:5px}
  .stat .tbd{font-size:.62rem;margin-top:7px}

  /* ---- belong / believe / become -------------------------------------- */
  .triad{gap:10px}
  .triad .t{padding:17px 18px;border-radius:13px}
  .triad .t .w{font-size:1.42rem}
  .triad .t .mi{font-size:.85rem;margin:.05em 0 .5em}
  .triad .t p{font-size:.92rem;line-height:1.55}

  /* ---- steps ----------------------------------------------------------- */
  .steps{grid-template-columns:1fr 1fr;gap:20px 14px}
  .step .s{width:36px;height:36px;font-size:.98rem;margin-bottom:12px}
  .step h3{font-size:1.06rem}
  .step p{font-size:.88rem;line-height:1.45}

  /* ---- testimonials: a swipeable row, one screen instead of three ------ */
  .voices{display:flex;grid-template-columns:none;gap:12px;
    overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;
    margin:0 -20px;padding:2px 20px 14px;scrollbar-width:none}
  .voices::-webkit-scrollbar{display:none}
  .voice{flex:0 0 82%;scroll-snap-align:center;padding:20px 20px 18px;border-radius:14px}
  .voice .mk{font-size:2.1rem}
  .voice blockquote{font-size:.95rem;line-height:1.55;margin:8px 0 14px}
  .voice .who{padding-top:13px}
  .voice .who .av{width:36px;height:36px;font-size:.92rem}
  .voice .who .nm{font-size:.92rem}
  .voice .who .rl{font-size:.82rem}
  .voices-hint{display:flex}

  /* ---- team wall: three across ---------------------------------------- */
  .team-grid{grid-template-columns:repeat(3,1fr);gap:8px}
  .member{border-radius:11px}
  .member .body{padding:8px 8px 10px}
  .member h3{font-size:.74rem;line-height:1.2;letter-spacing:0}
  .member .role{font-size:.6rem;margin-top:1px;line-height:1.25}

  /* ---- support cards --------------------------------------------------- */
  .give{gap:12px}
  .give .g{padding:22px 20px;border-radius:14px}
  .give .g .ico{width:42px;height:42px;font-size:1.3rem;margin-bottom:13px;border-radius:11px}
  .give .g h3{font-size:1.22rem}
  .give .g p{font-size:.93rem;line-height:1.55;margin-bottom:14px}
  .give .g .btn{width:100%;justify-content:center}

  /* ---- reassurance ticks ---------------------------------------------- */
  .reassure .inner{gap:22px}
  .reassure .big{font-size:clamp(1.6rem,7vw,2rem)}
  .reassure ul{gap:12px}
  .reassure li{font-size:.94rem;line-height:1.5;gap:11px}
  .reassure li .ck{width:22px;height:22px;font-size:.7rem}

  /* ---- story / quote bands -------------------------------------------- */
  .story{min-height:auto}
  .story .content{padding:44px 0}
  .story .quote{font-size:clamp(1.35rem,5.6vw,1.7rem);line-height:1.24}
  .story .by{margin-top:14px;font-size:.92rem}

  /* ---- video placeholder ---------------------------------------------- */
  .video-ph{border-radius:14px}
  .video-ph .play{width:64px;height:64px}
  .video-ph .play svg{width:24px;height:24px}
  .video-ph .vlabel{bottom:14px;font-size:.84rem}
  .watch-cap{font-size:1rem;margin-bottom:18px}

  /* ---- gallery: a tidy three-across wall, trimmed to seven even rows ---
     masonry columns leave a ragged bottom edge on a narrow screen, so phones
     get square tiles on a grid instead. */
  .gallery{columns:auto;display:grid;grid-template-columns:repeat(3,1fr);gap:7px}
  .gallery img{margin-bottom:0;border-radius:8px;aspect-ratio:1;object-fit:cover;width:100%;height:100%}
  .gallery img:nth-child(n+22){display:none}

  /* ---- village chips --------------------------------------------------- */
  .village{gap:8px;margin-top:20px}
  .village .v{font-size:.88rem;padding:.5em .9em}
  .define .lead-quote{font-size:clamp(1.45rem,6.2vw,1.9rem)}

  /* ---- narrative ------------------------------------------------------- */
  .narr p{font-size:1rem;line-height:1.65;margin-bottom:1em}
  .narr .kick{font-size:clamp(1.3rem,5.6vw,1.6rem)}
  .narr .pull{font-size:1.08rem;padding-left:16px;margin:20px 0}

  /* ---- forms ----------------------------------------------------------- */
  .form{padding:22px 18px;border-radius:14px}
  .form label{font-size:.82rem;margin:13px 0 6px}
  .form input,.form select,.form textarea{padding:.75em .9em;font-size:16px} /* 16px stops iOS zooming on focus */

  /* ---- support band ---------------------------------------------------- */
  .support-band{padding:22px 20px;gap:16px;margin-top:20px}
  .support-band .t{font-size:1.2rem}
  .support-band .t small{font-size:.9rem}

  /* ---- footer: the two link lists sit side by side --------------------- */
  footer.site{padding:30px 0 22px}
  footer.site .grid{grid-template-columns:1fr 1fr;gap:22px 16px;margin-bottom:26px}
  footer.site .f-about{grid-column:1 / -1}
  footer.site p{font-size:.92rem;margin-top:12px}
  footer.site ul li{margin-bottom:7px;font-size:.92rem}
  footer.site .base{font-size:.78rem;padding-top:18px;gap:6px}
}

/* very small phones (320–360) — keep the two-across grids from crushing */
@media(max-width:361px){
  .card p{-webkit-line-clamp:4;font-size:.76rem}
  .card h3{font-size:.94rem}
  .stat .n{font-size:1.6rem}
  .team-grid{gap:6px}
  .member h3{font-size:.76rem}
}

/* touch devices fire :hover on tap — kill the lift so nothing jumps */
@media (hover:none),(pointer:coarse){
  .card:hover{transform:none}
  .card:hover .ph img{transform:none}
  .btn-primary:hover{transform:none}
  .video-ph:hover .play{transform:none}
}
