/* ============================================================
   NNKF — editorial charity design system
   Photography-led. Deep forest green, warm gold, coral accent.
   Playfair Display (voice) + Poppins (structure).
   ============================================================ */

@font-face {
    font-family: 'Playfair Display';
    src: url('/assets/fonts/PlayfairDisplay-Variable.ttf') format('truetype-variations');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('/assets/fonts/PlayfairDisplay-Italic-Variable.ttf') format('truetype-variations');
    font-weight: 400 900;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}

:root {
    --forest-dark: #0e2419;
    --forest: #17392a;
    --forest-mid: #1d5138;
    --forest-bright: #1f8a4d;
    --gold: #d9b166;
    --gold-bright: #ecca8c;
    --coral: #e2827a;
    --coral-deep: #c2564d;
    --cream: #f8f4ec;
    --cream-deep: #efe6d4;
    --paper: #ffffff;
    --ink: #16201a;
    --ink-soft: #55605a;
    --line: #e4dcc9;
    --radius: 4px;
    --radius-lg: 6px;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    --shadow-lg: 0 24px 60px rgba(14, 36, 25, 0.18);
    --shadow-sm: 0 2px 14px rgba(14, 36, 25, 0.08);
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: var(--forest-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1220px; margin: 0 auto; padding: 0 28px; }
.container-tight { max-width: 820px; margin: 0 auto; padding: 0 28px; }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.01em;
    margin: 0 0 0.5em;
    color: var(--forest-dark);
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.45rem); }
p { margin: 0 0 1.1em; }

.eyebrow {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--coral-deep);
    margin-bottom: 14px;
}
.eyebrow.light { color: var(--gold-bright); }

.lede { font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: var(--ink-soft); max-width: 62ch; }
.lede.light { color: rgba(255,255,255,0.85); }
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.01em;
    padding: 15px 32px;
    border: 2px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--forest-dark); }
.btn-gold:hover { background: var(--gold-bright); }
.btn-forest { background: var(--forest-bright); color: #fff; }
.btn-forest:hover { background: var(--forest-mid); }
.btn-dark { background: var(--forest-dark); color: #fff; }
.btn-dark:hover { background: var(--forest); }
.btn-ghost-light { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--forest-dark); border-color: #fff; }
.btn-ghost-dark { border-color: var(--forest-dark); color: var(--forest-dark); }
.btn-ghost-dark:hover { background: var(--forest-dark); color: #fff; }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 18px 40px; font-size: 1rem; }

.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--forest-bright);
}
.arrow-link::after { content: '→'; transition: transform 0.2s var(--ease); }
.arrow-link:hover { text-decoration: none; }
.arrow-link:hover::after { transform: translateX(4px); }
.arrow-link.light { color: var(--gold-bright); }

/* Alias kept for simple admin markup */
.btn-primary {
    display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 0.92rem;
    padding: 14px 30px; border: none; border-radius: 2px; cursor: pointer;
    text-decoration: none !important; background: var(--forest-bright); color: #fff; margin-top: 18px;
}
.btn-primary:hover { background: var(--forest-mid); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--forest-dark);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand:hover { text-decoration: none; }
.brand img { width: 50px; height: 50px; flex-shrink: 0; }
.brand-text {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.15;
    color: #fff;
    letter-spacing: 0.01em;
}
.brand-text small {
    display: block;
    font-family: var(--sans);
    font-weight: 400;
    font-size: 0.56rem;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 3px;
}
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: rgba(255,255,255,0.82); font-size: 0.9rem; font-weight: 500; }
.main-nav a:hover, .main-nav a.active { color: #fff; text-decoration: none; }
.main-nav a.active { border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.7rem; cursor: pointer; padding: 4px 8px; line-height: 1; }

@media (max-width: 940px) {
    .main-nav {
        position: fixed; inset: 78px 0 0 0;
        background: var(--forest-dark);
        flex-direction: column; align-items: flex-start;
        padding: 36px 32px; gap: 26px; overflow-y: auto;
        opacity: 0; visibility: hidden; transform: translateY(-10px);
        transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
    }
    .main-nav.open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
    .main-nav a { font-size: 1.15rem; }
    .nav-toggle { display: block; }
    .brand-text { font-size: 0.9rem; }
    .brand img { width: 42px; height: 42px; }
}

/* ---------- Hero (full-bleed photography) ---------- */
.hero {
    position: relative;
    min-height: clamp(540px, 78vh, 760px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--forest-dark);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
    content: '';
    position: absolute; inset: 0;
    background:
        linear-gradient(to right, rgba(8,24,16,0.94) 0%, rgba(8,24,16,0.80) 38%, rgba(8,24,16,0.30) 70%, rgba(8,24,16,0.15) 100%),
        linear-gradient(to top, rgba(8,24,16,0.85) 0%, rgba(8,24,16,0) 55%);
}
.hero .container { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 72px; }
.hero-inner { max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: 22px; text-wrap: balance; }
.hero .lede { color: rgba(255,255,255,0.88); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

/* Page banner (interior pages) */
.page-banner {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--forest-dark);
}
.page-banner .hero-media::after {
    background:
        linear-gradient(to right, rgba(8,24,16,0.92) 0%, rgba(8,24,16,0.72) 45%, rgba(8,24,16,0.35) 100%),
        linear-gradient(to top, rgba(8,24,16,0.75) 0%, rgba(8,24,16,0) 60%);
}
.page-banner .container { position: relative; z-index: 2; padding-top: 76px; padding-bottom: 56px; }
.page-banner h1 { color: #fff; max-width: 18ch; }
.page-banner .lede { color: rgba(255,255,255,0.85); }

/* ---------- Stat band ---------- */
.stat-band { background: var(--forest-dark); border-top: 1px solid rgba(255,255,255,0.08); }
.stat-band .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-cell { padding: 40px 26px; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-cell:last-child { border-right: 0; }
.stat-number { font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 3.1vw, 2.9rem); color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.72); margin-top: 12px; }
@media (max-width: 900px) { .stat-band .container { grid-template-columns: 1fr 1fr; } .stat-cell:nth-child(2) { border-right: 0; } .stat-cell:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.1); } }
@media (max-width: 520px) { .stat-band .container { grid-template-columns: 1fr; } .stat-cell { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.1); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section.tight { padding: clamp(48px, 5vw, 72px) 0; }
.section.cream { background: var(--cream); }
.section.deep { background: var(--forest-dark); color: #fff; }
.section.deep h2, .section.deep h3 { color: #fff; }
.section.deep .lede { color: rgba(255,255,255,0.8); }
.section.mid { background: var(--forest); color: #fff; }
.section.mid h2, .section.mid h3 { color: #fff; }

.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p:last-child { margin-bottom: 0; }

.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 44px; flex-wrap: wrap; }
.head-row .section-head { margin-bottom: 0; }

/* ---------- Editorial split (image + text) ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 76px);
    align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.split-media.tall img { aspect-ratio: 4/5; }
.split-media.wide img { aspect-ratio: 3/2; }
.split-body h2 { margin-bottom: 20px; }
@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; }
    .split.reverse .split-media { order: 0; }
}

/* ---------- Memorial ---------- */
/* Background is taken from the outer glow on Norah's portrait (sampled #bda077,
   brightening to #d9bd8f where the light wraps her). .section.deep.memorial so it
   outranks .section.deep, which would otherwise force the dark green back. */
.section.deep.memorial {
    background: radial-gradient(115% 95% at 33% 38%, #dcc094 0%, #bda077 56%, #a1835a 100%);
}
/* Type darkened for contrast against the gold — colour only, nothing else changed. */
.section.deep.memorial h1,
.section.deep.memorial h2,
.section.deep.memorial h3,
.section.deep.memorial h4 { color: #20160b; }
.section.deep.memorial .lede { color: #33260f; }
.section.deep.memorial .eyebrow,
.section.deep.memorial .eyebrow.light { color: #7a5010; }
.section.deep.memorial .article-body { color: #2f2413; }
/* The portrait is a PNG that dissolves into transparency, so it needs no frame,
   no crop and no rounding — it should melt straight into the section behind it. */
.memorial-portrait img {
    width: 100%;
    max-width: 520px;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    margin: 0 auto;
    aspect-ratio: auto;
}
.memorial-name {
    font-family: var(--serif);
    font-size: 1.12rem;
    color: #3a2911;
    margin: 0 0 22px;
    line-height: 1.35;
}
.memorial-name span {
    display: block;
    font-family: var(--sans);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    color: rgba(32,22,11,0.66);
    margin-top: 7px;
}
.memorial .split-body p { color: #2f2413; }
.memorial .split-body em { color: #6d4a17; font-style: italic; }
@media (max-width: 860px) { .memorial-portrait img { max-width: 380px; } }

/* ---------- Quote ---------- */
.quote-mark { font-family: var(--serif); font-size: 4rem; line-height: 0.7; color: var(--gold); display: block; margin-bottom: 12px; }
blockquote.pull-quote {
    font-family: var(--serif);
    font-size: clamp(1.28rem, 2.1vw, 1.72rem);
    line-height: 1.45;
    font-style: italic;
    margin: 0 0 26px;
    color: inherit;
}
.attribution { font-family: var(--sans); font-weight: 600; font-size: 0.95rem; }
.attribution span { display: block; font-weight: 400; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral); margin-top: 5px; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 660px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
}
.section.deep .card, .section.mid .card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.14); color: #fff; }
.section.deep .card p, .section.mid .card p { color: rgba(255,255,255,0.8); }

/* Photo card: image on top, content below */
.photo-card {
    display: flex;
    flex-direction: column;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); text-decoration: none; }
.photo-card .pc-media { position: relative; overflow: hidden; aspect-ratio: 3/2; background: var(--cream-deep); }
.photo-card .pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.photo-card:hover .pc-media img { transform: scale(1.045); }
.photo-card .pc-body { padding: 26px 26px 30px; flex: 1; display: flex; flex-direction: column; }
.photo-card h3 { margin-bottom: 10px; }
.photo-card p { color: var(--ink-soft); font-size: 0.94rem; margin-bottom: 18px; }
.photo-card .arrow-link { margin-top: auto; }
.pc-tag {
    position: absolute; top: 14px; left: 14px; z-index: 2;
    background: var(--gold); color: var(--forest-dark);
    font-size: 0.66rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase;
    padding: 6px 12px;
}
.pc-date { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral-deep); margin-bottom: 10px; font-weight: 600; }

/* Numbered program card */
.num-card { display: flex; gap: 20px; }
.num-card .num {
    font-family: var(--serif); font-weight: 700; font-size: 2rem;
    color: var(--gold); line-height: 1; flex-shrink: 0; width: 52px;
}
.num-card h3 { margin-bottom: 8px; }
.num-card p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }
.section.deep .num-card p { color: rgba(255,255,255,0.75); }

/* ---------- Feature banner (image with overlaid copy) ---------- */
.feature-banner {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 460px;
    overflow: hidden;
    border-radius: var(--radius);
}
.feature-banner > img { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-banner::before {
    content: '';
    position: absolute; inset: 0;
    /* Must sit above the <img>: both are absolutely positioned, so without an
       explicit z-index the image (later in DOM order) would paint over the scrim. */
    z-index: 1;
    /* Two stacked scrims: a full-bleed darkener so bright photos (a sunlit pitch)
       never wash out the copy, plus a left-weighted gradient for the text column. */
    background:
        linear-gradient(to right, rgba(6,18,12,0.96) 0%, rgba(6,18,12,0.90) 38%, rgba(6,18,12,0.55) 68%, rgba(6,18,12,0.35) 100%),
        linear-gradient(rgba(6,18,12,0.35), rgba(6,18,12,0.35));
}
@media (max-width: 760px) {
    .feature-banner::before {
        background: linear-gradient(rgba(6,18,12,0.86), rgba(6,18,12,0.86));
    }
}
.fb-content { position: relative; z-index: 2; padding: clamp(32px, 5vw, 60px); max-width: 640px; color: #fff; }
.fb-content h2 { color: #fff; }
.fb-content p { color: rgba(255,255,255,0.86); }
.fb-tagline { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold-bright); margin-bottom: 14px; }
.check-list { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; }
.check-list li { font-size: 0.9rem; padding-left: 24px; position: relative; color: rgba(255,255,255,0.9); }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
@media (max-width: 620px) { .check-list { grid-template-columns: 1fr; } }

/* ---------- Impact rows / bars ---------- */
.money-row { display: flex; gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.money-row:last-child { border-bottom: 0; }
.money-amount { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--forest-bright); min-width: 190px; }
.money-desc { color: var(--ink-soft); }
@media (max-width: 620px) { .money-row { flex-direction: column; gap: 4px; } }

.bar-row { margin-bottom: 20px; }
.bar-label { display: flex; justify-content: space-between; gap: 16px; font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }
.bar-track { background: var(--cream-deep); height: 12px; overflow: hidden; border-radius: 2px; }
.bar-fill { background: var(--forest-bright); height: 100%; }
.section.deep .bar-track { background: rgba(255,255,255,0.14); }
.section.deep .bar-fill { background: var(--gold); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid a { position: relative; display: block; overflow: hidden; aspect-ratio: 1; background: var(--cream-deep); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid figcaption {
    position: absolute; inset: auto 0 0 0; padding: 26px 14px 12px;
    background: linear-gradient(to top, rgba(8,24,16,0.9), transparent);
    color: #fff; font-size: 0.78rem; opacity: 0; transition: opacity 0.25s var(--ease);
}
.gallery-grid a:hover figcaption { opacity: 1; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.lightbox {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(6, 18, 12, 0.96);
    display: none; align-items: center; justify-content: center;
    gap: clamp(6px, 2vw, 24px);
    padding: clamp(48px, 6vw, 72px) clamp(8px, 3vw, 40px);
}
.lightbox.open { display: flex; }

.lb-stage { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 100%; }
.lightbox img { max-width: min(92vw, 1200px); max-height: 76vh; object-fit: contain; border-radius: 2px; }
.lb-caption {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
    color: rgba(255,255,255,0.86); font-size: 0.9rem; text-align: center;
}
.lb-counter { color: var(--gold); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; }

.lb-btn {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.24);
    color: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; flex-shrink: 0;
    font-size: 1.35rem; line-height: 1; border-radius: 50%;
    transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.lb-btn:hover { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.5); }
.lb-close { position: absolute; top: 20px; right: 24px; font-size: 1.7rem; }

@media (max-width: 640px) {
    .lb-btn { width: 44px; height: 44px; font-size: 1.15rem; }
    .lb-prev { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); }
    .lb-next { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
    .lightbox img { max-width: 94vw; }
}

/* ---------- Article body ---------- */
.article-body { font-size: 1.06rem; color: #2b332e; }
.article-body p { margin-bottom: 1.35em; }
.article-body h2, .article-body h3 { margin-top: 1.6em; }
.article-body img { border-radius: var(--radius); margin: 1.6em 0; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 1.35em; }
.article-body li { margin-bottom: 0.5em; }

/* ---------- Donate ---------- */
.donate-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 34px; align-items: start; }
@media (max-width: 940px) { .donate-layout { grid-template-columns: 1fr; } }

.donate-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 3.4vw, 40px); }
.donate-form label { display: block; font-weight: 600; margin: 22px 0 8px; font-size: 0.85rem; letter-spacing: 0.02em; }
.donate-form input[type=text], .donate-form input[type=email], .donate-form input[type=tel],
.donate-form input[type=number], .donate-form textarea, .donate-form select {
    width: 100%; padding: 14px 16px;
    border: 1px solid var(--line); border-radius: 2px;
    font-family: inherit; font-size: 1rem; background: #fdfcf9; color: var(--ink);
}
.donate-form input:focus, .donate-form select:focus, .donate-form textarea:focus {
    outline: none; border-color: var(--forest-bright); background: #fff;
    box-shadow: 0 0 0 3px rgba(31,138,77,0.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 10px; }
@media (max-width: 640px) { .amount-grid { grid-template-columns: repeat(2, 1fr); } }
.amount-opt {
    border: 1.5px solid var(--line); background: #fdfcf9; border-radius: 2px;
    padding: 14px 10px; cursor: pointer; text-align: center; font-family: inherit;
    transition: border-color 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease);
}
.amount-opt strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: var(--forest-dark); }
.amount-opt span { display: block; font-size: 0.68rem; line-height: 1.35; color: var(--ink-soft); margin-top: 5px; }
.amount-opt:hover { border-color: var(--forest-bright); }
.amount-opt.active { background: var(--forest-bright); border-color: var(--forest-bright); }
.amount-opt.active strong, .amount-opt.active span { color: #fff; }

.pay-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px; }
@media (max-width: 560px) { .pay-options { grid-template-columns: 1fr; } }
.pay-opt {
    display: flex; align-items: center; gap: 10px;
    border: 1.5px solid var(--line); border-radius: 2px; padding: 14px 16px;
    cursor: pointer; font-size: 0.92rem; font-weight: 500; background: #fdfcf9;
}
.pay-opt:hover { border-color: var(--forest-bright); }
.pay-opt.active { border-color: var(--forest-bright); background: #f2faf5; }
.pay-opt input { margin: 0; accent-color: var(--forest-bright); }
.pay-opt small { display: block; font-weight: 400; font-size: 0.72rem; color: var(--ink-soft); }

.aside-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin-bottom: 20px; }
.aside-card h3 { font-size: 1.1rem; margin-bottom: 14px; }
.aside-card p { font-size: 0.92rem; color: var(--ink-soft); }
.bank-line { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 0.9rem; }
.bank-line:last-of-type { border-bottom: 0; }
.bank-line strong { font-family: var(--sans); color: var(--forest-dark); }

.trust-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: 0.88rem; color: var(--ink-soft); }
.trust-row::before { content: '✓'; color: var(--forest-bright); font-weight: 700; flex-shrink: 0; }

.alert { padding: 15px 20px; border-radius: 2px; margin-bottom: 24px; font-size: 0.93rem; }
.alert-error { background: #fdecea; color: #7a1f14; border: 1px solid #f5c2bd; }
.alert-success { background: #eafaf0; color: #14532d; border: 1px solid #b7ebc6; }

/* ---------- Events carousel (homepage) ---------- */
/* Every slide sits in the same grid cell, so the area takes the height of the
   tallest event and the page never jumps as slides change. */
.event-carousel { position: relative; }
.ec-track { display: grid; }
.ec-slide {
    grid-area: 1 / 1;
    opacity: 0; visibility: hidden;
    transition: opacity 0.6s var(--ease), visibility 0s linear 0.6s;
}
.ec-slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.6s var(--ease); }

.ec-badge {
    display: inline-block; margin-bottom: 16px; padding: 6px 13px; border-radius: 999px;
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.ec-badge.is-upcoming { background: var(--gold); color: var(--forest-dark); }
.ec-badge.is-recent { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.4); }

.ec-meta { list-style: none; padding: 0; margin: 2px 0 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.ec-meta li { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 600; color: #fff; }
.ec-meta svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

.ec-controls { position: absolute; right: 24px; bottom: 22px; z-index: 3; display: flex; align-items: center; gap: 12px; }
.ec-arrow {
    width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    background: rgba(6,18,12,0.5); border: 1px solid rgba(255,255,255,0.4); color: #fff; font-size: 1.1rem;
    transition: background 0.15s var(--ease);
}
.ec-arrow:hover { background: rgba(6,18,12,0.8); }
.ec-arrow:focus-visible, .ec-dot:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ec-dots { display: flex; align-items: center; gap: 8px; }
.ec-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: rgba(255,255,255,0.5); transition: width 0.2s var(--ease), background 0.2s var(--ease); }
.ec-dot[aria-current="true"] { width: 26px; background: var(--gold); }

@media (max-width: 760px) {
    .ec-controls { position: static; justify-content: center; margin-top: 16px; }
    .ec-arrow { background: var(--forest-dark); border-color: var(--forest-dark); }
    .ec-dot { background: var(--line); }
}
@media (prefers-reduced-motion: reduce) {
    .ec-slide, .ec-slide.is-active { transition: none; }
}

/* ---------- Events page (full listing) ---------- */
.event-card .pc-tag.is-upcoming { background: var(--forest-bright); color: #fff; }
.event-card .pc-tag.is-recent { background: var(--ink-soft); color: #fff; }
.event-location { font-size: 0.85rem; color: var(--ink-soft); margin: -6px 0 10px; }
.event-card-details { grid-template-columns: 1fr; gap: 6px; margin: 4px 0 18px; }
.event-card-details li { font-size: 0.88rem; }

/* ---------- Partners ---------- */
.partners { text-align: center; }
.partner-logos {
    list-style: none; margin: 10px 0 0; padding: 0;
    display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 30px 64px;
}
/* One fixed box per logo; object-fit keeps each logo's shape, so tall and very wide logos look balanced. */
.partner-logos img { width: 210px; height: 64px; object-fit: contain; }
@media (max-width: 600px) {
    .partner-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; justify-items: center; }
    .partner-logos img { width: 100%; max-width: 160px; height: 50px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-dark); color: rgba(255,255,255,0.72); padding: 72px 0 30px; font-size: 0.9rem; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 18px; }
.site-footer a { color: rgba(255,255,255,0.72); }
.site-footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.foot-brand img { width: 54px; height: 54px; }
.foot-brand strong { font-family: var(--serif); color: #fff; font-size: 1.05rem; line-height: 1.2; }
.foot-list { list-style: none; padding: 0; margin: 0; }
.foot-list li { margin-bottom: 10px; }
/* Bank rows reuse .bank-line from the donate page, where text is dark on cream —
   on the dark footer they need light text and a light divider. */
.site-footer .bank-line { border-bottom-color: rgba(255,255,255,0.18); }
.site-footer .bank-line strong { color: #fff; }
.foot-bottom {
    border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px;
    display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    font-size: 0.78rem; color: rgba(255,255,255,0.5);
}

/* ---------- WhatsApp contact widget ---------- */
.wa { position: fixed; right: 24px; bottom: 24px; z-index: 150; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }

.wa-fab {
    display: inline-flex; align-items: center; gap: 11px;
    background: var(--forest-bright); color: #fff;
    border: 0; border-radius: 999px;
    padding: 16px 26px 16px 22px;
    font-family: var(--sans); font-size: 0.95rem; font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(14, 36, 25, 0.30);
    transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}
.wa-fab:hover { background: var(--forest-mid); transform: translateY(-2px); }
.wa-fab:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wa.open .wa-fab { background: var(--forest-dark); }

.wa-sheet {
    width: min(390px, calc(100vw - 32px));
    max-height: min(82vh, 760px);
    overflow-y: auto;
    position: relative;
    background: #fff;
    border-radius: 20px;
    padding: 28px 28px 22px;
    box-shadow: 0 28px 70px rgba(14, 36, 25, 0.26);
    animation: wa-in 0.2s var(--ease);
}
@keyframes wa-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.wa-close {
    position: absolute; top: 20px; right: 20px;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    background: #eef5f0; color: var(--forest-mid);
    border: 0; border-radius: 12px;
    font-size: 1.5rem; line-height: 1; cursor: pointer;
    transition: background 0.15s var(--ease);
}
.wa-close:hover { background: #dceae1; }

.wa-eyebrow {
    display: block;
    font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.19em; text-transform: uppercase;
    color: var(--coral-deep); margin-bottom: 12px;
}
.wa-h { font-size: 1.6rem; line-height: 1.14; margin: 0 0 9px; padding-right: 52px; }
.wa-intro { font-size: 0.92rem; color: var(--ink-soft); margin: 0 0 18px; }

.wa-form label {
    display: block;
    font-size: 0.88rem; font-weight: 600; color: var(--ink);
    margin: 0 0 6px;
}
.wa-form label span { font-weight: 400; color: var(--ink-soft); }
.wa-form input[type=text],
.wa-form select,
.wa-form textarea {
    width: 100%;
    padding: 11px 14px;
    margin-bottom: 14px;
    font-family: inherit; font-size: 0.97rem; color: var(--ink);
    background: #fff;
    border: 1.5px solid #dfe5e0;
    border-radius: 11px;
    transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.wa-form textarea { resize: vertical; min-height: 86px; }
.wa-form input::placeholder, .wa-form textarea::placeholder { color: #9aa6a0; }
.wa-form input:focus, .wa-form select:focus, .wa-form textarea:focus {
    outline: none;
    border-color: var(--forest-bright);
    box-shadow: 0 0 0 4px rgba(31, 138, 77, 0.13);
}

.wa-error {
    margin: -8px 0 16px;
    font-size: 0.86rem; color: #a3261a;
    background: #fdecea; border: 1px solid #f5c2bd;
    border-radius: 9px; padding: 9px 12px;
}

.wa-send {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%;
    background: var(--forest-bright); color: #fff;
    border: 0; border-radius: 12px;
    padding: 15px 20px;
    font-family: var(--sans); font-size: 0.98rem; font-weight: 600;
    cursor: pointer;
    /* pinned to the bottom of the sheet so the primary action is never scrolled out of reach */
    position: sticky; bottom: 0; margin-top: 4px;
    /* solid white band so content scrolling underneath fades out cleanly */
    box-shadow: 0 -6px 0 6px #fff, 0 -20px 18px 6px #fff;
    transition: background 0.15s var(--ease);
}
.wa-send:hover:not(:disabled) { background: var(--forest-mid); }
.wa-send:disabled { background: #b6c4bb; cursor: not-allowed; }
.wa-send:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.wa-note { font-size: 0.8rem; color: var(--ink-soft); margin: 12px 0 0; line-height: 1.5; }

@media (max-width: 560px) {
    .wa { right: 16px; bottom: 16px; left: 16px; align-items: stretch; }
    .wa-sheet { width: 100%; max-height: 74vh; padding: 30px 22px 22px; border-radius: 18px; }
    .wa-h { font-size: 1.55rem; }
    .wa-fab { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .wa-sheet { animation: none; }
    .wa-fab:hover { transform: none; }
}

/* ============================================================
   Admin
   ============================================================ */
body.admin { background: #f4f4f0; }
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar { width: 232px; background: var(--forest-dark); color: #fff; padding: 26px 0; flex-shrink: 0; }
.admin-sidebar .side-brand { display: flex; align-items: center; gap: 10px; padding: 0 22px 24px; }
.admin-sidebar .side-brand img { width: 38px; height: 38px; }
.admin-sidebar .side-brand span { font-family: var(--serif); font-weight: 700; font-size: 0.95rem; color: #fff; }
.admin-sidebar a { display: block; color: rgba(255,255,255,0.74); padding: 12px 22px; font-size: 0.9rem; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.08); color: #fff; text-decoration: none; }
.admin-sidebar .side-sep { margin: 18px 22px; border-top: 1px solid rgba(255,255,255,0.12); }
.admin-main { flex: 1; padding: 38px; max-width: 1180px; }
.admin-main h1 { font-size: 1.85rem; margin-bottom: 6px; }
.admin-main .sub { color: var(--ink-soft); margin-bottom: 30px; }
.admin-login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--forest-dark); padding: 24px; }
.admin-login-shell .card { width: 100%; max-width: 380px; }
@media (max-width: 780px) {
    .admin-shell { flex-direction: column; }
    .admin-sidebar { width: 100%; display: flex; flex-wrap: wrap; padding: 14px; gap: 4px; }
    .admin-sidebar .side-brand { width: 100%; padding: 0 8px 12px; }
    .admin-sidebar a { padding: 8px 14px; }
    .admin-sidebar .side-sep { display: none; }
    .admin-main { padding: 24px 18px; }
}

.data-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.87rem; vertical-align: middle; }
.data-table th { background: var(--cream); font-weight: 600; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table img.thumb { width: 68px; height: 46px; object-fit: cover; border-radius: 2px; }
.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
.badge-confirmed, .badge-yes { background: #eafaf0; color: #14532d; }
.badge-pending { background: #fff8e1; color: #8a6d00; }
.badge-failed, .badge-no { background: #fdecea; color: #7a1f14; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar input, .toolbar select { padding: 9px 13px; border: 1px solid var(--line); border-radius: 2px; font-family: inherit; font-size: 0.9rem; }
.btn-small { padding: 7px 15px; border-radius: 2px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 0.83rem; font-family: inherit; color: var(--ink); text-decoration: none; display: inline-block; }
.btn-small:hover { background: var(--cream); text-decoration: none; }
.btn-small.danger { color: #a3261a; border-color: #f0c6c1; }

/* ---- Admin table selection + bulk actions ---- */
.data-table .col-check { width: 38px; text-align: center; }
.data-table .col-check input { accent-color: var(--forest-bright); width: 16px; height: 16px; cursor: pointer; }
.data-table .col-actions { width: 1%; white-space: nowrap; text-align: right; }
.data-table .col-actions .btn-small { margin-left: 6px; }
.data-table tbody tr:has(.row-check:checked) { background: #f2faf5; }

.bulk-bar {
    display: flex; align-items: center; gap: 12px;
    background: var(--forest-dark); color: #fff;
    padding: 0 16px; margin-bottom: 0;
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.18s var(--ease), opacity 0.18s var(--ease), margin-bottom 0.18s var(--ease);
}
.bulk-bar.active { max-height: 64px; opacity: 1; padding: 12px 16px; margin-bottom: 14px; }
.bulk-bar .bulk-count { font-size: 0.85rem; font-weight: 600; margin-right: auto; }
.bulk-bar .btn-small { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.28); color: #fff; }
.bulk-bar .btn-small:hover { background: rgba(255,255,255,0.2); }
.bulk-bar .btn-small.danger { background: #b3392b; border-color: #b3392b; color: #fff; }
.bulk-bar .btn-small.danger:hover { background: #8f2c21; }
.admin-form label { display: block; font-weight: 600; margin: 18px 0 7px; font-size: 0.85rem; }
.admin-form input[type=text], .admin-form input[type=date], .admin-form input[type=number],
.admin-form input[type=email], .admin-form input[type=password], .admin-form textarea, .admin-form select {
    width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 2px; font-family: inherit; font-size: 0.95rem; background: #fff;
}
.admin-form textarea { line-height: 1.6; }
.admin-form .checkline { display: flex; align-items: center; gap: 9px; margin: 12px 0; font-size: 0.9rem; font-weight: 500; }
.admin-form .checkline input { accent-color: var(--forest-bright); }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-tile { background: #fff; border: 1px solid var(--line); padding: 22px; }
.stat-tile .t-label { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.stat-tile .t-value { font-family: var(--serif); font-weight: 700; font-size: 1.75rem; color: var(--forest-dark); margin-top: 6px; }

/* ---- Admin: event flyer preview ---- */
.badge-recent { background: #eceae4; color: #55605a; }
.data-table img.thumb { object-fit: cover; }
.ev-preview { margin-top: 14px; padding: 16px; background: var(--cream); border: 1px solid var(--line); border-radius: 4px; }
.ev-help { font-size: 0.82rem; color: var(--ink-soft); margin: 0 0 10px; }
.ev-pick { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.ev-pick img { max-width: 100%; max-height: 320px; cursor: crosshair; border-radius: 3px; }
.ev-dot {
    position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%;
    border: 3px solid #fff; background: rgba(31,138,77,0.9); box-shadow: 0 0 0 2px rgba(0,0,0,0.35); pointer-events: none;
}
.ev-shapes { display: flex; align-items: flex-end; gap: 18px; margin-top: 14px; flex-wrap: wrap; }
.ev-shapes figure { margin: 0; }
.ev-shapes figcaption { font-size: 0.76rem; color: var(--ink-soft); text-align: center; margin-top: 6px; }
.ev-shape { overflow: hidden; border-radius: 3px; background: var(--cream-deep); }
.ev-shape img { display: block; width: 100%; height: 100%; object-fit: cover; }
