/* ============================================================
   PROJECT EQUIFLOW — Shared Styles (Malala-inspired)
   ============================================================ */

/* ── FONTS ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
    --coral:      #FFBDAB;
    --coral-dark: #F5A488;
    --coral-text: #C07060;
    --teal:       #96D4D4;
    --teal-light: #B0E0E0;
    --teal-pale:  #EEF9F9;
    --teal-dark:  #4E9898;
    --gold:       #FFE4A8;
    --gold-text:  #9A7E38;
    --deep-teal:  #3A6E6E;
    --cream:      #FFF8F2;
    --white:      #FFFFFF;
    --ink:        #2E4E4E;
    --ink-mid:    #4A6464;
    --ink-light:  #7EAAAA;
    --border:     #E8E8E8;
    --ff-serif:   'Outfit', system-ui, sans-serif;
    --ff-sans:    'Inter', system-ui, sans-serif;
    --ease:       cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--ff-sans);
    background: #fff;
    color: var(--ink-mid);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Malala uses bold serif for big headings, sans for smaller ones */
h1, h2, h3, h4 {
    font-family: 'Anton', sans-serif;
    font-weight: 400;
    line-height: 1.1;
    color: var(--ink);
    text-transform: uppercase;
    letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: 1.4rem; }

p  { font-size: 1.05rem; line-height: 1.8; font-weight: 400; color: var(--ink-mid); }
a  { text-decoration: none; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
    display: inline-block;
    font-family: var(--ff-sans);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 0;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    text-align: center;
}
.btn-primary   { background: var(--coral-text); color: #fff; border-color: var(--coral-text); }
.btn-primary:hover { background: #a05848; border-color: #a05848; }
.btn-teal      { background: var(--teal-dark); color: #fff; border-color: var(--teal-dark); }
.btn-teal:hover { background: var(--deep-teal); border-color: var(--deep-teal); }
.btn-outline-teal { background: transparent; color: var(--teal-dark); border-color: var(--teal-dark); }
.btn-outline-teal:hover { background: var(--teal-dark); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--ink); }

/* ── EYEBROW ─────────────────────────────────────────────── */
.eyebrow {
    display: inline-block;
    font-family: var(--ff-sans);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal-dark);
    margin-bottom: 14px;
}

/* ============================================================
   NAV — Malala style: clean, no underlines, mega dropdown
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    background: #fff;
    border-bottom: 1px solid #e8e8e8;
    transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.07); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.logo img { height: 52px; width: auto; display: block; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    height: 100%;
}
.nav-links > li { position: static; height: 100%; display: flex; align-items: center; }

.nav-links > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    padding: 8px 20px;
    white-space: nowrap;
    height: 100%;
    transition: color 0.15s;
}
.nav-links > li > a:not(.btn-donate):hover { color: var(--coral-text); }
.nav-links > li > a.active-page { color: var(--coral-text); border-bottom: 2px solid var(--coral-text); }
.nav-chevron { font-size: 0.65rem; opacity: 0.5; }

/* ── MEGA DROPDOWN ─────────────────────────────────────── */
.mega-drop {
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: #fff;
    border-top: 2px solid var(--coral-text);
    border-bottom: 1px solid #e8e8e8;
    box-shadow: 0 16px 48px rgba(0,0,0,0.09);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    z-index: 300;
}
.has-mega:hover .mega-drop,
.has-mega.open .mega-drop { opacity: 1; visibility: visible; }

.mega-drop-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 0;
    padding: 36px 0;
}
.mega-col { padding: 0 32px; border-right: 1px solid #f0f0f0; }
.mega-col:first-child { padding-left: 0; }
.mega-col:last-child { border-right: none; }

.mega-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--coral-text);
    margin-bottom: 10px;
}
.mega-desc {
    font-size: 0.9rem;
    color: var(--ink-mid);
    line-height: 1.6;
    margin-bottom: 16px;
    font-weight: 400;
}
.mega-see-all {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    transition: color 0.15s;
}
.mega-see-all:hover { color: var(--coral-text); }

.mega-col-heading {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 14px;
}
.mega-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.mega-col ul li a {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--ink);
    transition: color 0.15s;
}
.mega-col ul li a:hover { color: var(--coral-text); }

