/* Jobs Call — warm, trustworthy nonprofit theme */
:root {
    --bg: #f6f3ee;
    --bg-card: #fffefb;
    --ink: #1a1f1c;
    --muted: #5c6560;
    --line: #e2ddd4;
    --brand: #1e4d43;
    --brand-light: #2a6b5e;
    --accent: #c45c2a;
    --accent-hover: #a34d23;
    --hero-overlay: rgba(20, 45, 38, 0.72);
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 12px 40px rgba(26, 31, 28, 0.08);
    --font-sans: "DM Sans", system-ui, sans-serif;
    --font-display: "Fraunces", Georgia, serif;
    --max: 1120px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
}

a {
    color: var(--brand-light);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:hover {
    color: var(--brand);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 0.75rem 1rem;
    z-index: 100;
}

.skip-link:focus {
    left: 0;
}

.wrap {
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(246, 243, 238, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    max-width: min(100% - 2rem, calc(var(--max) + 2rem));
    margin-inline: auto;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 1.15rem;
}

.logo:hover {
    color: var(--brand);
}

.logo-mark {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    background: linear-gradient(145deg, var(--brand), var(--brand-light));
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    letter-spacing: -0.02em;
}

.logo-footer .logo-mark {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    border-radius: 1px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1.25rem;
    align-items: center;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--brand);
}

.nav-cta {
    margin-left: 0.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--brand);
    border-color: var(--brand);
}

.btn-secondary:hover {
    background: rgba(30, 77, 67, 0.08);
    color: var(--brand);
}

.btn-ghost {
    background: #fff;
    color: var(--ink);
    border-color: var(--line);
}

.btn-ghost:hover {
    border-color: var(--brand);
    color: var(--brand);
}

/* Hero */
.hero {
    position: relative;
    min-height: min(78vh, 640px);
    display: grid;
    align-items: end;
    color: #fff;
    overflow: hidden;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-bottom: 3rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--brand) center/cover no-repeat;
    background-image:
        linear-gradient(var(--hero-overlay), var(--hero-overlay)),
        url("https://images.unsplash.com/photo-1521737711867-e3b97375f902?auto=format&fit=crop&w=1920&q=80");
}

.hero-inner {
    position: relative;
    padding: 4rem 0 3.5rem;
    width: min(100% - 2rem, var(--max));
    margin-inline: auto;
}

.hero-eyebrow {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.9;
    margin: 0 0 0.75rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1rem;
    max-width: 16ch;
}

.hero-lead {
    font-size: 1.15rem;
    max-width: 36ch;
    opacity: 0.95;
    margin: 0 0 1.75rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hero .btn-primary {
    background: #fff;
    color: var(--brand);
    border-color: #fff;
}

.hero .btn-primary:hover {
    background: var(--bg);
    border-color: var(--bg);
    color: var(--brand);
}

.hero .btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.65);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Sections */
.section {
    padding: 3rem 0;
}

.section-head {
    max-width: 52ch;
    margin-bottom: 2rem;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    margin: 0 0 0.75rem;
    color: var(--ink);
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: -4rem;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.35rem 1.25rem;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--brand);
    margin: 0 0 0.35rem;
    line-height: 1.2;
}

.stat-label {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

/* Cards grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(26, 31, 28, 0.06);
    transition: box-shadow 0.25s, transform 0.2s;
}

.card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.card-img {
    aspect-ratio: 4/3;
    object-fit: cover;
    width: 100%;
    border-radius: 0;
}

.card-body {
    padding: 1.35rem 1.5rem 1.5rem;
}

.card-body h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
}

.card-body p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

/* Split */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.split-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.split-text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.5vw, 2rem);
    margin-top: 0;
}

.split-text p {
    color: var(--muted);
}

/* CTA band */
.cta-band {
    background: linear-gradient(135deg, var(--brand) 0%, #163d35 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 2.75rem 2.5rem;
    margin: 3rem auto;
    width: min(100% - 2rem, var(--max));
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cta-band h2 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    margin: 0;
}

.cta-band p {
    margin: 0.35rem 0 0;
    opacity: 0.92;
    max-width: 42ch;
}

.cta-band .btn-primary {
    background: #fff;
    color: var(--brand);
    border-color: #fff;
}

.cta-band .btn-primary:hover {
    background: var(--bg);
    border-color: var(--bg);
}

/* Page hero (inner pages) */
.page-hero {
    padding: 2.5rem 0 2rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 2.5rem;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.5vw, 2.5rem);
    margin: 0 0 0.5rem;
}

.page-hero p {
    margin: 0;
    color: var(--muted);
    max-width: 55ch;
}

.prose {
    max-width: 65ch;
}

.prose h2 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    margin-top: 2rem;
}

.prose ul {
    padding-left: 1.25rem;
}

.prose li {
    margin-bottom: 0.5rem;
    color: var(--muted);
}

/* Donate */
.donate-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.donate-card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.donate-card h2 {
    font-family: var(--font-display);
    margin-top: 0;
    font-size: 1.35rem;
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.amount-grid input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.amount-grid label {
    display: block;
    text-align: center;
    padding: 0.75rem;
    border: 2px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    font-weight: 600;
    transition: border-color 0.2s, background 0.2s;
}

.amount-grid input:checked + label {
    border-color: var(--brand);
    background: rgba(30, 77, 67, 0.08);
    color: var(--brand);
}

.form-row {
    margin-bottom: 1rem;
}

.form-row label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
}

.form-row textarea {
    min-height: 100px;
    resize: vertical;
}

.form-note {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 1rem;
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #e8f5f0;
    border: 1px solid #a3d4c4;
    color: #1a4d3f;
}

.alert-error {
    background: #fdeeee;
    border: 1px solid #f0b4b4;
    color: #7a2323;
}

/* Footer */
.site-footer {
    background: #121816;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 4rem;
    padding-top: 3rem;
}

.site-footer a {
    color: #c8e6de;
    text-decoration: none;
}

.site-footer a:hover {
    color: #fff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    margin: 0.75rem 0 0;
    max-width: 32ch;
    font-size: 0.95rem;
    opacity: 0.85;
}

.footer-brand .ein {
    font-size: 0.8rem;
    opacity: 0.65;
    margin-top: 1rem;
}

.footer-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 1rem;
    opacity: 0.7;
}

.footer-links,
.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0 2rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-bottom p {
    margin: 0;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.gallery img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius);
}

/* Responsive */
@media (max-width: 900px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -2rem;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .donate-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: fixed;
        inset: 0 0 auto auto;
        top: 4rem;
        right: 1rem;
        left: 1rem;
        background: var(--bg-card);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 1.25rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        box-shadow: var(--shadow);
        display: none;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-cta {
        margin-left: 0;
        text-align: center;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
