:root {
  --navy: #17365d;
  --navy-2: #102944;
  --gold: #d0a83a;
  --gold-dark: #b48924;
  --terracotta: #a85b3c;
  --sand: #f6f1e7;
  --paper: #fffdf8;
  --greige: #e8e2d7;
  --ink: #362b27;
  --muted: #6f655f;
  --white: #fff;
  --shadow: 0 18px 45px rgba(28, 35, 43, .12);
  --radius: 20px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  z-index: 9999;
  background: var(--white);
  color: var(--navy);
  padding: .7rem 1rem;
  border-radius: 8px;
}
.skip-link:focus { transform: translateY(0); }

.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.section { padding: 90px 0; }
.section-light { background: var(--sand); }
.section-warm { background: #eee5d8; }
.section-navy { background: linear-gradient(145deg, var(--navy-2), var(--navy)); color: #fff; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(23, 54, 93, .96);
  border-bottom: 1px solid rgba(208,168,58,.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(0,0,0,.14);
}
.nav-wrap { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  flex: 0 0 auto; border: 2px solid var(--gold); color: var(--gold); font-weight: 900; letter-spacing: .04em;
  box-shadow: inset 0 0 0 5px rgba(208,168,58,.08);
}
.brand-logo { object-fit: contain; background: #b8b8b8; }
.brand-name { font-weight: 800; line-height: 1.05; font-size: .98rem; }
.brand-name small { display: block; color: var(--gold); letter-spacing: .16em; margin-top: 4px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav > a:not(.btn) { color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; }
.site-nav > a:not(.btn):hover, .site-nav > a:not(.btn):focus-visible { color: var(--gold); }
.menu-toggle { display: none; background: transparent; border: 0; padding: 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 28px; height: 2px; background: #fff; margin: 6px 0; transition: .2s ease; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; text-decoration: none; font-weight: 800; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy-2); box-shadow: 0 10px 25px rgba(208,168,58,.22); }
.btn-gold:hover { background: #dfba50; }
.btn-light { background: rgba(255,255,255,.94); color: var(--navy); }

.hero {
  position: relative;
  min-height: 650px;
  display: grid;
  place-items: center;
  color: #fff;
  background: url('https://images.unsplash.com/photo-1511895426328-dc8714191300?auto=format&fit=crop&w=1800&q=84') center 42%/cover no-repeat;
  isolation: isolate;
  border-bottom: 5px solid var(--terracotta);
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(9,32,59,.9) 0%, rgba(23,54,93,.77) 52%, rgba(47,37,31,.62) 100%); z-index: -1; }
.hero-content { padding: 110px 0; max-width: 960px; text-align: center; }
.eyebrow { margin: 0 0 12px; color: var(--gold); text-transform: uppercase; font-weight: 900; letter-spacing: .14em; font-size: .78rem; }
.eyebrow.dark { color: var(--terracotta); }
.hero h1 { margin: 0 auto 18px; max-width: 920px; font-size: clamp(2.5rem, 6vw, 5rem); line-height: .99; letter-spacing: -.045em; }
.hero-lead { margin: 0 auto 30px; max-width: 760px; font-size: clamp(1.05rem, 2vw, 1.25rem); color: rgba(255,255,255,.92); }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.section-heading { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.section-heading h2 { margin: 0 0 12px; color: var(--navy); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; letter-spacing: -.035em; }
.section-heading p:last-child { margin: 0; color: var(--muted); font-size: 1.06rem; }
.section-heading.on-dark h2 { color: #fff; }
.section-heading.on-dark p:last-child { color: rgba(255,255,255,.78); }

.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }
.story-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(54,43,39,.08); }
.story-card img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }
.story-card img.story-logo { object-fit: contain; background: #b8b8b8; }
.story-copy { padding: 34px; }
.card-kicker { display: inline-block; color: var(--terracotta); font-weight: 900; text-transform: uppercase; font-size: .75rem; letter-spacing: .13em; margin-bottom: 8px; }
.story-copy h3 { margin: 0 0 14px; color: var(--navy); font-size: 1.55rem; line-height: 1.15; }
.story-copy p { margin: 0 0 14px; }
.story-copy p:last-child { margin-bottom: 0; }

.activities-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.activity-card { background: rgba(255,255,255,.96); color: var(--ink); padding: 28px; border-radius: 16px; border-top: 4px solid var(--terracotta); box-shadow: 0 15px 35px rgba(0,0,0,.12); }
.activity-card .icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: #f3e8dc; color: var(--terracotta); font-size: 1.3rem; font-weight: 900; margin-bottom: 20px; }
.activity-card h3 { color: var(--navy); margin: 0 0 10px; font-size: 1.12rem; }
.activity-card p { margin: 0; color: #5d534e; }

.support-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; max-width: 980px; margin: 0 auto; }
.support-card { position: relative; background: var(--paper); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); border: 1px solid rgba(54,43,39,.08); }
.support-card.featured { border: 2px solid rgba(208,168,58,.8); }
.support-card h3 { color: var(--navy); font-size: 1.45rem; margin: 12px 0; }
.support-card p { color: var(--muted); }
.badge { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; background: var(--gold); color: var(--navy-2); font-weight: 900; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.badge.subtle { background: #efe7dc; color: var(--terracotta); }
.copy-row { display: flex; gap: 10px; align-items: center; margin-top: 22px; background: #f6f0e6; border: 1px dashed #c7ad77; padding: 10px; border-radius: 12px; }
.copy-row code { flex: 1; overflow-wrap: anywhere; font: 700 .95rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--navy); }
.copy-btn { border: 0; border-radius: 10px; padding: 9px 12px; background: var(--navy); color: #fff; font-weight: 800; cursor: pointer; }
.copy-btn:hover { background: var(--navy-2); }
.data-note { text-align: center; color: var(--muted); max-width: 760px; margin: 24px auto 0; font-size: .92rem; }

.contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 60px; }
.contact-layout h2 { color: var(--navy); font-size: clamp(2rem,4vw,3.2rem); line-height: 1; margin: 0 0 14px; }
.contact-card { background: var(--paper); border-radius: var(--radius); padding: 34px; border-top: 4px solid var(--navy); box-shadow: var(--shadow); }
.contact-label { display: block; color: var(--terracotta); font-size: .78rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.contact-card a { color: var(--navy); font-weight: 900; text-decoration-thickness: 2px; text-underline-offset: 4px; overflow-wrap: anywhere; }
.contact-card p { margin-bottom: 0; color: var(--muted); }
.contact-detail { margin-top: 20px; padding-top: 18px; border-top: 1px solid #e6ddcf; }
.contact-detail address { font-style: normal; }
.contact-detail p { margin: 0; }

.site-footer { background: #2f2622; color: #f7f0e6; padding: 40px 0 24px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; }
.footer-grid p { margin: 6px 0 0; color: #cfc3b9; }
.footer-grid > a { color: var(--gold); font-weight: 800; text-decoration: none; }
.footer-bottom { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #bbaea4; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: #142d4f; color: #fff; padding: 10px 16px; border-radius: 999px; opacity: 0; pointer-events: none; transition: .2s ease; z-index: 2000; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

:focus-visible { outline: 3px solid #f3c957; outline-offset: 3px; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .site-nav { position: absolute; inset: 88px 20px auto 20px; background: var(--navy-2); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 18px; display: none; flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 8px 6px; }
  .nav-cta { margin-top: 4px; }
  .story-grid, .support-grid { grid-template-columns: 1fr; }
  .activities-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .contact-layout { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 28px, var(--max)); }
  .section { padding: 68px 0; }
  .nav-wrap { min-height: 78px; }
  .brand-mark { width: 46px; height: 46px; font-size: .82rem; }
  .brand-name { font-size: .8rem; }
  .site-nav { inset: 78px 14px auto 14px; }
  .hero { min-height: 590px; }
  .hero-content { padding: 86px 0; }
  .hero h1 { font-size: clamp(2.35rem, 14vw, 4rem); }
  .hero-actions .btn { width: 100%; }
  .activities-grid { grid-template-columns: 1fr; }
  .story-copy, .support-card, .contact-card { padding: 26px; }
  .copy-row { align-items: stretch; flex-direction: column; }
  .copy-btn { width: 100%; }
  .footer-grid { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
