/* Upthrust Humanitarian Initiative — main stylesheet
   Dependency-free, mobile-first. Brand: #090f88 deep blue, #00aeef sky, #000c66 navy. */

/* ---------- Tokens ---------- */
:root {
  --navy: #000c66;
  --blue: #090f88;
  --blue-600: #1a22a8;
  --sky: #00aeef;
  --sky-ink: #0072a8;          /* sky tone dark enough for text on white (AA) */
  --sky-50: #e6f7fd;
  --ink: #0d1330;
  --body: #3d4562;
  --muted: #5d6585;
  --line: #e3e7f1;
  --surface: #f5f7fc;
  --white: #fff;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(13, 19, 48, .06), 0 2px 8px rgba(13, 19, 48, .05);
  --shadow: 0 10px 30px -10px rgba(9, 15, 136, .22);
  --shadow-lg: 0 30px 60px -20px rgba(9, 15, 136, .35);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 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);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sky-ink); }
ul { padding: 0; margin: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--sky); color: var(--white); }

.sr-only { position: absolute !important; 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: 16px; top: -60px; z-index: 1000;
  background: var(--blue); color: var(--white); padding: 12px 18px; border-radius: var(--radius-sm);
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--white); }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tint { background: var(--surface); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sky-ink); margin-bottom: 14px;
}
/* .eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; } */
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: flex-end; justify-content: space-between; }
.section-head--row > div { max-width: 640px; }
.text-accent { color: var(--sky); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--blue); --fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
  background: var(--bg); color: var(--fg); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
}
.btn:hover { color: var(--fg); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn--sky { --bg: var(--sky); --fg: var(--navy); }
.btn--white { --bg: var(--white); --fg: var(--blue); }
.btn--ghost { background: transparent; --fg: var(--blue); border-color: currentColor; }
.btn--ghost-light { background: transparent; --fg: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn--ghost-light:hover { background: var(--white); --fg: var(--blue); border-color: var(--white); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; color: var(--blue); }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow .icon { transition: transform .2s var(--ease); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.15rem; font-weight: 800; letter-spacing: .06em; color: var(--blue); }
.brand-text span { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.brand:hover { color: var(--ink); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--white); cursor: pointer; color: var(--ink);
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

.site-nav {
  /* absolute, not fixed: the header's backdrop-filter makes it the containing block */
  position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); z-index: 99;
  background: var(--white); padding: 24px var(--gutter) 40px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 28px;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s;
}
.nav-open .site-nav { opacity: 1; visibility: visible; transform: none; }
.nav-open { overflow: hidden; }
.nav-list a {
  display: block; padding: 14px 4px; font-size: 1.3rem; font-weight: 700; color: var(--ink);
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.nav-list a[aria-current="page"] { color: var(--blue); }
.nav-list a[aria-current="page"]::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--sky); margin-left: 10px; vertical-align: middle; }
.nav-cta { display: flex; flex-direction: column; gap: 12px; }

@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; height: auto; padding: 0; background: none; overflow: visible;
    flex-direction: row; align-items: center; gap: 28px;
    opacity: 1; visibility: visible; transform: none;
  }
  .nav-list { display: flex; gap: 4px; }
  .nav-list a { position: relative; font-size: .95rem; padding: 10px 14px; border: 0; border-radius: 999px; color: var(--body); transition: color .2s, background .2s; }
  .nav-list a:hover { color: var(--blue); background: var(--surface); }
  .nav-list a[aria-current="page"] { color: var(--blue); background: var(--sky-50); }
  .nav-list a[aria-current="page"]::after { display: none; }
  .nav-cta { flex-direction: row; }
  .nav-cta .btn { min-height: 44px; padding: 10px 22px; font-size: .95rem; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: rgba(255, 255, 255, .86);
  background: var(--blue);
  border-bottom: 6px solid var(--sky);
  padding-block: clamp(56px, 8vw, 110px) clamp(64px, 9vw, 120px);
}
.hero .container { position: relative; display: grid; gap: 56px; align-items: center; }
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero .lead { color: rgba(255, 255, 255, .82); max-width: 560px; margin-bottom: 34px; }
.hero .eyebrow { color: #8fe0ff; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; font-size: .92rem; }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges .icon { color: var(--sky); }
.hero-media { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; aspect-ratio: 1.15; }
.hero-media figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-media figure:first-child { grid-row: span 2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-card {
  position: absolute; left: -16px; bottom: -22px; display: flex; align-items: center; gap: 14px;
  background: var(--white); color: var(--ink); padding: 14px 20px 14px 14px; border-radius: 16px; box-shadow: var(--shadow-lg);
}
.hero-card .icon-badge { width: 46px; height: 46px; color: var(--white); }
.hero-card strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.hero-card div span { font-size: .82rem; color: var(--muted); }
@media (min-width: 960px) {
  .hero .container { grid-template-columns: 1.05fr 1fr; gap: 64px; }
}
@media (max-width: 520px) {
  .hero-card { position: relative; left: auto; bottom: auto; grid-column: 1 / -1; }
  .hero-media { aspect-ratio: auto; grid-template-rows: 180px 180px auto; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden; color: rgba(255, 255, 255, .85);
  background: var(--blue);
  border-bottom: 6px solid var(--sky);
  padding-block: clamp(56px, 8vw, 104px);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 820px; margin-bottom: 16px; }
.page-hero .lead { color: rgba(255, 255, 255, .8); max-width: 680px; margin: 0; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; font-size: .88rem; font-weight: 600; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, .45); }
.breadcrumb a { color: #8fe0ff; text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb [aria-current] { color: rgba(255, 255, 255, .8); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: clamp(20px, 2.5vw, 28px); }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.split { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split--reverse > :first-child { order: 2; } }

/* ---------- Cards ---------- */
.card {
  position: relative; display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-media img { transform: scale(1.05); }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 26px; }
.card-body p { color: var(--muted); font-size: 1rem; }
.card-body > :last-child { margin-bottom: 0; }
.card-body .link-arrow { margin-top: auto; }
.card-tag {
  align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); background: var(--sky-50); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.icon-badge {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; flex: none;
  background: var(--blue); color: var(--white);
}
.icon-badge .icon { width: 26px; height: 26px; }

.feature { padding: 32px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); height: 100%; }
.feature .icon-badge { margin-bottom: 22px; }
.feature p { color: var(--muted); margin: 0; font-size: 1rem; }
.feature-num { font-size: .85rem; font-weight: 800; color: var(--sky-ink); letter-spacing: .1em; display: block; margin-bottom: 6px; }

/* ---------- Media + checklist ---------- */
.media-stack { position: relative; padding: 0 0 48px 0; }
.media-stack > img:first-child { width: 86%; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4 / 3.4; object-fit: cover; }
.media-stack > img:nth-child(2) {
  position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius); border: 6px solid var(--white); box-shadow: var(--shadow-lg);
}
.media-stack .stat-chip {
  position: absolute; left: 22px; top: 22px; background: var(--white); border-radius: 14px; padding: 12px 18px;
  box-shadow: var(--shadow); line-height: 1.2;
}
.stat-chip strong { display: block; font-size: 1.6rem; color: var(--blue); }
.stat-chip span { font-size: .8rem; font-weight: 600; color: var(--muted); }

.checklist { display: grid; gap: 14px; margin: 26px 0 34px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink); font-weight: 600; }
.checklist .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--sky-50); color: var(--blue); stroke-width: 3; margin-top: 1px; }
@media (min-width: 640px) { .checklist--2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Mission / vision ---------- */
.mv-card { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-lg); height: 100%; }
.mv-card--dark { background: var(--navy); color: rgba(255, 255, 255, .85); }
.mv-card--dark h3 { color: var(--white); }
.mv-card--light { background: var(--sky-50); }
.mv-card .icon-badge { margin-bottom: 22px; }
.mv-card--dark .icon-badge { background: var(--sky); color: var(--navy); }
.mv-card p:last-child { margin: 0; }

