/* ═══════════════════════════════════════════════════
   WAZI KENYA — Cinematic Theme Stylesheet
   Premium NGO launch site. Every section unique.
   ═══════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─── */
:root {
    --orange:         #FF6B00;
    --orange-hover:   #E55A00;
    --orange-light:   #FFF0E6;
    --orange-glow:    rgba(255, 107, 0, 0.15);
    --black:          #1A1A1A;
    --grey-dark:      #4A4A4A;
    --grey-mid:       #7A7A7A;
    --grey-light:     #E8E8E8;
    --brown:          #8B4513;
    --brown-light:    #A0522D;
    --green:          #4A7C59;
    --green-light:    #5D9B6E;
    --cream:          #FFF8F0;
    --cream-dark:     #F5EDE3;
    --white:          #FFFFFF;
    --charcoal:       #2D2D2D;
    --charcoal-light: #3D3D3D;

    --font-heading: 'Bricolage Grotesque', 'Helvetica Neue', sans-serif;
    --font-body:    'Atkinson Hyperlegible', system-ui, sans-serif;
    --font-accent:  'Geist Mono', 'JetBrains Mono', monospace;

    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  1.5rem;
    --space-lg:  2.5rem;
    --space-xl:  4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    --container:     1200px;
    --container-sm:  800px;
    --container-lg:  1400px;
    --radius:        8px;
    --radius-lg:     16px;
    --radius-xl:     24px;
    --radius-full:   9999px;

    --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:   0 4px 16px rgba(0,0,0,0.1);
    --shadow-lg:   0 8px 32px rgba(0,0,0,0.12);
    --shadow-warm: 0 8px 32px rgba(255,107,0,0.12);

    --ease:     cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.3s;

    --header-height: 80px;
}

/* ─── FILM GRAIN ─── */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ─── RESET & BASE ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html.lenis, html.lenis body {
    height: auto;
}

body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--grey-dark);
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--orange);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}

a:hover { color: var(--orange-hover); }

/* ─── TYPOGRAPHY ─── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--black);
    line-height: 1.15;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

.text-orange { color: var(--orange); }
.text-white { color: var(--white); }

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: var(--space-sm);
    position: relative;
    padding-left: 2rem;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1.25rem;
    height: 2px;
    background: var(--orange);
    transform: translateY(-50%);
}

.section-heading {
    margin-bottom: var(--space-lg);
}

.section-heading h2 { margin-bottom: 0.5rem; }

.section-heading p {
    font-size: 1.1rem;
    color: var(--grey-mid);
    max-width: 600px;
}

.section-heading.centered { text-align: center; }
.section-heading.centered p { margin-left: auto; margin-right: auto; }

/* ─── LAYOUT ─── */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.container-sm { max-width: var(--container-sm); }
.container-lg { max-width: var(--container-lg); }

.chapter {
    padding: var(--space-3xl) 0;
    overflow: hidden;
}

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    line-height: 1;
    position: relative;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

.btn-primary:hover {
    background: var(--orange-hover);
    border-color: var(--orange-hover);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255,107,0,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--orange);
    border-color: var(--orange);
}

.btn-outline:hover {
    background: var(--orange);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--charcoal);
    border-color: var(--white);
    font-weight: 700;
}

.btn-white:hover {
    background: var(--cream);
    color: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(255,255,255,0.3);
}

.btn-ghost {
    background: rgba(255,255,255,0.08);
    color: var(--white);
    border-color: rgba(255,255,255,0.25);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.18);
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 1.05rem;
}

.btn-sm {
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
}

