/* ==========================================================================
   IDE SMILEZ Public-Health Foundation — Design System
   Positioning: a national preventive oral-health movement, not a clinic site.
   Palette derived from the brand mark: navy + forest green, saffron sun,
   leaf green, teal wave.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --navy-900: #081A44;
  --navy-800: #0C2A5A;
  --navy-700: #123A7A; /* primary */
  --navy-600: #1B4A97;
  --navy-100: #E6EDF9;

  --green-800: #10471F;
  --green-700: #1B6B2E; /* secondary */
  --green-600: #2A8B3C;
  --green-500: #3FA535;
  --green-100: #E6F4E8;

  --saffron: #F58220;
  --amber: #FBB040;
  --amber-100: #FEF2E0;
  --teal: #17A9A2;
  --teal-100: #E2F6F5;

  /* Neutrals */
  --ink: #0F1B2D;
  --body: #41506A;
  --muted: #6E7C93;
  --line: #E3E9F2;
  --line-soft: #EFF3F9;
  --bg: #FFFFFF;
  --bg-soft: #F6F9FD;
  --bg-tint: #EDF3FB;

  /* Type */
  --font-display: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-xs: 0.78rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --fs-3xl: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  --fs-4xl: clamp(2.4rem, 1.5rem + 4vw, 4.25rem);

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Shape */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(8, 26, 68, 0.06), 0 2px 6px rgba(8, 26, 68, 0.05);
  --shadow-md: 0 6px 18px rgba(8, 26, 68, 0.08), 0 2px 6px rgba(8, 26, 68, 0.05);
  --shadow-lg: 0 22px 50px rgba(8, 26, 68, 0.14);

  --container: 1180px;
  --header-h: 76px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--sp-4);
  font-weight: 800;
}
h1 { font-size: var(--fs-4xl); letter-spacing: -0.035em; }
h2 { font-size: var(--fs-3xl); letter-spacing: -0.03em; }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p  { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--navy-700); }

img, svg, video { max-width: 100%; display: block; }
ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.15rem; }
li { margin-bottom: var(--sp-2); }
li:last-child { margin-bottom: 0; }

hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp-6) 0; }

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--amber); color: var(--navy-900); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy-700); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r-sm) 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }
.container--narrow { max-width: 820px; }
.container--wide { max-width: 1340px; }

.section { padding-block: var(--sp-9); }
.section--tight { padding-block: var(--sp-8); }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }
.section--navy { background: var(--navy-800); color: rgba(255,255,255,.82); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--auto-sm { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--sp-8); align-items: center; }
.split--reverse > *:first-child { order: 2; }

.stack > * + * { margin-top: var(--sp-4); }
.center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-6 { margin-top: var(--sp-6); }
.mt-5 { margin-top: var(--sp-5); }
.mb-0 { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   4. Typography helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-xs); font-weight: 800;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: ""; width: 26px; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, var(--saffron), var(--amber));
}
.eyebrow--light { color: var(--amber); }

.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--body); }
.section-head { max-width: 760px; margin-bottom: var(--sp-7); }
.section-head.center { margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.tiny { font-size: var(--fs-xs); }
.accent { color: var(--green-700); }
.accent-saffron { color: var(--saffron); }

.underline-brush {
  background-image: linear-gradient(90deg, var(--amber), var(--saffron));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% 0.30em;
  padding: 0 2px;
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-base);
  padding: 0.82rem 1.5rem; border-radius: var(--r-pill);
  border: 2px solid transparent; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
  text-align: center; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--navy-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--navy-800); color: #fff; box-shadow: var(--shadow-md); }

.btn--donate { background: linear-gradient(135deg, var(--saffron), var(--amber)); color: var(--navy-900); box-shadow: 0 4px 14px rgba(245,130,32,.32); }
.btn--donate:hover { color: var(--navy-900); box-shadow: 0 8px 22px rgba(245,130,32,.42); }

