/* ============================================================
   Emergency Assistance Foundation — brand stylesheet
   Rebuilt from eafcares.org (BeTheme) as clean, minimal CSS.
   Palette + fonts derived from the original site.
   ============================================================ */

:root {
    --eaf-blue: #0e395b; /* #0c4875; */ /* primary deep blue */
    --eaf-blue-dark: #0e395b; /* darker blue (hovers) */
    --eaf-navy: #161922; /* footer / dark sections */
    --eaf-light-blue: #70bfe5; /* light accent */
    --eaf-bright-blue: #0089f7; /* bright accent */
    --eaf-link: #0573bb; /* link blue */
    --eaf-gold: #ebca6e; /* gold accent (CTA) */
    --eaf-gray: #626262; /* body text gray */
    --eaf-light-gray: #f2f2f2; /* section backgrounds */
    --eaf-border: #ebebeb;
    --eaf-heading-font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    --eaf-body-font: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }

body {
    font-family: var(--eaf-body-font);
    color: var(--eaf-gray);
    font-size: 1.0625rem;
    line-height: 1.7;
    margin: 0;
}

h1, h2, h3, h4, h5, h6, .display-eaf {
    font-family: var(--eaf-heading-font);
    color: var(--eaf-blue);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }

a { color: var(--eaf-link); text-decoration: none; }
a:hover { color: var(--eaf-blue-dark); text-decoration: underline; }

.text-eaf-blue { color: var(--eaf-blue) !important; }
.text-eaf-gold { color: var(--eaf-gold) !important; }
.bg-eaf-blue { background-color: var(--eaf-blue) !important; }
.bg-eaf-navy { background-color: var(--eaf-navy) !important; }
.bg-eaf-light { background-color: var(--eaf-light-gray) !important; }

/* ---------- Buttons ---------- */
.btn-eaf {
    background-color: var(--eaf-blue);
    color: #fff;
    font-family: var(--eaf-heading-font);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .85rem;
    padding: .75rem 1.75rem;
    border: 2px solid var(--eaf-blue);
    border-radius: 2px;
    transition: all .2s ease;
}
.btn-eaf:hover {
    background-color: var(--eaf-blue-dark);
    border-color: var(--eaf-blue-dark);
    color: #fff;
    text-decoration: none;
}
.btn-eaf-gold {
    background-color: var(--eaf-gold);
    color: var(--eaf-navy);
    border-color: var(--eaf-gold);
}
.btn-eaf-gold:hover {
    background-color: #e0bb52;
    border-color: #e0bb52;
    color: var(--eaf-navy);
}
.btn-eaf-outline {
    background-color: transparent;
    color: var(--eaf-blue);
}
.btn-eaf-outline:hover { background-color: var(--eaf-blue); color: #fff; }
.btn-eaf-outline-light {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}
.btn-eaf-outline-light:hover { background-color: #fff; color: var(--eaf-blue); }

/* ---------- Header / Nav ---------- */
.eaf-navbar {
    background: #fff;
    box-shadow: 0 1px 8px rgba(0,0,0,.06);
    padding: .25rem 0;
}
.eaf-navbar .navbar-brand img { height: 56px; width: auto; }
.eaf-navbar .nav-link {
    font-family: var(--eaf-heading-font);
    font-weight: 600;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--eaf-navy) !important;
    padding: .5rem .85rem !important;
}
.eaf-navbar .nav-link:hover,
.eaf-navbar .nav-link.active { color: var(--eaf-blue) !important; }
.eaf-navbar .dropdown-menu {
    border: none;
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
    border-top: 3px solid var(--eaf-blue);
    border-radius: 0;
    font-family: var(--eaf-heading-font);
}
.eaf-navbar .dropdown-item {
    font-size: .82rem;
    font-weight: 500;
    padding: .5rem 1.1rem;
    text-transform: uppercase;
    letter-spacing: .02em;
}
.eaf-navbar .dropdown-item:hover {
    background: var(--eaf-light-gray);
    color: var(--eaf-blue);
}

/* ---------- Sections ---------- */
.eaf-section { padding: 4.5rem 0; }
.eaf-section-sm { padding: 3rem 0; }
.eaf-eyebrow {
    font-family: var(--eaf-heading-font);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
    font-size: .8rem;
    color: var(--eaf-light-blue);
    margin-bottom: .75rem;
}

/* ---------- Hero ---------- */
.eaf-hero {
    background: linear-gradient(180deg, #f7fbfe 0%, #eaf3fa 100%);
    padding: 5rem 0;
}
.eaf-hero h1 { margin-bottom: 1.25rem; }
.eaf-hero .lead { font-size: 1.2rem; color: var(--eaf-gray); }

/*----Home page hero-----*/

.hero-home-banner {
    position: relative;
    background-image: url('../images/homehero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}

/* Dark overlay so the text stays readable over the photo */
.hero-home-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

/*----Funds page hero (same approach as home)-----*/
.hero-funds-banner {
    position: relative;
    background-image: url('../images/fundshero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}

/*----Contact page hero (same approach as home)-----*/
.hero-contact-banner {
    position: relative;
    background-image: url('../images/contacthero.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
}

.hero-contact-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
}

/* ---------- Stat blocks ---------- */
.eaf-stat { text-align: center; padding: 1rem; }
.eaf-stat .eaf-stat-num {
    font-family: var(--eaf-heading-font);
    font-weight: 700;
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    color: var(--eaf-blue);
    line-height: 1;
}
.eaf-stat .eaf-stat-label {
    font-size: .95rem;
    color: var(--eaf-gray);
    margin-top: .5rem;
}
.eaf-bigstat {
    font-family: var(--eaf-heading-font);
    font-weight: 700;
    color: var(--eaf-blue);
    font-size: clamp(1.8rem, 4vw, 2.75rem);
    line-height: 1.25;
}

/* ---------- Cards / stories ---------- */
.eaf-card {
    background: #fff;
    border: 1px solid var(--eaf-border);
    border-radius: 4px;
    padding: 2rem;
    height: 100%;
}
.eaf-quote {
    border-left: 4px solid var(--eaf-light-blue);
    padding-left: 1.25rem;
    font-style: italic;
    color: var(--eaf-gray);
}
.eaf-citation { font-size: .8rem; color: #929292; font-style: italic; }

/* ---------- Footer ---------- */
.eaf-footer {
    background: var(--eaf-navy);
    color: #c7ccd6;
    padding: 3.5rem 0 1.5rem;
    font-size: .92rem;
}
.eaf-footer h5 {
    color: #fff;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1rem;
}
.eaf-footer a { color: #c7ccd6; }
.eaf-footer a:hover { color: #fff; text-decoration: none; }
.eaf-footer ul { list-style: none; padding: 0; margin: 0; }
.eaf-footer li { margin-bottom: .5rem; }
.eaf-footer .eaf-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.12);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    font-size: .82rem;
    color: #8b91a0;
}
.eaf-footer .eaf-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;
    margin-right: .5rem;
    transition: all .2s ease;
}
.eaf-footer .eaf-social a:hover {
    background: var(--eaf-blue);
    border-color: var(--eaf-blue);
}

/* ---------- Fund portal grid ---------- */
.eaf-fund-logo {
    background: #fff;
    border: 1px solid var(--eaf-border);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .75rem;
    height: 90px;
}
.eaf-fund-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
