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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: #1f1f1f;
    color: #fff;
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    line-height: 1.75;
}

/* =================== HEADER =================== */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 204, 102, 0.15);
    padding: 14px 0;
    transition: padding 0.3s ease, background 0.3s ease;
}

#site-header.scrolled {
    padding: 8px 0;
    background: rgba(12, 12, 12, 0.98);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-logo img {
    height: 48px;
    display: block;
    transition: height 0.3s ease;
}

#site-header.scrolled .nav-logo img {
    height: 36px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    color: #ddd;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #FFCC66;
}

.nav-links .nav-cta {
    background: #FFCC66;
    color: #1a1a1a;
    padding: 9px 22px;
    border-radius: 4px;
    transition: background 0.2s;
}

.nav-links .nav-cta:hover {
    background: #e6b84d;
    color: #1a1a1a;
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 10;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =================== HERO =================== */
#hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    z-index: 0;
}

.hero-bg.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.72) 60%, rgba(0,0,0,0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    padding: 140px 24px 80px;
    width: 100%;
}

.hero-eyebrow {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #FFCC66;
    margin-bottom: 16px;
    font-weight: 600;
}

.hero-content h1 {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 2px 30px rgba(0,0,0,0.6);
    white-space: nowrap;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #ddd;
    margin-bottom: 44px;
    line-height: 1.7;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    z-index: 2;
    transition: color 0.2s;
    animation: bounce 2s infinite;
}

.hero-scroll:hover {
    color: #FFCC66;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

/* =================== BUTTONS =================== */
.btn {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
    line-height: 1.3;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn-primary {
    background: #FFCC66;
    color: #1a1a1a;
}

.btn-primary:hover {
    background: #f5c24a;
    color: #1a1a1a;
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.6);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.btn-large {
    padding: 16px 40px;
    font-size: 14px;
}

.btn-sub {
    display: block;
    font-size: 11px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    margin-top: 3px;
    opacity: 0.75;
}

/* =================== SECTIONS =================== */
section {
    padding: 88px 0;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    color: #FFCC66;
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-subtitle {
    text-align: center;
    color: #aaa;
    font-size: 1.05rem;
    margin-bottom: 56px;
}

/* =================== ABOUT =================== */
#about {
    background: #252525;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    margin-top: 48px;
    align-items: start;
}

.about-text p {
    color: #ccc;
    font-size: 1.02rem;
    margin-bottom: 18px;
}

.about-text a {
    color: #FFCC66;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.about-text a:hover {
    color: #f5c24a;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #1f1f1f;
    border: 1px solid rgba(255, 204, 102, 0.25);
    border-radius: 6px;
    padding: 24px 16px;
}

.stat-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFCC66;
    margin-bottom: 6px;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
}

/* =================== PROGRAM =================== */
#program {
    background: #1f1f1f;
}

.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.pillar {
    background: #252525;
    border-top: 3px solid #FFCC66;
    border-radius: 4px;
    padding: 32px 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}

.pillar-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 16px;
    color: #FFCC66;
}

.pillar-icon svg {
    width: 100%;
    height: 100%;
}

.pillar h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    color: #FFCC66;
    margin-bottom: 12px;
}

.pillar p {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.75;
}

/* =================== APPLY =================== */
#apply {
    background: #252525;
}

.apply-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    margin-top: 48px;
}

.apply-eligibility h3,
.apply-cta h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    color: #FFCC66;
    margin-bottom: 20px;
}

.apply-eligibility ul {
    list-style: none;
}

.apply-eligibility ul li {
    color: #ccc;
    padding: 11px 0 11px 28px;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.97rem;
    line-height: 1.6;
}

.apply-eligibility ul li:first-child {
    border-top: 1px solid rgba(255,255,255,0.06);
}

.apply-eligibility ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #FFCC66;
    font-weight: 700;
}

.apply-eligibility ul li a {
    color: #FFCC66;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.apply-eligibility ul li a:hover {
    color: #f5c24a;
}

.apply-cta p {
    color: #ccc;
    margin-bottom: 16px;
    font-size: 0.97rem;
    line-height: 1.75;
}

/* =================== DONATE =================== */
#donate {
    background: #1f1f1f;
}

.donate-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 56px;
    margin-top: 48px;
    align-items: center;
}

.donate-text blockquote {
    border-left: 4px solid #FFCC66;
    padding: 14px 20px;
    margin-bottom: 28px;
    font-style: italic;
    color: #eee;
    font-size: 1.1rem;
    line-height: 1.65;
}

.donate-text blockquote cite {
    display: block;
    color: #888;
    font-size: 0.85rem;
    margin-top: 10px;
    font-style: normal;
}

.donate-text p {
    color: #ccc;
    margin-bottom: 16px;
    font-size: 0.97rem;
}

.donate-text p:last-of-type {
    margin-bottom: 28px;
}

.donate-qr {
    text-align: center;
}

.donate-qr a {
    display: inline-block;
    text-decoration: none;
}

.donate-qr img {
    width: 176px;
    max-width: 100%;
    border: 4px solid rgba(255, 204, 102, 0.3);
    border-radius: 8px;
    transition: border-color 0.2s;
    display: block;
    margin: 0 auto;
}

.donate-qr a:hover img {
    border-color: #FFCC66;
}

.donate-qr p {
    color: #777;
    font-size: 0.8rem;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* =================== FOOTER =================== */
#site-footer {
    background: #111;
    text-align: center;
    padding: 56px 24px;
    border-top: 1px solid rgba(255, 204, 102, 0.15);
}

.footer-logo {
    height: 56px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-org {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.footer-status {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.footer-contact a {
    color: #FFCC66;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: #f5c24a;
    text-decoration: underline;
}

.footer-copy {
    margin-top: 20px;
    color: #444;
    font-size: 0.75rem;
}

/* =================== RESPONSIVE =================== */

/* Tablet and up */
@media (min-width: 640px) {
    .pillars-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Desktop */
@media (min-width: 900px) {
    .pillars-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

    .about-grid {
        grid-template-columns: 1.4fr 1fr;
        align-items: center;
    }

    .apply-grid {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .donate-grid {
        grid-template-columns: 1.5fr 1fr;
    }

    section {
        padding: 104px 0;
    }
}

/* Mobile only */
@media (max-width: 767px) {
    /* Hero title — scale to fit on one line */
    .hero-content h1 {
        font-size: 7.5vw;
        white-space: nowrap;
    }

    /* Logo — override both base and scrolled states so height stays auto */
    .nav-logo img,
    #site-header.scrolled .nav-logo img {
        width: 240px;
        height: auto;
    }

    /* Footer logo */
    .footer-logo {
        width: 300px;
        max-width: 70vw;
        height: auto;
    }

    /* Mobile nav */
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        background: rgba(14, 14, 14, 0.98);
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0 16px;
        gap: 0;
        border-bottom: 1px solid rgba(255,204,102,0.15);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 13px 24px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        font-size: 14px;
    }

    .nav-links .nav-cta {
        margin: 12px 24px 0;
        text-align: center;
        border-radius: 4px;
        padding: 12px 24px;
        border-bottom: none;
    }

    /* Hero */
    #hero {
        background-attachment: scroll;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Stats */
    .about-stats {
        grid-template-columns: 1fr 1fr;
    }
}
