/* ==========================================================================
   American Water Ecosystems Rescue Foundation — awerf.org
   Global Design System  |  style.css
   Palette: deep forest green / lake teal / white / gold / light grey
   Type: Fraunces (display serif) + Inter (UI / body)
   ========================================================================== */

/* ---------- 1. Design Tokens ---------- */
:root {
    /* Greens — derived from logo ring #04862b */
    --green-900: #063a1a;
    --green-800: #084d22;
    --green-700: #06732a;
    --green-600: #04862b;
    --green-500: #16a23c;
    --green-400: #45b863;

    /* Blues — derived from logo interior (sky #3ebdfd, water #0666bb) */
    --teal-700: #0a5198;
    --teal-600: #0a66bb;
    --teal-500: #1786d8;
    --teal-400: #3ebdfd;
    --teal-100: #dcefff;

    /* Accents & neutrals */
    --gold:      #c9a24b;
    --gold-soft: #e8d199;
    --ink:       #0d2118;
    --slate:     #54635b;
    --mist:      #eef4ef;
    --mist-2:    #f5faf6;
    --line:      #e0e9e3;
    --white:     #ffffff;

    /* Gradients */
    --grad-brand: linear-gradient(120deg, var(--green-600) 0%, var(--teal-500) 100%);
    --grad-deep:  linear-gradient(155deg, var(--green-900) 0%, var(--green-800) 38%, var(--teal-700) 100%);
    --grad-gold:  linear-gradient(120deg, #d9b463 0%, #c9a24b 60%, #b8893a 100%);

    /* Type scale (fluid) */
    --fs-hero:  clamp(2.7rem, 6vw, 5.2rem);
    --fs-h1:    clamp(2.2rem, 4.6vw, 3.6rem);
    --fs-h2:    clamp(1.8rem, 3.4vw, 2.8rem);
    --fs-h3:    clamp(1.25rem, 2vw, 1.6rem);
    --fs-lead:  clamp(1.05rem, 1.5vw, 1.3rem);
    --fs-body:  1.0625rem;
    --fs-small: 0.875rem;

    /* Spacing / radius / shadow */
    --container: 1240px;
    --container-narrow: 880px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section-y: clamp(5rem, 11vw, 9rem);
    --radius-sm: 12px;
    --radius:    18px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    --shadow-sm: 0 2px 10px rgba(11,31,26,.06);
    --shadow:    0 18px 50px -20px rgba(11,31,26,.28);
    --shadow-lg: 0 40px 80px -30px rgba(11,31,26,.40);
    --ease: cubic-bezier(.22,1,.36,1);
    --transition: .45s var(--ease);

    --header-h: 80px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: var(--fs-body);
    line-height: 1.7;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
::selection { background: var(--teal-500); color: #fff; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--green-900);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p  { color: var(--slate); }
strong { color: var(--ink); }

.display { font-size: var(--fs-hero); line-height: 1.02; letter-spacing: -0.02em; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--slate); }
.serif-italic { font-style: italic; font-family: 'Fraunces', serif; }

/* ---------- 4. Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow   { max-width: var(--container-narrow); margin-inline: auto; }
.section  { padding-block: var(--section-y); position: relative; }
.section--mist { background: var(--mist-2); }
.section--deep { background: var(--grad-deep); color: #fff; }
.section--deep h1,.section--deep h2,.section--deep h3 { color: #fff; }
.section--deep p { color: rgba(255,255,255,.78); }

.grid { display: grid; gap: clamp(1.25rem, 2.4vw, 2rem); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.items-center { align-items: center; }

/* ---------- 5. Eyebrow / section heads ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    font-family: 'Inter', sans-serif;
    font-size: .78rem; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase;
    color: var(--teal-600);
    margin-bottom: 1.1rem;
}
.eyebrow::before {
    content: ""; width: 26px; height: 2px;
    background: var(--gold); border-radius: 2px;
}
.section--deep .eyebrow { color: var(--gold-soft); }
.section-head { max-width: 720px; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 1.1rem; font-size: var(--fs-lead); }

/* ---------- 6. Buttons ---------- */
.btn {
    --pad-y: .95rem; --pad-x: 1.7rem;
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
    padding: var(--pad-y) var(--pad-x);
    font-size: .98rem; font-weight: 600; letter-spacing: .01em;
    border-radius: 100px;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
    will-change: transform;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform var(--transition); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary {
    background: var(--grad-gold); color: #2a2008;
    box-shadow: 0 14px 30px -12px rgba(201,162,75,.6);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -12px rgba(201,162,75,.7); }
.btn-solid {
    background: var(--green-600); color: #fff;
    box-shadow: 0 14px 30px -14px rgba(17,94,72,.7);
}
.btn-solid:hover { transform: translateY(-3px); background: var(--green-700); }
.btn-ghost {
    background: rgba(255,255,255,.1); color: #fff;
    border: 1.5px solid rgba(255,255,255,.45);
    backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.92); color: var(--green-800); transform: translateY(-3px); border-color: transparent; }
.btn-outline {
    background: transparent; color: var(--green-700);
    border: 1.5px solid var(--line);
}
.btn-outline:hover { border-color: var(--green-600); color: var(--green-800); transform: translateY(-3px); background: var(--mist); }
.btn-lg { --pad-y: 1.15rem; --pad-x: 2.1rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.text-link {
    display: inline-flex; align-items: center; gap: .5rem;
    color: var(--teal-600); font-weight: 600;
    border-bottom: 2px solid transparent; transition: var(--transition);
}
.text-link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.text-link:hover { color: var(--green-700); }
.text-link:hover svg { transform: translateX(4px); }

/* ---------- 7. Header / Nav ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 1000;
    height: var(--header-h);
    display: flex; align-items: center;
    transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.site-header.scrolled {
    height: 68px;
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(16px);
    box-shadow: 0 1px 0 var(--line), 0 10px 30px -20px rgba(11,31,26,.5);
}

/* brand */
.brand { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand__logo { width: 46px; height: 46px; flex-shrink: 0; transition: var(--transition); }
.brand:hover .brand__logo { transform: rotate(-6deg) scale(1.04); }
.brand__name { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name b {
    font-family: 'Fraunces', serif; font-weight: 600; font-size: .98rem;
    letter-spacing: 0; color: var(--white); white-space: nowrap;
    transition: color var(--transition);
}
.brand__name span {
    font-size: .56rem; letter-spacing: .34em; text-transform: uppercase;
    color: var(--gold-soft); font-weight: 500; white-space: nowrap;
    padding-left: .03em; margin-top: .22em;
    transition: color var(--transition);
}
.scrolled .brand__name b { color: var(--green-900); }
.scrolled .brand__name span { color: var(--gold); }

/* nav */
.nav { display: flex; align-items: center; gap: clamp(.4rem, 1.3vw, 1.4rem); }
.nav a {
    position: relative; font-size: .92rem; font-weight: 500;
    color: rgba(255,255,255,.9); padding: .4rem 0;
    transition: color var(--transition);
}
.nav a::after {
    content: ""; position: absolute; left: 0; bottom: -2px;
    width: 0; height: 2px; background: var(--gold); border-radius: 2px;
    transition: width var(--transition);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.scrolled .nav a { color: var(--green-900); }
.nav a:hover { color: var(--gold); }
.scrolled .nav a:hover { color: var(--teal-600); }

.header-actions { display: flex; align-items: center; gap: .8rem; }

/* language toggle */
.lang-toggle {
    display: inline-flex; align-items: center;
    border: 1.5px solid rgba(255,255,255,.4); border-radius: 100px;
    overflow: hidden; font-size: .76rem; font-weight: 700;
    transition: var(--transition);
}
.scrolled .lang-toggle { border-color: var(--line); }
.lang-toggle button {
    padding: .35rem .75rem; color: rgba(255,255,255,.85);
    letter-spacing: .04em; transition: var(--transition);
}
.scrolled .lang-toggle button { color: var(--slate); }
.lang-toggle button.on { background: var(--gold); color: #2a2008; }

.nav-donate { padding: .6rem 1.3rem; font-size: .9rem; }

/* burger */
.burger { display: none; width: 44px; height: 44px; position: relative; flex-shrink: 0; }
.burger span {
    position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px;
    background: #fff; transition: var(--transition);
}
.scrolled .burger span { background: var(--green-900); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
.burger.open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* mobile drawer */
.mobile-nav {
    position: fixed; inset: 0; z-index: 999;
    background: var(--grad-deep);
    display: flex; flex-direction: column; justify-content: center;
    padding: 6rem var(--gutter) 3rem;
    transform: translateX(100%); transition: transform .5s var(--ease);
    visibility: hidden;
}
.mobile-nav.open { transform: translateX(0); visibility: visible; }
.mobile-nav a {
    font-family: 'Fraunces', serif; font-size: 1.8rem; color: #fff;
    padding: .55rem 0; border-bottom: 1px solid rgba(255,255,255,.12);
    opacity: 0; transform: translateY(18px);
    transition: opacity .4s var(--ease), transform .4s var(--ease), color .3s;
}
.mobile-nav.open a { opacity: 1; transform: translateY(0); }
.mobile-nav a:hover { color: var(--gold-soft); }
.mobile-nav .btn { margin-top: 2rem; opacity: 0; transition: opacity .5s .3s; }
.mobile-nav.open .btn { opacity: 1; }

/* ---------- 8. Hero ---------- */
.hero {
    position: relative; min-height: 100svh;
    display: flex; align-items: center;
    color: #fff; overflow: hidden;
    padding-top: var(--header-h);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__bg img {
    width: 100%; height: 120%; object-fit: cover;
    will-change: transform;
}
.hero__overlay {
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgba(6,58,26,.55) 0%, rgba(6,58,26,.28) 35%, rgba(8,52,90,.80) 100%),
        linear-gradient(90deg, rgba(6,58,26,.66) 0%, rgba(6,58,26,0) 60%);
}
.hero__inner { max-width: 760px; padding-block: 4rem; }
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    padding: .45rem 1rem; border-radius: 100px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(6px);
    font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
    color: #fff; margin-bottom: 1.7rem;
}
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,75,.25); }
.hero h1 { color: #fff; margin-bottom: 1.5rem; }
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero__sub { font-size: var(--fs-lead); color: rgba(255,255,255,.88); max-width: 620px; margin-bottom: 2.4rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__scroll {
    position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: .6rem;
    color: rgba(255,255,255,.75); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
}
.hero__scroll .mouse {
    width: 24px; height: 38px; border: 2px solid rgba(255,255,255,.55); border-radius: 14px;
    position: relative;
}
.hero__scroll .mouse::after {
    content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 7px;
    background: #fff; border-radius: 2px; transform: translateX(-50%);
    animation: scrollDot 1.7s var(--ease) infinite;
}
@keyframes scrollDot { 0%{opacity:0;transform:translate(-50%,0)} 35%{opacity:1} 70%{opacity:0;transform:translate(-50%,12px)} 100%{opacity:0} }

/* hero stat strip */
.hero__stats {
    position: relative; z-index: 2; margin-top: 3rem;
    display: flex; flex-wrap: wrap; gap: 2.4rem;
    padding-top: 1.8rem; border-top: 1px solid rgba(255,255,255,.18);
}
.hero__stats .stat b { font-family: 'Fraunces', serif; font-size: 1.9rem; color: #fff; display: block; line-height: 1; }
.hero__stats .stat span { font-size: .82rem; color: rgba(255,255,255,.7); letter-spacing: .03em; }

/* ---------- 9. Cards ---------- */
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(1.5rem, 2.6vw, 2.1rem);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    height: 100%;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
    width: 56px; height: 56px; border-radius: 16px;
    display: grid; place-items: center; margin-bottom: 1.3rem;
    background: var(--teal-100); color: var(--teal-700);
    transition: var(--transition);
}
.card:hover .card__icon { background: var(--grad-brand); color: #fff; transform: rotate(-6deg); }
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .6rem; }
.card p { font-size: .98rem; }
.card__index { font-family: 'Fraunces', serif; font-size: .9rem; color: var(--gold); font-weight: 600; }

/* numbered research card variant */
.rcard { position: relative; overflow: hidden; }
.rcard__num {
    font-family: 'Fraunces', serif; font-size: 3.4rem; line-height: 1;
    color: var(--mist); font-weight: 600; transition: var(--transition);
}
.rcard:hover .rcard__num { color: var(--gold-soft); }
.rcard h3 { font-size: 1.18rem; margin: .8rem 0 .5rem; }

/* ---------- 10. Media / figure ---------- */
.media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--tall { aspect-ratio: 4/5; }
.media--wide { aspect-ratio: 16/10; }
.media__badge {
    position: absolute; left: 1.2rem; bottom: 1.2rem; z-index: 2;
    background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
    padding: .7rem 1.1rem; border-radius: 14px; box-shadow: var(--shadow-sm);
    display: flex; align-items: center; gap: .7rem;
}
.media__badge b { font-family: 'Fraunces', serif; color: var(--green-800); font-size: 1.3rem; line-height: 1; }
.media__badge span { font-size: .72rem; color: var(--slate); }
.media__badge .ico { width: 36px; height: 36px; border-radius: 10px; background: var(--grad-brand); display: grid; place-items: center; color: #fff; }
.media__badge .ico svg { width: 20px; height: 20px; }

/* floating decoration */
.float-card {
    position: absolute; z-index: 3; background: #fff; border-radius: var(--radius);
    padding: 1.1rem 1.3rem; box-shadow: var(--shadow);
    display: flex; align-items: center; gap: .9rem;
}

/* ---------- 11. Stats band ---------- */
.stats-band { display: grid; grid-template-columns: repeat(4,1fr); gap: clamp(1rem,3vw,2.5rem); text-align: center; }
.stat-block .num {
    font-family: 'Fraunces', serif; font-weight: 600;
    font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1;
    background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section--deep .stat-block .num { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; }
.stat-block .label { margin-top: .7rem; font-size: .95rem; font-weight: 500; }
.section--deep .stat-block .label { color: rgba(255,255,255,.8); }
.stat-block .sub { font-size: .8rem; color: var(--slate); margin-top: .2rem; }
.section--deep .stat-block .sub { color: rgba(255,255,255,.55); }

/* ---------- 12. Split feature (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__body .eyebrow { margin-bottom: 1rem; }
.split__body h2 { margin-bottom: 1.2rem; }
.split__body p + p { margin-top: 1rem; }

/* checklist */
.check-list { display: grid; gap: .9rem; margin-top: 1.6rem; }
.check-list li { display: flex; gap: .8rem; align-items: flex-start; color: var(--ink); }
.check-list .tick {
    flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
    background: var(--green-600); color: #fff; display: grid; place-items: center; margin-top: .15rem;
}
.check-list .tick svg { width: 14px; height: 14px; }
.section--deep .check-list li { color: rgba(255,255,255,.9); }

/* ---------- 13. Action plan timeline ---------- */
.timeline { display: grid; gap: 0; position: relative; }
.tl-item {
    display: grid; grid-template-columns: 120px 1fr; gap: clamp(1rem,3vw,2.5rem);
    padding: 1.8rem 0; border-top: 1px solid var(--line); align-items: start;
}
.tl-item:last-child { border-bottom: 1px solid var(--line); }
.tl-num { font-family: 'Fraunces', serif; font-size: 2rem; color: var(--teal-500); font-weight: 600; }
.tl-item h3 { margin-bottom: .5rem; }
.section--deep .tl-item { border-color: rgba(255,255,255,.14); }

/* ---------- 14. Partnership chips ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.partner {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 1.5rem 1.2rem; display: flex; flex-direction: column; align-items: center; gap: .9rem;
    text-align: center; transition: var(--transition);
}
.partner:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.partner .pico { width: 52px; height: 52px; border-radius: 14px; background: var(--mist); color: var(--green-600); display: grid; place-items: center; transition: var(--transition); }
.partner:hover .pico { background: var(--grad-brand); color: #fff; }
.partner .pico svg { width: 26px; height: 26px; }
.partner span { font-size: .92rem; font-weight: 500; color: var(--ink); line-height: 1.4; }

/* ---------- 15. CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(3rem,7vw,5.5rem); color: #fff; }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__bg::after { content:""; position:absolute; inset:0; background: linear-gradient(120deg, rgba(6,58,26,.92), rgba(8,60,128,.84)); }
.cta-band .inner { position: relative; max-width: 680px; }
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,.85); margin-bottom: 2rem; font-size: var(--fs-lead); }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- 16. Forms ---------- */
.contact-form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: .45rem; letter-spacing: .02em; }
.contact-form input, .contact-form textarea, .contact-form select {
    width: 100%; padding: .95rem 1.1rem;
    border: 1.5px solid var(--line); border-radius: 14px;
    background: var(--white); color: var(--ink); transition: var(--transition);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
    outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(27,152,168,.14);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #9aa8a3; }

/* info card */
.info-card { background: var(--grad-deep); color: #fff; border-radius: var(--radius-lg); padding: clamp(2rem,4vw,3rem); }
.info-card h3 { color: #fff; }
.info-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1.1rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.info-row:last-child { border-bottom: none; }
.info-row .ico { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.12); display: grid; place-items: center; color: var(--gold-soft); }
.info-row .ico svg { width: 22px; height: 22px; }
.info-row b { display: block; color: #fff; font-family: 'Inter',sans-serif; font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: .2rem; }
.info-row a, .info-row p { color: rgba(255,255,255,.92); }

/* ---------- 17. Footer ---------- */
footer {
    background: var(--green-900); color: rgba(255,255,255,.75);
    padding-top: clamp(3.5rem, 7vw, 5.5rem);
    position: relative; overflow: hidden;
}
footer .wave-top { position: absolute; top: 0; left: 0; width: 100%; height: 60px; }
.footer-content { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.footer-brand img { width: 50px; height: 50px; }
.footer-brand b { font-family: 'Fraunces', serif; color: #fff; font-size: 1.15rem; line-height: 1.1; }
.footer-brand span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--teal-400); }
.footer-section h4 { color: #fff; font-family: 'Inter',sans-serif; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.2rem; font-weight: 700; }
.footer-section a, .footer-section p { color: rgba(255,255,255,.68); font-size: .94rem; line-height: 1.5; display: block; padding: .3rem 0; transition: var(--transition); }
.footer-section a:hover { color: var(--gold-soft); transform: translateX(3px); }
.footer-social { display: flex; gap: .7rem; margin-top: 1.2rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); display: grid; place-items: center; color: rgba(255,255,255,.7); }
.footer-social a:hover { background: var(--gold); color: #2a2008; border-color: transparent; transform: translateY(-3px); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 1.8rem 0; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .85rem; }
.footer-partner { text-align: right; font-size: .82rem; color: rgba(255,255,255,.5); }
.footer-partner a { color: var(--teal-400); }
.footer-partner a:hover { color: var(--gold-soft); }

/* ---------- 18. Inner page hero ---------- */
.page-hero {
    position: relative; padding-top: calc(var(--header-h) + clamp(3rem,7vw,6rem));
    padding-bottom: clamp(3rem,7vw,5.5rem);
    color: #fff; overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after { content:""; position:absolute; inset:0; background: linear-gradient(165deg, rgba(6,58,26,.88), rgba(8,60,128,.74)); }
.page-hero h1 { color: #fff; max-width: 800px; }
.page-hero .lead { color: rgba(255,255,255,.85); max-width: 640px; margin-top: 1.2rem; }
.breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .82rem; color: rgba(255,255,255,.7); margin-bottom: 1.4rem; }
.breadcrumb a:hover { color: var(--gold-soft); }
.breadcrumb span { opacity: .5; }

/* prose */
.prose p { font-size: var(--fs-body); margin-bottom: 1.2rem; line-height: 1.8; }
.prose h2 { margin: 2.4rem 0 1rem; }
.prose h3 { margin: 1.8rem 0 .7rem; }
.prose ul { display: grid; gap: .7rem; margin: 1rem 0 1.5rem; }
.prose ul li { display: flex; gap: .7rem; color: var(--slate); }
.prose ul li::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; margin-top: .55rem; border-radius: 50%; background: var(--teal-500); }

/* pull quote */
.pullquote {
    border-left: 4px solid var(--gold); padding: .4rem 0 .4rem 1.6rem;
    font-family: 'Fraunces', serif; font-size: clamp(1.3rem,2.4vw,1.7rem); font-style: italic;
    color: var(--green-800); line-height: 1.45; margin: 2rem 0;
}

/* fact box */
.fact {
    background: var(--mist-2); border: 1px solid var(--line); border-radius: var(--radius);
    padding: clamp(1.5rem,3vw,2.2rem); display: grid; gap: .4rem;
}
.fact .big { font-family: 'Fraunces',serif; font-size: clamp(2rem,4vw,2.8rem); color: var(--teal-600); font-weight: 600; line-height: 1; }
.fact .cap { font-size: .92rem; color: var(--slate); }

/* ---------- 19. Scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: transform, opacity; }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal].in { transform: none; }
[data-delay="1"] { transition-delay: .1s; }
[data-delay="2"] { transition-delay: .2s; }
[data-delay="3"] { transition-delay: .3s; }
[data-delay="4"] { transition-delay: .4s; }
[data-delay="5"] { transition-delay: .5s; }
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1 !important; transform: none !important; }
    .hero__bg img { height: 100% !important; }
    * { animation-duration: .001ms !important; transition-duration: .15s !important; }
}

/* ---------- 20. Decorative wave divider ---------- */
.wave-divider { line-height: 0; }
.wave-divider svg { width: 100%; height: clamp(40px, 7vw, 90px); display: block; }

/* ---------- 21. Language visibility ---------- */
.lang-zh { display: none; }
body.zh .lang-en { display: none; }
body.zh .lang-zh { display: inline; }
body.zh .lang-zh.block { display: block; }
/* keep flow for block-level translated wrappers */
[data-lang-block].lang-zh { display: none; }
body.zh [data-lang-block].lang-en { display: none; }
body.zh [data-lang-block].lang-zh { display: block; }

/* ---------- 22. Responsive ---------- */
@media (max-width: 1024px) {
    .footer-content { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .stats-band, .partner-grid { grid-template-columns: repeat(2,1fr); }
    .cols-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
    .nav, .header-actions .lang-toggle, .nav-donate { display: none; }
    .burger { display: block; }
    .split, .cols-2, .cols-3 { grid-template-columns: 1fr; }
    .split--reverse .split__media { order: 0; }
    .tl-item { grid-template-columns: 64px 1fr; gap: 1.2rem; }
    .form-row { grid-template-columns: 1fr; }
    .hero__stats { gap: 1.5rem; }
    .hero__stats .stat b { font-size: 1.5rem; }
}
@media (max-width: 560px) {
    .stats-band, .partner-grid, .footer-content { grid-template-columns: 1fr 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .hero__cta .btn, .cta-band .btns .btn { width: 100%; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-partner { text-align: center; }
}