/* ─── BADGE ─── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-full);
}

.badge-orange {
    background: var(--orange);
    color: var(--white);
}

.badge-glass {
    background: rgba(255,255,255,0.12);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
}

/* ═══════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: all 0.4s var(--ease);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

body:not(.is-home) .site-header {
    background: var(--white);
    box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container-lg);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.site-logo img { height: 48px; width: auto; }

.site-logo .logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--black);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.is-home .site-header:not(.scrolled) .logo-text { color: var(--white); }

.site-logo .logo-bracket { color: var(--orange); }

.nav-container {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.main-nav .nav-item {
    list-style: none;
    position: relative;
}

.main-nav .nav-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--black);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius);
    transition: all var(--duration) var(--ease);
    text-decoration: none;
}

.is-home .site-header:not(.scrolled) .nav-link { color: var(--white); }

.main-nav .nav-link:hover,
.main-nav .nav-link.active { color: var(--orange); }

.main-nav .nav-link .dropdown-arrow { transition: transform var(--duration) var(--ease); }
.main-nav .nav-item:hover .dropdown-arrow { transform: rotate(180deg); }

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration) var(--ease);
    list-style: none;
    border: 1px solid var(--grey-light);
}

.nav-item:hover > .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown .nav-dropdown-link {
    display: block;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--grey-dark);
    padding: 0.6rem 1rem;
    border-radius: var(--radius);
    transition: all 0.15s var(--ease);
    text-decoration: none;
}

.nav-dropdown .nav-dropdown-link:hover {
    background: var(--orange-light);
    color: var(--orange);
}

/* Homepage hero forces white .nav-link; restore dark text inside the white dropdown panel */
.is-home .site-header:not(.scrolled) .nav-dropdown .nav-dropdown-link {
    color: var(--grey-dark);
}
.is-home .site-header:not(.scrolled) .nav-dropdown .nav-dropdown-link:hover {
    color: var(--orange);
}

.header-cta .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
}

.is-home .site-header:not(.scrolled) .header-cta .btn-primary {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
}

.is-home .site-header:not(.scrolled) .header-cta .btn-primary:hover {
    background: var(--white);
    color: var(--orange);
    border-color: var(--white);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: all var(--duration) var(--ease);
}

.is-home .site-header:not(.scrolled) .mobile-toggle span { background: var(--white); }

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 1024px) {
    .mobile-toggle { display: flex; }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(380px, 85vw);
        height: 100vh;
        height: 100dvh;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        box-shadow: var(--shadow-lg);
        padding: calc(var(--header-height) + 1rem) var(--space-md) var(--space-lg);
        transition: right 0.4s var(--ease-expo);
        overflow-y: auto;
        z-index: 999;
    }

    .nav-container.open { right: 0; }

    .main-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .main-nav .nav-link {
        color: var(--black) !important;
        padding: 0.85rem 0;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--grey-light);
    }

    .nav-dropdown {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        padding: 0 0 0 1rem;
        min-width: auto;
    }

    .nav-dropdown .nav-dropdown-link {
        border-bottom: 1px solid var(--grey-light);
        border-radius: 0;
        padding: 0.7rem 0;
    }

    .header-cta {
        margin-top: var(--space-md);
    }

    .header-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .mobile-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.4);
        z-index: 998;
        opacity: 0;
        visibility: hidden;
        transition: all var(--duration) var(--ease);
    }

    .mobile-overlay.open {
        opacity: 1;
        visibility: visible;
    }
}

/* ─── CUSTOM CURSOR ─── */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--orange);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99998;
    transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s var(--ease);
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.custom-cursor.hovering {
    width: 60px;
    height: 60px;
    background: rgba(255,107,0,0.15);
    border-color: var(--white);
}

@media (max-width: 1024px) {
    .custom-cursor { display: none; }
}


/* ═══════════════════════════════════════════════════
   HERO — Cinematic full-screen video
   ═══════════════════════════════════════════════════ */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        160deg,
        rgba(10, 10, 10, 0.75) 0%,
        rgba(45, 45, 45, 0.5) 40%,
        rgba(139, 69, 19, 0.35) 70%,
        rgba(255, 107, 0, 0.2) 100%
    );
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 750px;
    padding-top: var(--header-height);
}

.hero-badge {
    margin-bottom: var(--space-lg);
}

.hero-headline {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.hero-line {
    display: block;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--white);
    text-shadow: 0 4px 40px rgba(0,0,0,0.3);
    overflow: hidden;
}


.hero-accent {
    color: var(--orange) !important;
    font-style: italic;
}

.hero-sub {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    max-width: 540px;
    margin-top: var(--space-lg);
}

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-top: var(--space-lg);
}