.btn--green { background: var(--green-700); color: #fff; }
.btn--green:hover { background: var(--green-800); color: #fff; }

.btn--outline { background: transparent; color: var(--navy-700); border-color: var(--line); }
.btn--outline:hover { border-color: var(--navy-700); color: var(--navy-700); background: var(--navy-100); }

.btn--ghost-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.42); }
.btn--ghost-light:hover { background: rgba(255,255,255,.2); color: #fff; }

.btn--white { background: #fff; color: var(--navy-700); }
.btn--white:hover { color: var(--navy-800); }

.btn--sm { padding: 0.55rem 1.05rem; font-size: var(--fs-sm); }
.btn--lg { padding: 1rem 1.9rem; font-size: var(--fs-md); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.btn-row.center { justify-content: center; }

.link-arrow {
  font-family: var(--font-display); font-weight: 700; color: var(--navy-700);
  display: inline-flex; align-items: center; gap: 6px;
}
.link-arrow::after { content: "→"; transition: transform .18s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Header / navigation
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy-900); color: rgba(255,255,255,.78);
  font-size: var(--fs-xs); letter-spacing: .01em;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 38px; flex-wrap: wrap; }
.topbar a { color: rgba(255,255,255,.9); }
.topbar a:hover { color: var(--amber); }
.topbar__tagline { display: inline-flex; align-items: center; gap: var(--sp-3); font-weight: 600; }
.topbar__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--green-500); }
.topbar__links { display: flex; align-items: center; gap: var(--sp-4); }

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: box-shadow .2s ease;
}
.site-header.is-stuck { box-shadow: var(--shadow-md); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
/* Sized by height, not a square box — the mark is wider than it is tall. */
.brand img, .brand svg { height: 58px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; letter-spacing: -0.02em; color: var(--navy-700); }
.brand__name em { font-style: normal; color: var(--green-700); }
.brand__sub { font-size: 0.62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav__link {
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  color: var(--ink); padding: 0.55rem 0.55rem; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
}
.nav__link:hover, .nav__link.is-active { color: var(--navy-700); background: var(--navy-100); }
.nav__link.is-active { font-weight: 800; }

.nav__item { position: relative; }
/* "Home" lives in the drawer only — on desktop the logo is the home link,
   and dropping it is what lets the other eight items fit on one row. */
.nav__item--mobile-only { display: none; }
.nav__caret { width: 9px; height: 9px; transition: transform .18s ease; }
.nav__item.is-open .nav__caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-6px);
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: var(--sp-3);
  width: 560px; opacity: 0; visibility: hidden; transition: opacity .16s ease, transform .16s ease, visibility .16s;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
}
.nav__item.is-open .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown__link { display: flex; gap: var(--sp-3); align-items: center; padding: 0.6rem 0.7rem; border-radius: var(--r-sm); }
.dropdown__link:hover { background: var(--bg-soft); }
.dropdown__ico { font-size: 1.15rem; line-height: 1; flex-shrink: 0; }
.dropdown__title { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--ink); display: block; }
.dropdown__desc { font-size: 0.75rem; color: var(--muted); display: block; line-height: 1.35; }

.header-cta { display: flex; align-items: center; gap: var(--sp-2); flex-shrink: 0; }

/* Drawer-only CTAs — the desktop header has its own pair. */
.nav__mobile-cta { display: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: var(--r-sm); cursor: pointer;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--navy-700); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.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); }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--green-800) 130%);
  color: rgba(255,255,255,.85);
  padding-block: var(--sp-9) var(--sp-8);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 -1px 0; height: 90px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' d='M0,60 C240,95 420,10 720,38 C1020,66 1200,95 1440,52 L1440,90 L0,90 Z'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  pointer-events: none;
}
.hero__glow {
  position: absolute; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251,176,64,.28), transparent 62%);
  top: -220px; right: -160px; pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: var(--sp-8); align-items: center; }
