/* ==========================================================
   The Bridge Network – Illinois
   One stylesheet for every page. Brand colors come from the logo.

   Contents
    1. Design tokens
    2. Base & accessibility
    3. Buttons & labels
    4. Header & navigation
    5. Page banners (section pages + bio pages)
    6. Home: hero, who-we-serve strip, explore cards, disclaimer
    7. Shared section layout
    8. About page
    9. Get Involved page
   10. Programs page
   11. Leadership page (leaders + team)
   12. Leader bio pages
   13. Newcomers page
   14. Events page
   15. Contact page (details + message form)
   16. Footer
   17. Scroll reveal
   18. Responsive (1100px / 900px / 640px)
   19. Reduced motion
   ========================================================== */


/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand */
  --navy: #0B2F63;
  --navy-900: #071F44;
  --navy-700: #12407F;
  --teal: #00918A;
  --teal-700: #00726C;      /* AA-safe teal for text/buttons on white */
  --gold: #F7B512;
  --gold-600: #E0A000;

  /* Semantic */
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --tint: #F2F6FB;
  --text: #13233F;
  --text-muted: #4A5872;
  --on-navy: #FFFFFF;
  --on-navy-muted: #C9D5E8;
  --border: #DCE4EF;
  --ring: #F7B512;

  /* Type */
  --font-head: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  /* Spacing (8pt) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(11, 47, 99, .06), 0 2px 8px rgba(11, 47, 99, .06);
  --shadow-md: 0 8px 28px rgba(11, 47, 99, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;

  --z-header: 100;
  --z-skip: 1000;
}


/* ---------- 2. Base & accessibility ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
/* Smooth scrolling is switched on by main.js after load, so arriving at #team jumps straight there */
html.smooth { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-700); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; margin: 0 0 var(--s-3); text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.75rem); font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 1.35rem; font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 var(--s-4); }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-5); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: var(--s-4); top: -60px; z-index: var(--z-skip);
  background: var(--gold); color: var(--navy); padding: var(--s-3) var(--s-4);
  border-radius: var(--radius-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: var(--s-4); }

:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }

/* Line-icon defaults for small icon badges */
.serve-icon svg, .vm-icon svg, .value-icon svg, .res-icon svg, .contact-icon svg, .event-meta svg {
  width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}


/* ---------- 3. Buttons & labels ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-3);
  min-height: 48px; padding: 6px 8px 6px 24px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease);
  touch-action: manipulation;
}
.btn:not(:has(.btn-arrow)) { padding-right: 24px; }
.btn:active { transform: scale(.97); }
.btn-arrow {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border-radius: 50%; background: #fff; flex: none;
  transition: transform .2s var(--ease);
}
.btn-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold .btn-arrow { color: var(--navy); }
.btn-gold:hover { background: var(--gold-600); box-shadow: 0 6px 18px rgba(247, 181, 18, .35); }
.btn-teal { background: var(--teal-700); color: #fff; }
.btn-teal .btn-arrow { color: var(--teal-700); }
.btn-teal:hover { background: #005D58; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy .btn-arrow { color: var(--navy); }
.btn-navy:hover { background: var(--navy-700); }

/* Small uppercase label above headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .14em;
  font-size: .85rem; color: var(--teal-700); margin-bottom: var(--s-3);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: currentColor; }
.eyebrow-gold { color: var(--gold); }


/* ---------- 4. Header & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: #fff; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); padding-block: var(--s-3); }
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; }
.brand img { width: 76px; height: auto; }
.brand-text { display: flex; flex-direction: column; font-family: var(--font-head); color: var(--navy); line-height: 1; }
.brand-name { font-size: 1.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.brand-sub { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .38em; margin-top: 6px; }
.brand-loc { color: var(--teal-700); letter-spacing: .12em; }
.header-ctas { display: flex; gap: var(--s-3); }

.navbar { background: var(--navy); }
.navbar ul { display: flex; justify-content: space-between; align-items: stretch; }
.navbar a:not(.btn) {
  display: flex; align-items: center; min-height: 60px; padding: 0 var(--s-4);
  color: #fff; text-decoration: none; font-family: var(--font-head); font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em; font-size: 1rem;
  position: relative; transition: background-color .2s var(--ease);
}
/* Yellow underline: on hover, and on the current page's menu item */
.navbar a:not(.btn)::after {
  content: ""; position: absolute; left: var(--s-4); right: var(--s-4); bottom: 12px; height: 3px;
  background: var(--gold); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.navbar a:not(.btn):hover { background: var(--navy-700); }
.navbar a:not(.btn):hover::after, .navbar a[aria-current]::after { transform: scaleX(1); }
.navbar .nav-cta { display: none; }   /* header buttons, repeated inside the phone menu */

.nav-toggle {
  display: none; width: 48px; height: 48px; border-radius: 12px;
  border: 2px solid var(--border); background: #fff; color: var(--navy); cursor: pointer;
}
.nav-toggle svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; margin: auto; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: inline; }


