/* =====================================================================
   مؤسسة الجزائر للريادة الإنسانية — حملة حرائق شرق الجزائر 2026
   الإصدار: v3.3 (per-donor SlickPay billing) · 20260908-4
   الهوية: أخضر داكن مؤسسي + أحمر جزائري للإبراز + أبيض/رمادي دافئ
   الخط: Tajawal (محلي عبر @font-face) + نظام بدائل آمن
===================================================================== */

/* ----- Font: Tajawal (locally hosted to avoid external dependency) -----
   We do not ship the font binary here. We declare @font-face so that if the
   server later places Tajawal in /assets/fonts/, it will be used. Otherwise
   the safe fallback chain (Noto Sans Arabic, Segoe UI, Tahoma) kicks in. */

@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Tajawal Regular'), local('Tajawal-Regular'), local('Tajawal'),
         url('/assets/fonts/Tajawal-Regular.woff2') format('woff2'),
         url('/assets/fonts/Tajawal-Regular.woff') format('woff');
}
@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: local('Tajawal Medium'), local('Tajawal-Medium'),
         url('/assets/fonts/Tajawal-Medium.woff2') format('woff2'),
         url('/assets/fonts/Tajawal-Medium.woff') format('woff');
}
@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Tajawal Bold'), local('Tajawal-Bold'),
         url('/assets/fonts/Tajawal-Bold.woff2') format('woff2'),
         url('/assets/fonts/Tajawal-Bold.woff') format('woff');
}
@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: local('Tajawal ExtraBold'), local('Tajawal-ExtraBold'),
         url('/assets/fonts/Tajawal-ExtraBold.woff2') format('woff2'),
         url('/assets/fonts/Tajawal-ExtraBold.woff') format('woff');
}

:root {
    /* ===== Brand identity (extracted from official logo) ===== */
    --brand-green:          #00a800;   /* pure logo green */
    --brand-green-bright:   #2cc24a;
    --brand-green-dark:     #007a00;
    --brand-green-deeper:   #004f1f;   /* institutional dark backgrounds */
    --brand-green-deepest:  #00381c;   /* even darker, header */
    --brand-green-soft:     #e8f5e8;
    --brand-green-tint:     #f3f9f3;

    --brand-red:            #d21034;   /* Algeria flag red */
    --brand-red-bright:     #f00000;   /* logo red */
    --brand-red-dark:       #a50020;
    --brand-red-soft:       #fdebed;

    --brand-white:          #ffffff;
    --brand-black:          #161616;

    /* ===== Functional tokens ===== */
    --bg:                   #fafafa;
    --surface:               #ffffff;
    --surface-alt:          #f3f6f3;
    --text:                 #161616;
    --text-soft:            #5a6660;
    --text-mute:            #8b9690;
    --text-on-dark:         #ffffff;
    --text-on-dark-soft:    rgba(255, 255, 255, .88);  /* per spec */

    --line:                 rgba(0, 0, 0, .08);
    --line-strong:          rgba(0, 0, 0, .18);
    --line-on-dark:         rgba(255, 255, 255, .14);

    --shadow-sm:  0 1px 3px rgba(0, 30, 0, .06);
    --shadow-md:  0 8px 24px rgba(0, 30, 0, .08);
    --shadow-lg:  0 18px 48px rgba(0, 30, 0, .12);
    --shadow-hero: 0 30px 80px rgba(0, 30, 0, .28);
    --shadow-cta: 0 10px 28px rgba(210, 16, 52, .25);

    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    /* max content width per spec: between 1200px and 1320px */
    --shell: min(1280px, calc(100% - 32px));

    --focus: #2cc24a;
    --focus-ring: 0 0 0 3px rgba(44, 194, 74, .35);

    --transition: 180ms cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: "Tajawal", "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img, svg, picture { display: block; max-width: 100%; height: auto; }

/* ===== Money isolation: prevent RTL from reordering digits + currency ===== */
.money,
bdi.money,
bdi[dir="ltr"],
.ltr-value {
    direction: ltr;
    unicode-bidi: isolate;
    display: inline-block;
    font-variant-numeric: tabular-nums lining-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
    letter-spacing: .005em;
    white-space: nowrap;
}

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: fixed; z-index: 1000;
    inset: 8px auto auto 50%;
    transform: translate(-50%, -150%);
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    color: #fff; background: var(--brand-green-deeper);
    font-weight: 700; font-size: .9rem;
    box-shadow: var(--shadow-md);
    transition: transform .2s ease;
}
.skip-link:focus { transform: translate(-50%, 0); }

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    border-radius: 4px;
}

