/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --blue-dark:  #0f2d5e;
    --blue:       #1b4f8a;
    --blue-mid:   #2563eb;
    --red:        #dc2626;
    --red-soft:   #ef4444;
    --teal:       #0891b2;
    --bg-light:   #f0f6ff;
    --bg-soft:    #fafafa;
    --text-dark:  #0d1421;
    --text-mid:   #374151;
    --text-soft:  #6b7280;
    --white:      #ffffff;
    --border:     #e5e7eb;
    --shadow:     0 4px 24px rgba(15,45,94,.10);
    --shadow-lg:  0 8px 48px rgba(15,45,94,.18);
    --radius:     16px;
    --radius-sm:  10px;
    --ease:       all .3s cubic-bezier(.4,0,.2,1);
    --font-body:  'Inter', -apple-system, sans-serif;
    --font-head:  'Poppins', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-dark); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

.container  { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }

h1,h2,h3,h4 { font-family: var(--font-head); line-height: 1.2; }

.eyebrow {
    display: inline-block;
    font-size: 12px; font-weight: 700;
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--blue-mid); margin-bottom: 12px;
}
.eyebrow.red   { color: var(--red-soft); }
.eyebrow.teal  { color: var(--teal); }
.eyebrow.white { color: rgba(255,255,255,.65); }