.hero-scroll-cue {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.scroll-label {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}


/* ═══════════════════════════════════════════════════
   IMPACT MARQUEE — Infinite horizontal scroll
   ═══════════════════════════════════════════════════ */

.marquee-strip {
    background: var(--charcoal);
    color: var(--white);
    padding: 1.1rem 0;
    overflow: hidden;
    position: relative;
    border-top: 1px solid rgba(255,107,0,0.2);
    border-bottom: 1px solid rgba(255,107,0,0.2);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-set {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.marquee-item {
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 0 1.5rem;
    color: rgba(255,255,255,0.6);
}

.marquee-item strong {
    color: var(--orange);
    font-weight: 800;
    font-family: var(--font-accent);
    font-size: 1.1rem;
    margin-right: 0.3em;
}

.marquee-dot {
    width: 4px;
    height: 4px;
    background: var(--orange);
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.5;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.333%); }
}


/* ═══════════════════════════════════════════════════
   ABOUT — Asymmetric editorial layout
   ═══════════════════════════════════════════════════ */

.about-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-heading {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    line-height: 1.2;
    margin-bottom: var(--space-lg);
}

.about-body p {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--grey-dark);
}

.about-visual {
    position: relative;
    padding: var(--space-lg);
}

.about-photo-main {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    z-index: 2;
}

.about-photo-main::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(26,26,26,0.3) 100%);
    pointer-events: none;
}

.about-photo-main img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
}

.about-photo-accent {
    position: absolute;
    bottom: 0;
    left: -1rem;
    width: 45%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
    border: 4px solid var(--white);
    z-index: 3;
}

.about-photo-accent img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.about-badge-float {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--orange);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-sm) var(--space-md);
    text-align: center;
    z-index: 4;
    box-shadow: 0 8px 24px rgba(255,107,0,0.3);
}

.about-badge-year {
    display: block;
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
}

.about-badge-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
    margin-top: 0.25rem;
}

@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .about-visual {
        max-width: 400px;
        margin: 0 auto;
    }
}


/* ═══════════════════════════════════════════════════
   FLAGSHIP — Full-width editorial spread
   ═══════════════════════════════════════════════════ */

.flagship-section {
    background: var(--cream);
    overflow: hidden;
}

.flagship-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    min-height: 700px;
}

.flagship-photo-col {
    position: relative;
    overflow: hidden;
}

.flagship-photo-wrap {
    position: absolute;
    inset: 0;
}

.flagship-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.flagship-text-col {
    display: flex;
    align-items: center;
    padding: var(--space-3xl) var(--space-2xl);
}

.flagship-content {
    max-width: 520px;
}

.flagship-content .badge {
    margin-bottom: var(--space-lg);
}

.flagship-content h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    margin-bottom: var(--space-md);
}

.flagship-lead {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--brown);
    line-height: 1.6;
}

.flagship-content p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ─── FLAGSHIP FACTS (replaces hero-metric template) ─── */
.flagship-facts {
    display: flex;
    flex-direction: column;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--grey-light);
}

.flagship-fact {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.flagship-fact:last-child {
    border-bottom: none;
}

.flagship-fact-label {
    font-family: var(--font-accent);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--grey-mid);
    flex-shrink: 0;
}

.flagship-fact-value {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--black);
    text-align: right;
}

@media (max-width: 900px) {
    .flagship-layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .flagship-photo-col {
        position: relative;
        height: 350px;
    }

    .flagship-text-col {
        padding: var(--space-xl) var(--space-md);
    }

    .flagship-metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }
}


/* ═══════════════════════════════════════════════════
   PROGRAMS — Interactive hover-reveal list
   ═══════════════════════════════════════════════════ */

.programs-section {
    background: var(--white);
}

.programs-header {
    margin-bottom: var(--space-2xl);
}

.programs-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
}

.program-list {
    position: relative;
}

.program-row {
    display: grid;
    grid-template-columns: 60px 1fr 2fr auto 40px;
    gap: var(--space-lg);
    align-items: center;
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--grey-light);
    text-decoration: none;
    color: var(--black);
    transition: all 0.4s var(--ease);
    position: relative;
}