/* ---------- Stats ---------- */
.stats {
  position: relative; overflow: hidden; color: var(--white); border-radius: var(--radius-lg);
  background: var(--navy);
  padding: clamp(36px, 5vw, 56px);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 20px;
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; }
.stat + .stat { position: relative; }
.stat-value { display: block; font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--white); font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: 10px; font-size: .92rem; font-weight: 600; color: rgba(255, 255, 255, .78); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 16px; } .gallery li:nth-child(1), .gallery li:nth-child(6) { grid-column: span 2; grid-row: span 2; } }
.gallery li { aspect-ratio: 1; }
@media (min-width: 768px) { .gallery li { aspect-ratio: auto; } }
.gallery button { position: relative; width: 100%; height: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery button::after { content: ""; position: absolute; inset: 0; background: rgba(0, 12, 102, .45); opacity: 0; transition: opacity .3s; }
.gallery figcaption {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; color: var(--white); font-weight: 700; font-size: .92rem; text-align: left;
  background: var(--navy); padding: 8px 12px; border-radius: 10px;
  opacity: 0; transform: translateY(8px); transition: .3s var(--ease);
}
.gallery button:hover img, .gallery button:focus-visible img { transform: scale(1.06); }
.gallery button:hover::after, .gallery button:focus-visible::after, .gallery button:hover figcaption, .gallery button:focus-visible figcaption { opacity: 1; transform: none; }
@media (hover: none) { .gallery button::after, .gallery figcaption { opacity: 1; transform: none; } }
.gallery figure { margin: 0; height: 100%; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: clamp(20px, 2.5vw, 28px); }
.member { text-align: center; }
.member-photo { position: relative; aspect-ratio: 4 / 4.6; border-radius: var(--radius); overflow: hidden; background: var(--surface); margin-bottom: 18px; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s var(--ease); }
.member:hover .member-photo img { transform: scale(1.04); }
.member h3 { font-size: 1.12rem; margin-bottom: 2px; }
.member-role { display: block; color: var(--sky-ink); font-weight: 600; font-size: .92rem; }
.member p { font-size: .92rem; color: var(--muted); margin: 10px 0 0; }
.member .socials { justify-content: center; margin-top: 14px; }
.member-featured { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; background: var(--surface); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); }
.member-featured .member-photo { margin: 0; aspect-ratio: 4 / 4.4; }
.member-featured h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
@media (min-width: 820px) { .member-featured { grid-template-columns: 340px 1fr; } }

