/* ═══════════════════════════════════════════
   ACBI — Amhara Capacity Building Institute
   Design: Institutional Authority + Ethiopian Heritage
   Colors: Blue dominant, Gold accents, Green/Red highlights
   ═══════════════════════════════════════════ */

:root {
    --green: #1B7A2F;
    --green-dark: #145E23;
    --green-light: #2DA044;
    --gold: #D4A017;
    --gold-light: #F0C948;
    --gold-bright: #FFD740;
    --gold-dim: #A67C00;
    --red: #C62828;
    --red-light: #E53935;
    --blue: #1E5FA6;
    --blue-dark: #14406E;
    --blue-deeper: #0B1F38;
    --blue-navy: #091728;
    --blue-light: #2E7DD6;
    --blue-muted: #1A3A5C;

    --white: #FCFBF9;
    --off-white: #F0F0F0;
    --cream: #EDE9DD;
    --sand: #E4DFD3;
    --gray-100: #D8D3C7;
    --gray-200: #C4BFB3;
    --gray-300: #A9A396;
    --gray-500: #6E6960;
    --gray-600: #55514A;
    --gray-700: #3D3A34;
    --gray-800: #2A2722;
    --gray-900: #1A1814;
    --black: #0D0C0A;

    --text-primary: var(--gray-900);
    --text-body: var(--gray-700);
    --text-muted: var(--gray-500);

    --font-ethiopic: 'Noto Sans Ethiopic', 'Nyala', 'Abyssinica SIL', sans-serif;
    --font-ethiopic-display: 'Noto Serif Ethiopic', 'Playfair Display', 'Noto Sans Ethiopic', Georgia, serif;
    --font-display: 'Playfair Display', 'Noto Serif Ethiopic', Georgia, serif;
    --font-body: 'Source Sans 3', 'Noto Sans Ethiopic', sans-serif;

    --section-pad: clamp(5rem, 10vw, 9rem);
    --container-max: 1140px;
    --container-wide: 1280px;

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

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-ethiopic);
    color: var(--text-primary);
    background: var(--white);
    line-height: 1.75;
    overflow-x: hidden;
    font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container {
    width: min(90%, var(--container-max));
    margin: 0 auto;
}

/* ── Ethiopian tricolor border ── */
.ethio-border {
    height: 5px;
    background: repeating-linear-gradient(90deg,
        var(--green) 0px, var(--green) 20px,
        var(--gold) 20px, var(--gold) 40px,
        var(--red) 40px, var(--red) 60px);
    opacity: 0.85;
}

/* ═══════════ NAVIGATION ═══════════ */

.main-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(9, 23, 40, 0.88);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: all 0.5s var(--ease-smooth);
}

.main-nav.scrolled {
    background: rgba(9, 23, 40, 0.96);
    box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}

.nav-inner {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 96px;
    transition: height 0.4s var(--ease-smooth);
}
.main-nav.scrolled .nav-inner { height: 72px; }

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    transition: opacity 0.3s;
}
.nav-logo:hover { opacity: 0.85; }

.nav-logo img {
    width: 54px; height: 54px;
    border-radius: 50%;
    border: 2px solid rgba(212,160,23,0.5);
    box-shadow: 0 0 12px rgba(212,160,23,0.15);
    transition: width 0.4s var(--ease-smooth), height 0.4s var(--ease-smooth);
}
.main-nav.scrolled .nav-logo img { width: 42px; height: 42px; }

.nav-title {
    font-family: var(--font-ethiopic);
    font-weight: 700;
    font-size: 1.3rem;
    color: rgba(255,255,255,0.95);
    transition: font-size 0.4s var(--ease-smooth);
}
.main-nav.scrolled .nav-title { font-size: 1.15rem; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
}