.program-row:last-child {
    border-bottom: 1px solid var(--grey-light);
}

.program-row:hover {
    padding-left: var(--space-sm);
}

.program-row:hover .program-name {
    color: var(--orange);
}

.program-row:hover .program-arrow {
    transform: translate(4px, -4px);
    color: var(--orange);
}

.program-num {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 1rem;
    color: var(--grey-light);
    transition: color 0.4s var(--ease);
}

.program-row:hover .program-num {
    color: var(--orange);
}

.program-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    transition: color 0.4s var(--ease);
    white-space: nowrap;
}

.program-desc {
    font-size: 0.95rem;
    color: var(--grey-mid);
    line-height: 1.5;
}

.program-stat {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--orange);
    white-space: nowrap;
    background: var(--orange-light);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
}

.program-arrow {
    color: var(--grey-light);
    transition: all 0.4s var(--ease);
    display: flex;
    align-items: center;
}

/* Floating preview image */
.program-preview {
    position: fixed;
    width: 320px;
    height: 220px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    pointer-events: none;
    z-index: 100;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.program-preview.active {
    opacity: 1;
    transform: scale(1);
}

.program-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile cards fallback */
.program-cards-mobile {
    display: none;
}

@media (max-width: 900px) {
    .program-list { display: none; }
    .program-preview { display: none; }

    .program-cards-mobile {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
        padding-top: var(--space-lg);
    }

    .program-card-mobile {
        display: block;
        text-decoration: none;
        color: var(--black);
        background: var(--white);
        border-radius: var(--radius-lg);
        overflow: hidden;
        border: 1px solid var(--grey-light);
        transition: all var(--duration) var(--ease);
    }

    .program-card-mobile:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: transparent;
    }

    .program-card-mobile-img {
        aspect-ratio: 3/2;
        overflow: hidden;
    }

    .program-card-mobile-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .program-card-mobile-body {
        padding: var(--space-sm);
    }

    .program-card-mobile-body .program-num {
        font-size: 0.75rem;
        color: var(--orange);
        margin-bottom: 0.25rem;
        display: block;
    }

    .program-card-mobile-body h3 {
        font-size: 1rem;
        margin-bottom: 0.35rem;
    }

    .program-card-mobile-body p {
        font-size: 0.85rem;
        color: var(--grey-mid);
        line-height: 1.5;
    }
}

@media (max-width: 500px) {
    .program-cards-mobile {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════════════
   QUOTE — Cinematic dark section
   ═══════════════════════════════════════════════════ */

.quote-section {
    background: var(--charcoal);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,107,0,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.quote-inner {
    text-align: center;
    position: relative;
}

.quote-marks {
    color: rgba(255,107,0,0.15);
    margin-bottom: var(--space-lg);
}

.quote-text {
    border: none;
    padding: 0;
    margin: 0;
}

.quote-text p {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 600;
    line-height: 1.6;
    color: var(--white);
    max-width: 720px;
    margin: 0 auto var(--space-xl);
}

.quote-text .word {
    display: inline-block;
    opacity: 0.15;
    transition: opacity 0.3s var(--ease);
}

.quote-text .word.active {
    opacity: 1;
}

.quote-attribution {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}

.quote-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--orange);
}

.quote-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--white);
    text-align: left;
}

.quote-role {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    text-align: left;
}


/* ═══════════════════════════════════════════════════
   COMMUNITY VOICES — Grid of quotes from the field
   ═══════════════════════════════════════════════════ */

.voices-section {
    background: var(--cream);
    padding: var(--space-3xl) 0;
}

.voices-header { margin-bottom: var(--space-2xl); }
.voices-header h2 { font-size: clamp(2rem, 4vw, 3rem); }