/* donate */
.btn-donate {
    background: var(--coral-text) !important;
    color: #fff !important;
    padding: 20px 36px !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    border-radius: 0 !important;
    border: none !important;
    margin-left: 12px;
    transition: background 0.2s !important;
    white-space: nowrap;
}
.btn-donate:hover { background: #a05848 !important; }

/* hamburger */
.nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    flex-direction: column;
    gap: 5px;
}
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

/* ── MOBILE NAV ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .nav-hamburger { display: flex; }
    .nav-inner { height: 56px; }
    .nav-links {
        display: none;
        position: fixed;
        top: 56px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        height: auto;
        background: #fff;
        border-top: 1px solid #e8e8e8;
        padding: 16px 24px 24px;
        gap: 4px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-links > li { height: auto; }
    .nav-links > li > a { font-size: 0.9rem; padding: 11px 0; border-bottom: 1px solid #f0f0f0; height: auto; }
    .mega-drop { position: static; opacity: 1; visibility: visible; border: none; box-shadow: none; display: none; }
    .has-mega.open .mega-drop { display: block; }
    .mega-drop-inner { grid-template-columns: 1fr; padding: 8px 0 4px 16px; gap: 12px; }
    .mega-col { border-right: none; padding: 0; }
    .mega-col-intro { display: none; }
    .btn-donate { height: auto !important; padding: 12px 20px !important; margin: 8px 0 0; justify-content: center; }
    .logo img { height: 36px; }
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.page-hero {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 340px;
    overflow: hidden;
    margin-top: 70px;
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 35%;
}
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
}
.page-hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 52px;
}
.page-hero-content h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.2rem); }
.page-hero-content .eyebrow { color: rgba(255,255,255,0.8); margin-bottom: 12px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 60px 0; background: #fff; }
.section-alt { background: #fafafa; }
.section-header { margin-bottom: 56px; }
.section-header-center { text-align: center; margin-bottom: 56px; }
.section-title { margin-top: 8px; margin-bottom: 16px; }
.section-intro { font-size: 1.1rem; color: var(--ink-mid); font-weight: 400; max-width: 640px; }
.section-header-center .section-intro { margin: 0 auto; }

/* stats band */
.stats-band {
    background: #fff;
    border-top: 2px solid var(--coral-text);
    border-bottom: 2px solid var(--coral-text);
    padding: 56px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: #e8e8e8; }
.stat-item { background: #fff; padding: 32px 24px; text-align: center; }
.stat-num { display: block; font-family: var(--ff-serif); font-size: clamp(2rem,3.5vw,2.8rem); font-weight: 700; color: var(--coral-text); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 0.88rem; font-weight: 500; color: var(--ink-mid); line-height: 1.4; }

/* ============================================================
   FOOTER — Malala 4-column layout
   ============================================================ */
.footer {
    background: var(--ink);
    padding: 72px 0 0;
    color: rgba(255,255,255,0.75);
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo-img { height: 44px; width: auto; margin-bottom: 20px; display: block; }
.footer-tagline { font-size: 0.95rem; line-height: 1.7; color: rgba(255,255,255,0.65); margin-bottom: 20px; font-weight: 400; }
.footer-contact-block { margin-bottom: 20px; }
.footer-contact-block p { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 4px; }
.footer-contact-block a { font-size: 0.9rem; color: rgba(255,255,255,0.8); transition: color 0.15s; font-weight: 400; }
.footer-contact-block a:hover { color: #fff; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.2); padding: 6px 14px; transition: color 0.15s, border-color 0.15s; }
.footer-socials a:hover { color: #fff; border-color: rgba(255,255,255,0.6); }
.footer-col h4 { font-family: var(--ff-sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.92rem; color: rgba(255,255,255,0.7); font-weight: 400; transition: color 0.15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    font-weight: 400;
}
.footer-bottom a { color: rgba(255,255,255,0.5); transition: color 0.15s; }
.footer-bottom a:hover { color: #fff; }
.footer-ein { font-size: 0.78rem; color: rgba(255,255,255,0.4); border: 1px solid rgba(255,255,255,0.12); padding: 4px 12px; }

@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-inner { grid-template-columns: 1fr; } .footer-bottom { flex-direction: column; gap: 8px; text-align: center; } }
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }
