:root {
    --bg: #ffffff;
    --text: #222222;
    --accent: #2b6cb0;
    --accent-dark: #1a4971;
    --accent-light: #edf2f7;
    --header-bg: #ffffff;

    --footer-bg: #ffffff;
    --footer-text: #1A365D;

    --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 18px;
}

/* ==========================================================================
   WCAG 2.2 AA FOCUS INDICATOR & ACCESSIBLE LINK UNDERLINES
   ========================================================================== */

/* High-contrast, thick visible focus indicator for keyboard/screen reader users */
:focus-visible {
    outline: 3px solid #1a365d;
    outline-offset: 3px;
}

/* Underline body & footer links to satisfy WCAG 1.4.1 (Color is not sole means) */
a {
    color: var(--accent);
    text-decoration: underline;
}

a:focus,
a:hover {
    text-decoration: underline;
    color: var(--accent-dark);
}

/* ==========================================================================
   SKIP TO MAIN CONTENT LINK (WCAG 2.4.1 BYPASS BLOCKS)
   ========================================================================== */

.skip-link {
    position: absolute;
    top: -999px;
    left: 1rem;
    background: #1a365d;
    color: #ffffff !important;
    padding: 0.75rem 1.25rem;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 0 0 6px 6px;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: top 0.15s ease-in-out;
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 0;
    outline: 3px solid #FFC629;
    outline-offset: 2px;
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 0 0 auto;
    padding: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
    background-color: var(--header-bg);
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Header Branding (Logo + Prominent Donate Button) */
.header-branding {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.header-logo-img {
    max-width: 220px;
    width: 100%;
    height: auto;
    display: block;
}

/* Prominent Deep Brand Blue Donate button */
.btn-donate {
    display: inline-block;
    background-color: #2b6cb0;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.55rem 1.25rem;
    border-radius: 6px;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid #2b6cb0;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.btn-donate:hover,
.btn-donate:focus {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    text-decoration: none !important;
}

/* Navigation Links */
.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 1.1rem;
    align-items: center;
}

.site-nav a {
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background-color: transparent;
    text-decoration: none;
}

.site-nav a:focus,
.site-nav a:hover {
    background-color: var(--accent-light);
    text-decoration: underline;
}

.site-nav a[aria-current="page"] {
    font-weight: 700;
    text-decoration: underline;
}

/* Desktop-only 4+4 evenly spread header layout */
@media (min-width: 769px) {
    .site-header .header-inner {
        gap: 2.5rem;
    }

    .header-branding {
        gap: 2rem;
        flex-shrink: 0;
    }

    .site-nav {
        flex: 1;
        display: grid;
        grid-template-columns: repeat(4, auto);
        justify-content: space-between;
        row-gap: 0.5rem;
        column-gap: 1.25rem;
    }

    .site-nav a {
        text-align: center;
        white-space: nowrap;
    }
}

/* ==========================================================================
   HERO BANNER (INSIDE MAIN)
   ========================================================================== */

.hero-banner-container {
    max-width: 1100px;
    margin: 0.75rem auto 1.5rem;
    padding: 0;
    width: 100%;
}

.hero-banner {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    display: block;
}

/* ==========================================================================
   FOOTER (2-COLUMN LEGAL & COMPLIANCE LAYOUT)
   ========================================================================== */

.site-footer {
    background-color: var(--footer-bg);
    border-top: 6px solid #FFC629;
    padding: 2rem 1.5rem;
    margin-top: 2rem;
}

.footer-columns {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2.5rem;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--footer-text);
}

.footer-col {
    flex: 1;
}

.footer-col h2,
.footer-col h3 {
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    color: var(--footer-text);
}

.footer-col address {
    font-style: normal;
}

.footer-col p {
    margin: 0 0 0.5rem 0;
}

.footer-col p:last-child {
    margin-bottom: 0;
}

.footer-phone-link {
    color: #2b6cb0;
    font-weight: 700;
    text-decoration: underline;
}

.footer-phone-link:hover,
.footer-phone-link:focus {
    text-decoration: underline;
}

/* ==========================================================================
   SECTIONS & CARDS
   ========================================================================== */

h1, h2, h3 {
    margin-top: 0;
}

.section {
    margin-bottom: 2rem;
}

.section-highlight {
    background-color: var(--accent-light);
    padding: 1.25rem;
    border-radius: 0.5rem;
}

/* Reusable Mission & Vision Shaded Card */
.mission-vision-box {
    text-align: center;
    margin-bottom: 2rem;
}

.mission-vision-box h2 {
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.mission-vision-box p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.mission-vision-box p:last-child {
    margin-bottom: 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.card {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
    background-color: #ffffff;
}

/* ==========================================================================
   STAFF GRID
   ========================================================================== */

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.staff-card {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1.25rem;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.staff-card h2,
.staff-card h3,
.staff-card p {
    width: 100%;
    text-align: left;
}

.staff-card .staff-title {
    font-style: italic;
    color: #4a5568;
    margin-bottom: 0.75rem;
}

.staff-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   CONTACT & EMBEDS
   ========================================================================== */

.contact-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-header-row h1 {
    margin: 0;
}

.contact-phone-highlight {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
}

.contact-phone-highlight a {
    color: var(--accent);
    text-decoration: underline;
}

.form-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.form-container iframe {
    width: 100%;
    height: 100vh;
    border: none;
}

.form-fallback {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.map-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 1.5rem;
}

.map-image {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   ADA ACCESSIBILITY UTILITY (SCREEN-READER ONLY)
   ========================================================================== */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   PREFERS-REDUCED-MOTION (WCAG 2.3.3)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   RESPONSIVE OVERRIDES (MOBILE & TABLET)
   ========================================================================== */

@media (max-width: 768px) {
    h1, h2, h3 {
        text-align: center;
    }

    .site-header .header-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding: 0.75rem 1rem;
    }

    .header-branding {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .site-nav {
        font-size: 0.95rem;
        justify-content: center;
    }

    .contact-header-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }

    .contact-phone-highlight {
        width: 100%;
        text-align: center;
        font-size: 1.6rem;
    }

    .footer-columns {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    main {
        padding: 1rem;
    }
}
