:root {
  --navy: #12305a;
  --navy-2: #1c4277;
  --blue: #1f8fd6;
  --sky: #e6f3fc;
  --green: #4f9a2c;
  --green-2: #3f8221;
  --leaf: #eaf5e1;
  --ink: #17233a;
  --ink-2: #4a5872;
  --line: #e1e7ef;
  --bg: #fbfaf6;
  --card: #ffffff;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(18, 48, 90, .06), 0 12px 32px -12px rgba(18, 48, 90, .18);
  --serif: 'Literata', Georgia, serif;
  --sans: 'Commissioner', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 106.25%;
}
:root.fs-lg { font-size: 125%; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.65; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.18; color: var(--navy); margin: 0 0 .6em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.icon { flex: none; vertical-align: middle; }

.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--ink-2); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 10px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .72em 1.25em; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .9em 1.6em; font-size: 1.02rem; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px -10px rgba(18, 48, 90, .7); }
.btn-primary:hover { background: var(--navy-2); color: #fff; }
.btn-accent { background: var(--green); color: #fff; }
.btn-accent:hover { background: var(--green-2); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

/* Top bar & header */
.topbar { background: var(--navy); color: #d8e3f3; font-size: .82rem; }
.topbar-in { display: flex; gap: 24px; align-items: center; min-height: 40px; }
.topbar-in > span { display: inline-flex; align-items: center; gap: 6px; }
.fs-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .1); color: #fff; border: 0; border-radius: 999px; padding: 4px 12px; font: inherit; font-weight: 600; cursor: pointer; }
.fs-toggle[aria-pressed="true"] { background: var(--green); }

.header { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 246, .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(18, 48, 90, .5); }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { width: 64px; height: auto; object-fit: contain; }
.brand strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.brand small { display: block; color: var(--ink-2); font-size: .8rem; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 14px; border-radius: 999px; transition: background .2s; }
.nav a:not(.btn):hover { background: var(--sky); color: var(--navy); }
.nav a[aria-current="page"] { background: var(--sky); color: var(--navy); font-weight: 600; }
.nav-cta { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; width: 48px; height: 48px; align-items: center; justify-content: center; color: var(--navy); cursor: pointer; }
.menu-btn .icon:last-child { display: none; }
.menu-open .menu-btn .icon:first-child { display: none; }
.menu-open .menu-btn .icon:last-child { display: block; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px); }
.hero::before { content: ''; position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(circle, rgba(31, 143, 214, .14), transparent 60%); pointer-events: none; }
.hero::after { content: ''; position: absolute; left: -15vw; bottom: -30vw; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(79, 154, 44, .12), transparent 60%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-2); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 38em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; aspect-ratio: 5 / 4.4; object-fit: cover; object-position: 40% center; border-radius: 36px 36px 36px 120px; box-shadow: var(--shadow); }
.hero-badge { position: absolute; left: -24px; bottom: 28px; display: flex; align-items: center; gap: 12px; background: #fff; padding: 14px 20px 14px 14px; border-radius: 18px; box-shadow: var(--shadow); }
.hero-badge small { display: block; color: var(--ink-2); font-size: .78rem; }
.hero-badge a { font-weight: 700; color: var(--navy); text-decoration: none; font-size: 1.1rem; }
.badge-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--leaf); color: var(--green-2); }

/* Stats */
.stats { padding-bottom: 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--navy); color: #fff; border-radius: var(--radius); padding: 8px; box-shadow: var(--shadow); }
.stat { padding: 22px 24px; border-right: 1px solid rgba(255, 255, 255, .12); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; line-height: 1.2; }
.stat span { color: #c5d4ea; font-size: .88rem; }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tint { background: linear-gradient(180deg, var(--sky), #f3f9fd); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.prose { color: var(--ink-2); }
.prose p, .prose li { font-size: 1.02rem; }
.prose ul { padding-left: 1.2em; }
.prose strong { color: var(--ink); }
.lead-prose p:first-child { font-size: 1.15rem; color: var(--ink); }
.sub { margin-top: 28px; font-size: 1rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--leaf); color: var(--green-2); font-weight: 600; font-size: .9rem; }