.shell { width: var(--shell); margin-inline: auto; }

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--brand-green-dark);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.eyebrow-light { color: var(--brand-green-bright); }

/* ===================== Buttons ===================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 22px;
    border: 0;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: .95rem;
    cursor: pointer;
    text-align: center;
    transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.btn-primary {
    background: var(--brand-red);
    color: #fff;
    box-shadow: var(--shadow-cta);
}
.btn-primary:hover { background: var(--brand-red-dark); transform: translateY(-1px); box-shadow: 0 14px 32px rgba(210, 16, 52, .35); }
.btn-primary:active { transform: translateY(0); }

.btn-primary-light {
    background: var(--brand-red);
    color: #fff;
    box-shadow: var(--shadow-cta);
}
.btn-primary-light:hover { background: #fff; color: var(--brand-red-dark); transform: translateY(-1px); }

.btn-ghost {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .45);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: #fff; }

/* ============================= HEADER ============================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--brand-green-deepest);
    color: var(--text-on-dark);
    box-shadow: 0 1px 0 rgba(0, 0, 0, .12);
}

.header-inner {
    min-height: 76px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 12px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #fff;
}
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 6px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    flex: 0 0 auto;
}
.brand-mark img {
    width: 64px;          /* +15% from v2 (56px) */
    height: auto;
    max-height: 52px;
    object-fit: contain;
    display: block;
}
.brand-copy {
    display: grid;
    line-height: 1.3;
}
.brand-copy strong {
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.005em;
}
.brand-copy small {
    margin-top: 3px;
    color: var(--text-on-dark-soft);
    font: 600 .72rem/1.4 Arial, sans-serif;
    letter-spacing: .015em;
}

.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 4px;
}
.primary-nav a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: var(--radius-xs);
    color: var(--text-on-dark-soft);
    font-size: .9rem;
    font-weight: 600;
    transition: background var(--transition), color var(--transition);
}
.primary-nav a:hover,
.primary-nav a:focus-visible {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.header-tail {
    display: flex;
    align-items: center;
    gap: 12px;
}

.national-mark {
    width: 72px;
    height: 64px;
    padding: 4px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}
.national-mark img {
    width: 64px;
    height: 63px;
    object-fit: contain;
    display: block;
}

.header-cta {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    background: var(--brand-red);
    color: #fff;
    font-weight: 800;
    font-size: .92rem;
    box-shadow: var(--shadow-cta);
    transition: background var(--transition), transform var(--transition);
}
.header-cta:hover { background: var(--brand-red-dark); transform: translateY(-1px); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.nav-toggle span {
    width: 22px;
    height: 2px;
    margin-inline: auto;
    background: #fff;
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
    background: var(--brand-green-deepest);
    border-top: 1px solid var(--line-on-dark);
    padding: 8px 0 14px;
}
.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
}
.mobile-nav a {
    display: block;
    padding: 12px 16px;
    color: #fff;
    font-weight: 700;
    border-radius: var(--radius-xs);
}
.mobile-nav a:hover { background: rgba(255, 255, 255, .08); }
.mobile-nav .mobile-cta {
    background: var(--brand-red);
    text-align: center;
    margin-top: 6px;
    font-weight: 800;
}

/* ============================= HERO ============================= */
.hero {
    position: relative;
    isolation: isolate;
    color: var(--text-on-dark);
    background: var(--brand-green-deepest);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 40%;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg,
        rgba(0, 38, 20, .94) 0%,
        rgba(0, 79, 31, .86) 45%,
        rgba(0, 79, 31, .72) 75%,
        rgba(0, 38, 20, .55) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
    padding: clamp(40px, 6vw, 72px) 0;
    min-height: clamp(520px, 72vh, 720px);
}

.hero-story { max-width: 640px; }

.campaign-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid var(--line-on-dark);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .005em;
}
.live-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--brand-red-bright);
    box-shadow: 0 0 0 4px rgba(240, 0, 0, .18);
    animation: live-pulse 1.8s ease-in-out infinite;
}
@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .55; transform: scale(.85); }
}

