/* =================================================================
   CIPA KENYA — Stylesheet
   Community Initiative in Poverty Alleviation
   ================================================================= */

/* ---------- ROOT VARIABLES ---------- */
:root {
    --navy: #0c2d5e;
    --navy-deep: #081f42;
    --navy-light: #1a4485;
    --teal: #29b9c8;
    --teal-light: #5dd0dc;
    --teal-deep: #1a8c98;
    --gold: #f0a93b;
    --gold-light: #f8c66a;
    --sand: #fff8ec;
    --sky: #e8f4fa;

    --text: #1a2238;
    --text-muted: #5a6478;
    --text-light: #8590a3;
    --bg: #ffffff;
    --bg-alt: #f7f9fc;
    --border: #e5e9f0;

    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

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

    --container-max: 1200px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --shadow-sm: 0 2px 8px rgba(12, 45, 94, 0.06);
    --shadow-md: 0 8px 24px rgba(12, 45, 94, 0.10);
    --shadow-lg: 0 20px 60px rgba(12, 45, 94, 0.15);

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

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s var(--ease); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-md); }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--navy-deep);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; }
em { font-style: italic; font-weight: 400; color: var(--teal-deep); }
p { line-height: 1.7; }

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.95rem 1.85rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.97rem;
    border-radius: var(--radius-pill);
    transition: all 0.3s var(--ease);
    cursor: pointer;
    white-space: nowrap;
    border: none;
}
.btn-primary { background: var(--navy); color: white; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-secondary { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-secondary:hover { background: var(--navy); color: white; }
.btn-light { background: white; color: var(--navy); }
.btn-light:hover { background: var(--gold); color: var(--navy-deep); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------- NAVIGATION ---------- */
.nav-header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s var(--ease);
}
.nav-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; padding-top: 0.9rem; padding-bottom: 0.9rem; }
.nav-brand { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo { width: 44px; height: 44px; object-fit: contain; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1; }
.nav-brand-name { font-family: var(--font-display); font-weight: 900; font-size: 1.4rem; color: var(--navy-deep); letter-spacing: 0.02em; }
.nav-brand-sub { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.3em; color: var(--teal-deep); margin-top: 2px; }
.nav-menu { display: flex; align-items: center; gap: 1.85rem; }
.nav-link { font-size: 0.95rem; font-weight: 500; color: var(--text); position: relative; }
.nav-link::after {
    content: ''; position: absolute; left: 0; bottom: -6px;
    width: 0; height: 2px; background: var(--teal);
    transition: width 0.3s var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.nav-cta {
    background: var(--navy); color: white;
    padding: 0.6rem 1.35rem; border-radius: var(--radius-pill);
    transition: all 0.3s var(--ease);
}
.nav-link.nav-cta:hover { background: var(--teal-deep); transform: translateY(-1px); }
.nav-link.nav-cta::after { display: none; }
.nav-link.nav-cta.active { background: var(--teal-deep); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 1001; }
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--navy-deep); border-radius: 2px;
    transition: all 0.3s var(--ease);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO (HOME) ---------- */
.hero {
    position: relative;
    padding: 9rem 0 5rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--sky) 0%, #ffffff 60%, var(--sand) 100%);
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.hero-shape { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.45; }
.shape-1 { width: 500px; height: 500px; background: var(--teal-light); top: -150px; right: -100px; animation: float 20s ease-in-out infinite; }
.shape-2 { width: 400px; height: 400px; background: var(--gold-light); bottom: -100px; left: -100px; animation: float 25s ease-in-out infinite reverse; }
.shape-3 { width: 300px; height: 300px; background: var(--navy-light); top: 40%; left: 50%; opacity: 0.12; animation: float 18s ease-in-out infinite; }
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}
.hero-container {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
    align-items: center;
}
.hero-content { animation: fadeUp 0.9s var(--ease-out) both; }
.hero-eyebrow {
    display: inline-block;
    font-size: 0.82rem; font-weight: 600;
    color: var(--teal-deep);
    letter-spacing: 0.18em; text-transform: uppercase;
    margin-bottom: 1.25rem;
    padding: 0.5rem 1rem;
    background: rgba(41, 185, 200, 0.1);
    border-radius: var(--radius-pill);
}
.hero-eyebrow--light {
    color: var(--gold-light);
    background: rgba(240, 169, 59, 0.18);
}
.hero-title { margin-bottom: 1.5rem; color: var(--navy-deep); }
.hero-subtitle {
    font-size: clamp(1.05rem, 1.45vw, 1.18rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 580px;
    line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-stats { display: flex; gap: 2.25rem; padding-top: 1.85rem; border-top: 1px solid var(--border); flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-number { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.4rem; }
.hero-visual { position: relative; display: flex; justify-content: center; animation: fadeUp 1.1s var(--ease-out) 0.2s both; }
.hero-image-wrap {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-image { width: 100%; height: auto; display: block; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- PAGE HERO (sub-pages) ---------- */
.page-hero {
    padding: 9rem 0 4.5rem;
    background: linear-gradient(135deg, var(--sky) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: var(--teal-light);
    filter: blur(80px); opacity: 0.3;
    top: -100px; right: -100px;
}
.page-hero .container { position: relative; z-index: 1; max-width: 900px; }
.page-title { margin-bottom: 1.25rem; }
.page-subtitle {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 760px;
}
.page-hero--dark {
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, var(--teal-deep) 100%);
    color: white;
}
.page-hero--dark::before {
    background: var(--gold);
    opacity: 0.15;
}
.page-title--light { color: white; }
.page-subtitle--light { color: rgba(255, 255, 255, 0.85); }

.programs-nav {
    display: flex; gap: 0.85rem; flex-wrap: wrap;
    margin-top: 2.5rem;
}
.programs-nav-link {
    background: white;
    color: var(--navy);
    padding: 0.7rem 1.25rem;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease);
}
.programs-nav-link:hover {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
    transform: translateY(-2px);
}

/* ---------- SECTION HEADS / SHARED ---------- */
.section-head { text-align: center; max-width: 780px; margin: 0 auto var(--space-xl); }
.section-label {
    display: inline-block;
    font-size: 0.82rem; font-weight: 600;
    color: var(--teal-deep);
    letter-spacing: 0.18em; text-transform: uppercase;
    margin-bottom: 1rem;
    padding: 0.45rem 1.05rem;
    background: rgba(41, 185, 200, 0.1);
    border-radius: var(--radius-pill);
}
.section-label--light {
    color: var(--gold-light);
    background: rgba(240, 169, 59, 0.18);
}
.section-title { margin-bottom: 1rem; }
.section-title--light { color: white; }
.section-intro { font-size: 1.08rem; color: var(--text-muted); line-height: 1.7; }
.text-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--teal-deep);
    font-weight: 600;
    transition: transform 0.2s var(--ease);
}
.text-link:hover { transform: translateX(4px); color: var(--navy); }

/* ---------- INTRO BLOCK (HOME) ---------- */
.intro-block { padding: var(--space-2xl) 0; }
.intro-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.intro-text .section-label { margin-bottom: 1rem; }
.intro-text .section-title { margin-bottom: 1.5rem; text-align: left; }
.intro-lead {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.4;
    color: var(--navy-deep);
    font-weight: 600;
    margin-bottom: 1.25rem;
}
.intro-text p { color: var(--text-muted); margin-bottom: 1rem; }
.intro-text strong { color: var(--navy); font-weight: 600; }
.intro-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}
.value-card {
    background: var(--bg-alt);
    padding: 1.6rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease);
}
.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal-light);
    background: white;
}
.value-card h4 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--navy); }
.value-card p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.55; }