.hero h1 { color: #fff; margin-bottom: var(--sp-5); }
.hero__sub { font-size: var(--fs-lg); color: rgba(255,255,255,.82); max-width: 34ch; margin-bottom: var(--sp-6); }
.hero .btn-row { margin-bottom: var(--sp-6); }

.hero__badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24);
  color: #fff; padding: 6px 14px 6px 8px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em; margin-bottom: var(--sp-5);
}
.hero__badge b { background: var(--green-500); color: #062812; padding: 2px 9px; border-radius: var(--r-pill); font-size: 0.68rem; letter-spacing: .08em; }

.hero__trust { display: flex; flex-wrap: wrap; gap: var(--sp-5); font-size: var(--fs-sm); color: rgba(255,255,255,.7); }
.hero__trust div { display: flex; align-items: center; gap: 8px; }
.hero__trust strong { color: #fff; font-family: var(--font-display); }

/* Media frame — drop the hero reel or a photo collage in here */
.media-frame {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(150deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
}
.media-frame video, .media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame__placeholder {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--sp-3);
  color: rgba(255,255,255,.75); text-align: center; padding: var(--sp-5);
}
.media-frame__play {
  width: 66px; height: 66px; border-radius: 50%;
  background: rgba(255,255,255,.94); color: var(--navy-700);
  display: grid; place-items: center; font-size: 1.4rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.28);
}
.media-frame__note { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }

.media-frame--flat { aspect-ratio: 16/10; background: var(--bg-tint); border: 1px dashed #B9CBE4; box-shadow: none; }
.media-frame--flat .media-frame__placeholder { color: var(--muted); }
.media-frame--flat .media-frame__play { background: var(--navy-700); color: #fff; box-shadow: var(--shadow-md); }
.media-frame--square { aspect-ratio: 1; }
.media-frame--tall { aspect-ratio: 3/4; }

/* --------------------------------------------------------------------------
   8. Page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero {
  background: linear-gradient(140deg, var(--navy-800), var(--navy-700) 70%, var(--green-800));
  color: rgba(255,255,255,.82);
  padding-block: var(--sp-8) var(--sp-8);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(23,169,162,.3), transparent 65%);
  bottom: -260px; left: -120px;
}
.page-hero__inner { position: relative; z-index: 2; max-width: 780px; }
.page-hero h1 { color: #fff; font-size: var(--fs-3xl); margin-bottom: var(--sp-4); }
.page-hero p { font-size: var(--fs-lg); color: rgba(255,255,255,.8); margin-bottom: 0; }
.page-hero .btn-row { margin-top: var(--sp-6); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-xs); color: rgba(255,255,255,.6); margin-bottom: var(--sp-4); }
.breadcrumb a { color: rgba(255,255,255,.82); }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb span::after { content: "/"; margin-left: 8px; opacity: .5; }
.breadcrumb span:last-child::after { content: ""; }

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-5); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex; flex-direction: column;
}
.card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--navy-100); }
.card h3 { margin-bottom: var(--sp-2); }
.card p { font-size: var(--fs-base); }
.card__foot { margin-top: auto; padding-top: var(--sp-4); }

.card-ico {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: grid; place-items: center; font-size: 1.5rem; margin-bottom: var(--sp-4);
  background: var(--navy-100); color: var(--navy-700);
}
.card-ico--green { background: var(--green-100); }
.card-ico--amber { background: var(--amber-100); }
.card-ico--teal  { background: var(--teal-100); }

.program-card { position: relative; overflow: hidden; }
.program-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: linear-gradient(180deg, var(--saffron), var(--green-500));
  opacity: 0; transition: opacity .18s ease;
}
.program-card:hover::before { opacity: 1; }
.program-card__tag {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-700); margin-bottom: var(--sp-2); display: block;
}

.pillar {
  background: #fff; border-radius: var(--r-lg); padding: var(--sp-5);
  border: 1px solid var(--line); position: relative;
}
.pillar__num {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 800;
  color: var(--navy-100); line-height: 1; margin-bottom: var(--sp-2);
}

/* Stat cards / impact counters */
/* Divider lines come from each tile's outline rather than the container's
   background, so a row that does not fill completely (7 stats across 6 columns)
   leaves white space instead of a grey void. */
.stat-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.stat {
  background: #fff; padding: var(--sp-5) var(--sp-4); text-align: center;
  outline: 1px solid var(--line);
}
.stat__num {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 1.2rem + 2vw, 2.7rem);
  color: var(--navy-700); line-height: 1; letter-spacing: -0.03em;
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
}
.stat__num .suffix { font-size: 0.55em; color: var(--saffron); }
.stat__label { font-size: var(--fs-sm); color: var(--muted); margin-top: var(--sp-2); font-weight: 600; }
.stat--onnavy { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-lg); outline: 0; }
.stat--onnavy .stat__num { color: #fff; }
.stat--onnavy .stat__label { color: rgba(255,255,255,.7); }
.stat-band--onnavy { background: transparent; border: 0; gap: var(--sp-4); }

/* Story / blog / resource cards */
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tile__media { aspect-ratio: 16/10; background: var(--bg-tint); position: relative; display: grid; place-items: center; color: var(--muted); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile__ph { font-size: 2rem; opacity: .5; }
.tile__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.tile__meta { font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: var(--sp-2); }
.tile__body h3 { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.tile__body p { font-size: var(--fs-base); }
.tile__foot { margin-top: auto; padding-top: var(--sp-4); }

.badge {
  display: inline-block; padding: 4px 11px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .04em;
  background: var(--green-100); color: var(--green-800);
}
.badge--amber { background: var(--amber-100); color: #8A4A05; }
.badge--navy { background: var(--navy-100); color: var(--navy-700); }
.badge--teal { background: var(--teal-100); color: #0A5F5B; }

/* --------------------------------------------------------------------------
   10. Impact map (tile cartogram of India)
   -------------------------------------------------------------------------- */
.map-wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: var(--sp-7); align-items: start; }

.cartogram {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
}
.cartogram__cell {
  aspect-ratio: 1; border-radius: var(--r-sm);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 0.62rem; font-weight: 800;
  border: 1px solid transparent; cursor: pointer;
  background: #E7EDF6; color: #8C9AB0;
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
  padding: 0;
}
.cartogram__cell:hover, .cartogram__cell.is-selected { transform: scale(1.12); box-shadow: var(--shadow-md); z-index: 2; }
.cartogram__cell.is-selected { outline: 2px solid var(--navy-900); outline-offset: 1px; }
.cartogram__cell[data-tier="0"] { background: #E7EDF6; color: #94A3B8; }
.cartogram__cell[data-tier="1"] { background: #CFE6D3; color: #14522A; }
.cartogram__cell[data-tier="2"] { background: #8FD09B; color: #0E3F1E; }
.cartogram__cell[data-tier="3"] { background: #3FA535; color: #fff; }
.cartogram__cell[data-tier="4"] { background: var(--green-800); color: #fff; }

.map-legend { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-4); font-size: var(--fs-xs); color: var(--muted); }
.map-legend__scale { display: flex; gap: 3px; }
.map-legend__swatch { width: 26px; height: 12px; border-radius: 3px; }

.map-detail { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); position: sticky; top: calc(var(--header-h) + 20px); }
.map-detail__state { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); color: var(--ink); margin-bottom: var(--sp-1); }
.map-detail__rows { display: grid; gap: var(--sp-2); margin-top: var(--sp-4); }
.map-detail__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); padding-bottom: var(--sp-2); border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); }
.map-detail__row b { font-family: var(--font-display); color: var(--navy-700); font-size: var(--fs-md); }

/* --------------------------------------------------------------------------
   11. Timeline
   -------------------------------------------------------------------------- */
.timeline { position: relative; padding-left: var(--sp-6); }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, var(--saffron), var(--green-500), var(--teal)); border-radius: 2px; }
.timeline__item { position: relative; padding-bottom: var(--sp-6); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: calc(-1 * var(--sp-6) + 1px); top: 6px;
  width: 14px; height: 14px; border-radius: 50%; background: #fff;
  border: 3px solid var(--navy-700);
}
.timeline__year { font-family: var(--font-display); font-weight: 800; color: var(--saffron); font-size: var(--fs-sm); letter-spacing: .06em; }
.timeline__item h4 { margin: 4px 0 6px; }

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); color: var(--ink); }
.field label .req { color: #C1121F; }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }

.input, .select, .textarea {
  width: 100%; font-family: var(--font-body); font-size: var(--fs-base); color: var(--ink);
  padding: 0.72rem 0.9rem; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(27,74,151,.12);
}
.textarea { min-height: 130px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%236E7C93' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; padding-right: 38px; }

.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: #C1121F; box-shadow: 0 0 0 4px rgba(193,18,31,.1); }
.error-msg { color: #C1121F; font-size: var(--fs-xs); font-weight: 600; display: none; }
.error-msg.is-visible { display: block; }

/* Radio / checkbox cards */
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-3); }
.choice {
  position: relative; display: flex; align-items: center; gap: var(--sp-3);
  padding: 0.85rem 1rem; border: 1.5px solid var(--line); border-radius: var(--r-md);
  cursor: pointer; background: #fff; transition: border-color .15s ease, background .15s ease;
  font-family: var(--font-display); font-weight: 600; font-size: var(--fs-sm); color: var(--ink);
}
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice__ico { font-size: 1.15rem; }
.choice:hover { border-color: var(--navy-600); }
.choice:has(input:checked) { border-color: var(--navy-700); background: var(--navy-100); box-shadow: 0 0 0 3px rgba(18,58,122,.1); }
.choice:has(input:focus-visible) { outline: 3px solid var(--saffron); outline-offset: 2px; }

.check-row { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-sm); }
.check-row input { margin-top: 5px; width: 17px; height: 17px; accent-color: var(--navy-700); flex-shrink: 0; }