.section-title    { font-size: clamp(28px,4vw,44px); font-weight: 800; color: var(--text-dark); margin-bottom: 16px; }
.section-subtitle { font-size: 18px; color: var(--text-soft); max-width: 640px; line-height: 1.7; }
.section-header   { margin-bottom: 64px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: 50px;
    font-family: var(--font-body); font-size: 15px; font-weight: 600;
    cursor: pointer; border: 2px solid transparent;
    transition: var(--ease); text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: #b91c1c; border-color: #b91c1c; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(220,38,38,.35); }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,.45); }
.btn-secondary:hover { background: rgba(255,255,255,.12); border-color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: var(--white); transform: translateY(-2px); }
.btn-white { background: var(--white); color: var(--blue-dark); border-color: var(--white); }
.btn-white:hover { background: var(--bg-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.btn-lg { padding: 18px 36px; font-size: 16px; }

/* ===== NAVIGATION ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    transition: var(--ease); padding: 18px 0;
    background: transparent;
}
.nav.scrolled {
    background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
    padding: 12px 0; box-shadow: 0 2px 20px rgba(15,45,94,.10);
}
.nav.solid {
    background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
    padding: 12px 0; box-shadow: 0 2px 20px rgba(15,45,94,.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; overflow: visible; }

.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo-icon {
    width: 38px; height: 38px; background: var(--red); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
}
.nav-logo-text { font-family: var(--font-head); font-size: 17px; font-weight: 700; transition: var(--ease); }
.nav.transparent .nav-logo-text,
.nav:not(.scrolled):not(.solid) .nav-logo-text { color: var(--white); }
.nav.scrolled .nav-logo-text,
.nav.solid .nav-logo-text { color: var(--blue-dark); }

.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; overflow: visible; }

/* Only style TOP-LEVEL nav links (not dropdown links) */
.nav-links > a,
.nav-links > .nav-item > .nav-dd-trigger {
    font-size: 14px; font-weight: 500; padding: 8px 11px;
    border-radius: 8px; transition: var(--ease); white-space: nowrap;
    display: inline-flex; align-items: center; gap: 3px;
}
.nav:not(.scrolled):not(.solid) .nav-links > a,
.nav:not(.scrolled):not(.solid) .nav-links > .nav-item > .nav-dd-trigger { color: rgba(255,255,255,.88); }
.nav.scrolled .nav-links > a, .nav.scrolled .nav-links > .nav-item > .nav-dd-trigger,
.nav.solid .nav-links > a, .nav.solid .nav-links > .nav-item > .nav-dd-trigger { color: var(--text-mid); }
.nav:not(.scrolled):not(.solid) .nav-links > a:hover,
.nav:not(.scrolled):not(.solid) .nav-links > .nav-item > .nav-dd-trigger:hover { background: rgba(255,255,255,.12); color: var(--white); }
.nav.scrolled .nav-links > a:hover, .nav.scrolled .nav-links > .nav-item > .nav-dd-trigger:hover,
.nav.solid .nav-links > a:hover, .nav.solid .nav-links > .nav-item > .nav-dd-trigger:hover { background: var(--bg-light); color: var(--blue); }
.nav-links > a.active { color: var(--blue-mid) !important; font-weight: 700; }
.nav:not(.scrolled):not(.solid) .nav-links > a.active { color: #fbbf24 !important; }

.nav-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-preorder {
    font-size: 13px !important; padding: 8px 16px; border-radius: 50px;
    border: 1px solid rgba(255,255,255,.35); font-weight: 600; transition: var(--ease);
    white-space: nowrap;
}
.nav:not(.scrolled):not(.solid) .nav-preorder { color: rgba(255,255,255,.88); }
.nav.scrolled .nav-preorder,
.nav.solid .nav-preorder { color: var(--text-mid); border-color: var(--border); }
.nav-preorder:hover { background: rgba(255,255,255,.12); }
.nav.scrolled .nav-preorder:hover,
.nav.solid .nav-preorder:hover { background: var(--bg-light); }

.nav-donate {
    background: var(--red); color: var(--white) !important; font-size: 13px !important;
    padding: 9px 18px; border-radius: 50px; font-weight: 700; transition: var(--ease);
    white-space: nowrap;
}
.nav-donate:hover { background: #b91c1c; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(220,38,38,.35); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; border-radius: 2px; transition: var(--ease); }
.nav:not(.scrolled):not(.solid) .nav-hamburger span { background: var(--white); }
.nav.scrolled .nav-hamburger span,
.nav.solid .nav-hamburger span { background: var(--blue-dark); }


/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
    background: linear-gradient(135deg, #0a1628 0%, #0f2d5e 50%, #0f4c81 100%);
    padding: 160px 0 80px; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(37,99,235,.18) 0%, transparent 65%);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(32px,5vw,56px); font-weight: 900; color: var(--white); margin-bottom: 16px; }
.page-hero p { font-size: 18px; color: rgba(255,255,255,.75); max-width: 580px; margin: 0 auto; line-height: 1.7; }

/* ===== TRUST STRIP ===== */
.trust-strip { background: var(--blue-dark); padding: 13px 0; }
.trust-inner { display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 7px; color: rgba(255,255,255,.75); font-size: 13px; font-weight: 500; }
.trust-item svg { color: #4ade80; flex-shrink: 0; }

/* ===== CHECK LIST ===== */
.check-list { display: flex; flex-direction: column; gap: 14px; margin: 28px 0; }
.check-item { display: flex; align-items: flex-start; gap: 12px; }
.check-icon { width: 26px; height: 26px; background: var(--bg-light); border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.check-item p { margin: 0; font-size: 15px; color: var(--text-mid); }

/* ===== IMPACT CARDS ===== */
.impact-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.impact-card { background: var(--white); border-radius: var(--radius); padding: 36px 24px; text-align: center; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.impact-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--blue), var(--red)); }
.impact-num   { font-family: var(--font-head); font-size: clamp(26px,3.5vw,40px); font-weight: 900; color: var(--blue-dark); margin-bottom: 8px; line-height: 1; }
.impact-label { font-size: 14px; color: var(--text-soft); line-height: 1.55; }

/* ===== TEAM CARDS ===== */
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
.team-card { text-align: center; background: var(--white); border-radius: var(--radius); padding: 36px 24px; box-shadow: var(--shadow); transition: var(--ease); }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.team-avatar { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 28px; font-weight: 800; color: var(--white); }
.team-card:nth-child(1) .team-avatar { background: linear-gradient(135deg,#1b3a6b,#2563eb); }
.team-card:nth-child(2) .team-avatar { background: linear-gradient(135deg,#dc2626,#f97316); }
.team-card:nth-child(3) .team-avatar { background: linear-gradient(135deg,#0891b2,#06b6d4); }
.team-card:nth-child(4) .team-avatar { background: linear-gradient(135deg,#059669,#10b981); }
.team-card h3   { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.team-card .role{ font-size: 13px; color: var(--blue); font-weight: 600; margin-bottom: 12px; }
.team-card .bio { font-size: 14px; color: var(--text-soft); line-height: 1.6; }

/* ===== DONATE BANNER ===== */
.donate-banner { background: linear-gradient(135deg,#dc2626,#991b1b); color: var(--white); text-align: center; padding: 88px 0; position: relative; overflow: hidden; }
.donate-banner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(255,255,255,.08) 0%, transparent 70%); }
.donate-banner h2 { font-size: clamp(26px,4vw,44px); font-weight: 800; margin-bottom: 16px; position: relative; }
.donate-banner p  { font-size: 18px; color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 36px; line-height: 1.75; position: relative; }
.donate-banner .btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ===== FOOTER ===== */
.footer { background: #0a1628; color: rgba(255,255,255,.7); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-text { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--white); }
.footer-brand p { font-size: 15px; line-height: 1.75; margin-bottom: 20px; }
.footer-501c3 { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 8px 14px; font-size: 12px; font-weight: 500; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--white); margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,.55); transition: var(--ease); }
.footer-col ul li a:hover { color: var(--white); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.08); margin-bottom: 24px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 13px; }
.footer-email a { font-size: 13px; color: rgba(255,255,255,.5); transition: var(--ease); }
.footer-email a:hover { color: var(--white); }

/* ===== DROPDOWN NAV ===== */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.caret { font-size: 9px; transition: transform .22s ease; display: inline-block; margin-left: 2px; }
.nav-item:hover > .nav-dd-trigger .caret { transform: rotate(180deg); }

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: 0 8px 32px rgba(15,45,94,.18);
    border: 1px solid var(--border);
    min-width: 210px;
    padding: 8px;
    z-index: 9999;
    white-space: nowrap;
}
.nav-dropdown::before { content:''; position:absolute; top:-8px; left:0; right:0; height:8px; }
.nav-item:hover > .nav-dropdown { display: block; }

.nav-dropdown a {
    display: block !important;
    padding: 9px 14px !important;
    border-radius: 7px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--text-mid) !important;
    background: transparent !important;
    white-space: nowrap !important;
    width: 100% !important;
}
.nav-dropdown a:hover { background: var(--bg-light) !important; color: var(--blue) !important; }
.nav-dropdown a.active { color: var(--blue-mid) !important; font-weight: 700 !important; }

.nav-dd-trigger.active-parent { color: var(--blue-mid) !important; font-weight: 700; }
.nav:not(.scrolled):not(.solid) .nav-dd-trigger.active-parent { color: #fbbf24 !important; }

/* Mobile collapsible nav toggles */
.mob-toggle {
    background: none; border: none; cursor: pointer;
    font-family: var(--font-head); font-size: 20px; font-weight: 700;
    color: var(--text-dark); display: flex; align-items: center; gap: 6px; padding: 0;
}
.mob-toggle .mob-caret { font-size: 11px; transition: transform .22s ease; display: inline-block; }
.mob-toggle.open .mob-caret { transform: rotate(180deg); }
.mob-section-items { display: none; flex-direction: column; align-items: center; gap: 12px; }
.mob-section-items.open { display: flex; }
.nav-mobile a.mob-sub { font-size: 15px !important; font-weight: 600 !important; color: var(--text-soft) !important; }

/* ===== ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }
.d4 { transition-delay: .4s; }

/* ===== NAV MOBILE ===== */
.nav-mobile {
    display: none; position: fixed; inset: 0;
    background: var(--white); z-index: 999;
    flex-direction: column; align-items: center;
    justify-content: flex-start;
    padding: 80px 24px 40px;
    overflow-y: auto; gap: 16px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--text-dark); }
.nav-mobile-close { position: absolute; top: 20px; right: 22px; font-size: 30px; cursor: pointer; color: var(--text-dark); line-height: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .team-grid   { grid-template-columns: repeat(2,1fr); }
    .impact-grid { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .section    { padding: 56px 0; }
    .section-sm { padding: 40px 0; }
    .section-header { margin-bottom: 40px; }
    .section-subtitle { font-size: 16px; }
    .team-grid   { grid-template-columns: repeat(2,1fr); }
    .impact-grid { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .nav-links, .nav-cta { display: none; }
    .nav-hamburger { display: flex; }
    .btn-lg { padding: 14px 22px; font-size: 15px; }
    .donate-banner { padding: 64px 0; }
    .donate-banner p { font-size: 16px; }
    .trust-inner { gap: 14px; }
    .page-hero { padding: 120px 0 52px; }
    .page-hero p { font-size: 16px; }
    .page-hero h1 { font-size: clamp(26px, 7vw, 48px); }
}
@media (max-width: 480px) {
    .section    { padding: 44px 0; }
    .section-sm { padding: 32px 0; }
    .container  { padding: 0 16px; }
    .team-grid   { grid-template-columns: 1fr; }
    .impact-grid { grid-template-columns: 1fr 1fr; }
    .section-header { margin-bottom: 28px; }
    .donate-banner { padding: 48px 0; }
    .footer-grid { gap: 24px; }
    .nav-logo-text { font-size: 15px; }
    .trust-inner { gap: 10px; flex-direction: column; align-items: flex-start; padding: 0 16px; }
    .trust-item { font-size: 12px; }
}