/* ---------- 5. Page banners (section pages + bio pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy) 70%);
  padding-block: var(--s-7) var(--s-8); border-bottom: 4px solid var(--gold);
}
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); font-weight: 800; margin-bottom: var(--s-2); }
.page-lede { color: var(--on-navy-muted); font-size: 1.2rem; max-width: 60ch; margin: 0; }

.bio-hero { background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy) 70%); padding-block: var(--s-7) var(--s-9); }
.bio-hero h1 { color: #fff; font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem); font-weight: 800; margin-bottom: var(--s-2); }
.bio-hero .bio-role { color: var(--gold); font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; margin: 0; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: .95rem; color: var(--on-navy-muted); margin-bottom: var(--s-4); }
.breadcrumb a { color: #fff; }


/* ---------- 6. Home: hero, who-we-serve strip, explore cards, disclaimer ---------- */
.hero {
  position: relative; isolation: isolate; min-height: min(78vh, 720px); display: flex; align-items: center; overflow: hidden;
  background:
    radial-gradient(circle at 78% 40%, rgba(0,145,138,.35) 0%, rgba(0,145,138,0) 45%),
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy) 60%, #0E3A73 100%);
}
.hero-bridges { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; fill: none; stroke-linecap: round; }
.hero-bridges .hb-teal { stroke: var(--teal); stroke-width: 26; opacity: .35; }
.hero-bridges .hb-navy { stroke: #2A5BA0; stroke-width: 26; opacity: .45; }
.hero-bridges .hb-gold { stroke: var(--gold); stroke-width: 6; opacity: .45; }
.hero-bridges .hb-posts { stroke: rgba(255,255,255,.08); stroke-width: 10; }
.hero-content {
  padding-block: var(--s-9) calc(var(--s-9) + 24px); color: #fff;
  display: grid; grid-template-columns: 1.25fr 1fr; gap: var(--s-7); align-items: center;
}
.hero h1 { color: #fff; font-size: clamp(2.6rem, 1.4rem + 5vw, 4.75rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: var(--s-3); }
.hero-tagline { font-family: var(--font-head); font-weight: 600; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); color: var(--gold); margin-bottom: var(--s-4); max-width: 42ch; }
.hero-lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.25rem); color: #E6EDF7; max-width: 60ch; margin-bottom: 0; }
.hero-emblem { position: relative; justify-self: center; width: min(100%, 420px); aspect-ratio: 1; display: grid; place-items: center; }
.hero-emblem .ring { position: absolute; border-radius: 50%; }
.ring-teal { inset: 0; border: 3px solid rgba(0,145,138,.55); }
.ring-gold { inset: 7%; border: 2px dashed rgba(247,181,18,.55); }
.emblem-disc {
  width: 78%; aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.35), 0 0 0 10px rgba(255,255,255,.08);
}
.emblem-disc img { width: 68%; mix-blend-mode: multiply; }
.hero-arc { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 48px; fill: #fff; }

.serve { position: relative; margin-top: -8px; }
.serve-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4);
  padding-block: var(--s-5) var(--s-2);
}
.serve-grid li { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border-radius: var(--radius-sm); }
.serve-grid strong { display: block; font-family: var(--font-head); color: var(--navy); font-size: 1.05rem; line-height: 1.25; }
.serve-grid li > span:last-child { color: var(--text-muted); font-size: .98rem; line-height: 1.45; }
.serve-icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--teal-700); }

