:root {
    --navy: #11264a;
    --navy-2: #183a69;
    --green: #1f7a4d;
    --green-2: #2f9b63;
    --gold: #f4c95d;
    --gold-2: #d9a92d;
    --cream: #f7f3e9;
    --cream-2: #fffaf0;
    --ink: #18233f;
    --muted: #5d6878;
    --line: #e7ddc9;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(17, 38, 74, 0.12);
    --radius: 8px;
    --font-body: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-body);
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    line-height: 1.6;
    background: var(--cream-2);
}

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

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0 0 1rem;
    color: var(--muted);
}

h1,
h2,
h3 {
    margin: 0;
    color: var(--navy);
    font-family: var(--font-heading);
    line-height: 1.12;
}

h1 {
    font-size: 4.3rem;
    letter-spacing: 0;
}

h2 {
    font-size: 2.45rem;
    letter-spacing: 0;
}

h3 {
    font-size: 1.12rem;
    letter-spacing: 0;
}

.container {
    width: min(1140px, calc(100% - 32px));
    margin-inline: auto;
}

.narrow {
    max-width: 820px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 250, 240, 0.94);
    border-bottom: 1px solid rgba(231, 221, 201, 0.8);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
    max-width: 230px;
}

.brand-logo {
    display: block;
    width: 190px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius);
    background: var(--white);
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.primary-nav a {
    padding: 10px 10px;
    color: #2c3a55;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 700;
}

.primary-nav a:hover,
.primary-nav a.is-active {
    background: #eef5ed;
    color: var(--green);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    padding: 10px;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--navy);
}

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(120deg, rgba(17, 38, 74, 0.96), rgba(31, 122, 77, 0.92));
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 90px;
    background: var(--cream-2);
    z-index: -1;
}

.hero-grid {
    min-height: 690px;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
    align-items: center;
    gap: 42px;
    padding: 84px 0 72px;
}

.hero-copy h1,
.hero-copy p {
    color: var(--white);
}

.hero-copy p {
    max-width: 660px;
    font-size: 1.16rem;
    color: #eaf2ed;
}

.hero-media {
    position: relative;
}

.hero-media img,
.image-panel img,
.support-panel img,
.project-card img,
.gallery-item img {
    width: 100%;
    object-fit: contain;
    border-radius: var(--radius);
}

.hero-media img {
    min-height: 510px;
    max-height: 620px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.hero-stat {
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: min(280px, calc(100% - 48px));
    padding: 18px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.hero-stat strong,
.hero-stat span {
    display: block;
}

.hero-stat strong {
    color: var(--navy);
}

.hero-stat span {
    color: var(--muted);
    font-size: 0.92rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--gold-2);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.section {
    padding: 92px 0;
}

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

.section-ink {
    background: var(--navy);
    color: var(--white);
}

.section-ink h2,
.section-ink h3,
.section-ink .eyebrow,
.section-ink p {
    color: var(--white);
}

.section-ink p {
    color: #dce9e1;
}

.page-hero {
    padding: 94px 0 76px;
    background:
        linear-gradient(135deg, rgba(17, 38, 74, 0.94), rgba(31, 122, 77, 0.9)),
        url("../images/illustrations/hero-education-foundation.svg") center/cover;
    color: var(--white);
}

.page-hero h1,
.page-hero p {
    color: var(--white);
}

.page-hero p {
    font-size: 1.08rem;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
    gap: 42px;
    align-items: center;
}

.split-reverse {
    grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
}

.section-copy > * + * {
    margin-top: 16px;
}

.section-heading {
    max-width: 740px;
    margin-bottom: 34px;
}

.two-column,
.mission-pair,
.value-grid,
.impact-grid,
.focus-grid,
.project-grid,
.faq-grid,
.team-grid,
.gallery-grid {
    display: grid;
    gap: 22px;
}

.two-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mission-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.value-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.focus-grid,
.project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.value-card,
.project-card,
.faq-item,
.team-card,
.form-card,
.support-panel,
.contact-panel,
.founder-box,
.gallery-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.info-card,
.value-card,
.faq-item,
.founder-box {
    padding: 26px;
}

.card-icon,
.value-card span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    border-radius: var(--radius);
    color: var(--navy);
    background: var(--gold);
    font-weight: 900;
}

.value-card span {
    width: 58px;
    height: 58px;
    font-size: 1.6rem;
}

.impact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.impact-item {
    min-height: 150px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
}

.impact-item strong,
.impact-item span {
    display: block;
}

.impact-item strong {
    margin-bottom: 10px;
    color: var(--gold);
    font-size: 1.55rem;
}

.project-card {
    overflow: hidden;
}

.project-card img {
    aspect-ratio: 4 / 3;
    border-radius: 0;
    padding: 18px;
    background: #fffaf0;
}

.project-card div {
    padding: 22px;
}

.project-card h2,
.project-card h3 {
    margin-bottom: 10px;
}

.image-panel img,
.support-panel img {
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow);
}

