/* ==========================================================================
   Dr. Marie Phara Ambroise — Site de campagne
   Palette : vert & or EDE, accents bleu/rouge du drapeau haïtien
   ========================================================================== */

:root {
    --green-900: #0f3409;
    --green-700: #1f5c12;
    --green: #2e7d1a;
    --green-400: #4fa62c;
    --gold: #d4a93c;
    --gold-600: #b8860b;
    --gold-200: #f6e7b8;
    --blue: #00209f;
    --red: #d21034;

    --bg: #f7f6f1;
    --bg-alt: #efede4;
    --surface: #ffffff;
    --surface-2: #f3f2ec;
    --text: #14201a;
    --text-soft: #34433a;
    --muted: #5d6c63;
    --border: #e3e0d4;
    --ring: rgba(46, 125, 26, .35);
    --shadow-sm: 0 1px 2px rgba(15, 30, 20, .06), 0 1px 3px rgba(15, 30, 20, .08);
    --shadow: 0 10px 30px -12px rgba(15, 40, 20, .25);
    --shadow-lg: 0 30px 60px -20px rgba(15, 40, 20, .35);
    --hero-overlay: linear-gradient(105deg, rgba(8, 26, 12, .94) 0%, rgba(10, 35, 15, .82) 42%, rgba(10, 35, 15, .25) 100%);

    --radius: 18px;
    --radius-sm: 10px;
    --container: 1200px;
    --font-head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --ease: cubic-bezier(.22, 1, .36, 1);
    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #0a110d;
    --bg-alt: #0e1712;
    --surface: #121c16;
    --surface-2: #18251d;
    --text: #edf3ee;
    --text-soft: #c9d6cd;
    --muted: #93a69a;
    --border: #233229;
    --ring: rgba(212, 169, 60, .4);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .7);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .8);
    --green: #4fa62c;
    --green-400: #6cc246;
    --gold: #e3bb55;
    color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    transition: background-color .4s var(--ease), color .4s var(--ease);
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold); color: #111; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
.icon { flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* ---------- Loader & progress ---------- */
.page-loader {
    position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
    background: var(--bg); transition: opacity .5s ease, visibility .5s ease;
}
.page-loader img { width: 84px; animation: pulse-logo 1.2s ease-in-out infinite; }
.page-loader.is-hidden { opacity: 0; visibility: hidden; }
/* Never leave the loader up if the script fails to load */
.no-js .page-loader { display: none; }
.page-loader { animation: loader-timeout .5s 4s forwards; }
@keyframes loader-timeout { to { opacity: 0; visibility: hidden; } }
@keyframes pulse-logo { 0%, 100% { transform: scale(.92); opacity: .7; } 50% { transform: scale(1.05); opacity: 1; } }

.scroll-progress {
    position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 1001;
    background: linear-gradient(90deg, var(--blue), var(--green), var(--gold), var(--red));
    transform-origin: 0 50%; transform: scaleX(0);
}

/* ---------- Flag stripe ---------- */
.flag-stripe { height: 4px; display: flex; }
.flag-stripe span:first-child { flex: 1; background: var(--blue); }
.flag-stripe span:last-child { flex: 1; background: var(--red); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: color-mix(in srgb, var(--bg) 78%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled { border-color: var(--border); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 48px; height: 48px; object-fit: contain; border-radius: 12px; background: #fff; padding: 3px; box-shadow: var(--shadow-sm); }
.brand-text strong { display: block; font-family: var(--font-head); font-size: 1.35rem; line-height: 1; letter-spacing: .02em; }
.brand-text small { color: var(--muted); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
    position: relative; display: block; padding: 8px 12px; border-radius: 999px;
    font-weight: 500; font-size: .93rem; color: var(--text-soft); transition: color .2s, background-color .2s;
}
.nav-links a::after {
    content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px;
    background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--green); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
    display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--surface); cursor: pointer;
    transition: transform .3s var(--ease), border-color .2s, background-color .2s;
}
.icon-btn:hover { transform: rotate(-12deg) scale(1.05); border-color: var(--gold); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; color: var(--gold); }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.menu-toggle { display: none; }
.nav-donate { display: none; }

/* ---------- Buttons ---------- */
.btn {
    --btn-bg: var(--green); --btn-fg: #fff;
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 24px; border-radius: 999px; border: 0; cursor: pointer; overflow: hidden; isolation: isolate;
    background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--btn-bg) 70%, transparent);
}
.btn::before {
    content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
    transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px color-mix(in srgb, var(--btn-bg) 80%, transparent); }