.nav-link {
    position: relative;
    padding: 10px 22px;
    font-size: 1.2rem;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    transition: color 0.3s, font-size 0.4s var(--ease-smooth), padding 0.4s var(--ease-smooth);
    white-space: nowrap;
}
.main-nav.scrolled .nav-link { font-size: 1.1rem; padding: 8px 18px; }
.nav-link:hover { color: rgba(255,255,255,0.95); }
.nav-link.active { color: var(--gold-light); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px; left: 50%;
    width: 0; height: 2px;
    background: var(--gold);
    transition: all 0.35s var(--ease-out);
    transform: translateX(-50%);
    border-radius: 1px;
}
.nav-link.active::after { width: 20px; }
.nav-link:hover::after { width: 16px; }

/* ── Nav Dropdown ── */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    background: none;
    border: none;
    font-family: var(--font-ethiopic);
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-arrow {
    transition: transform 0.3s var(--ease-out);
    opacity: 0.6;
}

.nav-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 200px;
    background: rgba(9, 23, 40, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 8px 0;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
    z-index: 100;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: rgba(9, 23, 40, 0.97);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-left: 1px solid rgba(255,255,255,0.08);
}

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

.nav-dropdown-item {
    display: block;
    padding: 10px 20px;
    font-size: 1.05rem;
    font-family: var(--font-ethiopic);
    color: rgba(255,255,255,0.6);
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-dropdown-item:hover {
    color: var(--gold-light);
    background: rgba(255,255,255,0.04);
}

/* ── Nav CTA Button ── */
.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 8px 22px;
    border-radius: 6px;
    font-family: var(--font-ethiopic);
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    color: var(--white);
    transition: all 0.3s var(--ease-out);
    white-space: nowrap;
}

.nav-cta:hover {
    background: linear-gradient(135deg, var(--green-light) 0%, var(--green) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(27,122,47,0.3);
}

.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-toggle {
    background: transparent;
    border: 1.5px solid rgba(212,160,23,0.5);
    color: var(--gold-light);
    padding: 6px 18px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
}
.lang-toggle:hover {
    background: var(--gold);
    color: var(--blue-navy);
    border-color: var(--gold);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}
.mobile-menu-btn span {
    display: block;
    width: 22px; height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out);
    transform-origin: center;
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════ HERO ═══════════ */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--gray-900);
    overflow: hidden;
}

/* ── Hero slider (4 cross-fading background images) ── */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}

/* Slides use a 3-z-level "deck" pattern:
   - Active slide   (z=10): on top, fades out at end of its turn
   - On-deck slide  (z=2):  sits at full opacity directly under active, ready to be revealed
   - In-deck slides (z=1):  parked underneath, invisible
   This eliminates the fade-to-black midpoint of a symmetric crossfade.
   Two animations run in parallel: opacity (smooth) + z-index (step-end). */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 1;
    z-index: 1;
    transform: scale(1.04);
    animation:
        heroOpacity 32s infinite cubic-bezier(0.45, 0, 0.2, 1),
        heroZIndex 32s infinite step-end;
    will-change: opacity, transform;
}

.hero-slide-1 {
    background-image: url('../assets/images/hero-lalibela.jpg');
    animation-delay: 0s;
}
.hero-slide-2 {
    background-image: url('../assets/images/gondar-sunset.jpg');
    animation-delay: -24s;
}
.hero-slide-3 {
    background-image: url('../assets/images/timket.jpg');
    animation-delay: -16s;
}
.hero-slide-4 {
    background-image: url('../assets/images/lion-of-judah.jpg');
    animation-delay: -8s;
}

/* Opacity + Ken Burns scale — interpolated smoothly */
@keyframes heroOpacity {
    0%      { opacity: 1; transform: scale(1.04); }
    22%     { opacity: 1; transform: scale(1.0);  }
    25%     { opacity: 0; transform: scale(0.985); }
    25.01%  { opacity: 1; transform: scale(1.04); }   /* invisible reset (now under z=10) */
    100%    { opacity: 1; transform: scale(1.04); }
}

/* Z-index — sharp step transitions (no interpolation) */
@keyframes heroZIndex {
    0%   { z-index: 10; }   /* active */
    25%  { z-index: 1;  }   /* drops to in-deck after fade */
    75%  { z-index: 2;  }   /* moves to on-deck (waiting room) */
    100% { z-index: 2;  }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide { animation: none; opacity: 0; z-index: 1; transform: scale(1); }
    .hero-slide-1 { opacity: 1; z-index: 10; }
}