.voices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.voice-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid var(--grey-light);
    transition: all 0.4s var(--ease);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.voice-card:hover {
    border-color: rgba(255,107,0,0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.voice-card p {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.6;
    color: var(--black);
    font-style: italic;
    margin-bottom: var(--space-md);
}

.voice-source {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--orange);
}

.voice-card-accent {
    background: var(--orange);
    border-color: var(--orange);
}

.voice-card-accent p { color: var(--white); }
.voice-card-accent .voice-source { color: rgba(255,255,255,0.7); }
.voice-card-accent:hover { border-color: var(--orange-hover); box-shadow: 0 8px 32px rgba(255,107,0,0.2); }

@media (max-width: 900px) {
    .voices-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .voices-grid { grid-template-columns: 1fr; }
}


/* ═══════════════════════════════════════════════════
   TIMELINE — Horizontal scroll-driven
   ═══════════════════════════════════════════════════ */

.timeline-section {
    background: var(--black);
    color: var(--white);
    padding: var(--space-3xl) 0;
    overflow: hidden;
}

.timeline-header {
    margin-bottom: var(--space-2xl);
}

.timeline-header h2 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
}

.timeline-header .section-label::before {
    background: rgba(255,255,255,0.3);
}

.timeline-scroll-wrap {
    position: relative;
    overflow: hidden;
}

.timeline-track {
    display: flex;
    gap: var(--space-lg);
    padding: 0 var(--space-md);
    will-change: transform;
}

.timeline-card {
    flex-shrink: 0;
    width: 340px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.4s var(--ease);
}

.timeline-card:hover {
    border-color: rgba(255,107,0,0.3);
    background: rgba(255,255,255,0.06);
    transform: translateY(-4px);
}

.timeline-card-img {
    height: 200px;
    overflow: hidden;
}

.timeline-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.timeline-card:hover .timeline-card-img img {
    transform: scale(1.05);
}

.timeline-card-body {
    padding: var(--space-md);
}

.timeline-year {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--orange);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: block;
}

.timeline-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.timeline-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
}

.timeline-progress {
    margin: var(--space-xl) var(--space-md) 0;
    height: 2px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}

.timeline-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--orange), var(--brown-light));
    border-radius: 2px;
    transition: width 0.1s linear;
}

@media (max-width: 640px) {
    .timeline-card { width: 280px; }
    .timeline-card-img { height: 160px; }
}


/* ═══════════════════════════════════════════════════
   TEAM — Full-bleed photo with overlay
   ═══════════════════════════════════════════════════ */

.team-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.team-photo-wrap {
    position: absolute;
    inset: 0;
}

.team-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(26,26,26,0.85) 0%,
        rgba(26,26,26,0.6) 50%,
        rgba(26,26,26,0.3) 100%
    );
}

.team-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: var(--space-3xl) var(--space-md);
    max-width: 550px;
}

.team-content h2 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
}

.team-content p {
    color: rgba(255,255,255,0.75);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}


/* ═══════════════════════════════════════════════════
   PARTNERS — Text cloud
   ═══════════════════════════════════════════════════ */

.partners-section {
    background: var(--cream);
}

.partners-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.partners-header .section-label::before { display: none; }
.partners-header .section-label { padding-left: 0; }

.partner-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: baseline;
    gap: var(--space-sm) var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.partner-name {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--grey-mid);
    transition: color 0.4s var(--ease);
    cursor: default;
    white-space: nowrap;
}

.partner-name:hover { color: var(--orange); }

.partner-lg { font-size: clamp(1.5rem, 3vw, 2rem); }
.partner-md { font-size: clamp(1.1rem, 2vw, 1.4rem); }
.partner-sm { font-size: clamp(0.9rem, 1.5vw, 1.1rem); opacity: 0.7; }


/* ═══════════════════════════════════════════════════
   BLOG — Cards grid
   ═══════════════════════════════════════════════════ */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 900px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .blog-grid { grid-template-columns: 1fr; }
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s var(--ease);
    border: 1px solid var(--grey-light);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.12);
    border-color: transparent;
}

.card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.card:hover .card-image img { transform: scale(1.05); }

.card-body { padding: var(--space-md); }
.card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.card-body h3 a {
    color: var(--black);
    text-decoration: none;
    transition: color var(--duration) var(--ease);
}
.card-body h3 a:hover { color: var(--orange); }
.card-body p { color: var(--grey-mid); font-size: 0.95rem; }

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8rem;
    color: var(--grey-mid);
    margin-bottom: 0.5rem;
}