.btn:hover::before { transform: translateX(120%); }
.btn:hover .icon { transform: translateX(3px); }
.btn .icon { transition: transform .3s var(--ease); }
.btn-gold { --btn-bg: linear-gradient(135deg, #e9c766, #c99a0e); --btn-fg: #1b1300; background: var(--btn-bg); box-shadow: 0 8px 20px -8px rgba(201, 154, 14, .7); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--text); border: 1.5px solid var(--border); box-shadow: none; }
.btn-outline:hover { border-color: var(--green); color: var(--green); box-shadow: none; }
.btn-light { --btn-bg: rgba(255, 255, 255, .12); --btn-fg: #fff; border: 1.5px solid rgba(255, 255, 255, .35); box-shadow: none; backdrop-filter: blur(6px); }
.btn-light:hover { --btn-bg: rgba(255, 255, 255, .2); box-shadow: none; }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: calc(100vh - 80px); display: flex; align-items: center;
    color: #fff; overflow: hidden; isolation: isolate; padding: 80px 0 110px;
}
.hero-bg { position: absolute; inset: -40px 0 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.08); animation: hero-zoom 18s ease-out forwards; }
@keyframes hero-zoom { to { transform: scale(1); } }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--hero-overlay); }
.hero::after {
    content: ''; position: absolute; inset: auto 0 0; height: 140px; z-index: -1;
    background: linear-gradient(to top, var(--bg), transparent);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 50px; align-items: center; }