.explore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.explore-card {
  display: flex; align-items: center; gap: var(--s-4); height: 100%; min-height: 112px;
  padding: var(--s-5); border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); text-decoration: none; color: var(--text); box-shadow: var(--shadow-sm);
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.explore-card:hover { box-shadow: var(--shadow-md); border-color: var(--teal); transform: translateY(-3px); }
.explore-icon { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--tint); color: var(--teal-700); display: grid; place-items: center; }
.explore-icon svg, .explore-arrow svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.explore-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.explore-text strong { font-family: var(--font-head); font-size: 1.2rem; color: var(--navy); }
.explore-text span { color: var(--text-muted); font-size: 1rem; line-height: 1.45; }
.explore-arrow { flex: none; color: var(--navy); transition: transform .2s var(--ease); }
.explore-arrow svg { width: 22px; height: 22px; }
.explore-card:hover .explore-arrow { transform: translateX(4px); color: var(--teal-700); }


.disclaimer-band { padding-block: 0 var(--s-8); }
.disclaimer-box {
  display: flex; gap: var(--s-4); align-items: flex-start; max-width: 900px;
  padding: var(--s-5); border-radius: var(--radius); background: var(--tint); border: 1px solid var(--border);
}
.disclaimer-box h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: var(--s-2); }
.disclaimer-box p { color: var(--text-muted); font-size: .95rem; line-height: 1.6; margin: 0; }
.disclaimer-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }
.disclaimer-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }


/* ---------- 7. Shared section layout ---------- */
.section { padding-block: var(--s-9); }
.section-tint { background: var(--tint); }
.section-head { max-width: 720px; margin-bottom: var(--s-7); }
.section-head p:last-child { color: var(--text-muted); font-size: 1.15rem; }