/* ---------- Socials ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--surface); color: var(--blue); transition: background .2s, color .2s, transform .2s;
}
.socials a:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }
.socials .icon { width: 18px; height: 18px; }
.site-footer .socials--dark a { background: var(--blue); color: var(--white); border: 1px solid #2a33b0; }
.site-footer .socials--dark a:hover { background: var(--sky); color: var(--navy); border-color: var(--sky); }

/* ---------- Events ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
  min-height: 42px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white);
  font-weight: 600; font-size: .92rem; color: var(--body); cursor: pointer; transition: .2s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.event-list { display: grid; gap: 22px; }
@media (min-width: 640px) { .event-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .event-list { grid-template-columns: repeat(3, 1fr); } }
.event-date {
  position: absolute; top: 16px; left: 16px; z-index: 2; display: grid; place-items: center; text-align: center;
  width: 64px; padding: 8px 0; border-radius: 14px; background: var(--white); color: var(--ink); box-shadow: var(--shadow); line-height: 1.05;
}
.event-date strong { font-size: 1.5rem; font-weight: 800; }
.event-date span { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sky-ink); }
.event-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-meta .icon { width: 16px; height: 16px; color: var(--sky-ink); }
.is-past .card-media img { filter: grayscale(.35); }
.empty-state { padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pager button {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-weight: 700; cursor: pointer; color: var(--ink);
}
.pager button[aria-current="page"] { background: var(--blue); border-color: var(--blue); color: var(--white); }
.events-group + .events-group { margin-top: clamp(64px, 8vw, 96px); }

/* ---------- Blog cards ---------- */
.post-meta { font-size: .85rem; color: var(--muted); margin-bottom: 10px; display: flex; gap: 8px; align-items: center; }
.post-card h3 { font-size: 1.18rem; }
.post-card h3 a { color: inherit; text-decoration: none; }
.post-card h3 a:hover { color: var(--blue); }
.post-card--feature { grid-column: 1 / -1; }
@media (min-width: 960px) {
  .post-card--feature { flex-direction: row; }
  .post-card--feature .card-media { flex: 1.2; aspect-ratio: auto; min-height: 360px; }
  .post-card--feature .card-body { flex: 1; padding: 44px; justify-content: center; }
  .post-card--feature h3 { font-size: 1.8rem; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: transparent; box-shadow: var(--shadow); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px;
  cursor: pointer; font-weight: 700; color: var(--ink); list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .25s var(--ease); color: var(--blue); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--muted); }