.form-note { background: var(--bg-soft); border-left: 3px solid var(--saffron); padding: var(--sp-4); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: var(--fs-sm); }

.form-success {
  display: none; background: var(--green-100); border: 1px solid var(--green-500);
  border-radius: var(--r-md); padding: var(--sp-5); text-align: center;
}
.form-success.is-visible { display: block; }
.form-success h3 { color: var(--green-800); }

.fieldset { border: 0; padding: 0; margin: 0 0 var(--sp-5); }
.fieldset legend { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-base); color: var(--ink); padding: 0; margin-bottom: var(--sp-3); display: flex; align-items: center; gap: var(--sp-3); }
.fieldset legend .step-dot {
  width: 26px; height: 26px; border-radius: 50%; background: var(--navy-700); color: #fff;
  display: grid; place-items: center; font-size: var(--fs-xs);
}

/* Donation amount picker */
.amount-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: var(--sp-3); }
.amount {
  position: relative; text-align: center; padding: var(--sp-4) var(--sp-2);
  border: 1.5px solid var(--line); border-radius: var(--r-md); cursor: pointer; background: #fff;
  transition: all .15s ease;
}
.amount input { position: absolute; opacity: 0; }
.amount__value { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-lg); color: var(--ink); display: block; }
.amount__what { font-size: var(--fs-xs); color: var(--muted); line-height: 1.3; display: block; margin-top: 3px; }
.amount:hover { border-color: var(--green-600); }
.amount:has(input:checked) { border-color: var(--green-700); background: var(--green-100); }