.kicker {
    display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px;
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
    font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; backdrop-filter: blur(6px);
}
.kicker .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; }
.kicker .dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #1b1300; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hero h1 { font-size: clamp(3rem, 8vw, 6.4rem); margin: 22px 0 18px; text-transform: uppercase; letter-spacing: -.005em; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .15s; }
.hero h1 .accent { background: linear-gradient(90deg, #f6d77a, #d4a93c 60%, #fff3c4); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes rise { to { transform: translateY(0); } }
.hero-sub { max-width: 600px; font-size: 1.12rem; color: rgba(255, 255, 255, .85); margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-card {
    position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .18); transform: rotate(2deg);
    animation: float 7s ease-in-out infinite;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card figcaption {
    position: absolute; inset: auto 14px 14px; padding: 14px 16px; border-radius: 16px;
    background: rgba(10, 30, 14, .72); backdrop-filter: blur(10px); font-family: var(--font-serif); font-style: italic; font-size: .98rem; line-height: 1.4;
}
@keyframes float { 0%, 100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(1deg) translateY(-12px); } }
.hero-scroll {
    position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 26px; height: 42px;
    border: 2px solid rgba(255, 255, 255, .5); border-radius: 20px;
}
.hero-scroll::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scroll-dot 1.8s infinite; }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Countdown ---------- */
.countdown { display: flex; gap: 10px; margin-top: 34px; }
.countdown-item {
    min-width: 76px; padding: 10px 8px; text-align: center; border-radius: 14px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(6px);
}
.countdown-item strong { display: block; font-family: var(--font-head); font-size: 2rem; line-height: 1; }
.countdown-item span { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; opacity: .75; }
.countdown-label { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-top: 30px; }
.countdown-label + .countdown { margin-top: 10px; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; color: var(--gold-600);
    font-weight: 700; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 14px;
}
:root[data-theme="dark"] .eyebrow { color: var(--gold); }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.section-title { font-size: clamp(2.3rem, 5vw, 3.6rem); text-transform: uppercase; }
.section-title em { font-style: normal; color: var(--green); }
.lead { font-size: 1.1rem; color: var(--muted); }

/* ---------- Stats ---------- */
.stats { margin-top: -80px; position: relative; z-index: 2; }
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface);
    border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.stat { padding: 32px 26px; position: relative; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat strong { display: block; font-family: var(--font-head); font-size: 3.1rem; line-height: 1; color: var(--green); }
.stat strong::after { content: '+'; color: var(--gold); }
.stat span { color: var(--muted); font-size: .92rem; }

/* ---------- About / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.portrait { position: relative; }
.portrait img { border-radius: 28px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow-lg); position: relative; z-index: 1; }
.portrait::before {
    content: ''; position: absolute; inset: 26px -26px -26px 26px; border-radius: 28px;
    background: linear-gradient(135deg, var(--green), var(--gold)); opacity: .9;
}
.portrait .badge-float {
    position: absolute; z-index: 2; left: -24px; bottom: 40px; background: var(--surface); color: var(--text);
    padding: 16px 20px; border-radius: 16px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center;
    animation: float-y 5s ease-in-out infinite;
}
.badge-float .icon-wrap { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); }
.badge-float strong { display: block; font-family: var(--font-head); font-size: 1.2rem; line-height: 1.1; }
.badge-float small { color: var(--muted); }
@keyframes float-y { 50% { transform: translateY(-10px); } }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 28px 0 32px; }
.fact { padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.fact small { display: block; color: var(--gold-600); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; }
:root[data-theme="dark"] .fact small { color: var(--gold); }
.fact span { font-weight: 600; font-size: .95rem; }

/* ---------- Quote band ---------- */
.quote-band {
    position: relative; padding: 110px 0; color: #fff; text-align: center; overflow: hidden; isolation: isolate;
    background: radial-gradient(1000px 400px at 20% 0%, rgba(212, 169, 60, .25), transparent 60%), linear-gradient(135deg, var(--green-900), var(--green-700));
}
.quote-band::before {
    content: '“'; position: absolute; top: -60px; left: 50%; transform: translateX(-50%); z-index: -1;
    font-family: var(--font-serif); font-size: 26rem; line-height: 1; color: rgba(255, 255, 255, .05);
}
.quote-band blockquote { margin: 0 auto; max-width: 900px; font-family: var(--font-serif); font-style: italic; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.45; }
.quote-band cite { display: block; margin-top: 24px; font-style: normal; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .85rem; color: var(--gold-200); }

/* ---------- Cards / priorities ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
    position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--green) 35%, var(--border)); }
.priority { padding: 34px 30px; overflow: hidden; }
.priority::before {
    content: ''; position: absolute; inset: 0 0 auto; height: 4px;
    background: linear-gradient(90deg, var(--green), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.priority:hover::before { transform: scaleX(1); }
.priority .num { position: absolute; top: 18px; right: 24px; font-family: var(--font-head); font-size: 3.4rem; line-height: 1; color: var(--border); transition: color .3s; }
.priority:hover .num { color: color-mix(in srgb, var(--gold) 45%, transparent); }
.priority .icon-wrap {
    width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--green) 16%, transparent), color-mix(in srgb, var(--gold) 18%, transparent));
    color: var(--green); transition: transform .5s var(--ease);
}
.priority:hover .icon-wrap { transform: rotate(-8deg) scale(1.08); }
.priority h3 { font-size: 1.55rem; }
.priority p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---------- Post cards ---------- */
.post-card { display: flex; flex-direction: column; overflow: hidden; height: 100%; }
.post-card .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.07); }
.post-card .thumb .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0, 0, 0, .25); }
.post-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.5rem; margin-bottom: 10px; transition: color .2s; }
.post-card:hover h3 { color: var(--green); }
.post-card p { color: var(--muted); font-size: .94rem; flex: 1; }
.post-card .stretched::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.tag {
    display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
    font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    background: color-mix(in srgb, var(--tag, var(--green)) 14%, transparent); color: var(--tag, var(--green));
}
.thumb .tag { position: absolute; top: 14px; left: 14px; background: rgba(255, 255, 255, .92); color: var(--tag, var(--green)); backdrop-filter: blur(4px); z-index: 1; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--muted); font-size: .82rem; margin-bottom: 10px; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }

.featured { display: grid; grid-template-columns: 1.2fr 1fr; overflow: hidden; margin-bottom: 30px; }
.featured .thumb { aspect-ratio: auto; min-height: 380px; }
.featured .body { padding: 44px; justify-content: center; }
.featured h3 { font-size: clamp(1.9rem, 3vw, 2.6rem); }

/* ---------- Events ---------- */
.event { display: flex; gap: 20px; padding: 22px; align-items: center; }
.event-date {
    flex-shrink: 0; width: 78px; height: 84px; border-radius: 16px; display: grid; place-content: center; text-align: center;
    background: linear-gradient(160deg, var(--green), var(--green-700)); color: #fff;
}
.event-date strong { font-family: var(--font-head); font-size: 2.2rem; line-height: 1; }
.event-date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }
.event h3 { font-size: 1.35rem; margin-bottom: 6px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--green), var(--gold)); }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item::before {
    content: ''; position: absolute; left: -32px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
    background: var(--surface); border: 3px solid var(--green); box-shadow: 0 0 0 5px color-mix(in srgb, var(--green) 15%, transparent);
}
.tl-item small { color: var(--gold-600); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .75rem; }
:root[data-theme="dark"] .tl-item small { color: var(--gold); }
.tl-item h3 { font-size: 1.45rem; margin: 4px 0 6px; }
.tl-item p { color: var(--muted); margin: 0; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: #fff; background: var(--green); border-radius: 50%; padding: 3px; margin-top: 3px; }

/* ---------- Vision ---------- */
.lang-tabs { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); gap: 4px; margin-bottom: 40px; }
.lang-tabs button {
    border: 0; background: transparent; padding: 9px 18px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--muted);
    transition: background-color .3s, color .3s;
}
.lang-tabs button.is-active { background: var(--green); color: #fff; }
[data-lang-block]:not(.is-active) { display: none !important; }
[data-lang-block].is-active { animation: fade-up .6s var(--ease); }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.problems { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.problem { padding: 22px; text-align: center; }
.problem .icon-wrap { width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
.problem strong { font-family: var(--font-head); font-size: 1.2rem; line-height: 1.15; display: block; }
.prose-lg p { font-size: 1.12rem; color: var(--text-soft); }
.callout {
    padding: 34px 38px; border-radius: var(--radius); border-left: 5px solid var(--gold);
    background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 14%, var(--surface)), var(--surface));
    font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; line-height: 1.5;
}

/* ---------- Page hero ---------- */
.page-hero {
    position: relative; padding: 120px 0 90px; color: #fff; overflow: hidden; isolation: isolate;
    background: linear-gradient(135deg, var(--green-900), var(--green-700) 60%, #3d6b14);
}
.page-hero::before {
    content: ''; position: absolute; inset: 0; z-index: -1; opacity: .18;
    background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 26px 26px;
    mask-image: linear-gradient(to bottom, #000, transparent);
}
.page-hero::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 169, 60, .45), transparent 65%); z-index: -1; animation: float-y 8s ease-in-out infinite; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); text-transform: uppercase; margin-bottom: 14px; }
.page-hero p { max-width: 680px; color: rgba(255, 255, 255, .82); font-size: 1.1rem; margin: 0; }
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; color: rgba(255, 255, 255, .7); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--gold-200); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 999px; font-size: .87rem; font-weight: 600;
    background: var(--surface); border: 1px solid var(--border); color: var(--text-soft); transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.search-box { position: relative; min-width: 260px; }
