/* =============================================================================
   YFarm — styles.css
   Brand palette pulled from the YMCA "the Y" logo (blue + magenta), with a
   farm-green and harvest-gold accent for the community/garden feel.
   Mobile-first; breakpoints scale up at 640 / 900 / 1100px.
   ========================================================================== */

:root {
  /* Brand */
  --blue:        #0E73B8;
  --blue-light:  #18A0DB;
  --blue-bright: #34b6ee;
  --purple:      #92278F;
  --purple-light:#a93aa3;
  --green:       #4f9d2e;
  --green-light: #6cc24a;
  --gold:        #f2a900;

  /* Neutrals */
  --ink:    #16252d;
  --slate:  #51707c;
  --mist:   #f4f8fb;
  --mist-2: #e8f1f7;
  --line:   #dde7ee;
  --white:  #ffffff;

  /* Gradients */
  --grad-brand: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  --grad-blue:  linear-gradient(135deg, var(--blue-light) 0%, var(--blue) 100%);
  --grad-purple:linear-gradient(135deg, var(--purple-light) 0%, var(--purple) 100%);
  --grad-green: linear-gradient(135deg, var(--green-light) 0%, var(--green) 100%);
  --grad-gold:  linear-gradient(135deg, #ffc94d 0%, var(--gold) 100%);

  /* UI */
  --radius:   16px;
  --radius-sm:10px;
  --shadow:   0 10px 30px rgba(16,40,70,.08);
  --shadow-lg:0 20px 50px rgba(16,40,70,.14);
  --maxw: 1140px;
  --pad: clamp(1rem, 4vw, 2rem);

  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

/* ----------------------------- Base ------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 2px; border-radius: 6px; }

/* ----------------------------- Buttons ---------------------------------- */
.btn {
  --b: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 800; font-size: 1rem;
  padding: .72rem 1.3rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn.full { width: 100%; }
.btn.big { font-size: 1.15rem; padding: .95rem 2rem; }

.btn-donate { background: var(--grad-gold); color: #4a2d00; box-shadow: 0 8px 20px rgba(242,169,0,.35); }
.btn-purple { background: var(--grad-purple); color: #fff; box-shadow: 0 8px 20px rgba(146,39,143,.3); }
.btn-blue   { background: var(--grad-blue); color: #fff; }
.btn-outline{ background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-ghost  { background: rgba(255,255,255,.0); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--mist); }
.btn-light  { background: #fff; color: var(--purple); box-shadow: var(--shadow-lg); }

/* ----------------------------- Header ----------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand:hover { text-decoration: none; }
.brand-logo { height: 46px; width: auto; }
.brand-name { font-weight: 900; font-size: 1.5rem; letter-spacing: -.02em; color: var(--blue); }
.brand-name span { color: var(--purple); }

.primary-nav ul { list-style: none; display: flex; align-items: center; gap: .35rem; margin: 0; padding: 0; }
.primary-nav a { color: var(--ink); font-weight: 700; padding: .5rem .7rem; border-radius: 8px; }
.primary-nav a:hover { background: var(--mist-2); text-decoration: none; }
.nav-cta { color: #4a2d00; }
.nav-cta:hover { background: var(--grad-gold); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* -------------------------- Preview banner ------------------------------ */
.preview-banner {
  background: var(--ink); color: #fff; font-weight: 700; font-size: .9rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: .4rem 1rem; padding: .55rem var(--pad); text-align: center;
}
.preview-banner strong { color: var(--gold); }
.preview-banner a { color: #fff; text-decoration: underline; font-weight: 800; white-space: nowrap; }
.preview-banner a:hover { color: var(--gold); }

/* ------------------------------ Hero ------------------------------------ */
.hero { position: relative; background: var(--grad-brand); color: #fff; padding: clamp(2.2rem, 6vw, 4.5rem) 0 5rem; overflow: hidden; }

/* Coming-soon variant: single centered column */
.hero.hero--center { text-align: center; padding-top: clamp(2.5rem, 7vw, 5rem); }
.hero.hero--center .container { position: relative; z-index: 2; max-width: 760px; }
.hero.hero--center .hero-actions,
.hero.hero--center .hero-social { justify-content: center; }
.hero.hero--center .hero-mission { margin-inline: auto; }
.cs-logo { height: auto; width: clamp(110px, 22vw, 150px); margin: 0 auto 1.2rem; background: #fff; padding: 12px 16px; border-radius: 18px; box-shadow: var(--shadow-lg); }
.cs-message { font-size: 1.1rem; color: #eaf4ff; max-width: 48ch; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; opacity: .18; background: #fff; pointer-events: none;
}
.hero::before { width: 380px; height: 380px; top: -120px; right: -80px; }
.hero::after  { width: 260px; height: 260px; bottom: -120px; left: -60px; opacity: .12; }
.hero-grid { position: relative; z-index: 2; display: grid; gap: 2.2rem; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .8rem; color: #d7ecff; margin: 0 0 .6rem; }
.hero-title { font-family: var(--serif); font-weight: 700; font-size: clamp(2.1rem, 6vw, 3.6rem); letter-spacing: -.01em; }
.hero-tagline { font-size: clamp(1.15rem, 3vw, 1.5rem); font-weight: 800; color: #ffe39a; margin: .2rem 0 1rem; }
.hero-mission { font-size: 1.05rem; max-width: 46ch; color: #eaf4ff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0 1.2rem; }
/* On the colored hero, outline/ghost buttons need white treatment for contrast */
.hero-actions .btn-outline { color: #fff; border-color: rgba(255,255,255,.85); }
.hero-actions .btn-outline:hover { background: #fff; color: var(--purple); border-color: #fff; }
.hero-actions .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,.2); }
.hero-social { display: flex; align-items: center; gap: .6rem; font-weight: 700; color: #dcefff; font-size: .95rem; }
.soc {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.16); color: #fff; font-weight: 800; font-size: 1rem; line-height: 1;
}
.soc:hover { background: #fff; color: var(--purple); text-decoration: none; transform: translateY(-2px); transition: .15s; }

/* Hero collage */
.hero-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-collage .tile {
  position: relative; min-height: 130px; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); display: flex; align-items: flex-end; padding: .8rem;
}
.hero-collage .tile span {
  position: relative; z-index: 2; color: #fff; font-weight: 800; font-size: .95rem;
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
.hero-collage .tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.45)); }
.tile-coop    { background: var(--grad-gold); }
.tile-garden  { background: var(--grad-green); }
.tile-stem    { background: var(--grad-blue); }
.tile-harvest { background: var(--grad-purple); }
.hero-collage .tile-garden { transform: translateY(18px); }
.hero-collage .tile-harvest{ transform: translateY(18px); }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: 60px;
  background: var(--white);
  -webkit-mask: radial-gradient(80px 60px at 50% 0, transparent 98%, #000) repeat-x;
  mask: radial-gradient(80px 60px at 50% 0, transparent 98%, #000) repeat-x;
  -webkit-mask-size: 160px 60px; mask-size: 160px 60px; display: none;
}

/* ------------------------------ Sections -------------------------------- */
.section { padding: clamp(2.6rem, 6vw, 4.5rem) 0; }
.section-tint { background: var(--mist); }
.section-title { font-family: var(--serif); font-weight: 700; font-size: clamp(1.7rem, 4vw, 2.5rem); text-align: center; }
.section-title.light { color: #fff; }
.section-sub { text-align: center; color: var(--slate); max-width: 60ch; margin: 0 auto 2.2rem; font-size: 1.05rem; }
.center-cta { text-align: center; margin-top: 1.8rem; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Card primitives */
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-title { font-family: var(--serif); font-size: 1.5rem; }
.card-sub { color: var(--slate); }

/* Decorative round icon badge */
.ibadge {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; margin-bottom: .9rem; flex: none;
}
.ibadge svg { width: 28px; height: 28px; }
.ic-blue { background: var(--grad-blue); }
.ic-green{ background: var(--grad-green); }
.ic-purple{ background: var(--grad-purple); }
.ic-gold { background: var(--grad-gold); color: #4a2d00; }

/* ------------------------------ Impact ---------------------------------- */
.impact-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.impact-card { text-align: center; padding: 1.4rem 1rem; }
.impact-card .ibadge { margin: 0 auto .8rem; }
.impact-value { font-family: var(--serif); font-weight: 700; font-size: clamp(1.35rem, 3.4vw, 1.75rem); color: var(--blue); line-height: 1.1; }
.impact-label { font-weight: 800; margin-top: .35rem; }
.impact-note { color: var(--slate); font-size: .9rem; margin: .25rem 0 0; }

/* ------------------------------ Updates --------------------------------- */
.updates-grid { display: grid; gap: 1.1rem; }
.update-card { display: flex; flex-direction: column; }
.update-meta { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.tag { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  color: #fff; background: var(--blue); padding: .2rem .55rem; border-radius: 999px; }
.tag.Garden { background: var(--green); }
.tag.STEM   { background: var(--purple); }
.tag.Coop   { background: var(--gold); color: #4a2d00; }
.tag.Event  { background: var(--blue-light); }
.tag.News   { background: var(--slate); }
.update-date { color: var(--slate); font-size: .85rem; font-weight: 700; }
.update-card h3 { font-size: 1.2rem; }
.update-card p { color: var(--slate); margin: 0; }

/* ------------------------------ Programs -------------------------------- */
.programs-grid { display: grid; gap: 1.1rem; }
.program-card h3 { font-size: 1.25rem; }
.program-card p { color: var(--slate); margin: 0; }

/* ----------------------------- Photo grid ------------------------------- */
.photo-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.photo {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow); background: var(--mist-2);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption {
  position: absolute; inset: auto 0 0 0; padding: .9rem .8rem .6rem;
  color: #fff; font-weight: 700; font-size: .85rem;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55));
}
.photo.ph-coop{background:var(--grad-gold);} .photo.ph-garden{background:var(--grad-green);}
.photo.ph-stem{background:var(--grad-blue);} .photo.ph-harvest{background:var(--grad-purple);}
.photo.ph-youth{background:var(--grad-blue);} .photo.ph-community{background:var(--grad-purple);}
.photo.ph-water{background:linear-gradient(135deg,#43c6e8,#1b7fb0);} .photo.ph-sun{background:var(--grad-gold);}
.photo .ph-mark { position: absolute; inset: 0; display: grid; place-items: center; opacity: .9; }
.photo .ph-mark svg { width: 46px; height: 46px; color: #fff; }

/* ------------------------------ Videos ---------------------------------- */
.video-featured { margin-bottom: 1.4rem; }
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #0c1c28; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-ph { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-align: center; background: var(--grad-brand); }
.video-ph .play { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--purple); display: grid; place-items: center; margin: 0 auto .6rem; font-size: 1.4rem; }
.video-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.video-card .video-embed { aspect-ratio: 16/9; margin-bottom: .7rem; }
.video-card h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
.video-card p { color: var(--slate); font-size: .9rem; margin: 0; }
.video-featured h3 { font-family: var(--serif); font-size: 1.4rem; margin: .8rem 0 .2rem; }
.video-featured p { color: var(--slate); }

/* ------------------------------ Events ---------------------------------- */
.events-list { display: grid; gap: 1rem; }
.event-card { display: grid; grid-template-columns: 84px 1fr; gap: 1.1rem; align-items: center; padding: 1.1rem 1.2rem; }
.event-date { background: var(--grad-brand); color: #fff; border-radius: var(--radius-sm); text-align: center; padding: .6rem .2rem; }
.event-date .mon { display: block; font-weight: 800; text-transform: uppercase; font-size: .8rem; letter-spacing: .08em; }
.event-date .day { display: block; font-family: var(--serif); font-weight: 700; font-size: 1.7rem; line-height: 1; }
.event-body h3 { font-size: 1.2rem; margin: 0 0 .25rem; }
.event-meta { color: var(--slate); font-size: .9rem; font-weight: 700; margin: 0 0 .35rem; display: flex; flex-wrap: wrap; gap: .2rem .9rem; }
.event-body p { color: var(--slate); margin: 0 0 .6rem; }

/* ----------------------------- Sponsors --------------------------------- */
.sponsor-tier { margin-bottom: 2rem; }
.sponsor-tier h3 { font-family: var(--serif); font-size: 1.5rem; text-align: center; }
.sponsor-tier .tier-blurb { text-align: center; color: var(--slate); margin: 0 auto 1.2rem; max-width: 50ch; }
.sponsor-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.sponsor-card { padding: 1.1rem; text-align: center; }
.sponsor-logo { height: 60px; display: grid; place-items: center; margin-bottom: .6rem; }
.sponsor-logo img { max-height: 60px; width: auto; }
.sponsor-logo .placeholder {
  font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--blue);
  background: var(--mist); border: 1px dashed var(--line); border-radius: 10px;
  padding: .5rem .9rem; width: 100%;
}
.sponsor-card h4 { margin: 0 0 .2rem; font-size: 1.05rem; }
.sponsor-card p { color: var(--slate); font-size: .9rem; margin: 0; }
.sponsor-cta { padding: 1.4rem; text-align: center; margin-top: 1rem; }
.sponsor-cta p { font-weight: 700; margin: 0 0 .9rem; font-size: 1.1rem; }

/* ------------------------------- Needs ---------------------------------- */
.needs-grid { display: grid; gap: .9rem; grid-template-columns: 1fr; }
.need-card { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; position: relative; }
.need-card .ibadge { width: 44px; height: 44px; border-radius: 12px; margin: 0; }
.need-card .ibadge svg { width: 24px; height: 24px; }
.need-card h4 { margin: 0 0 .1rem; font-size: 1.05rem; }
.need-card p { margin: 0; color: var(--slate); font-size: .9rem; }
.need-flag { position: absolute; top: .7rem; right: .8rem; font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em; color: #8a3b00; background: #ffe7b3;
  padding: .15rem .5rem; border-radius: 999px; }
.needs-cta { padding: 1.4rem; text-align: center; margin-top: 1.4rem; }
.needs-cta p { font-weight: 700; margin: 0 0 .9rem; font-size: 1.1rem; }

/* ------------------------------ Future ---------------------------------- */
.future-grid { display: grid; gap: 1.1rem; }
.future-card { position: relative; }
.future-card .status { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; color: var(--purple); background: #f4e6f3; padding: .2rem .55rem; border-radius: 999px; margin-bottom: .6rem; }
.future-card h3 { font-size: 1.15rem; }
.future-card p { color: var(--slate); margin: 0; }

/* ----------------------------- Volunteer -------------------------------- */
.volunteer-grid { display: grid; gap: 1.1rem; }
.vol-card { text-align: center; }
.vol-card .ibadge { margin: 0 auto .8rem; }
.vol-card h3 { font-size: 1.15rem; }
.vol-card p { color: var(--slate); }

/* ------------------------- Forms (connect band) ------------------------- */
.section-band { background: var(--grad-brand); color: #fff; }
.connect-grid { display: grid; gap: 1.4rem; }
.form-card { color: var(--ink); }
.yf-form .field { margin-bottom: .9rem; }
.yf-form label, .yf-form legend { display: block; font-weight: 800; font-size: .9rem; margin-bottom: .3rem; }
.yf-form input, .yf-form select, .yf-form textarea {
  width: 100%; font: inherit; padding: .65rem .8rem; border: 1.5px solid var(--line);
  border-radius: var(--radius-sm); background: #fff; color: var(--ink);
}
.yf-form input:focus, .yf-form select:focus, .yf-form textarea:focus { border-color: var(--blue-light); outline: none; }
.yf-form textarea { resize: vertical; }
.interests { border: 0; padding: 0; margin: 0 0 1rem; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem .8rem; }
.checks label { display: flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .92rem; margin: 0; }
.checks input { width: auto; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile:empty { display: none; }
.cf-turnstile { margin: 0 0 .8rem; }
.form-status { font-weight: 700; min-height: 1.2em; margin: .6rem 0 0; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #c0392b; }

/* ------------------------------ Donate ---------------------------------- */
.donate-section { background: var(--grad-purple); color: #fff; text-align: center; }
.donate-inner { max-width: 680px; }
.donate-text { font-size: 1.15rem; color: #f7e9f6; }
.donate-note { margin-top: 1.1rem; color: #f0d8ee; font-size: .95rem; }
.donate-note a { color: #fff; text-decoration: underline; }

/* ------------------------------ Footer ---------------------------------- */
.site-footer { background: var(--ink); color: #cdd9e1; padding-top: 2.6rem; }
.footer-grid { display: grid; gap: 1.6rem; grid-template-columns: 1fr; padding-bottom: 1.6rem; }
.footer-brand img { background: #fff; padding: 10px 14px; border-radius: 12px; margin-bottom: .8rem; }
.footer-mission { color: #9fb3bf; max-width: 32ch; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: .7rem; }
.footer-col p { margin: 0 0 .4rem; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: .4rem; }
.footer-links a, .footer-col a { color: #cdd9e1; }
.footer-links a:hover, .footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: .5rem; margin-bottom: 1rem; }
.footer-donate { margin-top: .2rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem;
  border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.1rem; font-size: .85rem; color: #93a6b2; }
.footer-legal a { color: #93a6b2; }
.footer-legal a:hover { color: #fff; }

/* ============================ Breakpoints ================================ */
@media (min-width: 640px) {
  .updates-grid { grid-template-columns: 1fr 1fr; }
  .programs-grid { grid-template-columns: 1fr 1fr; }
  .future-grid { grid-template-columns: 1fr 1fr; }
  .volunteer-grid { grid-template-columns: 1fr 1fr; }
  .needs-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
  .connect-grid { grid-template-columns: 1fr 1fr; }
  .hero-wave { display: block; }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 3rem; }
  .impact-grid { grid-template-columns: repeat(4, 1fr); }
  .programs-grid { grid-template-columns: repeat(3, 1fr); }
  .future-grid { grid-template-columns: repeat(4, 1fr); }
  .volunteer-grid { grid-template-columns: repeat(4, 1fr); }
  .needs-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-grid { grid-template-columns: repeat(4, 1fr); }
  .updates-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(4, 1fr); }
  .sponsor-grid { grid-template-columns: repeat(3, 1fr); }
  .video-featured { max-width: 860px; margin-inline: auto; margin-bottom: 1.8rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (min-width: 1100px) {
  .updates-grid { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------- Mobile nav --------------------------------- */
@media (max-width: 899px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s ease; box-shadow: var(--shadow);
  }
  .primary-nav.open { max-height: 80vh; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .5rem var(--pad) 1rem; }
  .primary-nav li { width: 100%; }
  .primary-nav a { display: block; padding: .8rem .5rem; border-radius: 8px; }
  .nav-cta { text-align: center; margin-top: .4rem; }
}

/* --------------------------- Reduced motion ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* ------------------------------ Reveal ---------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* =============================================================================
   Pre-launch components (Coming Soon homepage)
   ========================================================================== */

/* YMCA positioning badge (hero + reusable) */
.ymca-badge {
  display: inline-block; font-weight: 800; font-size: .78rem; letter-spacing: .04em;
  text-transform: uppercase; color: #fff; background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.35); padding: .3rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.footer-prog { color: #9fb3bf; font-weight: 700; font-size: .82rem; margin: .2rem 0 0; }

/* ---- Launch status ----------------------------------------------------- */
.launch-panel { padding: clamp(1.4rem, 3vw, 2.2rem); }
.launch-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.launch-head h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3.5vw, 2rem); margin: 0; }
.launch-target {
  display: inline-flex; flex-direction: column; line-height: 1.15; text-align: center;
  background: var(--grad-green); color: #fff; padding: .55rem 1.1rem; border-radius: 14px;
  box-shadow: 0 8px 20px rgba(79,157,46,.3);
}
.launch-target .lt-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; opacity: .95; }
.launch-target .lt-value { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; }
.launch-grid { display: grid; gap: .8rem; grid-template-columns: 1fr; margin-bottom: 1.2rem; }
.launch-check { display: flex; align-items: center; gap: .7rem; font-weight: 700; }
.launch-check .ck {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-green); color: #fff;
}
.launch-check .ck svg { width: 17px; height: 17px; }
.launch-note { color: var(--slate); margin: 0; max-width: 70ch; }

/* ---- Roadmap timeline -------------------------------------------------- */
.timeline { display: grid; gap: 1.1rem; grid-template-columns: 1fr; position: relative; }
.tl-phase { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.4rem 1.2rem; text-align: center; position: relative; }
.tl-num {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto .8rem;
  background: var(--grad-brand); color: #fff; font-family: var(--serif); font-weight: 700; font-size: 1.5rem;
  box-shadow: var(--shadow);
}
.tl-phase .tl-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--purple); }
.tl-phase h3 { font-size: 1.1rem; margin: .15rem 0 0; }
.tl-launch { text-align: center; margin-top: 1.6rem; }

/* ---- Founding supporters ----------------------------------------------- */
.founding { text-align: center; padding: clamp(1.6rem, 4vw, 2.6rem); }
.founding h2 { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.3rem); }
.founding p { color: var(--slate); max-width: 64ch; margin: 0 auto 1.4rem; font-size: 1.05rem; }
.founding .btn-row { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: center; }

/* ---- CampYMCA cross-promotion ------------------------------------------ */
.crosspromo { background: var(--grad-blue); color: #fff; text-align: center; border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.8rem); box-shadow: var(--shadow-lg); }
.crosspromo h2 { font-family: var(--serif); color: #fff; font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.crosspromo p { color: #eaf6ff; max-width: 60ch; margin: 0 auto 1.4rem; font-size: 1.05rem; }

@media (min-width: 640px) {
  .launch-grid { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, 1fr); }
  /* connector arrows between phases on desktop */
  .timeline .tl-phase:not(:last-child)::after {
    content: ""; position: absolute; top: 44px; right: -0.85rem; width: 1.1rem; height: 2px;
    background: var(--line); z-index: 1;
  }
}
