:root {
    --ink: #173134;
    --deep: #0b4b4f;
    --teal: #127b7d;
    --aqua: #bfe9e5;
    --coral: #d94f45;
    --gold: #f2b84b;
    --paper: #f7f4ec;
    --soft: #edf6f4;
    --white: #ffffff;
    --muted: #65777a;
    --line: #d9e5e4;
    --shadow: 0 20px 55px rgba(11, 75, 79, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: "DM Sans", Arial, sans-serif;
    line-height: 1.65;
}
body, button, input, textarea { font-family: "DM Sans", Arial, sans-serif; }
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 {
    margin: 0;
    font-family: "Manrope", Arial, sans-serif;
    line-height: 1.1;
    letter-spacing: 0;
}
h1 { font-size: clamp(68px, 14vw, 156px); }
h2 { font-size: clamp(34px, 5vw, 60px); }
h3 { font-size: 22px; }
p { margin: 0; }

.container { width: min(100% - 48px, 1180px); margin-inline: auto; }
.section { padding: 104px 0; }
.section-soft { background: var(--paper); }
.section-ink { background: var(--deep); color: var(--white); }
.section-photo { background: var(--soft); }
.eyebrow {
    margin-bottom: 14px;
    color: var(--coral);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}
.section-ink .eyebrow, .hero .eyebrow { color: var(--gold); }
.section-copy p, .section-head p, .where-layout p, .donation-layout p { color: var(--muted); font-size: 17px; }
.section-copy p + p { margin-top: 18px; }
.section-copy h2, .section-head h2, .where-layout h2, .donation-layout h2, .contact-layout h2 { margin-bottom: 22px; color: var(--deep); }
.section-ink h2 { color: var(--white); }
.light-copy { color: #bbd7d6; font-size: 17px; }
.section-head {
    display: grid;
    max-width: 790px;
    gap: 0;
    margin-bottom: 46px;
}
.section-head-wide {
    max-width: none;
    grid-template-columns: 1fr minmax(260px, 430px);
    align-items: end;
    gap: 56px;
}
.section-head-wide > p { margin-bottom: 8px; }
.section-head-wide img {
    max-height: 280px;
    border-radius: 8px;
    background: var(--white);
    object-fit: contain;
    box-shadow: var(--shadow);
}

.btn {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border: 1px solid var(--deep);
    border-radius: 8px;
    background: var(--deep);
    color: var(--white);
    font-size: 14px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(11, 75, 79, .22); }
.btn-small { min-height: 42px; padding-inline: 18px; font-size: 12px; }
.btn-coral { border-color: var(--coral); background: var(--coral); }
.btn-coral:hover { background: #bd4038; }
.btn-white { border-color: var(--white); background: var(--white); color: var(--deep); }
.btn-white:hover { background: var(--gold); border-color: var(--gold); }
.card-icon {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 8px;
    background: var(--soft);
    color: var(--teal);
}
.card-icon svg { width: 25px; height: 25px; }

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .65s ease, transform .65s ease;
}
[data-reveal].revealed { opacity: 1; transform: none; }

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid rgba(217, 229, 228, .85);
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(14px);
}
.nav-wrap {
    position: relative;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-logo {
    width: 62px;
    height: 62px;
    object-fit: contain;
    object-position: left center;
    border-radius: 8px;
}
.brand-mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: var(--deep);
    color: var(--white);
    font-family: "Manrope", Arial, sans-serif;
    font-weight: 800;
}
.brand strong { display: block; color: var(--deep); font-size: 23px; line-height: 1; }
.brand small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}
.main-nav { display: flex; align-items: center; gap: 24px; }
.main-nav a {
    position: relative;
    padding: 28px 0;
    color: #425b5e;
    font-size: 13px;
    font-weight: 800;
}
.main-nav a::after {
    position: absolute;
    right: 0;
    bottom: 21px;
    left: 0;
    height: 2px;
    background: var(--coral);
    content: "";
    opacity: 0;
    transform: scaleX(0);
    transition: opacity .2s ease, transform .2s ease;
}
.main-nav a:hover { color: var(--deep); }
.main-nav a:hover::after { opacity: 1; transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.login-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--deep);
    font-size: 12px;
    font-weight: 800;
}
.login-link:hover { border-color: var(--teal); background: var(--soft); }
.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 0;
    border-radius: 8px;
    background: var(--soft);
    cursor: pointer;
}
.menu-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--deep); }