.card-meta .category {
    background: var(--orange-light);
    color: var(--orange);
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.75rem;
}


/* ═══════════════════════════════════════════════════
   CTA — Cinematic closing section
   ═══════════════════════════════════════════════════ */

.cta-section {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: center;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(255,107,0,0.15) 0%,
        rgba(45,45,45,0.85) 100%
    );
}

.cta-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    padding: var(--space-3xl) var(--space-md);
}

.cta-headline {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════ */

.site-footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.7);
}

.footer-main {
    padding: var(--space-2xl) 0 var(--space-xl);
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-xl);
}

@media (max-width: 1024px) {
    .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .footer-main { grid-template-columns: 1fr; gap: var(--space-lg); }
}

.footer-about p {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.footer-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 0.6rem; }

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    transition: color var(--duration) var(--ease);
}

.footer-links a:hover { color: var(--orange); }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
}

.footer-contact-icon {
    color: var(--orange);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: var(--space-md);
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--duration) var(--ease);
}

.footer-social-link:hover {
    background: var(--orange);
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-md) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
    font-size: 0.85rem;
}

.footer-mpesa {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius);
    padding: var(--space-sm) var(--space-md);
    margin-top: var(--space-md);
    font-size: 0.85rem;
}

.footer-mpesa strong { color: var(--orange); }


/* ═══════════════════════════════════════════════════
   PAGE HERO (inner pages)
   ═══════════════════════════════════════════════════ */

.page-hero {
    position: relative;
    padding: calc(var(--header-height) + var(--space-2xl)) 0 var(--space-2xl);
    background: linear-gradient(135deg, var(--charcoal) 0%, var(--brown) 100%);
    color: var(--white);
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,107,0,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.page-hero h1 { color: var(--white); margin-bottom: var(--space-sm); }
.page-hero p { font-size: 1.15rem; opacity: 0.8; max-width: 600px; }

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: var(--space-md);
    opacity: 0.7;
}
.breadcrumbs a { color: var(--white); opacity: 0.8; }
.breadcrumbs a:hover { opacity: 1; color: var(--orange); }
.breadcrumbs .separator { font-size: 0.7rem; }


/* ═══════════════════════════════════════════════════
   SCROLL TO TOP
   ═══════════════════════════════════════════════════ */

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration) var(--ease);
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.scroll-top.visible { opacity: 1; visibility: visible; }

.scroll-top:hover {
    background: var(--orange-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-warm);
}


/* ═══════════════════════════════════════════════════
   INNER PAGES — Shared styles for all interior pages
   ═══════════════════════════════════════════════════ */

/* Section utility */
.section {
    padding: var(--space-2xl) 0;
}

.section-cream { background: var(--cream); }

.section-charcoal {
    background: var(--charcoal);
    color: var(--white);
}
.section-charcoal h2,
.section-charcoal h3,
.section-charcoal h4 { color: var(--white); }

/* Grid utilities */
.grid { display: grid; gap: var(--space-lg); }
.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: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .section { padding: var(--space-xl) 0; }
}

/* Two-column split */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
@media (max-width: 768px) {
    .split { grid-template-columns: 1fr; gap: var(--space-xl); }
    .split.reverse { direction: ltr; }
}

/* Stat cards */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-lg);
    text-align: center;
}

.stat-item { padding: var(--space-md); }

.stat-num {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--orange);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--grey-mid);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-charcoal .stat-label { color: rgba(255,255,255,0.6); }

/* Card link */
.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--orange);
    margin-top: var(--space-sm);
    transition: gap var(--duration) var(--ease);
}
.card-link:hover { gap: 0.6rem; }

/* Info card (for donate, contact, etc.) */
.info-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid var(--grey-light);
    transition: all 0.4s var(--ease);
}

.info-card:hover {
    border-color: var(--orange);
    box-shadow: var(--shadow-warm);
    transform: translateY(-4px);
}

/* Role/feature cards */
.role-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid var(--grey-light);
    transition: all 0.4s var(--ease);
}