/* Hero overlay — single clean composition: even base + bottom darkening */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg,
            rgba(0,0,0,0) 40%,
            rgba(0,0,0,0.45) 75%,
            rgba(0,0,0,0.88) 100%),
        rgba(0,0,0,0.46);
}

/* Centered spotlight behind text — sharper legibility without muddying the image */
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse 65% 58% at 50% 48%,
        rgba(0,0,0,0.42) 0%,
        transparent 75%);
}

/* Bottom edge — clean tricolor */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--green) 0%, var(--gold) 50%, var(--red) 100%);
    pointer-events: none;
    z-index: 5;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 5%;
    max-width: 800px;
    animation: heroEnter 1.2s var(--ease-out) both;
}

@keyframes heroEnter {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-logo-wrap {
    margin: 0 auto 2.5rem;
    width: 170px; height: 170px;
    position: relative;
    animation: logoEnter 1.4s var(--ease-out) 0.15s both;
}

@keyframes logoEnter {
    from { opacity: 0; transform: scale(0.85) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.hero-logo-wrap::before {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: conic-gradient(from 0deg,
        rgba(27,122,47,0.3),
        rgba(212,160,23,0.4),
        rgba(198,40,40,0.3),
        rgba(30,95,166,0.3),
        rgba(27,122,47,0.3));
    filter: blur(8px);
    opacity: 0.6;
    animation: ringPulse 6s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(1.03); }
}

.hero-logo {
    width: 100%; height: 100%;
    object-fit: contain;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 3px rgba(212,160,23,0.25), 0 16px 48px rgba(0,0,0,0.35);
}

.hero-title {
    font-family: var(--font-ethiopic-display);
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 0.8rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.4);
    animation: heroEnter 1.2s var(--ease-out) 0.3s both;
}

.hero-slogan {
    font-family: var(--font-body);
    font-size: clamp(1.15rem, 2.3vw, 1.45rem);
    font-weight: 400;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.18em;
    margin-bottom: 3rem;
    text-shadow: 0 1px 10px rgba(0,0,0,0.55), 0 1px 2px rgba(0,0,0,0.4);
    animation: heroEnter 1.2s var(--ease-out) 0.45s both;
}

.hero-cta {
    display: flex;
    gap: 18px;
    justify-content: center;
    flex-wrap: wrap;
    animation: heroEnter 1.2s var(--ease-out) 0.6s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 17px 44px;
    border-radius: 6px;
    font-family: var(--font-ethiopic);
    font-size: 1.12rem;
    font-weight: 600;
    transition: all 0.35s var(--ease-out);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
    color: var(--blue-navy);
    box-shadow: 0 4px 16px rgba(212,160,23,0.25);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(212,160,23,0.35);
}

.btn-outline {
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.9);
    border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.08);
    transform: translateY(-3px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 48px; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-line {
    width: 1px; height: 44px;
    background: linear-gradient(to bottom, var(--gold-light), transparent);
    animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.2; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 0.8; transform: scaleY(1); }
}

/* ═══════════ SECTIONS ═══════════ */

.section { padding: var(--section-pad) 0; position: relative; }
.section-light { background: var(--off-white); }
.section-dark { background: var(--blue-navy); color: var(--white); }

.section-accent {
    background: linear-gradient(170deg, #F4D77E 0%, #F0C948 45%, #E8B30E 100%);
    color: var(--blue-navy);
}

.section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.02;
    background-image: radial-gradient(circle, rgba(255,255,255,0.5) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.section-accent::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image: radial-gradient(circle, rgba(9,23,40,0.6) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 5rem);
    position: relative;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold-dim);
    margin-bottom: 0.75rem;
    font-family: var(--font-body);
}

.section-label::before,
.section-label::after {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: currentColor;
    opacity: 0.5;
}

.section-light .section-label { color: var(--green); }
.section-accent .section-label { color: var(--green-dark); }
.section-accent .section-title { color: var(--blue-navy); }