.hero {
    position: relative;
    min-height: 760px;
    overflow: hidden;
    color: var(--white);
}
.hero-bg, .hero-shade {
    position: absolute;
    inset: 0;
    height: 100%;
}
.hero-bg {
    object-fit: contain;
    object-position: right center;
    background: #08282b;
}
.hero-shade {
    background: linear-gradient(90deg, rgba(8, 40, 43, .92) 0%, rgba(8, 40, 43, .68) 45%, rgba(8, 40, 43, .22) 100%);
}
.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 760px;
    grid-template-columns: minmax(0, 820px) 220px;
    align-items: end;
    gap: 70px;
    padding: 118px 0 72px;
}
.hero h1 { margin-bottom: 18px; color: var(--white); }
.hero-subtitle {
    max-width: 820px;
    color: var(--aqua);
    font-family: "Manrope", Arial, sans-serif;
    font-size: clamp(23px, 3vw, 38px);
    font-weight: 800;
    line-height: 1.18;
}
.hero-lead {
    max-width: 730px;
    margin-top: 24px;
    color: #d6e6e5;
    font-size: 18px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-stats { display: grid; gap: 12px; }
.hero-stats article {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 8px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
}
.hero-stats strong { display: block; color: var(--gold); font-family: "Manrope"; font-size: 34px; line-height: 1; }
.hero-stats span { display: block; margin-top: 7px; color: #d7e8e7; font-size: 12px; font-weight: 800; }

.trust-strip { border-bottom: 1px solid var(--line); background: var(--white); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid span {
    padding: 22px;
    border-right: 1px solid var(--line);
    color: var(--deep);
    font-family: "Manrope";
    font-weight: 800;
    text-align: center;
}
.trust-grid span:last-child { border-right: 0; }

.about-layout {
    display: grid;
    grid-template-columns: .88fr 1.12fr;
    align-items: start;
    gap: 76px;
}
.about-media img {
    max-height: 520px;
    border-radius: 8px;
    background: var(--soft);
    object-fit: contain;
    box-shadow: var(--shadow);
}
.mission-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    overflow: hidden;
    margin-top: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
}
.mission-panel article { padding: 24px; background: var(--white); }
.mission-panel span { color: var(--coral); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.mission-panel p { margin-top: 10px; color: var(--muted); font-size: 13px; }

.institution-layout {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 70px;
}
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .14);
}
.info-grid article { padding: 24px; background: rgba(255, 255, 255, .06); }
.info-grid small {
    display: block;
    margin-bottom: 8px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}
.info-grid strong { color: #e6f3f2; font-size: 14px; }

.impact-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.impact-card, .program-card, .event-grid article, .join-grid article {
    min-height: 240px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
}
.impact-card h3, .program-card h3, .event-grid h3, .join-grid h3 {
    margin: 24px 0 10px;
    color: var(--deep);
    font-size: 19px;
}
.impact-card p, .program-card p, .event-grid p, .join-grid p {
    color: var(--muted);
    font-size: 13px;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.program-card { min-height: 285px; transition: transform .2s ease, box-shadow .2s ease; }
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.project-list {
    display: grid;
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--line);
}
.project-list article {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 26px;
    padding: 28px;
    background: var(--white);
}
.project-list span { color: var(--coral); font-family: "Manrope"; font-size: 28px; font-weight: 800; }
.project-list h3 { margin-bottom: 8px; color: var(--deep); }
.project-list p { max-width: 780px; color: var(--muted); }

.where-layout {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    align-items: center;
    gap: 76px;
}
.region-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.region-grid span {
    min-height: 94px;
    display: grid;
    align-items: end;
    padding: 18px;
    border-radius: 8px;
    background: var(--soft);
    color: var(--deep);
    font-weight: 800;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.event-grid article { min-height: 210px; }

.join-layout {
    display: grid;
    grid-template-columns: .72fr 1.28fr;
    align-items: start;
    gap: 70px;
}
.join-layout .btn { margin-top: 30px; }
.join-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.join-grid article {
    min-height: 180px;
    border-color: rgba(255, 255, 255, .13);
    background: rgba(255, 255, 255, .06);
}
.join-grid h3 { color: var(--white); }
.join-grid p { color: #bed8d7; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.gallery-grid figure {
    min-height: 260px;
    margin: 0;
    overflow: hidden;
    border-radius: 8px;
    background: var(--soft);
}
.gallery-grid figure:nth-child(1), .gallery-grid figure:nth-child(6) { grid-row: span 2; }
.gallery-grid img {
    height: 100%;
    min-height: 260px;
    object-fit: contain;
    transition: transform .3s ease;
}
.gallery-grid figure:hover img { transform: scale(1.04); }

.donation-section { background: var(--deep); color: var(--white); }
.donation-layout {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    align-items: center;
    gap: 70px;
}
.donation-layout h2 { color: var(--white); }
.donation-layout p { color: #d1e4e3; }
.donation-note {
    margin-top: 22px;
    padding-left: 18px;
    border-left: 4px solid var(--gold);
    font-weight: 700;
}
.donation-card {
    padding: 38px;
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    box-shadow: var(--shadow);
}
.donation-card > span {
    color: var(--coral);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.donation-card h3 { margin: 12px 0 28px; color: var(--deep); font-size: 30px; }
.donation-card dl { display: grid; gap: 16px; margin: 0 0 28px; }
.donation-card div { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.donation-card dt { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.donation-card dd { margin: 5px 0 0; color: var(--deep); font-family: "Manrope"; font-size: 22px; font-weight: 800; }

.contact-layout {
    display: grid;
    grid-template-columns: .78fr 1.22fr;
    align-items: start;
    gap: 70px;
}
.contact-list { display: grid; gap: 12px; margin-top: 30px; }
.contact-list a {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: start;
    gap: 14px;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--deep);
    font-weight: 700;
}
.contact-list svg {
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 8px;
    background: var(--soft);
    color: var(--teal);
}
.contact-form {
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 22px;
}
label {
    display: grid;
    gap: 7px;
    color: var(--deep);
    font-size: 12px;
    font-weight: 800;
}
.field-full { grid-column: 1 / -1; }
input, textarea {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #cddcdb;
    border-radius: 8px;
    background: var(--white);
    color: var(--ink);
    font-size: 14px;
}
textarea { min-height: 132px; resize: vertical; }
input:focus, textarea:focus {
    border-color: var(--teal);
    outline: 3px solid rgba(18, 123, 125, .13);
}

.site-footer { padding-top: 74px; background: #08282b; color: var(--white); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr .7fr .8fr 1fr;
    gap: 50px;
    padding-bottom: 54px;
}
.brand-light { margin-bottom: 20px; }
.brand-light .brand-logo {
    width: 76px;
    height: 76px;
    padding: 6px;
    border-radius: 8px;
    background: var(--white);
}
.brand-light .brand-mark { background: var(--gold); color: #1b2c2e; }
.brand-light strong { color: var(--white); }
.brand-light small, .site-footer p { color: #9abbbc; }
.site-footer h3 { margin-bottom: 18px; color: var(--white); font-size: 15px; }
.site-footer a, .site-footer span, .site-footer p {
    display: block;
    margin: 9px 0;
    color: #a7c6c7;
    font-size: 13px;
}
.site-footer .footer-phone { color: var(--gold); font-size: 16px; font-weight: 800; }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.wa-float {
    position: fixed;
    z-index: 60;
    right: 22px;
    bottom: 22px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 16px;
    border-radius: 999px;
    background: #25d366;
    color: #08391d;
    box-shadow: 0 12px 34px rgba(0, 0, 0, .2);
    font-size: 12px;
    font-weight: 800;
}
.wa-float svg { width: 22px; height: 22px; }

.admin-login-page, .admin-page { background: var(--paper); }
.login-screen {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 28px;
}
.login-card {
    width: min(100%, 430px);
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
}
.login-card img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    margin-bottom: 28px;
}
.login-card h1 {
    margin-bottom: 10px;
    color: var(--deep);
    font-size: 34px;
}
.login-note {
    margin-bottom: 22px;
    color: var(--muted);
}
.login-error {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-left: 4px solid var(--coral);
    border-radius: 8px;
    background: #fff0ee;
    color: #91352f;
    font-size: 13px;
    font-weight: 800;
}
.login-card .btn { width: 100%; margin-top: 16px; }
.back-home {
    display: block;
    margin-top: 18px;
    color: var(--teal);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}
.admin-topbar {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 14px 32px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
}
.admin-topbar img { width: 62px; height: 62px; border-radius: 8px; object-fit: contain; object-position: left center; }
.admin-topbar nav { display: flex; gap: 12px; }
.admin-topbar a {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--deep);
    font-size: 12px;
    font-weight: 800;
}
.admin-shell {
    width: min(100% - 48px, 1080px);
    margin: 0 auto;
    padding: 70px 0;
}
.admin-card, .admin-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 10px 32px rgba(11, 75, 79, .08);
}
.admin-card { padding: 34px; margin-bottom: 18px; }
.admin-card h1 {
    margin-bottom: 10px;
    color: var(--deep);
    font-size: 42px;
}
.admin-card p:not(.eyebrow), .admin-grid p { color: var(--muted); }
.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}
.admin-grid article { padding: 26px; }
.admin-grid h2 {
    margin-bottom: 10px;
    color: var(--deep);
    font-size: 23px;
}
.admin-grid code {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--soft);
    color: var(--deep);
    font-size: 13px;
    overflow-wrap: anywhere;
}

@media (max-width: 1120px) {
    .nav-cta { display: none; }
    .impact-grid { grid-template-columns: repeat(3, 1fr); }
    .event-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
    .menu-toggle { display: block; order: 3; }
    .main-nav {
        position: absolute;
        top: 76px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--white);
        box-shadow: var(--shadow);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 12px; }
    .main-nav a::after { display: none; }
    .hero-inner {
        min-height: 720px;
        grid-template-columns: 1fr;
        align-items: end;
        gap: 38px;
    }
    .hero-stats { grid-template-columns: repeat(3, 1fr); }
    .about-layout, .institution-layout, .where-layout, .join-layout, .donation-layout, .contact-layout, .section-head-wide {
        grid-template-columns: 1fr;
    }
    .program-grid, .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .section-head-wide img { max-width: 540px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
    .container { width: min(100% - 28px, 1180px); }
    .section { padding: 76px 0; }
    .brand small { display: none; }
    .brand-logo { width: 54px; height: 54px; }
    .login-link { min-height: 38px; padding-inline: 11px; }
    .hero, .hero-inner { min-height: 690px; }
    .hero-inner { padding-top: 94px; padding-bottom: 46px; }
    .hero-shade { background: rgba(8, 40, 43, .76); }
    .hero h1 { font-size: 68px; }
    .hero-subtitle { font-size: 25px; }
    .hero-lead { font-size: 16px; }
    .hero-actions .btn { width: 100%; }
    .hero-stats, .trust-grid, .mission-panel, .info-grid, .impact-grid, .program-grid, .region-grid, .event-grid, .join-grid, .gallery-grid, .form-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .trust-grid span { border-right: 0; border-bottom: 1px solid var(--line); }
    .trust-grid span:last-child { border-bottom: 0; }
    .about-media img { max-height: none; }
    .project-list article { grid-template-columns: 1fr; gap: 8px; }
    .gallery-grid figure, .gallery-grid figure:nth-child(1), .gallery-grid figure:nth-child(6) { grid-row: auto; }
    .donation-card { padding: 28px; }
    .donation-card dd { font-size: 18px; overflow-wrap: anywhere; }
    .contact-form { padding: 24px; }
    .field-full { grid-column: auto; }
    .footer-bottom { flex-direction: column; }
    .admin-topbar { align-items: flex-start; flex-direction: column; padding: 16px; }
    .admin-topbar nav { width: 100%; }
    .admin-topbar a { flex: 1; text-align: center; }
    .admin-shell { width: min(100% - 28px, 1080px); padding: 46px 0; }
    .admin-grid { grid-template-columns: 1fr; }
    .wa-float { width: 54px; height: 54px; justify-content: center; padding: 0; }
    .wa-float span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}