.toggle-group { display: inline-flex; background: var(--bg-tint); padding: 4px; border-radius: var(--r-pill); gap: 3px; }
.toggle-group label { position: relative; }
.toggle-group input { position: absolute; opacity: 0; }
.toggle-group span {
  display: block; padding: 0.5rem 1.15rem; border-radius: var(--r-pill); cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); color: var(--muted);
}
.toggle-group label:has(input:checked) span { background: #fff; color: var(--navy-700); box-shadow: var(--shadow-sm); }

/* --------------------------------------------------------------------------
   13. Accordion / FAQ
   -------------------------------------------------------------------------- */
.accordion { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.accordion__item + .accordion__item { border-top: 1px solid var(--line); }
.accordion__btn {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: var(--sp-4) var(--sp-5); display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4);
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-base); color: var(--ink);
}
.accordion__btn:hover { background: var(--bg-soft); }
.accordion__btn::after { content: "+"; font-size: 1.4rem; color: var(--navy-700); flex-shrink: 0; transition: transform .2s ease; }
.accordion__btn[aria-expanded="true"]::after { transform: rotate(45deg); }
.accordion__panel { display: none; padding: 0 var(--sp-5) var(--sp-5); font-size: var(--fs-base); }
.accordion__panel.is-open { display: block; }