/* ---------- PILLARS (HOME) ---------- */
.pillars { padding: var(--space-2xl) 0; background: var(--bg-alt); }
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.pillar-card {
    background: white;
    padding: 2.25rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    position: relative;
    transition: all 0.4s var(--ease);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.pillar-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--teal); }
.pillar-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--navy));
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s var(--ease);
}
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-card--featured {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: white;
    border: none;
}
.pillar-card--featured h3 { color: white; }
.pillar-card--featured p, .pillar-card--featured .pillar-list li { color: rgba(255, 255, 255, 0.85); }
.pillar-card--featured .pillar-icon { background: rgba(255, 255, 255, 0.15); color: var(--teal-light); }
.pillar-card--featured .pillar-num { color: var(--gold-light); }
.pillar-card--featured .pillar-link { color: var(--gold-light); }
.pillar-card--featured:hover { border-color: transparent; }
.pillar-num {
    font-family: var(--font-display);
    font-size: 0.85rem; font-weight: 600;
    color: var(--teal-deep);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}
.pillar-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(41, 185, 200, 0.15), rgba(12, 45, 94, 0.05));
    color: var(--navy);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
}
.pillar-icon svg { width: 28px; height: 28px; }
.pillar-card h3 { margin-bottom: 0.85rem; }
.pillar-card > p { color: var(--text-muted); margin-bottom: 1.25rem; }
.pillar-list {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-bottom: 1.25rem;
}
.pillar-card--featured .pillar-list { border-top-color: rgba(255, 255, 255, 0.18); }
.pillar-list li {
    font-size: 0.92rem;
    color: var(--text-muted);
    padding: 0.4rem 0;
    padding-left: 1.5rem;
    position: relative;
}
.pillar-list li::before {
    content: ''; position: absolute; left: 0; top: 50%;
    width: 8px; height: 8px;
    border-radius: 2px;
    background: var(--teal);
    transform: translateY(-50%) rotate(45deg);
}
.pillar-card--featured .pillar-list li::before { background: var(--teal-light); }
.pillar-link {
    display: inline-block;
    margin-top: auto;
    font-weight: 600;
    color: var(--teal-deep);
    transition: transform 0.2s var(--ease);
}
.pillar-link:hover { transform: translateX(4px); }