/* ---------- 8. About page ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s-8); align-items: center; }
.about-copy p { color: var(--text-muted); }
.about-copy p:first-of-type { color: var(--text); font-size: 1.15rem; }
.about-media { position: relative; margin: 0; isolation: isolate; }
.about-media img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--shadow-md); }
.about-media::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px; border-radius: var(--radius);
  background: var(--teal); z-index: -1; opacity: .9;
}
.about-badge {
  position: absolute; left: -24px; bottom: 28px; background: #fff; color: var(--text-muted);
  padding: var(--s-3) var(--s-5); border-radius: 999px; box-shadow: var(--shadow-md); font-size: .95rem;
  border-left: 6px solid var(--gold);
}
.about-badge strong { color: var(--navy); }

.story {
  display: grid; grid-template-columns: 1fr 2fr; gap: var(--s-7); margin-top: var(--s-8);
  padding: var(--s-7); border-radius: var(--radius); background: var(--tint); border-left: 6px solid var(--gold);
}
.story-head h3 { font-size: 1.75rem; }
.story-body p { color: var(--text-muted); }
.story-body p:last-child { margin: 0; }

.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin-top: var(--s-9); }
.vm-card { padding: var(--s-6); border-radius: var(--radius); position: relative; overflow: hidden; }
.vm-card p { margin: 0; }
.vm-vision { background: var(--navy); color: var(--on-navy-muted); }
.vm-vision h3 { color: #fff; }
.vm-mission { background: var(--tint); border: 1px solid var(--border); color: var(--text-muted); }
.vm-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; margin-bottom: var(--s-4); }
.vm-vision .vm-icon { background: var(--gold); color: var(--navy); }
.vm-mission .vm-icon { background: var(--teal-700); color: #fff; }

.values { margin-top: var(--s-8); }
.values-title { font-size: 1.6rem; margin-bottom: var(--s-5); }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.value-card {
  padding: var(--s-5); border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--teal);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.value-card:nth-child(2) { border-top-color: var(--gold); }
.value-card:nth-child(3) { border-top-color: var(--navy); }
.value-card:nth-child(4) { border-top-color: var(--teal); }
.value-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.value-card p { color: var(--text-muted); margin: 0; font-size: 1rem; }
.value-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--navy); margin-bottom: var(--s-4); }


/* ---------- 9. Get Involved page ---------- */
.action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.action-card {
  display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.action-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.action-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.action-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.action-card:hover .action-media img { transform: scale(1.04); }
.action-num {
  position: absolute; left: var(--s-4); top: var(--s-4); font-family: var(--font-head); font-weight: 800;
  background: var(--navy); color: #fff; border-radius: 999px; padding: 4px 14px; font-size: .95rem;
}
.action-body { padding: var(--s-5) var(--s-5) var(--s-6); display: flex; flex-direction: column; flex: 1; }
.action-body p { color: var(--text-muted); flex: 1; }
.action-body .btn { align-self: flex-start; }

.audience { margin-top: var(--s-8); background: #fff; border-radius: var(--radius); padding: var(--s-6); border: 1px solid var(--border); }
.audience > h3 { margin-bottom: var(--s-5); }
.audience-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.audience-grid li { display: flex; gap: var(--s-3); }
.audience-grid h4 { margin-bottom: var(--s-1); line-height: 1.3; }
.audience-grid p { color: var(--text-muted); margin: 0; font-size: 1rem; }
.aud-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; margin-top: 6px; }
.aud-navy { background: var(--navy); }
.aud-teal { background: var(--teal); }
.aud-gold { background: var(--gold); }


/* ---------- 10. Programs page ---------- */
.program-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); position: relative; }
.program-card {
  display: flex; flex-direction: column; gap: var(--s-3); min-width: 0;
  padding: var(--s-6) var(--s-5); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.program-card:hover { box-shadow: var(--shadow-md); border-color: var(--teal); transform: translateY(-3px); }
.program-card-feature { background: var(--tint); border-color: var(--teal); }
.program-top { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-2); }
.program-icon { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--gold); color: var(--navy); display: grid; place-items: center; }
.program-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.program-tag { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #FF5A5F; box-shadow: 0 0 0 4px rgba(255,90,95,.25); }
.program-card h3 { color: var(--navy); font-size: 1.5rem; margin: 0; }
.program-card > p { color: var(--text-muted); margin: 0; flex: 1; }
.program-link { margin-top: var(--s-2); align-self: flex-start; color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 5px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.program-link:hover { color: var(--teal-700); }
.platforms { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-2); }
.platforms a {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px;
  background: var(--navy); color: #fff; font-weight: 700; text-decoration: none; font-size: .92rem;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.platforms a:hover { background: var(--teal-700); }
.platforms svg { width: 16px; height: 16px; }
.platforms svg .fill { fill: currentColor; }


/* ---------- 11. Leadership page (leaders + team) ---------- */
#leadership .section-head { margin-inline: auto; text-align: center; }
.leader-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 360px)); gap: var(--s-6); justify-content: center; }
.leader-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
/* The photo is a link to the leader's bio page */
.leader-photo { display: block; aspect-ratio: 4/5; background: linear-gradient(160deg, var(--tint), #E3ECF6); overflow: hidden; position: relative; }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .5s var(--ease); }
.leader-photo:hover img { transform: scale(1.04); }
.leader-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--navy) 0 40%, var(--gold) 40% 60%, var(--teal) 60%); }
.leader-view {
  position: absolute; left: 50%; bottom: 22px; transform: translate(-50%, 8px); opacity: 0;
  background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  padding: 8px 18px; border-radius: 999px; transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.leader-photo:hover .leader-view, .leader-photo:focus-visible .leader-view { opacity: 1; transform: translate(-50%, 0); }
.leader-body { padding: var(--s-5); }
.leader-body h3 { margin-bottom: var(--s-1); }
.leader-body h3 a { color: inherit; text-decoration: none; }
.leader-body h3 a:hover { color: var(--teal-700); }
.leader-role { color: var(--teal-700); font-weight: 600; margin-bottom: var(--s-3); }
.leader-link { font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; min-height: 32px; align-items: center; }
.leader-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.team-card {
  background: var(--surface); border-radius: var(--radius); overflow: hidden; text-align: center;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); padding-bottom: var(--s-5);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.team-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; margin-bottom: var(--s-4); border-bottom: 4px solid var(--teal); }
.team-card h3 { font-size: 1.15rem; margin-bottom: var(--s-1); padding-inline: var(--s-4); }


/* ---------- 12. Leader bio pages ---------- */
.bio-layout { display: grid; grid-template-columns: 340px 1fr; gap: var(--s-8); align-items: start; margin-top: calc(var(--s-9) * -1 + var(--s-5)); padding-bottom: var(--s-9); }
.bio-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 6px solid #fff; background: #fff; }
.bio-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; }
.bio-facts { margin-top: var(--s-5); display: grid; gap: var(--s-3); }
.bio-facts li { background: var(--tint); border-radius: var(--radius-sm); padding: var(--s-3) var(--s-4); }
.bio-facts span { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--teal-700); }
.bio-facts strong { color: var(--navy); font-family: var(--font-head); }
.bio-content { padding-top: calc(var(--s-9) - var(--s-5) + var(--s-6)); }
.bio-content h2 { font-size: 1.6rem; }
.bio-content p { font-size: 1.125rem; color: var(--text); max-width: 68ch; }
.bio-content .muted { color: var(--text-muted); font-style: italic; }
.bio-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }


/* ---------- 13. Newcomers page ---------- */
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); position: relative; }
.resource-card {
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  border-radius: var(--radius); padding: var(--s-5);
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.resource-card:hover { box-shadow: var(--shadow-md); border-color: var(--teal); }
.resource-card h3 { color: var(--navy); font-size: 1.2rem; }
.resource-card p { color: var(--text-muted); font-size: 1rem; }
.res-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--gold); color: var(--navy); margin-bottom: var(--s-4); }
.res-links { display: flex; flex-direction: column; gap: var(--s-1); }
.res-links a { color: var(--teal-700); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.res-links a:hover { color: var(--navy); }
.disclaimer { margin-top: var(--s-6); font-size: .95rem; color: var(--text-muted); max-width: 80ch; position: relative; }


/* ---------- 14. Events page ---------- */
.event-list { display: grid; gap: var(--s-4); }
.event-card {
  display: flex; gap: var(--s-5); align-items: stretch; padding: var(--s-4);
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.event-card:hover { box-shadow: var(--shadow-md); border-color: transparent; }
.event-date {
  flex: none; width: 104px; border-radius: var(--radius-sm); background: var(--navy); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--font-head);
}
.event-date span { font-size: 1.6rem; font-weight: 800; color: var(--gold); line-height: 1; }
.event-date small { font-size: .9rem; opacity: .85; margin-top: 4px; }
.event-info { padding-block: var(--s-1); }
.event-info h3 { margin-bottom: var(--s-2); }
.event-info p { color: var(--text-muted); margin-bottom: var(--s-2); }
.event-tag { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--navy) !important; background: var(--tint); padding: 2px 10px; border-radius: 999px; }
.event-tag-teal { background: #DDF2F0; color: var(--teal-700) !important; }
.event-tag-gold { background: #FEF1CC; color: #7A5600 !important; }
.event-meta { display: flex; align-items: center; gap: var(--s-2); font-size: .98rem; margin: 0 !important; }
.event-meta svg { width: 18px; height: 18px; color: var(--teal-700); flex: none; }


/* ---------- 15. Contact page (details + message form) ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: var(--s-8); align-items: start; }
.contact-grid > div > p { color: var(--text-muted); font-size: 1.15rem; }
.contact-info .contact-list { margin-top: var(--s-5); }
.contact-list { display: grid; gap: var(--s-4); }
.contact-list li { display: flex; gap: var(--s-4); padding: var(--s-5); border-radius: var(--radius); background: var(--tint); }
.contact-list h3 { font-size: 1.05rem; margin-bottom: 2px; }
.contact-list p { margin: 0; color: var(--text-muted); }
.contact-list a { font-weight: 600; overflow-wrap: anywhere; }
.contact-icon { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; }

/* "Send us a message" card – the footer's message box links here (#send-message) */
.message-card {
  scroll-margin-top: 110px; padding: var(--s-6); border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); border-top: 4px solid var(--gold);
}
.message-card h3 { font-size: 1.5rem; margin-bottom: var(--s-2); }
.message-note { color: var(--text-muted); margin-bottom: var(--s-5); }
.quick-form { display: grid; gap: var(--s-4); }
.qf-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.qf-field { display: grid; gap: 6px; min-width: 0; }
.qf-field label { color: var(--navy); font-weight: 700; font-size: .98rem; }
.qf-field input, .qf-field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm);
  border: 1px solid #B9C6D8; background: #fff; color: var(--text);
  font: inherit; font-size: 1rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.qf-field textarea { resize: vertical; min-height: 150px; }
.qf-field input:hover, .qf-field textarea:hover { border-color: var(--navy-700); }
.qf-field input:focus-visible, .qf-field textarea:focus-visible { outline: none; border-color: var(--teal-700); box-shadow: 0 0 0 3px rgba(0,145,138,.25); }
.qf-field [aria-invalid="true"] { border-color: #C62828; }
.qf-error { margin: 0; color: #B3261E; font-size: .92rem; font-weight: 600; }
.qf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* hidden spam trap */
.quick-form .btn { justify-self: start; border: 0; }
.quick-form .btn[disabled] { opacity: .6; cursor: progress; }
.qf-status { margin: 0; font-size: 1rem; color: var(--text); min-height: 1.4em; }
.qf-status.is-error { color: #B3261E; font-weight: 600; }
.qf-status.is-success { color: var(--teal-700); font-weight: 600; }


/* ---------- 16. Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--on-navy-muted); padding-top: var(--s-8); }
.footer-grid { display: grid; grid-template-columns: 1.15fr .8fr .8fr 1.6fr; gap: var(--s-6); padding-bottom: var(--s-7); }
.footer-logo { background: #fff; border-radius: var(--radius); padding: var(--s-3) var(--s-4); width: 200px; margin-bottom: var(--s-4); }
.footer-brand p { max-width: 36ch; font-size: 1rem; }
.footer-h { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: var(--s-4); }
.site-footer ul:not(.socials) { display: grid; gap: var(--s-2); }
.site-footer a { color: var(--on-navy-muted); text-decoration: none; transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--gold); }
.site-footer ul:not(.socials) a { display: inline-block; padding-block: 4px; }

.socials { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.footer-brand .socials { margin-top: var(--s-4); }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25); color: #fff;
}
.socials a:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.socials svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.socials svg .fill { fill: currentColor; stroke: none; }

/* "Write your message…" box – opens the form on the Contact page */
.footer-contact-note { font-size: 1rem; margin: 0 0 var(--s-4); }
.message-launch {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  min-height: 96px; padding: var(--s-4) var(--s-3) var(--s-4) var(--s-4); border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.07);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.site-footer a.message-launch { color: var(--on-navy-muted); }
.site-footer a.message-launch:hover { color: #fff; border-color: var(--gold); background: rgba(255,255,255,.12); }
.message-launch .ml-text { align-self: flex-start; font-size: 1rem; }
.message-launch .ml-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; align-self: flex-end; transition: transform .2s var(--ease); }
.message-launch .ml-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.message-launch:hover .ml-icon { transform: translateX(3px); }

.footer-bottom { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); padding-block: var(--s-5); font-size: .95rem; }
.footer-bottom p { margin: 0; }


/* ---------- 17. Scroll reveal ---------- */
/* main.js adds .reveal-ready, then .is-visible as items scroll in; .reveal-off is a safety net after 2.5s */
.reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-ready .reveal.is-visible { opacity: 1; transform: none; }
.reveal-off .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }


/* ---------- 18. Responsive ---------- */
@media (max-width: 1100px) {
  .navbar a:not(.btn) { padding: 0 var(--s-3); font-size: .95rem; }
  .serve-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid, .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  /* Header: buttons move into the ☰ menu */
  html { scroll-padding-top: 84px; }
  .header-ctas { display: none; }
  .nav-toggle { display: grid; }
  .brand img { width: 60px; }
  .brand-name { font-size: 1.35rem; }
  .brand-sub { font-size: .72rem; letter-spacing: .28em; }

  .navbar {
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100dvh - 84px); overflow-y: auto;
    box-shadow: 0 16px 32px rgba(7,31,68,.3);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
  }
  .navbar.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s var(--ease), transform .2s var(--ease); }
  .navbar ul { flex-direction: column; padding-block: var(--s-3) var(--s-5); }
  .navbar a:not(.btn) { min-height: 52px; border-bottom: 1px solid rgba(255,255,255,.1); }
  .navbar a:not(.btn)::after { display: none; }
  .navbar .nav-cta { display: block; padding-top: var(--s-5); }
  .navbar .nav-cta .btn { width: 100%; justify-content: center; }

  /* Home */
  .hero-content { grid-template-columns: 1fr; }
  .hero-emblem { width: min(60%, 260px); order: -1; justify-self: start; }
  .explore-grid { grid-template-columns: 1fr 1fr; }

  /* Pages */
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .about-media { margin-right: 24px; }
  .about-badge { left: 12px; }
  .story { grid-template-columns: 1fr; gap: var(--s-3); padding: var(--s-5); }
  .vm-grid { grid-template-columns: 1fr; margin-top: var(--s-8); }
  .action-grid { grid-template-columns: 1fr; max-width: 560px; }
  .leader-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .bio-layout { grid-template-columns: 1fr; gap: var(--s-5); }
  .bio-photo { max-width: 320px; }
  .bio-content { padding-top: 0; }
  .resource-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { padding-inline: var(--s-4); }
  .section { padding-block: var(--s-8); }
  .page-hero { padding-block: var(--s-6) var(--s-7); }

  /* Home */
  .hero { min-height: 0; }
  .hero-content { padding-block: var(--s-8) calc(var(--s-8) + 16px); }
  .serve-grid { grid-template-columns: 1fr; gap: 0; padding-top: var(--s-3); }
  .serve-grid li { padding: var(--s-3) 0; }
  .explore-grid { grid-template-columns: 1fr; }

  /* Pages */
  .about-media { margin-right: 16px; }
  .about-media::before { inset: 16px -16px 64px 16px; }
  .about-badge { position: static; display: inline-block; margin-top: var(--s-5); }
  .vm-card, .audience { padding: var(--s-5); }
  .values-grid, .audience-grid, .action-grid, .resource-grid { grid-template-columns: 1fr; }
  .leader-grid { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr; }
  .team-grid { gap: var(--s-3); }
  .event-card { flex-direction: column; gap: var(--s-3); }
  .event-date { width: auto; flex-direction: row; gap: var(--s-2); padding: var(--s-2) var(--s-4); justify-content: flex-start; }
  .event-date small { margin: 0; }
  .qf-row { grid-template-columns: 1fr; }
  .quick-form .btn { width: 100%; justify-content: space-between; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
}


/* ---------- 19. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html, html.smooth { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal-ready .reveal { opacity: 1; transform: none; }
}
