/* ==========================================================================
   Medical Mission of Hope to Zambia — shared site styles
   Design direction: "Borehole"

   The system is drawn from what MMHZ delivers: groundwater. Deep water
   indigo and borehole teal carry the page; copper — the material Zambia
   is built on — is reserved for actions, and appears nowhere else.

   This file is the single source of truth for the chrome every page
   shares: tokens, type, header, navigation, buttons, and footer.
   Page-specific styles stay in each page's own <style> block and should
   be written against the tokens below, never against raw hex values.
   ========================================================================== */

:root {
    /* Core palette */
    --ink:        #0B2A3B;   /* deep water — text and dark grounds     */
    --teal:       #0E6E7A;   /* borehole teal — links, rules, accents  */
    --teal-deep:  #0A555F;   /* teal, pressed                          */
    --copper:     #AD5D2A;   /* actions only — never decoration        */
    --copper-deep:#8C4A1E;   /* copper, pressed                        */
    --bone:       #F2EFE9;   /* paper                                  */
    --water:      #DCE9EA;   /* tinted bands                           */
    --sand:       #E8B48D;   /* eyebrows on dark grounds               */

    /* Derived neutrals — biased toward the ink, never a flat grey */
    --ink-70:  rgba(11, 42, 59, .72);
    --ink-55:  rgba(11, 42, 59, .66);
    --line:    rgba(11, 42, 59, .14);
    --line-2:  rgba(11, 42, 59, .26);
    --on-dark: #FFFDF9;
    --on-dark-70: rgba(255, 253, 249, .78);

    /* Semantic — kept distinct from the accent */
    --good:    #0E7C5A;
    --good-bg: #E7F3ED;
    --bad:     #B23A2F;
    --bad-bg:  #F8EBE9;

    /* Type */
    --display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    --body:    'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mono:    'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

    --radius:  3px;          /* near-square: this is field equipment, not a SaaS card */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--body);
    line-height: 1.6;
    color: var(--ink);
    background: var(--bone);
}

/* Headings carry the condensed display face site-wide. Pages set their own
   sizes; they must not set their own families. */
h1, h2, h3 {
    font-family: var(--display);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.005em;
    text-wrap: balance;
}

a { color: var(--teal); }

:focus-visible {
    outline: 2px solid var(--copper);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
header {
    background: var(--bone);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--ink);
}

.logo img {
    height: 120px;
    width: auto;
}

.logo-text {
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: .01em;
    text-transform: uppercase;
    max-width: 15ch;
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    font-size: .95rem;
    transition: color .25s;
}

nav a:hover {
    color: var(--teal);
}

/* --------------------------------------------------------------------------
   Buttons — copper carries every action on the site
   -------------------------------------------------------------------------- */
.btn-primary {
    background: var(--copper);
    color: var(--on-dark);
    padding: .85rem 1.6rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: .875rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: background .25s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--copper-deep);
}

.btn-secondary {
    background: transparent;
    color: var(--teal);
    padding: .85rem 1.6rem;
    border: 1px solid var(--teal);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: .875rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: background .25s, color .25s;
    cursor: pointer;
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--teal);
    color: var(--on-dark);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--ink);
    line-height: 1;
    padding: .25rem .5rem;
}

/* --------------------------------------------------------------------------
   Level line — the signature structural device. A hairline with a label,
   marking each section the way a depth is marked on a borehole log.
   -------------------------------------------------------------------------- */
.level {
    display: flex;
    align-items: center;
    gap: .9rem;
    font-family: var(--mono);
    font-size: .66rem;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 1.6rem;
}

.level::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(14, 110, 122, .35);
}

/* Shared page-title band for the inner pages */
.page-hero {
    background: var(--ink);
    color: var(--on-dark);
    padding: 4.5rem 2rem 4rem;
    text-align: left;
}

.page-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.page-hero .eyebrow {
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: .9rem;
}

.page-hero h1 {
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(2.4rem, 6vw, 4rem);
    line-height: .98;
    letter-spacing: -.005em;
}

.page-hero p {
    color: var(--on-dark-70);
    max-width: 58ch;
    margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
    background: var(--ink);
    color: var(--on-dark);
    padding: 3.5rem 2rem 1.25rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 50px;
}

.footer-logo span {
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
}

.footer-section h3 {
    font-family: var(--mono);
    font-weight: 500;
    font-size: .7rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
    color: var(--on-dark-70);
    text-decoration: none;
    display: block;
    margin-bottom: .5rem;
    font-size: .95rem;
}

.footer-section a:hover {
    color: var(--on-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(232, 180, 141, .25);
    padding-top: 1rem;
    text-align: center;
    color: var(--on-dark-70);
    font-size: .9rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .header-container {
        padding: 1rem;
        position: relative;
    }

    /* The full-size logo is too tall for a phone once the org name wraps. */
    .logo img {
        height: 70px;
    }

    .logo-text {
        font-size: 1.05rem;
    }

    /* Nav collapses behind the ☰ button; script.js toggles .open. */
    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bone);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 8px 16px rgba(11, 42, 59, .12);
        padding: .5rem 1rem 1rem;
    }

    nav.open {
        display: flex;
    }

    nav a {
        padding: .75rem 0;
        border-bottom: 1px solid var(--line);
    }

    nav a:last-child {
        border-bottom: none;
    }

    nav .btn-primary {
        margin-top: .75rem;
        text-align: center;
    }

    .mobile-menu-btn {
        display: block;
    }

    .page-hero {
        padding: 3rem 1.25rem 2.75rem;
    }

    .footer-top {
        gap: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