/* ---------- WIFI SPOTLIGHT (HOME) ---------- */
.wifi-spotlight {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, var(--teal-deep) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.wifi-spotlight::before {
    content: ''; position: absolute;
    top: -50%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--gold) 0%, transparent 60%);
    opacity: 0.12;
    border-radius: 50%;
}
.wifi-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}
.wifi-content .section-label--light { margin-bottom: 1rem; }
.wifi-content .section-title--light { margin-bottom: 1.5rem; }
.wifi-lead { font-size: 1.08rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 2rem; line-height: 1.7; }
.wifi-features { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.wifi-feature { display: flex; gap: 1.25rem; align-items: flex-start; }
.wifi-feature-num {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 1.3rem; font-weight: 700;
    color: var(--gold);
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
}
.wifi-feature h4 { color: white; margin-bottom: 0.25rem; font-size: 1.05rem; }
.wifi-feature p { color: rgba(255, 255, 255, 0.75); font-size: 0.93rem; line-height: 1.55; }
.wifi-visual { display: flex; justify-content: center; }
.wifi-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.04) 100%);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 2rem;
    border-radius: var(--radius-lg);
    width: 100%; max-width: 360px;
    transform: rotate(-3deg);
    transition: transform 0.4s var(--ease);
}
.wifi-card:hover { transform: rotate(0deg) scale(1.03); }
.wifi-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.wifi-tag {
    background: var(--gold); color: var(--navy-deep);
    font-size: 0.75rem; font-weight: 700;
    letter-spacing: 0.15em;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-pill);
}
.wifi-icon { width: 36px; height: 36px; color: var(--teal-light); }
.wifi-card h4 { color: white; font-size: 1.35rem; margin-bottom: 0.5rem; }
.wifi-card > p { color: rgba(255, 255, 255, 0.75); font-size: 0.92rem; margin-bottom: 1.5rem; }
.wifi-bars { display: flex; gap: 4px; align-items: flex-end; height: 50px; }
.wifi-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--teal-light), var(--teal-deep));
    border-radius: 3px;
    animation: wifiBar 1.6s ease-in-out infinite;
}
.wifi-bar:nth-child(1) { height: 30%; animation-delay: 0s; }
.wifi-bar:nth-child(2) { height: 50%; animation-delay: 0.2s; }
.wifi-bar:nth-child(3) { height: 70%; animation-delay: 0.4s; }
.wifi-bar:nth-child(4) { height: 90%; animation-delay: 0.6s; }
.wifi-bar:nth-child(5) { height: 100%; animation-delay: 0.8s; }
@keyframes wifiBar {
    0%, 100% { opacity: 0.5; transform: scaleY(0.85); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- IMPACT BLOCK (HOME / WIFI) ---------- */
.impact-block { padding: var(--space-2xl) 0; }
.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.impact-item {
    background: var(--bg-alt);
    padding: 1.85rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease);
}
.impact-item:hover {
    background: white;
    border-color: var(--teal-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.impact-icon { font-size: 1.85rem; margin-bottom: 0.85rem; }
.impact-item h4 { margin-bottom: 0.5rem; color: var(--navy); }
.impact-item p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }

/* ---------- CONTENT SECTIONS (sub-pages) ---------- */
.content-section { padding: var(--space-2xl) 0; }
.content-section--alt { background: var(--bg-alt); }
.content-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}
.content-grid--reverse .content-text { order: 2; }
.content-grid--reverse .content-visual { order: 1; }
.content-text .section-label { margin-bottom: 1rem; }
.content-text .section-title { text-align: left; margin-bottom: 1.5rem; }
.content-text p { color: var(--text-muted); margin-bottom: 1rem; }
.content-text strong { color: var(--navy); font-weight: 600; }
.content-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.content-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.stat-card {
    background: white;
    padding: 1.85rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s var(--ease);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card-num {
    display: block;
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.stat-card-label { font-size: 0.88rem; color: var(--text-muted); }

/* ---------- MISSION / VISION / VALUES ---------- */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}
.mvv-card {
    background: white;
    padding: 2.25rem 1.85rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease);
    text-align: center;
}
.mvv-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--teal);
}
.mvv-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
    color: white;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
}
.mvv-icon svg { width: 28px; height: 28px; }
.mvv-card h3 { margin-bottom: 0.85rem; }
.mvv-card p { color: var(--text-muted); line-height: 1.65; font-size: 0.97rem; }

