/*
 * GLOBAL FOUNDATION — Frontend Design Refinement
 * Additive stylesheet. Load AFTER style.css and responsive.css.
 * It organizes the CMS-generated header/footer and homepage sections
 * without replacing the existing site stylesheet.
 */

:root {
    --gf-ink: #111111;
    --gf-muted: #626262;
    --gf-border: #dedede;
    --gf-light: #f5f5f2;
    --gf-white: #ffffff;
    --gf-max: 1440px;
    --gf-gutter: clamp(22px, 4vw, 64px);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gf-ink);
    background: var(--gf-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
}

/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

.site-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid rgba(17, 17, 17, .08);
}

.header-inner {
    width: min(100% - (var(--gf-gutter) * 2), var(--gf-max));
    min-height: 86px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    color: var(--gf-ink);
    text-decoration: none;
}

.site-logo img {
    display: block;
    width: auto;
    max-width: 210px;
    max-height: 58px;
    object-fit: contain;
}

.site-logo span {
    font-size: 22px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -.02em;
}

.main-navigation {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 4px;
    min-height: 86px;
}

.main-navigation .nav-item {
    position: relative;
    display: flex;
    align-items: stretch;
}

.main-navigation .nav-item>a,
.main-navigation>.nav-item>a,
.main-navigation>a:not(.nav-donate) {
    display: inline-flex;
    align-items: center;
    min-height: 86px;
    padding: 0 15px;
    color: var(--gf-ink);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity .2s ease;
}

.main-navigation .nav-item>a:hover,
.main-navigation>a:not(.nav-donate):hover {
    opacity: .62;
}

.main-navigation .has-dropdown>a::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% - 1px);
    left: 0;
    z-index: 1100;
    display: none;
    width: 240px;
    padding: 10px 0;
    background: #fff;
    border: 1px solid var(--gf-border);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .10);
}

.has-dropdown:hover>.dropdown-menu,
.has-dropdown:focus-within>.dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 18px;
    color: var(--gf-ink);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.35;
}

.dropdown-menu a:hover {
    background: var(--gf-light);
}

.nav-donate {
    align-self: center;
    min-height: auto !important;
    margin-left: 10px;
    padding: 13px 22px !important;
    color: #fff !important;
    background: var(--gf-ink);
    text-decoration: none;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ---------------------------------------------------------
   HOMEPAGE — spacing / hierarchy
--------------------------------------------------------- */

.homepage {
    width: 100%;
}

.container {
    width: min(100% - (var(--gf-gutter) * 2), var(--gf-max));
    margin-left: auto;
    margin-right: auto;
}

.section-pad {
    padding-top: clamp(72px, 8vw, 128px);
    padding-bottom: clamp(72px, 8vw, 128px);
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--gf-muted);
    font-size: 11px;
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hero {
    position: relative;
    min-height: min(760px, calc(100vh - 86px));
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: #111;
}

.hero-media,
.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-media img {
    display: block;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .65), rgba(0, 0, 0, .15) 70%, rgba(0, 0, 0, .05));
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 120px;
    padding-bottom: clamp(58px, 8vw, 105px);
    color: #fff;
}

.hero-content .eyebrow {
    color: rgba(255, 255, 255, .78);
}

.hero-content h1 {
    max-width: 880px;
    margin: 0;
    font-size: clamp(48px, 7vw, 94px);
    line-height: .96;
    letter-spacing: -.045em;
    font-weight: 600;
}

.hero-content>p:not(.eyebrow) {
    max-width: 690px;
    margin: 25px 0 30px;
    font-size: clamp(17px, 1.6vw, 22px);
    line-height: 1.45;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.button-light {
    color: #111;
    background: #fff;
}

.button-dark {
    color: #fff;
    background: #111;
}

/* Intro panels — clean 2x2 editorial grid */
.intro-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.intro-panel {
    min-height: 480px;
}

.intro-panel-image {
    overflow: hidden;
    background: #eee;
}

.intro-panel-image img {
    width: 100%;
    height: 100%;
    min-height: 480px;
    display: block;
    object-fit: cover;
}

.intro-panel-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(42px, 6vw, 92px);
    background: #f4f4f1;
}