.section-title {
    font-family: var(--font-ethiopic-display);
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.section-line {
    width: 56px; height: 3px;
    margin: 0 auto;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--green), var(--gold), var(--red));
}

/* ═══════════ WHO WE ARE ═══════════ */

.content-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
}

.col-text p {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-body);
}

.col-text:first-child p::first-letter {
    font-size: 2.4em;
    float: left;
    line-height: 1;
    margin-right: 8px;
    margin-top: 4px;
    color: var(--blue);
    font-weight: 700;
}

/* ═══════════ IMAGE BAND (full-bleed parallax strip) ═══════════ */

.image-band {
    position: relative;
    width: 100%;
    height: clamp(180px, 24vh, 240px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}

.image-band-script {
    background-image: url('../assets/images/script.jpg');
}

@media (max-width: 900px) {
    .image-band { background-attachment: scroll; }
}

/* ═══════════ WHO WE ARE — logo watermark ═══════════ */

#who-we-are { position: relative; overflow: hidden; }

#who-we-are::before {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -100px;
    width: 640px;
    height: 640px;
    background-image: url('../assets/images/logo-outline.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
}

#who-we-are .container { position: relative; z-index: 1; }

@media (max-width: 900px) {
    #who-we-are::before {
        width: 420px;
        height: 420px;
        bottom: -60px;
        right: -80px;
        opacity: 0.05;
    }
}

/* ═══════════ DECLARATION ACCORDION ═══════════ */

.declaration-accordion {
    max-width: 860px;
    margin: 0 auto;
}

.declaration-summary {
    font-size: 1.15rem;
    line-height: 2;
    color: var(--text-body);
}

.declaration-summary::first-letter {
    font-size: 2.4em;
    float: left;
    line-height: 1;
    margin-right: 8px;
    margin-top: 4px;
    color: var(--blue);
    font-weight: 700;
}

.declaration-toggle-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

.declaration-full-inner .declaration-toggle-wrap {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.declaration-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    background: none;
    border: 2px solid var(--green);
    border-radius: 4px;
    color: var(--green);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.declaration-toggle:hover {
    background: var(--green);
    color: #fff;
}

.declaration-toggle .toggle-icon {
    transition: transform 0.35s ease;
    flex-shrink: 0;
}

.declaration-toggle.open .toggle-icon {
    transform: rotate(180deg);
}

.declaration-full {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s ease;
}

.declaration-full.open {
    grid-template-rows: 1fr;
}

.declaration-full-inner {
    overflow: hidden;
    padding-top: 0;
    transition: padding-top 0.45s ease;
}

.declaration-full.open .declaration-full-inner {
    padding-top: 2rem;
}

.declaration-full-inner p {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--text-body);
    margin-bottom: 1.5rem;
}

.declaration-goals {
    padding-left: 1.75rem;
    margin-bottom: 1.75rem;
}

.declaration-goals li {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-body);
    margin-bottom: 0.6rem;
}

/* ═══════════ VISION ═══════════ */

#vision {
    background: var(--blue-navy);
    background-image:
        linear-gradient(180deg, rgba(9,23,40,0.78) 0%, rgba(9,23,40,0.85) 100%),
        url('../assets/images/study-group.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

#vision::before {
    background-image: none !important;
}

@media (max-width: 900px) {
    #vision { background-attachment: scroll; }
}

.vision-statement {
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.vision-icon {
    width: 72px; height: 72px;
    margin: 0 auto 2rem;
    color: var(--gold);
    opacity: 0.7;
}

.vision-text {
    font-size: clamp(1.2rem, 2.2vw, 1.4rem);
    line-height: 2.1;
    color: rgba(255,255,255,0.82);
}

.vision-statement::before {
    content: '\201C';
    position: absolute;
    top: -1rem; left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 6rem;
    color: var(--gold);
    opacity: 0.1;
    line-height: 1;
    pointer-events: none;
}

/* ═══════════ MISSIONS (Infinity-inspired) ═══════════ */

.section-missions {
    padding: var(--section-pad) 0;
    position: relative;
    color: var(--white);
    background: linear-gradient(180deg, var(--blue-navy) 0%, var(--blue-deeper) 50%, var(--blue-navy) 100%);
}

.section-missions::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(232,179,14,0.06) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.section-missions .container { position: relative; z-index: 1; }

.section-missions .section-label { color: var(--gold); }
.section-missions .section-title { color: var(--white); }

.missions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: var(--container-wide);
    margin: 0 auto;
}