.values-section { margin-top: 4rem; }
.values-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 2.5rem;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.value-item {
    background: white;
    padding: 1.75rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease);
}
.value-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal-light);
}
.value-num {
    font-family: var(--font-display);
    font-size: 0.85rem; font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.1em;
    margin-bottom: 0.85rem;
}
.value-item h4 { color: var(--navy); margin-bottom: 0.5rem; }
.value-item p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.55; }

/* ---------- NETWORK GRID ---------- */
.network-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.network-card {
    background: white;
    padding: 1.85rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease);
}
.network-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal-light);
}
.network-card h4 { color: var(--navy); margin-bottom: 0.65rem; }
.network-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.55; }

/* ---------- PROGRAM SECTIONS (programs.html) ---------- */
.program-section { padding: var(--space-2xl) 0; }
.program-section--alt { background: var(--bg-alt); }
.program-header { max-width: 800px; margin: 0 auto var(--space-xl); text-align: center; }
.program-tag {
    display: inline-block;
    font-size: 0.82rem; font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.18em; text-transform: uppercase;
    margin-bottom: 1rem;
    padding: 0.45rem 1.05rem;
    background: rgba(240, 169, 59, 0.12);
    border-radius: var(--radius-pill);
}
.program-title { margin-bottom: 1.25rem; }
.program-tagline {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1.8vw, 1.4rem);
    line-height: 1.5;
    color: var(--navy);
    font-weight: 600;
    font-style: italic;
}
.program-overview {
    max-width: 800px;
    margin: 0 auto var(--space-xl);
}
.program-overview p { color: var(--text-muted); margin-bottom: 1rem; }
.program-lead {
    font-size: 1.08rem;
    color: var(--text) !important;
    font-weight: 500;
}