.hero-story h1 {
    margin: 18px 0 14px;
    font-size: clamp(1.9rem, 3.4vw, 2.85rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -.01em;
    color: #fff;
    text-wrap: balance;
}

.hero-lead {
    margin: 0 0 12px;
    max-width: 560px;
    color: var(--text-on-dark-soft);
    font-size: 1.02rem;
    line-height: 1.85;
    text-wrap: pretty;
}

.hero-trust {
    margin: 0 0 22px;
    padding-inline-start: 16px;
    border-inline-start: 3px solid var(--brand-green-bright);
    color: #fff;
    font-size: .98rem;
    font-weight: 700;
    line-height: 1.7;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ============================= DONATION CARD ============================= */
.donation-panel {
    position: relative;
    padding: 24px 24px 20px;
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-hero);
    border: 1px solid rgba(255, 255, 255, .8);
}
.donation-panel::before {
    content: "";
    position: absolute;
    top: -1px;
    inset-inline: 24px;
    height: 4px;
    border-radius: 4px 4px 0 0;
    background: var(--brand-red);
}

.panel-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: var(--text-soft);
    font-size: .76rem;
    font-weight: 700;
    margin-bottom: 8px;
}
.panel-topline .secure-mark {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--brand-green-dark);
}
.secure-mark svg {
    width: 14px; height: 14px;
    fill: none; stroke: currentColor;
    stroke-width: 1.7;
}

.donation-panel h2 {
    margin: 6px 0 4px;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -.005em;
}
.panel-intro {
    margin: 0 0 16px;
    color: var(--text-soft);
    font-size: .86rem;
    line-height: 1.55;
}

.campaign-notice {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(210, 16, 52, .28);
    background: var(--brand-red-soft);
    color: var(--brand-red-dark);
    font-size: .82rem;
    font-weight: 700;
}

.amount-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}
.amount-option { position: relative; cursor: pointer; }
.amount-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    inset: 0;
}
.amount-card {
    display: grid;
    place-items: center;
    min-height: 54px;
    padding: 10px 12px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-weight: 800;
    font-size: .92rem;
    transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
    user-select: none;
}
.amount-value { font-size: 1rem; }
.amount-card-other { font-size: .92rem; }
.amount-option:hover .amount-card { border-color: var(--brand-green); }
.amount-option input:focus-visible + .amount-card {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}
.amount-option input:checked + .amount-card {
    color: #fff;
    background: var(--brand-green);
    border-color: var(--brand-green-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 122, 0, .25);
}
.amount-card::before {
    content: "✓";
    position: absolute;
    inset-inline-start: 12px;
    top: 8px;
    color: #fff;
    font-size: .72rem;
    font-weight: 900;
    opacity: 0;
    transition: opacity .15s;
}
.amount-option input:checked + .amount-card::before { opacity: 1; }
.amount-other { grid-column: 1 / -1; }

.amount-grid:disabled,
.amount-grid[disabled] { opacity: .55; }
.amount-grid[disabled] .amount-option { cursor: not-allowed; }

.custom-amount { margin-top: 12px; }
.custom-amount label {
    display: block;
    margin-bottom: 6px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--text-soft);
}
.input-shell {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 12px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: border-color .15s, box-shadow .15s;
}
.input-shell:focus-within {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(0, 168, 0, .15);
}
.input-shell .money {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.input-shell input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-weight: 800;
    font-size: 1.05rem;
    text-align: start;
}
.input-shell .currency {
    color: var(--text-soft);
    font-weight: 800;
    font-size: .82rem;
}
.custom-amount small {
    display: block;
    margin-top: 6px;
    color: var(--text-soft);
    font-size: .76rem;
}

.donor-details {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.donor-details-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin-bottom: 10px;
}
.donor-details-heading strong {
    color: var(--text);
    font-size: .9rem;
}
.donor-details-heading small {
    color: var(--text-soft);
    font-size: .7rem;
}
.donor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}
.donor-field {
    display: grid;
    gap: 5px;
    color: var(--text-soft);
    font-size: .74rem;
    font-weight: 700;
}
.donor-field-wide { grid-column: 1 / -1; }
.donor-field input {
    width: 100%;
    min-width: 0;
    height: 44px;
    padding: 8px 10px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: .82rem;
    font-weight: 600;
    outline: 0;
}
.donor-field input:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(0, 168, 0, .15);
}
.donor-field input[dir="ltr"] { text-align: left; }