/* Pillars & services */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 40px; }
.pillar, .service { background: var(--card); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border: 1px solid rgba(225, 231, 239, .6); }
.pillar p, .service p { color: var(--ink-2); }
.pillar-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--sky); color: var(--blue); margin-bottom: 20px; }
.pillar:nth-child(2) .pillar-icon, .service:nth-child(3n+2) .pillar-icon { background: var(--leaf); color: var(--green-2); }
.pillar:nth-child(3) .pillar-icon, .service:nth-child(3n) .pillar-icon { background: #fdeef0; color: #c2415a; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; font-size: .95rem; }
.ticks .icon { color: var(--green); margin-top: 3px; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { transition: transform .2s; }
.service:hover { transform: translateY(-3px); }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.news-card:hover { transform: translateY(-3px); }
.news-media { display: block; background: var(--sky); overflow: hidden; }
.news-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-fallback { width: 100%; aspect-ratio: 16 / 10; display: grid; place-items: center; color: var(--blue); background: linear-gradient(135deg, var(--sky), var(--leaf)); }
.news-body { padding: 22px 24px 26px; }
.news-body h3 { font-size: 1.12rem; margin-bottom: .4em; }
.news-body h3 a { color: var(--navy); text-decoration: none; }
.news-body h3 a:hover { color: var(--blue); }
.news-body > p:last-child { color: var(--ink-2); font-size: .95rem; margin: 0; }
.news-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--ink-2); font-size: .85rem; margin-bottom: 8px; }
.news-place { display: flex; gap: 6px; align-items: flex-start; color: var(--green-2); font-size: .88rem; font-weight: 600; margin-bottom: 8px; }
.news-place .icon { margin-top: 3px; }
.tag { margin-left: 6px; background: #fff3d6; color: #8a5a00; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: .75rem; }

/* Volunteer */
.volunteer { background: var(--navy); color: #d8e3f3; position: relative; overflow: hidden; }
.volunteer::before { content: ''; position: absolute; right: -10%; top: -40%; width: 60vw; height: 60vw; background: radial-gradient(circle, rgba(31, 143, 214, .35), transparent 60%); }
.volunteer h2 { color: #fff; }
.volunteer .eyebrow { color: #9fd47f; }
.volunteer .prose { color: #d8e3f3; }
.volunteer-grid { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.volunteer-card { background: #fff; color: var(--ink-2); border-radius: var(--radius); padding: 32px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .5); }
.volunteer-card .pillar-icon { background: var(--leaf); color: var(--green-2); }
.volunteer-card small { display: block; margin-top: 12px; color: var(--ink-2); word-break: break-all; }

/* Resource cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; text-decoration: none; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); color: var(--ink); transition: transform .2s; }
.card:hover { transform: translateY(-3px); color: var(--ink); }
.card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; }
.card-body strong { color: var(--navy); font-size: 1.1rem; }
.card-body > span:not(.card-more) { color: var(--ink-2); font-size: .95rem; }
.card-more { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-weight: 600; margin-top: 6px; font-size: .92rem; }

/* Contact */
.contact-strip { background: linear-gradient(180deg, var(--bg), var(--leaf)); }
.contact-strip-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: center; }
.info-list strong { display: block; color: var(--navy); }
.info-list a { text-decoration: none; word-break: break-word; }
.info-list small { color: var(--ink-2); font-size: .85rem; }
.info-icon { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: #fff; color: var(--blue); box-shadow: var(--shadow); }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--sky); }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.contact-aside { display: grid; gap: 28px; position: sticky; top: 100px; }
.contact-aside .map iframe { height: 300px; }

.form { background: var(--card); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.form h2 { font-size: 1.6rem; margin: 0 0 4px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; font-size: 1rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 143, 214, .15); }
.form .btn { justify-self: start; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute !important; left: -9999px; }
.alert { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 14px; margin: 0; font-weight: 500; }
.alert.ok { background: var(--leaf); color: var(--green-2); }
.alert.err { background: #fdeef0; color: #a3243c; }

/* Page head & article */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(24px, 4vw, 40px); background: radial-gradient(ellipse at top right, rgba(31, 143, 214, .12), transparent 55%), radial-gradient(ellipse at bottom left, rgba(79, 154, 44, .1), transparent 50%); }
.page-head h1 { max-width: 20em; }
.page-head + .section { padding-top: clamp(24px, 4vw, 48px); }
.back { display: inline-block; margin-bottom: 18px; text-decoration: none; font-weight: 600; }
.attachment { display: flex; align-items: center; gap: 16px; padding: 18px 22px; margin: 28px 0; background: var(--sky); border-radius: 18px; text-decoration: none; color: var(--navy); }
.attachment strong { display: block; }
.attachment small { color: var(--ink-2); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 32px; }
.gallery.single { grid-template-columns: 1fr; }
.gallery-item { padding: 0; border: 0; background: var(--sky); border-radius: 16px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.gallery.single .gallery-item { aspect-ratio: auto; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-item:hover img { transform: scale(1.04); }
.page-image { border-radius: var(--radius); margin-bottom: 28px; box-shadow: var(--shadow); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 22, 42, .92); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 12px; }
.lb-close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center; }

/* Footer */
.footer { background: #0d2342; color: #b9c8de; padding-top: 72px; font-size: .95rem; }
.footer h3 { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr; gap: 48px; padding-bottom: 48px; }
.brand-light { color: #fff; margin-bottom: 18px; }
.brand-light small { color: #9fb2cd; }
.brand-light img { background: #fff; border-radius: 12px; padding: 4px; }
.footer .muted { color: #9fb2cd; }
.footer a { color: #e2ebf7; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-link { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer-list li { display: flex; gap: 10px; align-items: flex-start; }
.footer-list .icon { margin-top: 3px; color: #7fb8e6; }
.footer-list a { word-break: break-word; }
.funding { background: #fff; border-radius: 18px; padding: 12px 24px; display: flex; justify-content: center; }
.funding img { max-height: 90px; width: auto; }
.footer-bottom { padding: 24px 0 32px; font-size: .85rem; color: #8196b3; }

/* Reveal on scroll */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .news-card, .service { transition: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .nav { position: fixed; inset: 116px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 30px 40px -30px rgba(18, 48, 90, .4); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .2s; max-height: calc(100vh - 116px); overflow: auto; }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: 14px 16px; font-size: 1.05rem; }
  .nav-cta { margin: 8px 0 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .pillars, .service-grid, .news-grid, .cards { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero-grid, .split, .volunteer-grid, .contact-strip-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media img { aspect-ratio: 4 / 3; border-radius: 28px 28px 28px 72px; }
  .hero-badge { left: 12px; bottom: 12px; }
  .contact-aside { position: static; }
}
@media (max-width: 600px) {
  .hide-sm { display: none !important; }
  .topbar-in { gap: 12px; }
  .header-in { min-height: 68px; }
  .nav { inset: 108px 0 auto 0; max-height: calc(100vh - 108px); }
  .brand img { width: 52px; }
  .brand strong { font-size: .98rem; }
  .stats-grid, .pillars, .service-grid, .news-grid, .cards, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .stat:last-child { border-bottom: 0; }
  .pillar, .service { padding: 24px; }
  .actions .btn { width: 100%; }
  .map iframe { height: 300px; }
}