.mission-card {
    --accent: var(--gold);
    position: relative;
    padding: 3.5rem 2.25rem 3rem;
    text-align: center;
    color: var(--white);
    overflow: hidden;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 16px 50px rgba(0,0,0,0.35);
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out), background 0.4s var(--ease-out);
}

.mission-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.22);
    box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}

/* Top accent stripe per card */
.mission-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0.85;
}

/* Soft accent glow behind icon */
.mission-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 220px;
    height: 220px;
    transform: translate(-50%, -40%);
    background: radial-gradient(circle, var(--accent) 0%, transparent 65%);
    opacity: 0.10;
    pointer-events: none;
    transition: opacity 0.4s var(--ease-out);
}

.mission-card:hover::after {
    opacity: 0.18;
}

/* Per-card accent assignments */
.mission-green { --accent: var(--green); }
.mission-gold  { --accent: var(--gold); }
.mission-red   { --accent: var(--red); }

.mission-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--accent);
    position: relative;
    z-index: 2;
    transition: transform 0.5s var(--ease-out), color 0.4s var(--ease-out);
}

.mission-card:hover .mission-icon {
    transform: scale(1.08) rotate(-3deg);
    color: var(--white);
}

/* Icon background circle */
.mission-icon::before {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--accent);
    z-index: -1;
    opacity: 0.5;
    transition: opacity 0.4s var(--ease-out), background 0.4s var(--ease-out);
}

.mission-card:hover .mission-icon::before {
    opacity: 1;
    background: rgba(255,255,255,0.10);
}

.mission-icon svg {
    width: 100%;
    height: 100%;
}

.mission-title {
    font-family: var(--font-ethiopic-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--white);
    position: relative;
    z-index: 2;
    letter-spacing: 0.01em;
}

.mission-text {
    font-size: 1.05rem;
    line-height: 1.85;
    color: rgba(255,255,255,0.92);
    position: relative;
    z-index: 2;
    font-family: var(--font-ethiopic);
}

/* Decorative accent line under title */
.mission-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin: 0.75rem auto 0;
    opacity: 0.8;
    transition: width 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
}

.mission-card:hover .mission-title::after {
    width: 70px;
    opacity: 1;
}

/* ═══════════ OUR WORK ═══════════ */

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 4rem;
    counter-reset: work-counter;
}

.work-item {
    counter-increment: work-counter;
    background: var(--white);
    border: 1px solid rgba(9,23,40,0.08);
    border-radius: 8px;
    padding: 2.5rem 1.75rem 2rem 2rem;
    text-align: left;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(101, 70, 0, 0.08);
}

/* Tricolor stripe — faded by default, full color on hover (matches topic-card) */
.work-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--green), var(--gold), var(--red));
    opacity: 0.3;
    transition: opacity 0.4s var(--ease-out);
}

.work-item:hover {
    border-color: rgba(212,160,23,0.4);
    transform: translateY(-5px);
    box-shadow: 0 14px 34px rgba(101, 70, 0, 0.18);
}
.work-item:hover::before { opacity: 1; }

.work-num {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    margin: 0 0 1.2rem 0;
    line-height: 1;
    transition: transform 0.4s var(--ease-out);
    position: relative;
    z-index: 1;
}

/* Ethiopian numeral — primary mark */
.work-num::before {
    content: counter(work-counter, ethiopic-numeric);
    font-family: var(--font-ethiopic-display);
    font-weight: 700;
    font-size: 3rem;
    color: var(--green-dark);
    line-height: 1;
    letter-spacing: 0.02em;
    transition: color 0.4s var(--ease-out);
}

