/* ============================================================
   Kwanza Africa — A New Approach to Development
   Flat, warm, logo-driven palette. No gradients.
   ============================================================ */

:root {
    --brown: #46250C;
    --brown-deep: #2E1706;
    --orange: #F15A24;
    --orange-soft: #FDEBE0;
    --red: #DE3831;
    --cream: #FAF4EC;
    --sand: #F3E9DC;
    --line: #EADFCF;
    --ink: #33200F;
    --text: #5C4A3A;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(70, 37, 12, 0.10);
    --shadow-sm: 0 4px 14px rgba(70, 37, 12, 0.08);
    --radius: 18px;
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
    --header-h: 84px;
    --bottomnav-h: 62px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--cream);
    font-size: 16.5px;
    line-height: 1.65;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--red); }
ul { list-style: none; }
address { font-style: normal; }

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.container { width: min(1180px, 92%); margin-inline: auto; }

.skip-link {
    position: absolute; left: -999px; top: 8px; z-index: 300;
    background: var(--brown); color: #fff; padding: 10px 18px; border-radius: 8px;
}
.skip-link:focus { left: 8px; color: #fff; }

::selection { background: var(--orange); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--font-body); font-weight: 700; font-size: 15px;
    padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
    cursor: pointer; transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
    -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--red); color: #fff; }
.btn-outline { border-color: var(--brown); color: var(--brown); background: transparent; }
.btn-outline:hover { background: var(--brown); color: #fff; }
.btn-light { background: #fff; color: var(--brown); }
.btn-light:hover { background: var(--sand); color: var(--brown-deep); }
.btn-donate { background: var(--red); color: #fff; padding: 11px 22px; }
.btn-donate:hover { background: var(--orange); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Topbar ---------- */
.topbar { background: var(--brown); color: #EFE3D5; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; gap: 16px; }
.topbar a { color: #FFD9B8; font-weight: 600; }
.topbar a:hover { color: #fff; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 200;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; height: var(--header-h);
}
/* Logo always sits on a clean white plate */
.brand-plate {
    display: inline-flex; align-items: center; background: var(--white);
    border-radius: 12px; padding: 6px 10px;
}
.brand img { height: 52px; width: auto; }

.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
    display: block; padding: 10px 14px; border-radius: 999px;
    color: var(--ink); font-weight: 600; font-size: 15px;
    transition: background .18s ease, color .18s ease;
}
.main-nav a:hover { background: var(--sand); color: var(--brown-deep); }
.main-nav a.active { background: var(--brown); color: #fff; }

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

/* Language switcher */
.lang-switch { position: relative; }
.lang-btn {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--sand); border: 1px solid var(--line); color: var(--brown);
    font-weight: 700; font-size: 13.5px; padding: 9px 13px; border-radius: 999px;
    cursor: pointer; font-family: var(--font-body);
    transition: background .18s ease;
}
.lang-btn:hover { background: var(--orange-soft); }
.lang-menu {
    position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px;
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: var(--shadow); padding: 8px; display: none; z-index: 250;
    max-height: 60vh; overflow: auto;
}
.lang-menu.open { display: block; animation: pop .18s ease; }
.lang-menu li button {
    display: flex; justify-content: space-between; align-items: center; width: 100%;
    padding: 10px 12px; border: 0; background: none; border-radius: 9px;
    font: 600 14.5px var(--font-body); color: var(--ink); cursor: pointer; text-align: left;
}
.lang-menu li button:hover { background: var(--sand); }
.lang-menu li button.current { background: var(--orange-soft); color: var(--brown); }
.lang-menu .lang-native { color: var(--text); font-weight: 500; font-size: 13px; margin-left: 12px; }

@keyframes pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Mobile toggles */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2.6px; background: var(--brown); border-radius: 3px; margin: 5px 0; transition: transform .25s ease, opacity .25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7.6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7.6px) rotate(-45deg); }

.mobile-menu { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-menu ul { padding: 14px 4vw 20px; display: grid; gap: 4px; }
.mobile-menu a { display: block; padding: 13px 16px; border-radius: 12px; color: var(--ink); font-weight: 600; }
.mobile-menu a:hover, .mobile-menu a.active { background: var(--sand); color: var(--brown-deep); }
.mobile-menu .btn { margin-top: 8px; display: flex; justify-content: center; }

/* ---------- Hero slider ---------- */
.hero { position: relative; height: min(88vh, 780px); min-height: 540px; overflow: hidden; background: var(--brown-deep); }
.hero-slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease;
    visibility: hidden;
}
.hero-slide.active { opacity: 1; visibility: visible; }
.hero-slide img {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.08);
}
.hero-slide.active img { animation: kenburns 7.5s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.0); } }