.form-error {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: var(--brand-red-soft);
    color: var(--brand-red-dark);
    font-size: .82rem;
    font-weight: 700;
    border: 1px solid rgba(210, 16, 52, .28);
}

.donate-button {
    width: 100%;
    min-height: 56px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 14px 18px;
    text-align: start;
}
.btn-donate {
    background: var(--brand-red);
    color: #fff;
    box-shadow: var(--shadow-cta);
}
.btn-donate:hover:not(:disabled) {
    background: var(--brand-red-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(210, 16, 52, .35);
}
.btn-donate:active:not(:disabled) { transform: translateY(0); }
.donate-button svg {
    width: 18px; height: 18px;
    transform: scaleX(-1);
}
.donate-amount {
    padding-inline: 10px;
    border-inline: 1px solid rgba(255, 255, 255, .32);
    font-size: .86rem;
}
.donate-button:disabled {
    opacity: 1;
    cursor: not-allowed;
    box-shadow: none;
    background: #963f50;
    color: #fff;
    border: 1px solid #843445;
    transform: none;
}

.payment-note {
    margin: 10px 0 0;
    color: var(--text-soft);
    font-size: .76rem;
    text-align: center;
    line-height: 1.5;
}

/* ============================= CAMPAIGN METER ============================= */
.campaign-meter {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}
.meter-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    padding: 28px 0 24px;
}
.meter-main { min-width: 0; }
.meter-main h2 {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}
.meter-value {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 10px;
}
.meter-value span {
    color: var(--text-soft);
    font-size: .84rem;
    font-weight: 700;
}
.meter-value strong {
    font-size: clamp(1.4rem, 2.6vw, 2.05rem);
    font-weight: 800;
    color: var(--brand-green-deeper);
    line-height: 1.1;
}
.meter-money { color: inherit !important; }

.progress-track {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-alt);
}
.progress-track span {
    width: 0;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--brand-green), var(--brand-green-bright));
    transition: width .6s ease;
}
.meter-foot {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 8px;
    color: var(--text-soft);
    font-size: .76rem;
}
.meter-foot .money { color: var(--text); font-weight: 700; }

.meter-side {
    padding-inline-start: 28px;
    border-inline-start: 1px solid var(--line);
}
.meter-stat { display: grid; gap: 2px; }
.meter-stat strong {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--brand-green-deeper);
    line-height: 1.1;
}
.meter-stat span {
    color: var(--text-soft);
    font-size: .8rem;
    font-weight: 600;
}
.stats-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 0;
    color: var(--text-soft);
    font-size: .74rem;
    line-height: 1.4;
}
.stats-status .stats-dot {
    width: 7px; height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--text-mute);
}
.stats-status.is-online .stats-dot { background: var(--brand-green); box-shadow: 0 0 0 3px rgba(0, 168, 0, .18); }
.stats-status.is-offline .stats-dot { background: var(--brand-red-dark); }

/* ============================= APPROACH ============================= */
.approach-section { padding: 56px 0; background: var(--bg); }
.approach-layout {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(36px, 5vw, 64px);
    align-items: start;
}
.section-intro { position: sticky; top: 96px; align-self: start; }
.section-intro h2 {
    margin: 0 0 14px;
    font-size: clamp(1.55rem, 2.4vw, 2.05rem);
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -.01em;
    color: var(--text);
}
.section-intro p {
    margin: 0;
    max-width: 480px;
    color: var(--text-soft);
    font-size: .95rem;
    line-height: 1.85;
}

.impact-route {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}
.impact-route::before {
    content: "";
    position: absolute;
    inset-block: 18px;
    inset-inline-end: 28px;
    width: 2px;
    background: linear-gradient(var(--brand-green), var(--brand-green-bright));
    border-radius: 2px;
    opacity: .35;
}
.impact-route li {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 18px;
    padding: 14px 0 22px;
}
.route-index {
    width: 56px; height: 56px;
    display: grid;
    place-items: center;
    background: var(--brand-green-deeper);
    color: #fff;
    border-radius: 50%;
    font-weight: 800;
    font-size: .85rem;
    box-shadow: 0 4px 14px rgba(0, 79, 31, .22);
}
.impact-route li:last-child .route-index { background: var(--brand-green-dark); }
.impact-route h3 {
    margin: 4px 0 4px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
}
.impact-route p {
    margin: 0;
    color: var(--text-soft);
    font-size: .9rem;
    line-height: 1.7;
}

