:root {
    --blue: #006AA6;
    --blue-deep: #004F7C;
    --blue-card: #026AA3;
    --green: #71B859;
    --green-deep: #4F9A38;
    --ink: #16324a;
    --white: #ffffff;
    --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
    font-family: Nunito, "Helvetica Neue", sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

.pattern-field {
    background-color: var(--blue);
    background-image: url("../images/pattern-tree.png");
    background-size: 148px 148px;
    color: var(--white);
}

.topbar {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 30;
}
.topbar-inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 58px;
}
.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.02rem;
}
.nav-links a:hover { color: var(--green-deep); }
.mobile-menu-btn {
    display: none;
    background: none;
    border: 0;
    padding: 8px;
    cursor: pointer;
}
.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--blue);
    margin: 5px 0;
}

.donate-tab {
    position: fixed;
    left: 0;
    top: 38%;
    z-index: 40;
    background: var(--green);
    color: var(--white);
    text-decoration: none;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    padding: 14px 10px 16px;
    border-radius: 0 10px 10px 0;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.08);
}

.hero { padding: 28px 0 64px; }
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
    align-items: center;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 28px;
}
.brand img { width: 78px; height: auto; }
.brand-name {
    display: block;
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.03em;
}
.brand-sub {
    display: block;
    margin-top: 2px;
    font-size: 1.05rem;
    font-weight: 600;
    opacity: 0.92;
}
.hero h1 {
    font-size: clamp(2.3rem, 4.4vw, 3.5rem);
    line-height: 1.05;
    font-weight: 800;
    margin: 0 0 18px;
    letter-spacing: -0.03em;
}
.hero-copy p {
    font-size: 1.18rem;
    max-width: 34rem;
    margin: 0 0 28px;
    font-weight: 500;
}
.text-cta {
    color: var(--white);
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.text-cta:hover { border-bottom-color: currentColor; }
.hero-photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 6px solid #d8ef7a;
    background: #d8ef7a;
}

.about { padding: 64px 0 72px; }
.about h2, .help h2, .contact h2 {
    color: var(--blue);
    font-size: clamp(2rem, 3.4vw, 2.7rem);
    margin: 0 0 14px;
    font-weight: 800;
}
.about-lede, .help-lede, .contact-lede {
    color: var(--blue);
    font-style: italic;
    font-size: 1.18rem;
    max-width: 52rem;
    margin: 0 0 18px;
}
.about-cta { color: var(--blue); display: inline-block; margin-bottom: 36px; }
.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.blue-card {
    background: var(--blue-card);
    color: var(--white);
    min-height: 280px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.data-slider { position: relative; overflow: hidden; }
.slide { display: none; }
.slide.is-active { display: block; }
.slide-kicker {
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
    margin: 0 0 10px;
    color: #d8ef7a;
}
.slide-line {
    font-size: 1.7rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
}
.slider-dots {
    display: flex;
    gap: 8px;
    margin-top: 22px;
}
.slider-dots button {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,0.4);
    padding: 0;
    cursor: pointer;
}
.slider-dots button.is-active { background: #d8ef7a; }
.quote-card p {
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 0 0 22px;
    text-align: center;
}
.quote-card footer {
    text-align: center;
    font-style: italic;
    opacity: 0.9;
}

.news { padding: 48px 0 64px; }
.news h2 {
    color: var(--white);
    font-size: clamp(2rem, 3.4vw, 2.7rem);
    font-weight: 800;
    margin: 0 0 24px;
}
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.news-card {
    background: var(--white);
    padding: 10px 10px 16px;
}
.news-card a { text-decoration: none; color: var(--ink); }
.news-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border: 3px solid #d8ef7a;
    margin-bottom: 10px;
}
.news-date { margin: 0; font-size: 0.88rem; color: #4a5d68; }
.news-card h3 {
    margin: 2px 0 4px;
    color: var(--green-deep);
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
}
.news-more { margin: 0; font-size: 0.92rem; color: #4a5d68; }

.help { padding: 64px 0 40px; }
.help-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.help-card {
    background: var(--blue);
    color: var(--white);
    padding: 28px 24px;
    text-decoration: none;
    min-height: 180px;
}
.help-card h3 { margin: 0 0 10px; font-size: 1.4rem; }
.help-card p { margin: 0; font-weight: 500; }

.donate-band {
    background: var(--blue-deep);
    color: var(--white);
    padding: 36px 0;
}
.donate-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.donate-band h2 { margin: 0 0 6px; font-size: 2rem; }
.donate-band p { margin: 0; }
.btn-white, .btn-blue {
    display: inline-block;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 12px 22px;
    text-decoration: none;
}
.btn-white { background: var(--white); color: var(--blue); }
.btn-blue { background: var(--blue); color: var(--white); }
.btn-white:hover, .btn-blue:hover { filter: brightness(0.96); }

.contact { padding: 64px 0 72px; }
.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr;
    gap: 36px;
    align-items: start;
}
.contact-form { max-width: 640px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--blue-deep); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #c5d5de;
    font: inherit;
    background: #fff;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}
.office {
    background: var(--blue);
    color: var(--white);
    padding: 28px 24px;
}
.office h3 { margin: 0 0 10px; }
.office a { color: #d8ef7a; }

.site-foot {
    background: var(--blue-deep);
    color: #d7e8f2;
    padding: 18px 0;
    font-size: 0.92rem;
}
.foot-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.flash-message {
    width: min(var(--max), calc(100% - 48px));
    margin: 12px auto 0;
    padding: 12px 16px;
    font-weight: 700;
}
.flash-success { background: var(--green-deep); color: #fff; }
.flash-error { background: #8b1a1a; color: #fff; }

.story { padding: 36px 0 72px; }
.story-wrap { max-width: 760px; }
.story-kicker { color: var(--blue); font-weight: 700; margin: 0 0 8px; }
.story-kicker a { text-decoration: none; }
.story h1 {
    color: var(--blue);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.15;
    margin: 0 0 20px;
}
.story-hero {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border: 5px solid #d8ef7a;
    margin: 0 0 24px;
}
.story p { font-size: 1.08rem; margin: 0 0 16px; }
.story-back { margin-top: 28px; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

@media (max-width: 900px) {
    .hero-grid, .about-cards, .news-grid, .help-grid, .contact-grid, .form-row, .donate-inner, .foot-inner {
        grid-template-columns: 1fr;
    }
    .news-grid { grid-template-columns: 1fr 1fr; }
    .donate-tab { display: none; }
    .mobile-menu-btn { display: block; }
    .topbar-inner { justify-content: flex-start; }
    .nav-links {
        display: none;
        position: absolute;
        left: 0; right: 0; top: 58px;
        background: var(--white);
        flex-direction: column;
        padding: 12px 24px 20px;
        gap: 12px;
        border-bottom: 1px solid #d7e4ec;
    }
    .nav-links.active { display: flex; }
    .hero { padding-bottom: 40px; }
}

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