.hero-slide::after {
    content: ""; position: absolute; inset: 0;
    background: rgba(36, 17, 5, 0.55); /* flat overlay — no gradients */
}
.hero-content {
    position: absolute; inset: 0; z-index: 5; display: flex; align-items: center;
}
.hero-copy { max-width: 720px; color: #fff; }
.hero-kicker {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--orange); color: #fff; font-size: 13px; font-weight: 800;
    letter-spacing: .12em; text-transform: uppercase;
    padding: 8px 16px; border-radius: 999px; margin-bottom: 22px;
}
.hero-copy h1 {
    color: #fff; font-size: clamp(38px, 5.6vw, 66px); font-weight: 600; margin-bottom: 18px;
}
.hero-copy h1 em { font-style: italic; color: #FFC79E; }
.hero-copy p { font-size: clamp(16px, 1.6vw, 19.5px); max-width: 560px; color: #F3E7DA; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-controls {
    position: absolute; z-index: 6; bottom: 34px; left: 0; right: 0;
    display: flex; justify-content: space-between; align-items: center;
}
.hero-dots { display: flex; gap: 9px; }
.hero-dots button {
    width: 34px; height: 5px; border-radius: 99px; border: 0; cursor: pointer;
    background: rgba(255,255,255,.35); transition: background .25s ease, width .25s ease;
}
.hero-dots button.active { background: var(--orange); width: 52px; }
.hero-arrows { display: flex; gap: 10px; }
.hero-arrows button {
    width: 46px; height: 46px; border-radius: 50%; border: 1.6px solid rgba(255,255,255,.5);
    background: rgba(46,23,6,.35); color: #fff; cursor: pointer;
    display: grid; place-items: center; transition: background .2s ease, border-color .2s ease;
}
.hero-arrows button:hover { background: var(--orange); border-color: var(--orange); }

/* Impact ticker strip */
.impact-strip { background: var(--brown); color: #fff; }
.impact-inner {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 30px 0;
}
.impact-item { text-align: center; padding: 6px 10px; }
.impact-num {
    font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 44px);
    font-weight: 700; color: #FFC79E; display: block; line-height: 1;
}
.impact-num sup { font-size: .55em; color: var(--orange); }
.impact-label { font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase; color: #E4D4C4; font-weight: 600; }

/* ---------- Section shells ---------- */
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section-alt { background: var(--white); }
.section-sand { background: var(--sand); }
.section-head { max-width: 720px; margin-bottom: clamp(34px, 4vw, 54px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--orange); font-weight: 800; font-size: 13px;
    letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--orange); border-radius: 2px; }
.section-head.center .eyebrow::after { content: ""; width: 26px; height: 3px; background: var(--orange); border-radius: 2px; }
.section-head h2 { font-size: clamp(30px, 3.8vw, 46px); margin-bottom: 14px; }
.section-head p { font-size: 17.5px; }

/* ---------- Who we are ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4/3.2; object-fit: cover; width: 100%; }
.split-media .media-card {
    position: absolute; left: -18px; bottom: -22px; background: var(--orange); color: #fff;
    border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow);
    font-weight: 700; max-width: 240px; line-height: 1.35;
}
.split-media .media-card strong { font-family: var(--font-display); font-size: 30px; display: block; }
.mission-vision { display: grid; gap: 14px; margin-top: 26px; }
.mv-card {
    display: flex; gap: 16px; background: var(--white); border: 1px solid var(--line);
    border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-sm);
}
.section-alt .mv-card { background: var(--cream); }
.mv-icon {
    flex: 0 0 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
    background: var(--orange-soft); color: var(--orange);
}
.mv-card h3 { font-size: 19px; margin-bottom: 4px; }
.mv-card p { font-size: 15.5px; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.pillar-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.pillar-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.pillar:hover .pillar-media img { transform: scale(1.06); }
.pillar-tag {
    position: absolute; left: 16px; bottom: 14px; background: var(--brown); color: #FFD9B8;
    font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    padding: 7px 13px; border-radius: 999px;
}
.pillar-body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pillar-body h3 { font-size: 23px; }
.pillar-body p { font-size: 15.5px; flex: 1; }
.pillar-link { font-weight: 700; font-size: 15px; color: var(--orange); display: inline-flex; align-items: center; gap: 7px; }
.pillar-link:hover { color: var(--red); gap: 11px; }
.pillar-link svg { transition: transform .2s ease; }

/* ---------- Values ---------- */
.values-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.values-grid.values-4 { grid-template-columns: repeat(4, 1fr); }
.value-card {
    background: var(--white); border: 1px solid var(--line); border-radius: 16px;
    padding: 24px 20px; text-align: center; box-shadow: var(--shadow-sm);
    transition: transform .22s ease, border-color .22s ease;
}
.value-card:hover { transform: translateY(-5px); border-color: var(--orange); }
.value-ini {
    width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 15px;
    background: var(--orange); color: #fff; display: grid; place-items: center;
    font-family: var(--font-display); font-weight: 700; font-size: 24px;
}
.value-card:nth-child(2n) .value-ini { background: var(--brown); }
.value-card:nth-child(3n) .value-ini { background: var(--red); }
.value-card h3 { font-size: 18.5px; margin-bottom: 6px; }
.value-card p { font-size: 14px; line-height: 1.5; }

/* ---------- News & events ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-media { position: relative; aspect-ratio: 16/9.4; overflow: hidden; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-media img { transform: scale(1.06); }
.news-type {
    position: absolute; top: 14px; left: 14px; font-size: 11.5px; font-weight: 800;
    letter-spacing: .1em; text-transform: uppercase; color: #fff;
    background: var(--orange); padding: 6px 12px; border-radius: 999px;
}
.news-type.is-event { background: var(--red); }
.news-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); font-weight: 600; }
.news-meta svg { color: var(--orange); }
.news-body h3 { font-size: 20px; line-height: 1.25; }
.news-body h3 a { color: var(--ink); }
.news-body h3 a:hover { color: var(--orange); }
.news-body p { font-size: 15px; flex: 1; }

/* Event date chip */
.event-chip {
    position: absolute; top: 14px; right: 14px; background: var(--white); color: var(--brown);
    border-radius: 12px; text-align: center; padding: 8px 12px; line-height: 1.05;
    box-shadow: var(--shadow-sm); font-weight: 800;
}
.event-chip .d { font-family: var(--font-display); font-size: 22px; display: block; color: var(--red); }
.event-chip .m { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Serve / audience band ---------- */
.serve-band { background: var(--brown); color: #fff; }
.serve-band .section-head h2, .serve-band .section-head { color: #fff; }
.serve-band .section-head p { color: #E4D4C4; }
.serve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.serve-card {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px; padding: 26px 24px;
}
.serve-card h3 { color: #FFC79E; font-size: 20px; margin-bottom: 8px; }
.serve-card p { color: #EBDCCB; font-size: 15px; }
.serve-num { font-family: var(--font-display); font-size: 15px; color: var(--orange); font-weight: 700; letter-spacing: .1em; }

/* ---------- Team ---------- */
.team-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: clamp(22px, 3vw, 34px); align-items: start;
}
.team-card {
    position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent;
    outline-offset: 6px;
}
.team-card:nth-child(even) { margin-top: 44px; }

/* Solid offset plate behind each portrait — flat paper-cut look */
.team-plate {
    position: absolute; inset: 0 auto auto 0; width: 100%; aspect-ratio: 3/3.9;
    border-radius: 999px 999px 22px 22px;
    transform: translate(-10px, 12px) rotate(-3deg);
    transition: transform .35s ease;
}
.plate-orange .team-plate { background: var(--orange); }
.plate-brown .team-plate { background: var(--brown); }
.plate-red .team-plate { background: var(--red); }
.team-card:hover .team-plate, .team-card:focus-visible .team-plate {
    transform: translate(-16px, 18px) rotate(-5deg);
}

/* Arch-window portrait */
.team-photo {
    position: relative; aspect-ratio: 3/3.9; overflow: hidden;
    border-radius: 999px 999px 22px 22px;
    background: var(--sand); box-shadow: var(--shadow-sm);
}
.team-photo img {
    width: 100%; height: 100%; object-fit: cover; object-position: top center;
    transition: transform .5s ease;
}
.team-card:hover .team-photo img { transform: scale(1.06); }

.team-more {
    position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px;
    border-radius: 50%; background: var(--orange); color: #fff;
    display: grid; place-items: center; box-shadow: var(--shadow-sm);
    transition: transform .35s ease, background .2s ease;
}
.plate-brown .team-more { background: var(--brown); }
.plate-red .team-more { background: var(--red); }
.team-card:hover .team-more { transform: rotate(90deg) scale(1.08); }

.team-meta { text-align: center; margin-top: 18px; }
.team-meta h3 { font-size: 21px; }
.team-role {
    display: inline-block; margin-top: 5px; color: var(--orange);
    font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
}

/* Profile popup */
.team-modal {
    position: fixed; inset: 0; z-index: 420; display: none;
    align-items: center; justify-content: center;
    background: rgba(36, 17, 5, 0.9); padding: 4vh 4vw;
}
.team-modal.open { display: flex; animation: fadein .22s ease; }
.team-dialog {
    position: relative; background: #fff; border-radius: 26px; overflow: hidden;
    width: min(880px, 100%); max-height: 88vh;
    display: grid; grid-template-columns: 330px 1fr;
    animation: dialogUp .32s ease;
}
@keyframes dialogUp { from { opacity: 0; transform: translateY(26px) scale(.98); } to { opacity: 1; transform: none; } }
.team-dialog-media {
    background: var(--sand); display: flex; align-items: flex-end; justify-content: center;
    padding: 34px 26px 0;
}
.team-dialog-media img {
    width: 100%; max-width: 260px; aspect-ratio: 3/3.9; object-fit: cover; object-position: top center;
    border-radius: 999px 999px 0 0;
}
.team-dialog-body { padding: clamp(26px, 4vw, 44px); overflow-y: auto; max-height: 88vh; min-height: 0; overscroll-behavior: contain; }
.team-dialog-name { font-size: clamp(26px, 3vw, 34px); margin: 4px 0 16px; }
.team-dialog-bio p { margin-bottom: 14px; font-size: 15.5px; }
.team-dialog-mail { margin-top: 6px; }
.team-modal-close {
    position: absolute; top: 16px; right: 16px; z-index: 2;
    width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--sand); color: var(--brown);
    display: grid; place-items: center; transition: background .2s ease, color .2s ease;
}
.team-modal-close:hover { background: var(--red); color: #fff; }

/* ---------- Partners (sliding marquee) ---------- */
.partners-marquee {
    overflow: hidden; position: relative;
}
.partners-track {
    display: flex; width: max-content;
    animation: partners-slide 28s linear infinite;
}
.partners-marquee:hover .partners-track,
.partners-marquee:focus-within .partners-track { animation-play-state: paused; }
.partners-set {
    display: flex; align-items: center; flex: 0 0 auto;
    gap: clamp(22px, 4vw, 48px); padding-right: clamp(22px, 4vw, 48px);
}
@keyframes partners-slide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .partners-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
    .partners-set[aria-hidden] { display: none; }
}
.partner-logo {
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    padding: 14px 22px; display: grid; place-items: center;
    filter: grayscale(1); opacity: .75; transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}
.partner-logo:hover { filter: none; opacity: 1; transform: translateY(-4px); }
.partner-logo img { height: 52px; width: auto; object-fit: contain; max-width: 190px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--orange); color: #fff; }
.cta-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 26px;
    padding: clamp(44px, 6vw, 70px) 0; flex-wrap: wrap;
}
.cta-inner h2 { color: #fff; font-size: clamp(28px, 3.6vw, 42px); max-width: 620px; }
.cta-inner p { color: #FFE4D3; margin-top: 8px; max-width: 560px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--brown-deep); overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero-inner { position: relative; z-index: 2; padding: clamp(70px, 9vw, 120px) 0; color: #fff; }
.page-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 58px); max-width: 800px; margin-top: 14px; }
.page-hero p { color: #EBDCCB; max-width: 640px; margin-top: 14px; font-size: 18px; }
.crumb { font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #FFC79E; }
.crumb a { color: #FFC79E; }
.crumb a:hover { color: #fff; }

/* ---------- Programs page ---------- */
.program-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.program-block + .program-block { margin-top: clamp(56px, 7vw, 96px); }
.program-block:nth-child(even) .program-media { order: 2; }
.program-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.program-copy h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: 14px; }
.step-list { display: grid; gap: 12px; margin-top: 20px; counter-reset: step; }
.step-list li {
    display: flex; gap: 14px; align-items: flex-start; background: var(--white);
    border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 15px;
}
.step-list li::before {
    counter-increment: step; content: counter(step);
    flex: 0 0 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: var(--orange-soft); color: var(--orange);
    font-weight: 800; font-family: var(--font-display); font-size: 17px;
}
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.stat-card {
    background: var(--white); border: 1px solid var(--line); border-radius: 14px;
    padding: 18px 16px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat-card strong { font-family: var(--font-display); font-size: 30px; color: var(--orange); display: block; line-height: 1.1; }
.stat-card span { font-size: 13px; font-weight: 600; }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.gallery-filters button {
    border: 1.6px solid var(--line); background: var(--white); color: var(--ink);
    font: 700 14px var(--font-body); padding: 10px 20px; border-radius: 999px; cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.gallery-filters button:hover { border-color: var(--orange); color: var(--orange); }
.gallery-filters button.active { background: var(--brown); border-color: var(--brown); color: #fff; }

.masonry { columns: 3; column-gap: 18px; }
.masonry-item {
    break-inside: avoid; margin-bottom: 18px; position: relative; border-radius: 16px;
    overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow-sm);
    transform: translateZ(0);
}
.masonry-item img { width: 100%; transition: transform .5s ease; }
.masonry-item:hover img { transform: scale(1.05); }
.masonry-overlay {
    position: absolute; inset: 0; background: rgba(46, 23, 6, 0.55);
    opacity: 0; transition: opacity .3s ease; display: flex; flex-direction: column;
    justify-content: flex-end; padding: 20px; color: #fff;
}
.masonry-item:hover .masonry-overlay, .masonry-item:focus-visible .masonry-overlay { opacity: 1; }
.masonry-overlay .cat {
    align-self: flex-start; background: var(--orange); font-size: 11px; font-weight: 800;
    letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; margin-bottom: 10px;
}
.masonry-overlay h3 { color: #fff; font-size: 18px; }
.masonry-overlay p { font-size: 13px; color: #EBDCCB; margin-top: 4px; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 400; background: rgba(24, 11, 2, 0.97);
    display: none; align-items: center; justify-content: center; flex-direction: column;
    padding: 4vh 4vw;
}
.lightbox.open { display: flex; animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.lightbox img {
    max-width: 100%; max-height: 76vh; border-radius: 12px; object-fit: contain;
    box-shadow: 0 20px 80px rgba(0,0,0,.5);
}
.lightbox-caption { color: #fff; text-align: center; margin-top: 18px; max-width: 640px; }
.lightbox-caption h3 { color: #fff; font-size: 20px; }
.lightbox-caption p { color: #D8C7B5; font-size: 14px; margin-top: 4px; }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 1.4px solid rgba(255,255,255,.3);
    width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
    transition: background .2s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: var(--orange); border-color: var(--orange); }
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; top: 30px; left: 30px; color: #D8C7B5; font-weight: 700; font-size: 14px; letter-spacing: .08em; }

/* ---------- News page & article ---------- */
.article-wrap { max-width: 780px; margin-inline: auto; }
.article-hero { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 30px; }
.article-hero img { width: 100%; aspect-ratio: 16/8.5; object-fit: cover; }
.article-body { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(26px, 4vw, 48px); }
.article-body p { margin-bottom: 18px; font-size: 17px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; margin: 14px 0 22px; color: var(--text); font-weight: 600; font-size: 14px; align-items: center; }
.article-meta .badge { background: var(--orange); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.article-meta .badge.is-event { background: var(--red); }

.empty-note {
    background: var(--white); border: 1.6px dashed var(--line); border-radius: var(--radius);
    padding: 46px 26px; text-align: center; color: var(--text); font-weight: 600;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 4vw, 54px); align-items: start; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3.4vw, 40px); box-shadow: var(--shadow-sm); }
.contact-list { display: grid; gap: 18px; margin-top: 22px; }
.contact-list li { display: flex; gap: 15px; align-items: flex-start; }
.contact-ico { flex: 0 0 46px; height: 46px; border-radius: 13px; background: var(--orange-soft); color: var(--orange); display: grid; place-items: center; }
.contact-list h3 { font-size: 16.5px; margin-bottom: 2px; }
.contact-list p, .contact-list a { font-size: 15px; }

.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-weight: 700; font-size: 14px; color: var(--ink); display: block; margin-bottom: 7px; }
input[type=text], input[type=email], input[type=password], input[type=datetime-local], select, textarea {
    width: 100%; padding: 13px 16px; border: 1.6px solid var(--line); border-radius: 12px;
    font: 500 15.5px var(--font-body); color: var(--ink); background: var(--cream);
    transition: border-color .2s ease, background .2s ease; -webkit-appearance: none; appearance: none;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); background: #fff; }
textarea { min-height: 140px; resize: vertical; }

.alert { padding: 14px 18px; border-radius: 12px; font-weight: 600; font-size: 14.5px; margin-bottom: 18px; }
.alert-ok { background: #E8F5E4; color: #24632B; border: 1px solid #BFE3B8; }
.alert-err { background: #FDE9E7; color: #96271F; border: 1px solid #F4C6C1; }

.map-card {
    position: relative; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--sand);
}
.map-card iframe { display: block; width: 100%; height: clamp(300px, 45vw, 440px); border: 0; }
.map-directions { position: absolute; right: 18px; bottom: 18px; box-shadow: var(--shadow); }

.donate-band { background: var(--brown); color: #fff; border-radius: var(--radius); padding: clamp(30px, 5vw, 54px); margin-top: clamp(44px, 6vw, 70px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center; }
.donate-band h2 { color: #FFC79E; font-size: clamp(26px, 3.2vw, 38px); margin-bottom: 12px; }
.donate-band p { color: #EBDCCB; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brown-deep); color: #D8C7B5; margin-bottom: 0; }
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: clamp(28px, 4vw, 54px); padding: clamp(50px, 6vw, 80px) 0 40px;
}
.brand-plate-footer { box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.brand-plate-footer img { height: 48px; width: auto; }
.footer-brand p { font-size: 14.5px; max-width: 320px; }
.footer-tagline { color: var(--orange); font-weight: 700; margin-top: 12px; font-style: italic; font-family: var(--font-display); }
.footer-col h3 { color: #fff; font-size: 16px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; font-family: var(--font-body); font-weight: 800; }
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { color: #D8C7B5; font-size: 15px; }
.footer-col a:hover { color: #FFC79E; }
.footer-contact p { font-size: 14.5px; margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 14px; padding: 20px 0; font-size: 13.5px; flex-wrap: wrap; }
.admin-link { color: #8A7361; }
.admin-link:hover { color: #FFC79E; }

/* ---------- Bottom nav (native mobile feel) ---------- */
.bottom-nav {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 220;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0);
    height: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px));
}
.bottom-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; color: #8A7361; font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
    padding-top: 8px; -webkit-tap-highlight-color: transparent;
    transition: color .18s ease, transform .12s ease;
}
.bottom-nav a:active { transform: scale(.92); }
.bottom-nav a svg { width: 23px; height: 23px; }
.bottom-nav a span { white-space: nowrap; }
.bottom-nav a.active { color: var(--orange); }
.bottom-nav a.active svg { stroke-width: 2.3; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero-slide.active img { animation: none; transform: none; }
    html { scroll-behavior: auto; }
}

/* ---------- RTL ---------- */
[dir="rtl"] .eyebrow::before { order: 2; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
    .main-nav { display: none; }
    .nav-toggle { display: block; }
    .mobile-menu.open { display: block; }
    .values-grid { grid-template-columns: repeat(3, 1fr); }
    .values-grid.values-4 { grid-template-columns: repeat(2, 1fr); }
    .masonry { columns: 2; }
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .team-card:nth-child(even) { margin-top: 34px; }
}

@media (max-width: 860px) {
    body { font-size: 16px; padding-bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px)); }
    .bottom-nav { display: flex; }
    .topbar { display: none; }
    :root { --header-h: 64px; }
    .header-inner { gap: 10px; }
    .brand { flex-shrink: 0; }
    .brand-plate { padding: 4px 6px; border-radius: 9px; }
    .brand img { height: 38px; }
    .header-actions { gap: 8px; }
    .btn-donate { padding: 9px 14px; font-size: 13px; }
    .lang-btn { padding: 8px 11px; font-size: 12.5px; gap: 5px; }
    .nav-toggle { padding: 8px 6px; }

    .hero { height: 82svh; min-height: 480px; }
    .hero-cta .btn { padding: 12px 20px; font-size: 14px; }
    .hero-arrows { display: none; }

    .impact-inner { grid-template-columns: repeat(2, 1fr); gap: 18px 8px; }

    .split, .program-block, .contact-grid, .donate-band { grid-template-columns: 1fr; }
    .program-block:nth-child(even) .program-media { order: 0; }
    .split-media .media-card { left: 12px; bottom: -16px; }

    .pillars, .news-grid, .serve-grid { grid-template-columns: 1fr; }
    .values-grid, .values-grid.values-4 { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-inner { flex-direction: column; align-items: flex-start; }
}

/* Phones: profile popup becomes a native-style bottom sheet */
@media (max-width: 860px) {
    .team-modal { padding: 0; align-items: flex-end; }
    .team-dialog {
        grid-template-columns: 1fr; width: 100%; max-width: 100%;
        border-radius: 24px 24px 0 0;
        max-height: 85vh; max-height: 88svh;
        overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
        padding-bottom: env(safe-area-inset-bottom, 0);
        animation: sheetUp .32s ease;
    }
    .team-dialog-media { padding-top: 30px; }
    .team-dialog-media img { max-width: 180px; }
    .team-dialog-body { overflow-y: visible; max-height: none; }
}
@keyframes sheetUp {
    from { transform: translateY(35%); opacity: .4; }
    to { transform: none; opacity: 1; }
}

@media (max-width: 430px) {
    /* Very small phones: keep the logo crisp and uncut */
    .brand img { height: 32px; }
    .lang-btn svg:last-child { display: none; }
    .btn-donate { padding: 8px 12px; font-size: 12.5px; }
    .nav-toggle span { width: 21px; }
}

@media (max-width: 560px) {
    .masonry { columns: 1; }
    .team-grid { gap: 22px 16px; }
    .team-meta h3 { font-size: 17px; }
    .team-more { width: 38px; height: 38px; }
    .values-grid, .values-grid.values-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .stat-cards { grid-template-columns: 1fr; }
    .lightbox-prev { left: 8px; } .lightbox-next { right: 8px; }
}