/* ============================= PRINCIPLE ============================= */
.principle-section { padding: 0 0 56px; background: var(--bg); }
.principle-card {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 32px;
    align-items: center;
    padding: 36px 40px;
    color: var(--text-on-dark);
    background: var(--brand-green-deeper);
    border-radius: var(--radius-lg);
}
.principle-head h2 {
    margin: 0;
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    font-weight: 800;
    line-height: 1.32;
    letter-spacing: -.005em;
    color: #fff;
}
.principle-card p {
    margin: 0;
    padding-inline-start: 24px;
    border-inline-start: 1px solid var(--line-on-dark);
    color: var(--text-on-dark-soft);
    font-size: .92rem;
    line-height: 1.85;
}

/* ============================= SOLIDARITY ============================= */
.solidarity-section { padding: 56px 0; background: var(--surface); border-block: 1px solid var(--line); }
.solidarity-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(28px, 4vw, 48px);
    align-items: center;
}
.solidarity-media {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--surface-alt);
    aspect-ratio: 3 / 2;
}
.solidarity-media img,
.solidarity-media picture {
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
}
.solidarity-content h2 {
    margin: 8px 0 12px;
    font-size: clamp(1.4rem, 2.2vw, 1.85rem);
    font-weight: 800;
    line-height: 1.3;
    color: var(--text);
}
.solidarity-content p {
    margin: 0;
    color: var(--text-soft);
    font-size: .94rem;
    line-height: 1.85;
}

/* ============================= SAFETY ============================= */
.safety-section { padding: 56px 0; background: var(--bg); }
.section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 36px;
}
.safety-section .section-head h2 {
    margin: 6px 0 0;
    font-size: clamp(1.7rem, 2.8vw, 2.3rem);
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
}
.safety-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.safety-card {
    padding: 28px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition: box-shadow var(--transition), transform var(--transition);
}
.safety-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.safety-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--brand-green-soft);
    color: var(--brand-green-dark);
    margin-bottom: 14px;
}
.safety-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.safety-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
}
.safety-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: .9rem;
    line-height: 1.7;
}
.safety-official-link {
    display: inline-flex;
    margin-top: 12px;
    color: var(--brand-green-dark);
    font-size: .86rem;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}
.safety-official-link:hover { color: var(--brand-green-deepest); }
.safety-footnote {
    margin: 28px auto 0;
    max-width: 760px;
    padding: 14px 18px;
    background: var(--brand-green-soft);
    border-inline-start: 3px solid var(--brand-green-dark);
    color: var(--brand-green-deepest);
    border-radius: var(--radius-sm);
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.6;
}