.commitment-list,
.support-list,
.contact-list {
    display: grid;
    gap: 14px;
}

.commitment-list div,
.support-list div,
.contact-list div {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
}

.commitment-list strong,
.commitment-list span,
.support-list strong,
.support-list span,
.contact-list strong,
.contact-list span,
.contact-list a {
    display: block;
}

.commitment-list span,
.support-list span,
.contact-list span,
.contact-list a {
    color: var(--muted);
}

.btn,
button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(17, 38, 74, 0.18);
}

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

.btn-gold {
    color: var(--navy);
    background: var(--gold);
}

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

.btn-outline-light {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.64);
    background: transparent;
}

.btn-ghost-light {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.btn-sm {
    min-height: 38px;
    padding: 9px 14px;
    font-size: 0.9rem;
}

.btn-full {
    width: 100%;
}

.text-link {
    display: inline-flex;
    color: var(--green);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(31, 122, 77, 0.35);
    text-underline-offset: 5px;
}

.hero-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.button-row.center {
    justify-content: center;
}

.cta-band {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--green), var(--navy));
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.cta-inner h2 {
    max-width: 760px;
    color: var(--white);
}

.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
    gap: 28px;
    align-items: start;
}

.form-card,
.support-panel,
.contact-panel {
    padding: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-grid .full {
    grid-column: 1 / -1;
}

label {
    display: grid;
    gap: 8px;
    color: var(--navy);
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d9d1c1;
    border-radius: var(--radius);
    padding: 12px 14px;
    color: var(--ink);
    background: var(--white);
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: 3px solid rgba(244, 201, 93, 0.36);
    border-color: var(--gold-2);
}

.checkbox {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    font-weight: 600;
}

.checkbox input {
    width: 18px;
    min-height: 18px;
    margin-top: 4px;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

.alert {
    padding: 16px;
    margin: 18px 0;
    border-radius: var(--radius);
    border: 1px solid transparent;
}

.alert ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

.alert-error {
    background: #fff1ef;
    border-color: #f1b3aa;
    color: #842b1b;
}

.alert-info {
    background: #eef6ff;
    border-color: #bdd9f5;
    color: #183a69;
}

.muted {
    color: var(--muted);
}

.amount-chips,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.amount-chips button,
.tag-list span {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 9px 12px;
    color: var(--navy);
    background: #f8faf7;
    font-weight: 800;
}

.amount-chips button {
    cursor: pointer;
}

.team-card {
    padding: 22px;
    text-align: center;
}

.team-card img {
    width: 104px;
    height: 104px;
    margin: 0 auto 16px;
    border-radius: 50%;
    object-fit: contain;
    padding: 12px;
    background: #fffaf0;
    border: 4px solid #f3e3b6;
}

.team-title {
    margin: 8px 0 12px;
    color: var(--green);
    font-weight: 800;
}

.gallery-item {
    overflow: hidden;
    margin: 0;
}

.gallery-item img {
    aspect-ratio: 4 / 3;
    border-radius: 0;
    padding: 18px;
    background: #fffaf0;
}

.gallery-item figcaption {
    padding: 16px 18px;
    color: var(--muted);
    font-weight: 700;
}

.map-placeholder {
    display: grid;
    place-items: center;
    min-height: 220px;
    margin-top: 18px;
    padding: 24px;
    border: 1px dashed #b7c3b4;
    border-radius: var(--radius);
    background: #f8faf7;
    text-align: center;
}

.map-placeholder strong,
.map-placeholder span {
    display: block;
}

.reference-note {
    color: var(--gold);
}


.partner-grid,
.partner-strip,
.project-photo-grid {
    display: grid;
    gap: 22px;
}

.partner-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.partner-card,
.partner-strip-item,
.project-photo-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
}

.partner-card {
    padding: 26px;
}

.partner-logo-wrap {
    display: grid;
    place-items: center;
    min-height: 132px;
    margin-bottom: 18px;
    padding: 18px;
    border-radius: var(--radius);
    background: #fffaf0;
}

.partner-logo {
    width: min(100%, 240px);
    max-height: 96px;
    object-fit: contain;
}

.partner-strip {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.partner-strip-item {
    display: grid;
    gap: 12px;
    place-items: center;
    min-height: 150px;
    padding: 18px;
    text-align: center;
    color: var(--navy);
    font-weight: 800;
}

.partner-strip-item img {
    width: min(100%, 160px);
    max-height: 76px;
    object-fit: contain;
}

.project-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-photo-card {
    overflow: hidden;
    margin: 0;
}

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

.project-photo-card figcaption {
    padding: 14px 16px;
    color: var(--muted);
    font-weight: 700;
}

.section-action {
    margin-top: 28px;
}
.site-footer {
    padding: 62px 0 24px;
    color: #d9e5de;
    background: #0d1c36;
}

.site-footer h2,
.site-footer strong {
    color: var(--white);
}

.site-footer p,
.site-footer a,
.site-footer li,
.site-footer small {
    color: #d9e5de;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.75fr 0.95fr 0.95fr;
    gap: 28px;
}

.footer-brand {
    margin-bottom: 16px;
    max-width: 260px;
}

.footer-brand .brand-logo {
    width: 240px;
    padding: 6px;
    background: var(--white);
}

.footer-note {
    color: var(--gold);
    font-weight: 800;
}

.footer-links {
    display: grid;
    gap: 9px;
    padding: 0;
    margin: 16px 0 0;
    list-style: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 42px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #b8c9c0;
    font-size: 0.92rem;
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1040px) {
    .primary-nav {
        position: fixed;
        inset: 86px 16px auto 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--white);
        box-shadow: var(--shadow);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .nav-toggle {
        display: inline-block;
    }

    .hero-grid,
    .split,
    .split-reverse,
    .form-layout {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        min-height: auto;
        padding-top: 60px;
    }

    h1 {
        font-size: 3.2rem;
    }

    h2 {
        font-size: 2.15rem;
    }

    .hero-media img {
        min-height: 420px;
    }

    .focus-grid,
    .project-grid,
    .team-grid,
    .partner-grid,
    .project-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faq-grid,
    .impact-grid,
    .footer-grid,
    .partner-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 24px, 1140px);
    }

    .brand {
        max-width: 180px;
    }

    .brand-logo {
        width: 160px;
    }

    .hero-grid {
        padding: 44px 0 48px;
    }

    h1 {
        font-size: 2.45rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .hero-media img {
        min-height: 320px;
    }

    .hero-stat {
        position: static;
        width: 100%;
        margin-top: 14px;
    }

    .section,
    .page-hero {
        padding: 58px 0;
    }

    .two-column,
    .mission-pair,
    .value-grid,
    .focus-grid,
    .project-grid,
    .faq-grid,
    .team-grid,
    .gallery-grid,
    .impact-grid,
    .footer-grid,
    .partner-grid,
    .partner-strip,
    .project-photo-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .cta-inner,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-actions .btn,
    .button-row .btn {
        width: 100%;
    }

    .form-card,
    .support-panel,
    .contact-panel,
    .info-card,
    .value-card,
    .faq-item,
    .founder-box {
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
