:root {
    --primary: #6b5344;
    --primary-deep: #4a3728;
    --secondary: #f39c12;
    --success: #27ae60;
    --gold: #f1c40f;
    --bg: #fffdf8;
    --text: #1e293b;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Open Sans", system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .btn, .section-eyebrow {
    font-family: "Poppins", system-ui, sans-serif;
}

a { color: var(--primary); }
a:hover { color: var(--secondary); }

.text-primary-deep { color: var(--primary-deep); }
.bg-primary-deep { background: var(--primary-deep); }
.bg-gold { background: var(--gold); }
.bg-info { background: var(--primary) !important; }
.text-bg-info { background: var(--primary) !important; color: white !important; }
.btn-info { background: var(--primary); border-color: var(--primary); }
.btn-info:hover { background: var(--primary-deep); border-color: var(--primary-deep); }
.btn-outline-info { color: var(--primary); border-color: var(--primary); }
.btn-outline-info:hover { background: var(--primary); border-color: var(--primary); }
/* Override Bootstrap primary classes to use brown */
.bg-primary { background: var(--primary) !important; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-deep); border-color: var(--primary-deep); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); border-color: var(--primary); color: white; }
.text-primary { color: var(--primary) !important; }
.tracking { letter-spacing: .18em; }

.navbar .nav-link {
    color: rgba(30, 41, 59, .78);
    font-weight: 600;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
    background: #f3f6f9;
    color: var(--primary);
}

.icon-box {
    align-items: center;
    border-radius: 1rem;
    display: inline-flex;
    justify-content: center;
}

.site-logo {
    height: 3rem;
    object-fit: contain;
    width: auto;
}

.footer-logo {
    background: rgba(255,255,255,.92);
    border-radius: .75rem;
    padding: .25rem;
}

.icon-box {
    font-size: 1.35rem;
    height: 3rem;
    width: 3rem;
}

.section-eyebrow {
    color: var(--secondary);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hero-section,
.page-hero {
    overflow: hidden;
    position: relative;
}

.hero-section {
    min-height: 720px;
}

.hero-bg,
.hero-overlay {
    inset: 0;
    position: absolute;
}

.hero-bg {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(6,43,69,.96), rgba(10,61,98,.9) 52%, rgba(243,156,18,.42));
}

.page-hero,
.impact-callout {
    background: linear-gradient(135deg, rgba(6,43,69,.96), rgba(10,61,98,.9) 52%, rgba(243,156,18,.42));
}

.hero-copy {
    color: rgba(255,255,255,.84);
    max-width: 720px;
}

.glass-card {
    background: rgba(255,255,255,.84);
    border: 1px solid rgba(255,255,255,.62);
    backdrop-filter: blur(14px);
}

.program-card,
.action-card,
.news-card {
    transition: transform .22s ease, box-shadow .22s ease;
}

.program-card:hover,
.action-card:hover,
.news-card:hover {
    box-shadow: 0 20px 56px -26px rgba(243,156,18,.75) !important;
    transform: translateY(-4px);
}

.warm-shadow {
    box-shadow: 0 22px 60px -28px rgba(243,156,18,.85);
}

.stat-tile {
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.16);
}

.timeline {
    border-left: 2px solid rgba(243,156,18,.45);
    list-style: none;
    margin-left: 1rem;
    padding-left: 2rem;
}

.timeline li {
    margin-bottom: 2rem;
    position: relative;
}

.timeline li::before {
    background: var(--secondary);
    border: 4px solid var(--bg);
    border-radius: 50%;
    content: "";
    height: 1.25rem;
    left: -2.65rem;
    position: absolute;
    top: .25rem;
    width: 1.25rem;
}

.gallery-card {
    background: transparent;
    border: 0;
    border-radius: 1rem;
    display: block;
    overflow: hidden;
    padding: 0;
    position: relative;
    width: 100%;
}

.gallery-card img {
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
    width: 100%;
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.gallery-card span {
    background: rgba(6,43,69,.86);
    border-radius: 999px;
    bottom: .75rem;
    color: white;
    font-size: .75rem;
    font-weight: 700;
    left: .75rem;
    padding: .35rem .75rem;
    position: absolute;
}

.site-footer {
    background: var(--primary-deep);
}

.site-footer a,
.footer-links a {
    color: rgba(255,255,255,.76);
    text-decoration: none;
}

.footer-links li {
    margin-bottom: .65rem;
}

.site-footer a:hover,
.footer-links a:hover {
    color: var(--secondary);
}

.social-link {
    align-items: center;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    display: inline-flex;
    height: 2.25rem;
    justify-content: center;
    width: 2.25rem;
}

.card-img-top {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

@media (max-width: 767px) {
    .hero-section {
        min-height: auto;
    }

    .display-3 {
        font-size: 2.75rem;
    }
}