/* --------------------------------------------------------------------------
   14. Callouts, quotes, lists
   -------------------------------------------------------------------------- */
.callout {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: rgba(255,255,255,.85); border-radius: var(--r-xl); padding: var(--sp-7);
  position: relative; overflow: hidden;
}
.callout h2, .callout h3 { color: #fff; }
.callout::after {
  content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(63,165,53,.34), transparent 66%);
  right: -110px; bottom: -150px;
}
.callout > * { position: relative; z-index: 2; }

.callout--amber { background: linear-gradient(135deg, var(--amber-100), #FFF8EC); color: var(--body); border: 1px solid #F5DEB8; }
.callout--amber h2, .callout--amber h3 { color: var(--navy-800); }
.callout--amber::after { display: none; }

.quote {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--saffron);
  border-radius: 0 var(--r-lg) var(--r-lg) 0; padding: var(--sp-5);
}
.quote p { font-size: var(--fs-md); font-style: italic; color: var(--ink); }
.quote__by { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-4); }
.quote__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-100); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: var(--navy-700); flex-shrink: 0; }
.quote__name { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: var(--fs-sm); line-height: 1.3; }
.quote__role { font-size: var(--fs-xs); color: var(--muted); }

.tick-list { list-style: none; padding: 0; }
.tick-list li { display: flex; gap: var(--sp-3); align-items: flex-start; margin-bottom: var(--sp-3); }
.tick-list li::before {
  content: "✓"; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green-100); color: var(--green-700); display: grid; place-items: center;
  font-size: 0.72rem; font-weight: 800; margin-top: 3px;
}
.tick-list--light li::before { background: rgba(255,255,255,.16); color: var(--amber); }

.num-list { list-style: none; padding: 0; counter-reset: n; }
.num-list li { display: flex; gap: var(--sp-4); align-items: flex-start; margin-bottom: var(--sp-4); counter-increment: n; }
.num-list li::before {
  content: counter(n); flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy-700); color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-size: var(--fs-sm); font-weight: 800;
}

/* --------------------------------------------------------------------------
   15. Gallery
   -------------------------------------------------------------------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--sp-3); }
.gallery-item {
  aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--bg-tint);
  display: grid; place-items: center; cursor: pointer; position: relative;
  border: 1px solid var(--line); transition: transform .18s ease;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item__cap {
  position: absolute; inset: auto 0 0 0; padding: var(--sp-3);
  background: linear-gradient(transparent, rgba(8,26,68,.82)); color: #fff;
  font-size: var(--fs-xs); font-weight: 600;
}
.gallery-item--wide { grid-column: span 2; aspect-ratio: 2/1; }

.filter-bar { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }
.filter-chip {
  padding: 0.45rem 1.05rem; border-radius: var(--r-pill); border: 1.5px solid var(--line);
  background: #fff; cursor: pointer; font-family: var(--font-display); font-weight: 600;
  font-size: var(--fs-sm); color: var(--body); transition: all .15s ease;
}
.filter-chip:hover { border-color: var(--navy-600); color: var(--navy-700); }
.filter-chip.is-active { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(8,26,68,.92);
  display: none; align-items: center; justify-content: center; padding: var(--sp-5);
}
.lightbox.is-open { display: flex; }
.lightbox__inner { max-width: 900px; width: 100%; }
.lightbox__frame { background: rgba(255,255,255,.08); border-radius: var(--r-lg); aspect-ratio: 16/10; display: grid; place-items: center; color: rgba(255,255,255,.7); overflow: hidden; }
.lightbox__frame img { width: 100%; height: 100%; object-fit: contain; }
.lightbox__cap { color: #fff; text-align: center; margin-top: var(--sp-4); font-size: var(--fs-sm); }
.lightbox__close {
  position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 0; color: #fff; font-size: 1.4rem; cursor: pointer;
}
.lightbox__close:hover { background: rgba(255,255,255,.26); }

/* --------------------------------------------------------------------------
   16. Partner logos / marquee
   -------------------------------------------------------------------------- */