.subprogram {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    max-width: 880px;
    margin: 0 auto;
    padding: 2.5rem 0;
    border-top: 1px solid var(--border);
}
.subprogram:first-of-type { border-top: none; }
.subprogram-marker {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--teal);
    line-height: 1;
}
.subprogram--highlight {
    background: linear-gradient(135deg, rgba(41, 185, 200, 0.06), rgba(12, 45, 94, 0.03));
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border-top: none;
    margin-top: 1rem;
}
.subprogram--highlight + .subprogram { border-top: none; }
.subprogram-body h3 { margin-bottom: 0.85rem; font-size: clamp(1.3rem, 2vw, 1.55rem); }
.subprogram-body h4 { margin-top: 1.25rem; margin-bottom: 0.6rem; color: var(--navy); }
.subprogram-lead {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--navy-deep);
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 1rem;
}
.subprogram-body p { color: var(--text-muted); margin-bottom: 1rem; }
.subprogram-list {
    margin-top: 0.5rem;
}
.subprogram-list li {
    padding: 0.4rem 0 0.4rem 1.65rem;
    position: relative;
    color: var(--text-muted);
    font-size: 0.97rem;
    line-height: 1.55;
}
.subprogram-list li::before {
    content: ''; position: absolute;
    left: 0; top: 0.85em;
    width: 8px; height: 8px;
    border-radius: 2px;
    background: var(--teal);
    transform: rotate(45deg);
}
.subprogram-note {
    margin-top: 1rem !important;
    padding: 0.85rem 1.1rem;
    background: rgba(240, 169, 59, 0.08);
    border-left: 3px solid var(--gold);
    border-radius: var(--radius-sm);
    font-size: 0.93rem;
}
.subprogram-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--teal-deep);
    font-weight: 600;
    transition: transform 0.2s var(--ease);
}
.subprogram-link:hover { transform: translateX(4px); }

/* ---------- CONNECTION GRID ---------- */
.connection-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.connection-item {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s var(--ease);
}
.connection-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal);
}
.connection-arrow {
    font-size: 1.5rem;
    color: var(--teal);
    margin-bottom: 0.85rem;
    font-weight: 700;
}
.connection-item h4 {
    color: var(--navy);
    margin-bottom: 0.65rem;
    font-size: 1.1rem;
}
.connection-item p {
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.55;
}

/* ---------- WIFI PAGE — PROBLEM / HOW / AUDIENCE ---------- */
.problem-stats {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.problem-stat {
    background: white;
    padding: 1.5rem 1.65rem;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--teal);
    box-shadow: var(--shadow-sm);
}
.problem-stat h3 { color: var(--navy); margin-bottom: 0.4rem; font-size: 1.25rem; }
.problem-stat p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

.how-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.how-card {
    background: white;
    padding: 2.25rem 1.85rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease);
}
.how-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal);
}
.how-num {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 1rem;
}
.how-card h3 { margin-bottom: 0.85rem; }
.how-card p { color: var(--text-muted); line-height: 1.65; font-size: 0.97rem; }