.intro-panel-text.dark-panel {
    color: #fff;
    background: #111;
}

.intro-panel-text.dark-panel .eyebrow {
    color: rgba(255, 255, 255, .65);
}

.intro-panel-text h2,
.featured-copy h2,
.section-heading h2,
.statement-content h2,
.news-heading h2,
.home-cta h2 {
    margin: 0;
    font-size: clamp(36px, 4.4vw, 66px);
    line-height: 1;
    letter-spacing: -.04em;
    font-weight: 600;
}

.intro-panel-text>p:not(.eyebrow) {
    max-width: 620px;
    margin: 22px 0 28px;
    font-size: 17px;
    line-height: 1.6;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: fit-content;
    color: inherit;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.text-link span {
    font-size: 17px;
}

/* Impact */
.featured-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(35px, 7vw, 110px);
    align-items: center;
}

.featured-copy>p:not(.eyebrow) {
    max-width: 650px;
    margin: 24px 0 30px;
    color: #444;
    font-size: 17px;
    line-height: 1.65;
}

.featured-image {
    overflow: hidden;
    min-height: 540px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    min-height: 540px;
    display: block;
    object-fit: cover;
}

/* What we do */
.what-we-do {
    background: #f5f5f2;
}

.section-heading {
    max-width: 900px;
    margin-bottom: 52px;
}

.section-heading>p:not(.eyebrow) {
    max-width: 760px;
    margin: 24px 0 0;
    color: #4c4c4c;
    font-size: 17px;
    line-height: 1.6;
}

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

.feature-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    background: #fff;
    text-decoration: none;
}

.feature-card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #ddd;
}

.feature-card-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.feature-card:hover .feature-card-image img {
    transform: scale(1.035);
}

.feature-card-content {
    flex: 1;
    padding: 28px 28px 32px;
}

.card-number {
    margin: 0 0 25px;
    color: #777;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
}

.feature-card h3 {
    margin: 0;
    font-size: 30px;
    line-height: 1.05;
    letter-spacing: -.03em;
}

.feature-card-content>p:not(.card-number) {
    margin: 18px 0 22px;
    color: #555;
    font-size: 15px;
    line-height: 1.55;
}

.feature-card-content>span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* Commitment */
.statement-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 640px;
    color: #fff;
    background: #111;
}

.statement-image {
    min-height: 520px;
    overflow: hidden;
}

.statement-image img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    display: block;
    object-fit: cover;
}

.statement-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(48px, 7vw, 110px);
}

.statement-content .eyebrow {
    color: rgba(255, 255, 255, .65);
}

.statement-content>p:not(.eyebrow) {
    max-width: 620px;
    margin: 24px 0 30px;
    color: rgba(255, 255, 255, .78);
    font-size: 17px;
    line-height: 1.65;
}

/* News */
.news-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 50px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.news-card {
    min-width: 0;
    border-top: 1px solid #bbb;
}

.news-card>a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.news-image {
    aspect-ratio: 4 / 2.7;
    overflow: hidden;
    margin-bottom: 24px;
    background: #eee;
}

.news-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.news-date {
    margin: 0 0 12px;
    color: #777;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.news-content h3 {
    margin: 0 0 18px;
    font-size: 25px;
    line-height: 1.1;
    letter-spacing: -.025em;
}

.news-content>span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* CTA */
.home-cta {
    color: #fff;
    background: #111;
}