.logo-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-4); align-items: center; }
.logo-slot {
  height: 74px; border: 1px dashed #C6D4E6; border-radius: var(--r-md);
  display: grid; place-items: center; background: #fff;
  font-size: var(--fs-xs); color: var(--muted); text-align: center; padding: var(--sp-2);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   17. Table
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 560px; }
table.data th, table.data td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--line-soft); }
table.data th { font-family: var(--font-display); font-weight: 800; color: var(--ink); background: var(--bg-soft); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; }
table.data tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------------------
   18. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(120deg, var(--green-800), var(--navy-800) 70%);
  color: rgba(255,255,255,.84); padding-block: var(--sp-8);
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251,176,64,.22), transparent 65%);
  top: -230px; left: 30%;
}
.cta-band__inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: var(--sp-2); }
.cta-band p { max-width: 52ch; margin-bottom: 0; }

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.66); padding-block: var(--sp-8) var(--sp-5); font-size: var(--fs-sm); }
.site-footer h4 { color: #fff; font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .1em; margin-bottom: var(--sp-4); }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--amber); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--sp-6); }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 10px; }
.footer-brand { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.footer-brand img, .footer-brand svg { height: 62px; width: auto; }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__name em { color: var(--green-500); }
.footer-brand .brand__sub { color: rgba(255,255,255,.5); }

.social-row { display: flex; gap: var(--sp-2); margin-top: var(--sp-4); }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.09);
  display: grid; place-items: center; font-size: 0.9rem; font-weight: 700;
}
.social-row a:hover { background: var(--saffron); color: var(--navy-900); }

.footer-bottom {
  margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap;
  font-size: var(--fs-xs); color: rgba(255,255,255,.5);
}
.footer-bottom nav { display: flex; gap: var(--sp-4); flex-wrap: wrap; }

.footer-address { font-style: normal; line-height: 1.75; }

/* --------------------------------------------------------------------------
   20. Floating widgets — WhatsApp + oral-health chatbot
   -------------------------------------------------------------------------- */