/* Latin chapter number — secondary mark */
.work-num::after {
    content: counter(work-counter, decimal-leading-zero);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--gold);
    line-height: 1;
    letter-spacing: 0.04em;
    opacity: 0.7;
    transition: opacity 0.4s var(--ease-out);
}

.work-item:hover .work-num {
    transform: scale(1.04);
}
.work-item:hover .work-num::before {
    color: var(--green);
}
.work-item:hover .work-num::after {
    opacity: 1;
}

.work-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--blue-navy);
    text-align: left;
    position: relative;
    z-index: 1;
    padding-right: 2rem;
    letter-spacing: -0.005em;
}

.work-quote {
    max-width: 720px;
    margin: 0 auto;
}

.work-quote blockquote {
    position: relative;
    padding: 2.5rem 0 0;
    border-top: 1px solid rgba(9,23,40,0.18);
}

.work-quote blockquote::before {
    content: '\201C';
    font-family: var(--font-display);
    font-size: 5rem;
    color: var(--blue-navy);
    opacity: 0.18;
    position: absolute;
    top: 1rem; left: -0.25rem;
    line-height: 1;
}

.work-quote p {
    font-size: 1.12rem;
    line-height: 2;
    color: rgba(9,23,40,0.78);
    padding-left: 2rem;
    font-style: italic;
}

/* ═══════════ TOPIC CARDS ═══════════ */

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 1.5rem;
}

.topic-card {
    background: var(--white);
    border-radius: 14px;
    padding: 2rem 1.75rem 1.75rem;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.topic-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--green), var(--gold), var(--red));
    opacity: 0.25;
    transition: opacity 0.4s, width 0.4s var(--ease-out);
}

.topic-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0,0,0,0.08);
}
.topic-card:hover::before {
    opacity: 1;
    width: 4px;
}

.topic-num {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--gold-dim);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    padding: 4px 10px;
    background: rgba(212, 160, 23, 0.1);
    border-radius: 4px;
    line-height: 1;
}

.topic-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.55;
    margin-bottom: 0.6rem;
    color: var(--gray-900);
}

.topic-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--gray-500);
    margin-bottom: 1.25rem;
}

.topic-downloads {
    border-top: 1px solid var(--sand);
    padding-top: 1rem;
}

.download-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-300);
    margin-bottom: 0.4rem;
    font-family: var(--font-body);
}

.download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    color: var(--blue);
    font-weight: 500;
    padding: 5px 0;
    transition: all 0.3s;
}
.download-link:hover { color: var(--green); transform: translateX(3px); }
.download-link svg { flex-shrink: 0; }

/* ═══════════ JOIN US ═══════════ */

.section-join {
    background:
        linear-gradient(170deg, rgba(9,23,40,0.88), rgba(26,122,46,0.78)),
        url('../assets/images/lion-of-judah.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section-join::before {
    background-image: none !important;
}

@media (max-width: 900px) {
    .section-join { background-attachment: scroll; }
}

.join-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.join-card {
    text-align: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    transition: all 0.4s var(--ease-out);
}

.join-card:hover {
    background: rgba(255,255,255,0.07);
    transform: translateY(-5px);
    border-color: rgba(212,160,23,0.15);
}

.join-icon {
    color: var(--gold);
    margin-bottom: 1.2rem;
    opacity: 0.8;
}
.join-icon svg { margin: 0 auto; }

.join-card h3 {
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.join-card p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

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

.site-footer {
    background: var(--blue-navy);
    padding: 3.5rem 0 0;
}

.footer-content {
    text-align: center;
    padding-bottom: 2rem;
}

.footer-logo {
    width: 60px; height: 60px;
    border-radius: 50%;
    margin: 0 auto 1.2rem;
    border: 2px solid rgba(212,160,23,0.25);
    opacity: 0.9;
}

.footer-name {
    display: block;
    color: rgba(255,255,255,0.95);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    font-family: var(--font-ethiopic);
}

.footer-slogan {
    color: rgba(255,255,255,0.45);
    font-size: 1rem;
    font-family: var(--font-body);
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    transition: all 0.3s var(--ease-out);
}

.social-link:hover {
    background: rgba(255,255,255,0.12);
    color: var(--gold-light);
    transform: translateY(-2px);
}

.footer-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
    margin: 0;
}

.footer-copy {
    text-align: center;
    padding: 1.5rem 0;
}

.footer-copy p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.3);
    font-family: var(--font-body);
}