.audience-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.audience-card {
    background: white;
    padding: 1.85rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease);
}
.audience-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal-light);
}
.audience-card h3 { margin-bottom: 0.65rem; font-size: 1.2rem; color: var(--navy); }
.audience-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* ---------- INVOLVE GRID (get-involved.html) ---------- */
.involve-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.involve-card {
    background: var(--bg-alt);
    padding: 2.25rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all 0.4s var(--ease);
    display: flex;
    flex-direction: column;
}
.involve-card:hover {
    background: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal);
}
.involve-card--featured {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
    color: white;
    border: none;
}
.involve-card--featured h3, .involve-card--featured h4 { color: white; }
.involve-card--featured p, .involve-card--featured ul li { color: rgba(255, 255, 255, 0.85); }
.involve-card--featured .involve-icon { background: rgba(255, 255, 255, 0.15); color: var(--gold-light); }
.involve-card--featured .involve-link { color: var(--gold-light); }
.involve-card--featured ul li::before { background: var(--gold); }
.involve-card--featured:hover { transform: translateY(-4px); }
.involve-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
    color: white;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
}
.involve-icon svg { width: 28px; height: 28px; }
.involve-card h3 { margin-bottom: 0.85rem; }
.involve-card h4 { font-size: 0.95rem; margin-top: 1rem; margin-bottom: 0.6rem; color: var(--navy); }
.involve-lead { color: var(--text-muted); margin-bottom: 0.85rem; font-size: 1rem; line-height: 1.6; }
.involve-card ul { margin-bottom: 1.25rem; }
.involve-card ul li {
    padding: 0.35rem 0 0.35rem 1.4rem;
    position: relative;
    color: var(--text-muted);
    font-size: 0.93rem;
    line-height: 1.5;
}
.involve-card ul li::before {
    content: ''; position: absolute;
    left: 0; top: 0.7em;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--teal);
}
.involve-link {
    margin-top: auto;
    color: var(--teal-deep);
    font-weight: 600;
    transition: transform 0.2s var(--ease);
}
.involve-link:hover { transform: translateX(4px); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.3s var(--ease);
}
.faq-item[open] { box-shadow: var(--shadow-md); border-color: var(--teal-light); }
.faq-item summary {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 3rem;
    font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem; top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--teal-deep);
    transition: transform 0.3s var(--ease);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ---------- CTA STRIP ---------- */
.cta-strip { padding: var(--space-xl) 0; background: var(--bg-alt); border-top: 1px solid var(--border); }
.cta-strip-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.cta-strip-inner h2 { margin-bottom: 0.65rem; font-size: clamp(1.5rem, 2.5vw, 1.85rem); }
.cta-strip-inner p { color: var(--text-muted); }
.cta-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- CONTACT SECTION ---------- */
.contact-section { padding: var(--space-2xl) 0; background: var(--bg-alt); }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 4rem;
    align-items: start;
}
.contact-info-title { margin-bottom: 1rem; }
.contact-info-lead { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.02rem; line-height: 1.7; }
.contact-details { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.contact-item { display: flex; gap: 1.25rem; align-items: flex-start; }
.contact-icon {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-deep) 100%);
    color: white;
    display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 22px; height: 22px; }
.contact-item h4 { color: var(--navy); margin-bottom: 0.25rem; font-size: 1.05rem; }
.contact-item p, .contact-item a { color: var(--text-muted); line-height: 1.6; font-size: 0.97rem; }
.contact-item a:hover { color: var(--teal-deep); }

.contact-quick {
    background: white;
    padding: 1.65rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}
.contact-quick h4 { color: var(--navy); margin-bottom: 0.5rem; }
.contact-quick > p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.85rem; }
.contact-quick ul { display: flex; flex-direction: column; gap: 0.4rem; }
.contact-quick li {
    color: var(--text-muted);
    font-size: 0.93rem;
    padding-left: 1.4rem;
    position: relative;
    line-height: 1.5;
}
.contact-quick li::before {
    content: ''; position: absolute;
    left: 0; top: 0.55em;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--teal);
}
.contact-quick strong { color: var(--navy); }

.contact-form-wrap {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    position: sticky; top: 100px;
}
.contact-form h3 { margin-bottom: 0.5rem; }
.form-intro { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.15rem; }
.form-group label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--text); margin-bottom: 0.4rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.97rem;
    color: var(--text);
    background: var(--bg-alt);
    transition: all 0.2s var(--ease);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--teal);
    background: white;
    box-shadow: 0 0 0 3px rgba(41, 185, 200, 0.15);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-note { margin-top: 1rem; font-size: 0.9rem; text-align: center; min-height: 1.4em; }