.role-card:hover {
    border-color: rgba(255,107,0,0.3);
    box-shadow: var(--shadow-md);
}

/* SDG badges */
.sdg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.sdg-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.sdg-num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    color: var(--white);
    border-radius: var(--radius);
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Team grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-xl);
    text-align: center;
}

.team-member-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--space-sm);
    border: 4px solid var(--cream);
    transition: border-color 0.4s var(--ease);
}

.team-member:hover .team-member-photo { border-color: var(--orange); }

.team-member-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--black);
}

.team-member-role {
    font-size: 0.9rem;
    color: var(--orange);
    font-weight: 600;
}

/* Value pills */
.values-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    justify-content: center;
}

.value-pill {
    display: inline-block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    background: var(--orange-light);
    color: var(--orange);
    transition: all 0.3s var(--ease);
}

.value-pill:hover {
    background: var(--orange);
    color: var(--white);
}

/* Steps list */
.steps-list {
    counter-reset: step;
    list-style: none;
}

.steps-list li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: var(--space-md);
    font-size: 1.05rem;
    line-height: 1.6;
}

.steps-list li::before {
    content: counter(step);
    counter-increment: step;
    position: absolute;
    left: 0;
    top: 0.15rem;
    width: 2rem;
    height: 2rem;
    background: var(--orange);
    color: var(--white);
    border-radius: 50%;
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Highlight box */
.highlight-box {
    background: linear-gradient(135deg, var(--orange) 0%, var(--brown-light) 100%);
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
}

.highlight-box h3 { color: var(--white); }

/* Pagination */
.nav-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    border-radius: var(--radius);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all var(--duration) var(--ease);
}

.nav-links a {
    background: var(--white);
    color: var(--grey-dark);
    border: 1px solid var(--grey-light);
}

.nav-links a:hover {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

.nav-links span.current {
    background: var(--orange);
    color: var(--white);
    border: 1px solid var(--orange);
}

/* Post content typography */
.post-content h2 { margin-top: var(--space-xl); margin-bottom: var(--space-sm); }
.post-content h3 { margin-top: var(--space-lg); margin-bottom: var(--space-xs); }
.post-content ul, .post-content ol { margin-bottom: 1em; padding-left: 1.5em; }
.post-content blockquote {
    border-left: 4px solid var(--orange);
    padding-left: var(--space-md);
    margin: var(--space-lg) 0;
    font-style: italic;
    color: var(--grey-dark);
}
.post-content img {
    border-radius: var(--radius-lg);
    margin: var(--space-lg) 0;
}

/* Map placeholder */
.map-placeholder {
    background: var(--cream);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    border: 2px dashed var(--grey-light);
}

.map-placeholder svg { margin-bottom: var(--space-sm); color: var(--orange); }

/* ═══════════════════════════════════════════════════
   CINEMATIC PAGE HERO — Reusable across inner pages
   ═══════════════════════════════════════════════════ */

.pg-hero { position: relative; min-height: 60vh; display: flex; align-items: flex-end; overflow: hidden; }
.pg-hero-bg { position: absolute; inset: 0; }
.pg-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.pg-hero-ov { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 50%, rgba(0,0,0,.15) 100%); }
.pg-hero-inner { position: relative; z-index: 2; padding-top: calc(var(--header-height) + var(--space-xl)); padding-bottom: var(--space-2xl); color: var(--white); }
.pg-hero-inner h1 { color: var(--white); font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900; line-height: 1.1; margin-bottom: var(--space-md); }
.pg-hero-inner p { color: rgba(255,255,255,.7); font-size: 1.15rem; max-width: 500px; line-height: 1.7; }
.pg-hero .breadcrumbs { margin-bottom: var(--space-lg); }
.pg-hero .breadcrumbs a { color: rgba(255,255,255,.4); }
.pg-hero .breadcrumbs .separator { color: rgba(255,255,255,.2); }
.pg-hero .breadcrumbs span:last-child { color: rgba(255,255,255,.6); }

@media (max-width: 640px) {
    .pg-hero { min-height: 50vh; }
}

/* ─── REDUCED MOTION (global) ─── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .marquee-track,
    .values-strip,
    .hero-bg img,
    .pg-hero-bg img {
        animation: none !important;
        transform: none !important;
    }
}

/* ─── FOCUS RING (Wazi Orange Glow per DESIGN.md) ─── */
:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.28);
    border-radius: var(--radius-sm, 4px);
}
a:focus-visible,
button:focus-visible {
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.32);
    border-radius: var(--radius-full, 9999px);
}


/* ═══ FOOTER — legal identity & links (Google compliance) ═══ */
.footer-legal {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}
.footer-legal a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--duration) var(--ease);
}
.footer-legal a:hover { color: var(--orange); }

/* ═══ LONG-FORM CONTENT (Privacy Policy & legal pages) ═══ */
.section .container-sm .privacy-intro {
    font-size: 1.15rem; line-height: 1.7; color: var(--ink, #171513);
    font-weight: 500; margin-bottom: var(--space-lg);
}
.section .container-sm h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700;
    letter-spacing: -0.015em; line-height: 1.15;
    margin: var(--space-2xl) 0 var(--space-sm);
    padding-top: var(--space-md);
    border-top: 1px solid var(--paper-rule, #E8E2D8);
}
.section .container-sm h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em;
    margin: var(--space-lg) 0 var(--space-xs);
}
.section .container-sm p,
.section .container-sm li { font-size: 1.125rem; line-height: 1.7; color: var(--ink-soft, #3D3935); }
.section .container-sm ul { margin: var(--space-sm) 0 var(--space-md) 1.25rem; }
.section .container-sm li { margin-bottom: 0.4rem; }
.section .container-sm a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.section .container-sm a:hover { color: var(--orange-hover); }
.section .container-sm table {
    width: 100%; border-collapse: collapse; margin: var(--space-md) 0 var(--space-lg);
    font-size: 0.95rem;
}
.section .container-sm th,
.section .container-sm td {
    text-align: left; vertical-align: top;
    padding: 0.75rem 1rem;
    border: 1px solid var(--paper-rule, #E8E2D8);
    line-height: 1.5;
}
.section .container-sm thead th {
    background: var(--paper-deep, #F5EDE3);
    font-family: var(--font-accent, monospace);
    font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--ink, #171513); font-weight: 600;
}
.section .container-sm tbody tr:nth-child(even) td { background: rgba(0,0,0,0.015); }
@media (max-width: 600px) {
    .section .container-sm table, .section .container-sm thead,
    .section .container-sm tbody, .section .container-sm th,
    .section .container-sm td, .section .container-sm tr { display: block; }
    .section .container-sm thead { display: none; }
    .section .container-sm td { border: none; border-bottom: 1px solid var(--paper-rule, #E8E2D8); padding: 0.4rem 0; }
    .section .container-sm tbody tr { padding: var(--space-sm) 0; border-bottom: 2px solid var(--paper-rule, #E8E2D8); }
    .section .container-sm tbody tr:nth-child(even) td { background: none; }
}

/* ═══ FOOTER LOGO (image, replaces text placeholder) ═══ */
.footer-logo { display: inline-block; margin-bottom: var(--space-md); }
.footer-logo img {
    display: block;
    width: 200px;
    max-width: 60%;
    height: auto;
}


/* ═══ FOOTER registration line — quiet, present, recessive ═══ */
.footer-copy { line-height: 1.5; }
.footer-reg-inline {
    display: block;
    margin-top: 0.3rem;
    font-family: var(--font-accent, monospace);
    font-size: 0.62rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.18);
}

/* ═══ FOOTER donate button (replaces exposed M-Pesa details) ═══ */
.footer-donate-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: var(--space-md);
    padding: 0.8rem 1.5rem;
    background: var(--orange);
    color: var(--cream, #FFF8F0);
    border-radius: var(--radius-full, 9999px);
    font-family: var(--font-accent, monospace);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: background 0.25s var(--ease-expo, ease);
}
.footer-donate-btn:hover { background: var(--orange-hover, #E55A00); color: var(--cream, #FFF8F0); }
.footer-donate-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(255, 107, 0, 0.4); }