/* ═══════════ REVEAL ANIMATIONS ═══════════ */

.reveal-up {
    opacity: 0;
    transform: translateY(64px) scale(0.97);
    transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out);
}
.reveal-up.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stronger reveal in the first three sections — more rise, more scale-pop, slower easing */
#home .reveal-up,
#who-we-are .reveal-up,
#vision .reveal-up {
    transform: translateY(110px) scale(0.9);
    transition: opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1), transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
    filter: blur(6px);
}
#home .reveal-up.visible,
#who-we-are .reveal-up.visible,
#vision .reveal-up.visible {
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* ═══════════ RESPONSIVE ═══════════ */

@media (max-width: 1024px) {
    .missions-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
    .nav-cta { display: none; }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px; left: 0; right: 0;
        background: rgba(9,23,40,0.98);
        backdrop-filter: blur(16px);
        padding: 1rem 0 2rem;
        border-bottom: 1px solid rgba(255,255,255,0.04);
        box-shadow: 0 16px 40px rgba(0,0,0,0.3);
    }

    .nav-links.open .nav-link {
        padding: 14px 5%;
        width: 100%;
        font-size: 1.2rem;
    }

    /* Mobile dropdown — inline expand */
    .nav-links.open .nav-dropdown {
        width: 100%;
    }

    .nav-links.open .nav-dropdown-toggle {
        padding: 14px 5%;
        width: 100%;
        font-size: 1.2rem;
        justify-content: flex-start;
    }

    .nav-links.open .nav-dropdown-menu {
        position: static;
        transform: none;
        background: rgba(255,255,255,0.03);
        border: none;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s var(--ease-out), opacity 0.3s, visibility 0.3s;
    }

    .nav-links.open .nav-dropdown-menu::before {
        display: none;
    }

    .nav-links.open .nav-dropdown.open .nav-dropdown-menu {
        max-height: 300px;
        opacity: 1;
        visibility: visible;
    }

    .nav-links.open .nav-dropdown-item {
        padding: 12px 5% 12px 10%;
        font-size: 1.1rem;
    }

    /* Show CTA as full-width link in mobile menu */
    .nav-links.open::after {
        content: none;
    }

    .content-two-col { grid-template-columns: 1fr; gap: 2rem; }

    .col-text:first-child p::first-letter {
        font-size: 1em; float: none; margin: 0;
    }

    .join-grid { grid-template-columns: repeat(2, 1fr); }
    .topics-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .missions-grid { grid-template-columns: 1fr; }
    .hero-logo-wrap { width: 130px; height: 130px; }
    .hero-logo-wrap::before { inset: -8px; }
}

@media (max-width: 600px) {
    .join-grid { grid-template-columns: 1fr; }
    .nav-title { font-size: 0.8rem; max-width: 160px; }
    .work-grid { grid-template-columns: 1fr; }
}

/* ═══════════ VISION DOC BUTTON ═══════════ */

.vision-doc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
    padding: 0.65rem 1.4rem;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    font-family: inherit;
    font-size: 0.95rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.vision-doc-btn:hover { background: var(--gold); color: var(--blue-navy); }

/* ═══════════ IMAGE MODAL ═══════════ */

.img-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    align-items: center;
    justify-content: center;
}
.img-modal.open { display: flex; }
.img-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.82);
    cursor: pointer;
}
.img-modal-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.img-modal-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.6);
    display: block;
}
.img-modal-close {
    position: absolute;
    top: -2.2rem;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.15s;
}
.img-modal-close:hover { opacity: 1; }

/* ═══════════ SELECTION & SCROLLBAR ═══════════ */

::selection { background: var(--gold); color: var(--blue-navy); }
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: var(--gray-200); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-300); }