.form-note.success { color: var(--teal-deep); }
.form-note.error { color: #c83a3a; }

/* ---------- FOOTER ---------- */
.footer { background: var(--navy-deep); color: rgba(255, 255, 255, 0.75); padding: 4rem 0 1.5rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.footer-logo { width: 64px; height: 64px; margin-bottom: 1rem; filter: brightness(0) invert(1) opacity(0.95); }
.footer-tagline {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    max-width: 280px;
    margin-bottom: 0.85rem;
}
.footer-meta { font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); max-width: 280px; line-height: 1.5; }
.footer-col h5 { color: white; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col li, .footer-col a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.55);
}

/* =================================================================
   RESPONSIVE — TABLET
   ================================================================= */
@media (max-width: 992px) {
    .hero-container,
    .intro-grid,
    .wifi-grid,
    .content-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .content-grid--reverse .content-text { order: 1; }
    .content-grid--reverse .content-visual { order: 2; }
    .pillars-grid,
    .impact-grid,
    .mvv-grid,
    .values-grid,
    .network-grid,
    .audience-grid,
    .connection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .content-stats { grid-template-columns: repeat(2, 1fr); }
    .pillars-grid > .pillar-card--featured { grid-column: span 2; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta-strip-inner { grid-template-columns: 1fr; gap: 1.75rem; text-align: center; }
    .cta-actions { justify-content: center; }
    .involve-grid { grid-template-columns: 1fr; }
    .contact-form-wrap { position: static; }
    .nav-menu { gap: 1.25rem; }
}

/* =================================================================
   RESPONSIVE — MOBILE
   ================================================================= */
@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: 0; right: -100%;
        width: 80%; max-width: 320px; height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        transition: right 0.4s var(--ease);
    }
    .nav-menu.active { right: 0; }
    .nav-link { font-size: 1.1rem; width: 100%; }
    .nav-link.nav-cta { margin-top: 1rem; text-align: center; }

    .hero { padding: 7rem 0 3rem; }
    .page-hero { padding: 7rem 0 3.5rem; }
    .hero-stats { gap: 1.25rem; }
    .stat-number { font-size: 1.7rem; }
    .hero-actions .btn { flex: 1; min-width: 0; }

    .pillars-grid,
    .impact-grid,
    .mvv-grid,
    .values-grid,
    .network-grid,
    .audience-grid,
    .connection-grid,
    .how-grid,
    .content-stats,
    .intro-stats {
        grid-template-columns: 1fr;
    }
    .pillars-grid > .pillar-card--featured { grid-column: span 1; }

    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
    .footer-tagline, .footer-meta { margin: 0 auto; }
    .footer-col ul { align-items: center; }

    .contact-form-wrap { padding: 1.75rem; }
    .wifi-card { transform: rotate(0); }

    .subprogram { grid-template-columns: 1fr; gap: 1rem; padding: 2rem 0; }
    .subprogram-marker { font-size: 2rem; }
    .subprogram--highlight { padding: 1.85rem; }

    .cta-strip-inner { padding: 1.85rem; }

    .section-head { margin-bottom: 2.5rem; }
    .pillars, .intro-block, .impact-block, .wifi-spotlight, .content-section, .program-section, .contact-section { padding: 4rem 0; }

    .programs-nav { flex-direction: column; }
    .programs-nav-link { width: 100%; text-align: center; }
}

@media (max-width: 420px) {
    body { font-size: 16px; }
    .container { padding: 0 1.1rem; }
    .nav-brand-name { font-size: 1.2rem; }
    .nav-logo { width: 38px; height: 38px; }
    .hero-eyebrow { font-size: 0.72rem; padding: 0.4rem 0.85rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .pillar-card, .involve-card, .mvv-card, .how-card { padding: 1.75rem 1.5rem; }
}

/* ---------- REDUCED MOTION ---------- */
@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;
    }
}