.faq details > div p { margin: 0; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: 8px; }
.field .req { color: #c0262d; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23090f88' stroke-width='2.5' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(0, 174, 239, .18); }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #c0262d; }
.form-note { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); margin: 14px 0 0; }
.form-note .icon { color: #1fa855; }
.hp { position: absolute; left: -9999px; }

.newsletter { display: flex; flex-direction: column; gap: 12px; }
.newsletter input { min-height: 52px; padding: 12px 18px; border-radius: 999px; border: 1px solid #2a33b0; background: var(--blue); color: var(--white); flex: 1; min-width: 0; }
.newsletter input::placeholder { color: #c4c8f0; }
.newsletter input:focus { outline: none; border-color: var(--sky); }
@media (min-width: 720px) { .newsletter { flex-direction: row; } }

/* ---------- Contact ---------- */
.contact-list { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.contact-item h3 { font-size: 1rem; margin-bottom: 4px; }
.contact-item p, .contact-item a { margin: 0; color: var(--muted); font-size: 1rem; text-decoration: none; }
.contact-item a { display: inline-block; padding-block: 4px; }
.contact-item a:hover { color: var(--blue); text-decoration: underline; }
.contact-item .icon-badge { width: 48px; height: 48px; border-radius: 14px; }
.contact-item .icon-badge .icon { width: 22px; height: 22px; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; height: clamp(320px, 42vw, 480px); background: var(--surface); border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); color: rgba(255, 255, 255, .85);
  padding: clamp(40px, 6vw, 72px); display: grid; gap: 28px; align-items: center;
  background-color: var(--navy); background-size: cover; background-position: center; isolation: isolate;
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 12, 102, .9); }
.cta-band > * { position: relative;
}
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { margin: 0; max-width: 620px; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); padding-top: clamp(56px, 7vw, 88px); font-size: .97rem; }
.site-footer h2 { font-size: 1rem; color: var(--white); letter-spacing: .02em; margin-bottom: 18px; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: var(--sky); }
.footer-grid { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr 1.4fr; gap: 56px; } }
.footer-brand .brand-text strong { color: var(--white); }
.footer-brand .brand-text span { color: rgba(255, 255, 255, .6); }
.footer-brand p { margin: 20px 0 22px; max-width: 360px; }
.footer-links { display: grid; gap: 10px; }
.footer-contact { display: grid; gap: 14px; }
.footer-contact li { display: flex; gap: 12px; }
.footer-contact .icon { color: var(--sky); margin-top: 4px; width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 22px; font-size: .88rem; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.footer-bottom p { margin: 0; }

/* ---------- Dialogs (Get Involved + lightbox) ---------- */
dialog { border: 0; padding: 0; max-width: min(560px, calc(100vw - 32px)); width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); color: var(--body); }
dialog::backdrop { background: rgba(0, 8, 60, .65); backdrop-filter: blur(4px); }
dialog[open] { animation: pop .3s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.dialog-head { padding: 28px 28px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dialog-head h2 { font-size: 1.6rem; margin: 0 0 4px; }
.dialog-head p { margin: 0; color: var(--muted); font-size: .95rem; }
.dialog-body { padding: 24px 28px 28px; }
.dialog-close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); cursor: pointer; display: grid; place-items: center; flex: none; color: var(--ink); }
.dialog-close:hover { background: var(--line); }
.lightbox { max-width: min(1100px, calc(100vw - 32px)); background: transparent; box-shadow: none; overflow: visible; }
.lightbox img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--radius); }
.lightbox p { color: var(--white); text-align: center; font-weight: 600; margin: 14px 0 0; }
.lightbox .dialog-close { position: absolute; top: -56px; right: 0; background: rgba(255, 255, 255, .15); color: var(--white); }

/* ---------- 404 ---------- */
.not-found { text-align: center; padding-block: clamp(80px, 12vw, 160px); }
.not-found .code { font-size: clamp(6rem, 18vw, 10rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; color: var(--blue); margin-bottom: 12px; }
.not-found .btn-row { justify-content: center; }

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .cta-band, dialog, .skip-link { display: none !important; }
  body { color: #000; }
}