.search-box input { width: 100%; padding: 11px 16px 11px 42px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.search-box .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); }

/* ---------- Article ---------- */
.article-hero { position: relative; padding: 100px 0 0; }
.article-head { max-width: 860px; margin: 0 auto; text-align: center; }
.article-head h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin: 18px 0; }
.article-head .meta { justify-content: center; font-size: .9rem; }
.article-cover { max-width: 1040px; margin: 40px auto 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 16 / 8; }
.article-cover img, .article-cover iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.article-layout { display: grid; grid-template-columns: 70px minmax(0, 720px); gap: 40px; justify-content: center; padding: 60px 0 90px; }
.share { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 10px; align-self: start; }
.prose { font-size: 1.1rem; line-height: 1.8; color: var(--text-soft); }
.prose > p:first-child::first-letter { float: left; font-family: var(--font-head); font-size: 4.6rem; line-height: .85; padding: 6px 10px 0 0; color: var(--green); }
.prose h2, .prose h3 { color: var(--text); margin-top: 1.6em; font-size: 2rem; }
.prose h3 { font-size: 1.6rem; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { margin: 1.8em 0; padding: 6px 0 6px 26px; border-left: 4px solid var(--gold); font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; color: var(--text); }
.prose img { border-radius: 14px; margin: 1.5em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.author-box { display: flex; gap: 16px; align-items: center; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); margin-top: 40px; }
.author-box .avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--green), var(--gold)); color: #fff; font-family: var(--font-head); font-size: 1.4rem; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.post-nav a { padding: 18px 22px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); transition: border-color .2s; }
.post-nav a:hover { border-color: var(--green); }
.post-nav small { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.post-nav strong { display: block; font-family: var(--font-head); font-size: 1.2rem; margin-top: 4px; }
.post-nav .next { text-align: right; }
.post-nav .next small { justify-content: flex-end; }

/* ---------- Forms ---------- */
.form-card { padding: 40px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 7px; }
.field label .req { color: var(--red); }
.input, .field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
    width: 100%; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface-2);
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--ring); background: var(--surface); }
.field .error { color: var(--red); font-size: .83rem; margin-top: 6px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red); }
.hint { color: var(--muted); font-size: .84rem; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice span {
    display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; cursor: pointer;
    border: 1.5px solid var(--border); background: var(--surface-2); font-weight: 500; transition: all .25s var(--ease);
}
.choice span::before { content: ''; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--border); flex-shrink: 0; transition: all .2s; background: var(--surface) center / 14px no-repeat; }
.choice input[type=radio] + span::before { border-radius: 50%; }
.choice input:checked + span { border-color: var(--green); background: color-mix(in srgb, var(--green) 9%, var(--surface)); }
.choice input:checked + span::before { background-color: var(--green); border-color: var(--green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }
.choice input:focus-visible + span { box-shadow: 0 0 0 4px var(--ring); }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.amounts .choice span { justify-content: center; font-family: var(--font-head); font-size: 1.5rem; }
.amounts .choice span::before { display: none; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: 14px; margin-bottom: 24px; font-weight: 500; animation: fade-up .5s var(--ease); }
.alert-success { background: color-mix(in srgb, var(--green) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--green) 35%, transparent); color: var(--green); }
.alert-error { background: color-mix(in srgb, var(--red) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--red) 30%, transparent); color: var(--red); }
.info-card { padding: 30px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px dashed var(--border); }
.info-row:last-child { border-bottom: 0; }
.info-row .icon-wrap { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--green) 12%, transparent); color: var(--green); }
.info-row small { color: var(--muted); display: block; }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative; border-radius: 30px; padding: 60px; overflow: hidden; isolation: isolate; color: #fff;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
    background: linear-gradient(120deg, var(--green-900), var(--green-700) 55%, #6e8a14);
}
.cta-band::before { content: ''; position: absolute; width: 380px; height: 380px; right: -80px; bottom: -160px; border-radius: 50%; border: 60px solid rgba(212, 169, 60, .22); z-index: -1; animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; }
.cta-band p { color: rgba(255, 255, 255, .8); margin: 0; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ---------- Footer ---------- */
.site-footer { background: #08130c; color: #c6d3ca; padding: 80px 0 0; position: relative; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .94rem; }
.footer-brand img { width: 64px; background: #fff; border-radius: 14px; padding: 4px; margin-bottom: 18px; }
.footer-brand p { font-size: .94rem; color: #9fb0a5; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .15); transition: all .3s var(--ease); }
.socials a:hover { background: var(--gold); color: #111; border-color: var(--gold); transform: translateY(-3px); }
.newsletter { display: flex; gap: 8px; margin-top: 10px; }
.newsletter input { flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .06); color: #fff; }
.newsletter input::placeholder { color: #8a9a90; }
.footer-bottom .credit { color: var(--gold); font-weight: 700; letter-spacing: .06em; }
.footer-bottom { margin-top: 60px; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .84rem; color: #7f9086; }

/* ---------- Back to top / toast ---------- */
.to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow);
    opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .4s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold-600); }
.toast {
    position: fixed; left: 50%; top: 96px; z-index: 1100; transform: translate(-50%, -20px); opacity: 0;
    padding: 14px 22px; border-radius: 14px; background: var(--green); color: #fff; font-weight: 600; box-shadow: var(--shadow-lg);
    display: flex; gap: 10px; align-items: center; transition: all .5s var(--ease); max-width: calc(100% - 32px);
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Pagination ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--border); background: var(--surface); font-weight: 600; }
.pagination a:hover { border-color: var(--green); color: var(--green); }
.pagination .is-current { background: var(--green); color: #fff; border-color: var(--green); }
.pagination .is-disabled { opacity: .4; }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--delay, 0s); }
[data-reveal="left"] { transform: translateX(-50px); }
[data-reveal="right"] { transform: translateX(50px); }
[data-reveal="zoom"] { transform: scale(.92); }
[data-reveal].is-visible { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .nav-links { position: fixed; inset: 80px 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: 14px 20px 24px;
        background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
        transform: translateY(-120%); opacity: 0; transition: transform .45s var(--ease), opacity .3s; max-height: calc(100vh - 80px); overflow: auto; }
    .nav-links.is-open { transform: none; opacity: 1; }
    .nav-links a { padding: 14px 10px; border-radius: 10px; font-size: 1.05rem; }
    .nav-links a::after { display: none; }
    .menu-toggle { display: inline-grid; }
    .nav-actions .btn { display: none; }
    .nav-donate { display: block; margin-top: 12px; }
    .nav-links .nav-donate a { display: flex; justify-content: center; color: #1b1300; padding: 13px 24px; border-radius: 999px; }
    .hero-scroll { display: none; }
    .hero-grid, .split, .featured, .cta-band { grid-template-columns: 1fr; }
    .hero-card { max-width: 380px; display: none; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .problems { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-band .actions { justify-content: flex-start; }
    .featured .thumb { min-height: 260px; }
    .featured .body { padding: 30px; }
}
@media (max-width: 720px) {
    .section { padding: 80px 0; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
    .grid-3, .grid-2, .form-grid, .facts, .post-nav { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .article-layout { grid-template-columns: 1fr; }
    .share { position: static; flex-direction: row; order: 2; }
    .form-card, .cta-band { padding: 28px 22px; }
    .brand-text small { display: none; }
    .countdown-item { min-width: 64px; }
    .countdown-item strong { font-size: 1.6rem; }
    .portrait::before { inset: 16px -12px -12px 16px; }
    .portrait .badge-float { left: 10px; }
    .search-box { min-width: 100%; }
}