/* ============================= PAYMENT RESULT ============================= */
.payment-result-page {
    min-height: 100vh;
    display: grid;
    background: linear-gradient(145deg, var(--brand-green-deepest), var(--brand-green-dark));
}
.payment-result-shell {
    width: min(100% - 32px, 680px);
    margin: auto;
    padding: 40px 0;
}
.payment-result-card {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: clamp(28px, 6vw, 54px);
    text-align: center;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.payment-result-card img {
    width: 92px;
    height: auto;
    padding: 6px;
    background: #fff;
    border-radius: var(--radius-sm);
}
.payment-result-card h1 {
    margin: 0;
    color: var(--text);
    font-size: clamp(1.6rem, 4vw, 2.35rem);
    line-height: 1.3;
}
.payment-result-card p {
    margin: 0 0 8px;
    color: var(--text-soft);
    line-height: 1.8;
}
.payment-result-card.is-success { border-top: 6px solid var(--brand-green); }
.payment-result-card.is-failed { border-top: 6px solid var(--brand-red); }
.payment-result-card.is-pending { border-top: 6px solid #d9b22f; }

/* ============================= CLOSING CTA ============================= */
.closing-cta {
    background: var(--brand-green-deeper);
    color: var(--text-on-dark);
    padding: 64px 0;
}
.closing-inner {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    gap: 14px;
    justify-items: center;
}
.closing-inner h2 {
    margin: 4px 0 6px;
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    font-weight: 800;
    line-height: 1.28;
    color: #fff;
    max-width: 620px;
}
.closing-inner p {
    margin: 0 0 12px;
    color: var(--text-on-dark-soft);
    font-size: .98rem;
    line-height: 1.85;
    max-width: 580px;
}

/* ============================= FOOTER ============================= */
.site-footer {
    background: var(--brand-green-deepest);
    color: var(--text-on-dark-soft);
    padding: 56px 0 24px;
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}
.footer-brand {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 16px;
    align-items: start;
}
.footer-brand img {
    width: 80px;
    background: #fff;
    padding: 6px 8px;
    border-radius: var(--radius-sm);
}
.footer-brand strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 8px;
}
.footer-brand p {
    margin: 0;
    color: var(--text-on-dark-soft);
    font-size: .86rem;
    line-height: 1.7;
}
.footer-block h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: .92rem;
    font-weight: 800;
}
.footer-links ul,
.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}
.footer-links a,
.contact-list a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-on-dark-soft);
    font-size: .86rem;
    font-weight: 600;
    transition: color var(--transition);
}
.footer-links a:hover,
.contact-list a:hover { color: #fff; }
.contact-list svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--brand-green-bright);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line-on-dark);
    color: var(--text-on-dark-soft);
    font-size: .82rem;
}
.footer-bottom p { margin: 0; }
.footer-legal {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}
.footer-legal a {
    color: var(--text-on-dark-soft);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, .2);
    text-underline-offset: 3px;
    transition: color var(--transition);
}
.footer-legal a:hover { color: #fff; }

/* ============================= LEGAL PAGES =============================
   Kept in the external stylesheet so the site's CSP (style-src 'self')
   remains strict and the privacy/terms pages render correctly. */
.page-shell {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 0 80px;
}
.page-shell h1 {
    margin: 0 0 8px;
    color: var(--brand-green-deepest);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
}
.page-shell .page-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--brand-green-dark);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.page-shell h2 {
    margin: 32px 0 8px;
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 800;
}
.page-shell p,
.page-shell li {
    color: var(--text-soft);
    line-height: 1.85;
    font-size: .94rem;
}
.page-shell ul { padding-inline-start: 18px; }
.page-shell a {
    color: var(--brand-green-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.page-shell .page-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    background: var(--brand-green-deeper);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.page-shell .page-back:hover {
    background: var(--brand-green-deepest);
    color: #fff;
}

/* ============================= FLOATING DONATE (mobile) ===================== */
.floating-donate {
    position: fixed;
    bottom: 16px;
    inset-inline: 16px;
    z-index: 40;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--brand-red);
    color: #fff;
    font-weight: 800;
    font-size: .92rem;
    box-shadow: 0 12px 28px rgba(210, 16, 52, .35);
    transition: transform var(--transition), opacity var(--transition);
}
.floating-donate svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
.floating-donate.is-visible {
    display: inline-flex;
    animation: slide-up-fab 240ms ease-out;
}
@keyframes slide-up-fab {
    from { transform: translateY(80px); opacity: 0; }
    to   { transform: translateY(0);   opacity: 1; }
}

/* ============================= RESPONSIVE ============================= */
@media (max-width: 1080px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 36px 0;
        min-height: auto;
    }
    .hero-story { max-width: 100%; }
    .donation-panel { max-width: 540px; margin-inline: auto; width: 100%; }
    .approach-layout { grid-template-columns: 1fr; gap: 28px; }
    .section-intro { position: static; }
    .solidarity-grid { grid-template-columns: 1fr; gap: 22px; }
    .principle-card { grid-template-columns: 1fr; gap: 14px; padding: 30px 24px; }
    .principle-card p {
        padding-inline-start: 0;
        border-inline-start: 0;
        padding-top: 12px;
        border-top: 1px solid var(--line-on-dark);
    }
    .safety-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 880px) {
    .primary-nav { display: none; }
    .header-cta { display: none; }
    .nav-toggle { display: flex; }
    .meter-grid { grid-template-columns: 1fr; gap: 18px; }
    .meter-side {
        padding-inline-start: 0;
        border-inline-start: 0;
        padding-top: 16px;
        border-top: 1px solid var(--line);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
    }
    .meter-stat {
        display: flex;
        align-items: baseline;
        gap: 8px;
    }
    .meter-stat strong { font-size: 1.3rem; }
    .stats-status { margin: 0; }
    .safety-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    :root { --shell: min(calc(100% - 24px), 1280px); }
    .header-inner { min-height: 64px; padding: 10px 0; gap: 12px; }
    .brand-mark img { width: 50px; max-height: 42px; }
    .brand-copy strong { font-size: .88rem; }
    .brand-copy small { font-size: .68rem; }
    .national-mark { width: 58px; height: 52px; padding: 4px; }
    .national-mark img { width: 50px; height: 49px; }

    .hero { padding-bottom: 28px; }
    .hero-grid { gap: 24px; padding: 32px 0; }
    .hero-story h1 { font-size: clamp(1.6rem, 6.5vw, 2rem); }
    .hero-lead { font-size: .94rem; }
    .hero-trust { font-size: .9rem; padding-inline-start: 12px; }
    .hero-actions { width: 100%; }
    .hero-actions .btn { flex: 1 1 100%; min-height: 50px; }

    .donation-panel { padding: 18px 16px 14px; border-radius: var(--radius-md); }
    .donation-panel h2 { font-size: 1.25rem; }
    .panel-intro { font-size: .82rem; }
    .amount-grid { gap: 8px; }
    .amount-card { min-height: 50px; font-size: .9rem; padding: 8px 10px; }
    .donor-grid { grid-template-columns: 1fr; }
    .donor-field-wide { grid-column: auto; }
    .donor-details-heading { display: grid; }
    .donate-button { min-height: 52px; font-size: .95rem; padding: 12px 14px; }
    .donate-amount { font-size: .82rem; padding-inline: 8px; }

    .campaign-meter .shell { padding: 22px 0 18px; }
    .meter-main h2 { font-size: .98rem; margin-bottom: 10px; }
    .meter-value strong { font-size: 1.5rem; }
    .meter-foot { font-size: .72rem; gap: 4px 14px; }

    .approach-section { padding: 40px 0; }
    .section-intro h2 { font-size: 1.35rem; }
    .impact-route::before { inset-inline-end: 24px; }
    .impact-route li { grid-template-columns: 44px 1fr; gap: 14px; padding: 10px 0 18px; }
    .route-index { width: 44px; height: 44px; font-size: .76rem; }
    .impact-route h3 { font-size: 1rem; }
    .impact-route p { font-size: .86rem; }

    .principle-section { padding-bottom: 36px; }
    .principle-card { padding: 24px 18px; border-radius: var(--radius-md); }
    .principle-head h2 { font-size: 1.25rem; }

    .solidarity-section { padding: 40px 0; }
    .solidarity-media { aspect-ratio: 3 / 2; }
    .solidarity-content h2 { font-size: 1.3rem; }

    .safety-section { padding: 40px 0; }
    .safety-card { padding: 22px 18px; }

    .closing-cta { padding: 48px 0; }
    .closing-inner h2 { font-size: 1.45rem; }

    .site-footer { padding: 40px 0 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-brand { grid-template-columns: 60px 1fr; gap: 12px; }
    .footer-brand img { width: 60px; }
    .page-shell { padding: 40px 0 56px; }
}

@media (max-width: 380px) {
    :root { --shell: min(calc(100% - 20px), 1280px); }
    .hero-story h1 { font-size: 1.45rem; }
    .donation-panel h2 { font-size: 1.15rem; }
    .amount-card { font-size: .86rem; padding: 8px 10px; min-height: 46px; }
    .donate-button { min-height: 50px; font-size: .92rem; }
    .meter-value strong { font-size: 1.35rem; }
}

/* Floating donate button shown only on mobile / tablet */
@media (max-width: 880px) {
    .floating-donate.is-visible { display: inline-flex; }
}

/* ============================= ACCESSIBILITY ============================= */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .live-dot { animation: none; }
}

@media (forced-colors: active) {
    .donate-button, .closing-button, .route-index, .principle-card, .header-cta, .floating-donate {
        forced-color-adjust: none;
    }
}