.floaties { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.floatie {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  box-shadow: var(--shadow-lg); border: 0; cursor: pointer; font-size: 1.35rem; color: #fff;
  transition: transform .16s ease;
}
.floatie:hover { transform: scale(1.08); }
.floatie--wa { background: #25D366; }
.floatie--bot { background: var(--navy-700); }

.chatbot {
  position: fixed; right: 18px; bottom: 88px; z-index: 121; width: min(370px, calc(100vw - 36px));
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); overflow: hidden; display: none; flex-direction: column;
  max-height: min(560px, calc(100vh - 140px));
}
.chatbot.is-open { display: flex; }
.chatbot__head { background: var(--navy-700); color: #fff; padding: var(--sp-4); display: flex; align-items: center; gap: var(--sp-3); }
.chatbot__head strong { font-family: var(--font-display); font-size: var(--fs-base); display: block; }
.chatbot__head span { font-size: var(--fs-xs); opacity: .8; }
.chatbot__close { margin-left: auto; background: rgba(255,255,255,.16); border: 0; color: #fff; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; }
.chatbot__body { padding: var(--sp-4); overflow-y: auto; display: flex; flex-direction: column; gap: var(--sp-3); background: var(--bg-soft); }
.bubble { padding: 0.7rem 0.95rem; border-radius: var(--r-md); font-size: var(--fs-sm); max-width: 86%; line-height: 1.5; }
.bubble--bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble--user { background: var(--navy-700); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.chatbot__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--line); background: #fff; }
.chatbot__chip { font-size: var(--fs-xs); padding: 5px 11px; border-radius: var(--r-pill); border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; color: var(--navy-700); }
.chatbot__chip:hover { background: var(--navy-100); }
.chatbot__foot { padding: var(--sp-3) var(--sp-4) var(--sp-4); border-top: 1px solid var(--line); background: #fff; font-size: var(--fs-xs); color: var(--muted); text-align: center; }

/* --------------------------------------------------------------------------
   21. Misc
   -------------------------------------------------------------------------- */
.notice-strip {
  background: var(--amber-100); border: 1px solid #F3DFB8; border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4); font-size: var(--fs-sm); color: #7A4A08;
  display: flex; gap: var(--sp-3); align-items: flex-start;
}

.event-row {
  display: grid; grid-template-columns: 84px 1fr auto; gap: var(--sp-4); align-items: center;
  padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-md); background: #fff;
}
.event-date { text-align: center; background: var(--navy-100); border-radius: var(--r-sm); padding: var(--sp-2); }
.event-date b { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--navy-700); line-height: 1; }
.event-date span { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.event-row h4 { margin-bottom: 2px; font-size: var(--fs-base); }

.lang-bar { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.lang-pill { padding: 0.4rem 0.9rem; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: 600; color: var(--body); }

/* Scroll-reveal is opt-in via the `js` class set by the inline head script.
   With JavaScript off, .reveal content simply renders — it is never hidden. */
.reveal { transition: opacity .55s ease, transform .55s ease; }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-visible { opacity: 1; transform: none; }

.prose h2 { margin-top: var(--sp-7); }
.prose h3 { margin-top: var(--sp-6); }
.prose > *:first-child { margin-top: 0; }
.prose ul, .prose ol { margin-bottom: var(--sp-4); }
.prose img { border-radius: var(--r-md); margin-block: var(--sp-5); }

/* --------------------------------------------------------------------------
   22. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .map-wrap { grid-template-columns: 1fr; }
  .map-detail { position: static; }
}

/* The "Book a Camp" outline button only fits alongside the full nav on wide desktops.
   Below that it is still reachable from the drawer, the hero and every CTA band. */
@media (max-width: 1339px) {
  .header-cta .btn--camp { display: none; }
}

@media (max-width: 1180px) {
  :root { --header-h: 68px; }
  .brand img, .brand svg { height: 50px; }   /* keep clear of the shorter header */
  .nav-toggle { display: flex; }
  .nav__item--mobile-only { display: block; }
  .header-cta .btn--camp { display: none; }

  /* Anchored to the header rather than the viewport, so it lines up whether or
     not the top bar is still on screen. */
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    max-height: calc(100vh - var(--header-h)); box-shadow: var(--shadow-lg);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: var(--sp-5); overflow-y: auto; display: none; z-index: 95;
    border-top: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav__link { font-size: 1.05rem; padding: 0.85rem 0.6rem; border-radius: var(--r-sm); justify-content: space-between; }
  .nav__item { width: 100%; }
  .dropdown {
    position: static; transform: none; width: 100%; opacity: 1; visibility: visible;
    box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0;
    display: none; grid-template-columns: 1fr; margin: 4px 0 8px 10px; padding: 0 0 0 8px;
  }
  .nav__item.is-open .dropdown { display: grid; transform: none; }
  .nav__mobile-cta { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-5); }

  .hero__inner, .split { grid-template-columns: 1fr; gap: var(--sp-6); }
  .split--reverse > *:first-child { order: 0; }
  .hero__sub { max-width: none; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .section { padding-block: var(--sp-8); }
  .dropdown__desc { display: none; }
}

@media (max-width: 720px) {
  .topbar__links { display: none; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .callout { padding: var(--sp-5); }
  .form-card { padding: var(--sp-5) var(--sp-4); }
  .event-row { grid-template-columns: 66px 1fr; }
  .event-row .btn { grid-column: 1 / -1; }
  .gallery-item--wide { grid-column: span 1; aspect-ratio: 1; }
  .cartogram { padding: var(--sp-3); gap: 4px; }
  .cartogram__cell { font-size: 0.5rem; }
  .brand__sub { display: none; }
  .btn-row .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .topbar, .floaties, .chatbot, .cta-band, .site-footer { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .hero, .page-hero { background: none; color: #000; }
  .hero h1, .page-hero h1 { color: #000; }
}