.home-cta-inner {
    min-height: 390px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.home-cta .eyebrow {
    color: rgba(255, 255, 255, .65);
}

.home-cta h2 {
    max-width: 820px;
}

/* ---------------------------------------------------------
   FOOTER
--------------------------------------------------------- */

.site-footer {
    color: #fff;
    background: #111;
}

.footer-main {
    width: min(100% - (var(--gf-gutter) * 2), var(--gf-max));
    margin: 0 auto;
    padding: 75px 0 70px;
    display: grid;
    grid-template-columns: minmax(220px, 1.35fr) repeat(3, minmax(120px, .7fr)) minmax(210px, 1fr);
    gap: 40px;
}

.footer-brand h2 {
    margin: 0 0 18px;
    font-size: 25px;
    letter-spacing: -.03em;
}

.footer-brand img {
    display: block;
    max-width: 180px;
    max-height: 70px;
    object-fit: contain;
    margin-bottom: 20px;
}

.footer-brand p,
.footer-contact p {
    max-width: 290px;
    margin: 0;
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
    line-height: 1.65;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-column h3 {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, .55);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.footer-column a,
.footer-contact a {
    width: fit-content;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.45;
}

.footer-column a:hover,
.footer-contact a:hover {
    opacity: .62;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 15px;
    margin-top: 17px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.footer-social a {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.footer-newsletter {
    width: min(100% - (var(--gf-gutter) * 2), var(--gf-max));
    margin: 0 auto;
    padding: 45px 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.footer-newsletter h2 {
    max-width: 650px;
    margin: 0 0 13px;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1;
    letter-spacing: -.04em;
}

.footer-newsletter>p:not(.eyebrow) {
    max-width: 620px;
    margin: 0 0 25px;
    color: rgba(255, 255, 255, .62);
    line-height: 1.6;
}

.footer-newsletter form {
    display: flex;
    max-width: 620px;
}

.footer-newsletter input {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-right: 0;
    color: #fff;
    background: transparent;
    font: inherit;
}

.footer-newsletter input::placeholder {
    color: rgba(255, 255, 255, .55);
}

.footer-newsletter button {
    height: 50px;
    padding: 0 22px;
    border: 0;
    color: #111;
    background: #fff;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.footer-bottom {
    width: min(100% - (var(--gf-gutter) * 2), var(--gf-max));
    margin: 0 auto;
    padding: 20px 0 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, .16);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, .5);
    font-size: 11px;
}

.footer-bottom>div {
    display: flex;
    gap: 20px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, .7);
    text-decoration: none;
    font-size: 11px;
}

.footer-bottom a:hover {
    color: #fff;
}

/* ---------------------------------------------------------
   MOBILE
--------------------------------------------------------- */

@media (max-width: 1100px) {
    .header-inner {
        min-height: 76px;
    }

    .main-navigation {
        min-height: 76px;
    }

    .main-navigation .nav-item>a,
    .main-navigation>.nav-item>a,
    .main-navigation>a:not(.nav-donate) {
        min-height: 76px;
        padding-left: 9px;
        padding-right: 9px;
        font-size: 12px;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-contact {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .header-inner {
        width: calc(100% - 40px);
        min-height: 72px;
    }

    .site-logo img {
        max-width: 165px;
        max-height: 48px;
    }

    .main-navigation {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        width: 23px;
        height: 1px;
        display: block;
        background: #111;
    }

    .intro-panels,
    .featured-grid,
    .statement-section {
        grid-template-columns: 1fr;
    }

    .intro-panel,
    .intro-panel-image,
    .intro-panel-image img {
        min-height: 390px;
    }

    .intro-panel-text {
        min-height: auto;
    }

    .feature-cards,
    .news-grid {
        grid-template-columns: 1fr;
    }

    .featured-image,
    .featured-image img,
    .statement-image,
    .statement-image img {
        min-height: 360px;
    }

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

    .home-cta-inner {
        justify-content: center;
        padding-top: 65px;
        padding-bottom: 65px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        padding-top: 55px;
    }

    .footer-brand,
    .footer-contact {
        grid-column: 1 / -1;
    }

    .footer-newsletter form {
        flex-direction: column;
        gap: 9px;
    }

    .footer-newsletter input {
        border-right: 1px solid rgba(255, 255, 255, .28);
    }
}

@media (max-width: 480px) {
    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-brand,
    .footer-contact {
        grid-column: auto;
    }

    .hero-content h1 {
        font-size: 46px;
    }

    .section-pad {
        padding-top: 65px;
        padding-bottom: 65px;
    }
}