/* ==========================================
   Akhiezer Heritage Foundation — Styles
   Aesthetic: Warm, refined, editorial
   Fonts: Cormorant Garamond (display) + Nunito Sans (body)
   Palette: Deep navy, warm gold, soft cream
   ========================================== */

:root {
    --color-navy: #1a2744;
    --color-navy-light: #263a5e;
    --color-gold: #c4973b;
    --color-gold-light: #ddb565;
    --color-gold-pale: #f5e6c8;
    --color-cream: #faf8f4;
    --color-cream-dark: #f0ece4;
    --color-text: #2d2d2d;
    --color-text-light: #5a5a5a;
    --color-text-muted: #8a8a8a;
    --color-white: #ffffff;
    --color-border: #e4dfd6;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --max-width: 1140px;
    --section-padding: 6rem 0;
}

/* ==========================================
   Reset & Base
   ========================================== */

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

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

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a {
    color: var(--color-gold);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover { color: var(--color-gold-light); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================
   Typography
   ========================================== */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-navy);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--color-gold);
    margin: 0.8rem auto 0;
}

/* ==========================================
   Navbar
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 39, 68, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(196, 151, 59, 0.15);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-white);
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
}
.nav-logo:hover { color: var(--color-gold-pale); }

.logo-img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav-links a {
    display: block;
    padding: 0.5rem 1rem;
    color: rgba(255,255,255,0.8);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.nav-links a.active { color: var(--color-gold-light); }
.nav-links a.coming-soon {
    color: rgba(255,255,255,0.35);
    cursor: default;
    position: relative;
}
.nav-links a.coming-soon:hover {
    background: none;
    color: rgba(255,255,255,0.35);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

/* ==========================================
   Hero
   ========================================== */

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 120px 2rem 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(196, 151, 59, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(196, 151, 59, 0.05) 0%, transparent 50%),
        linear-gradient(170deg, var(--color-navy) 0%, #1e3050 40%, #243b5c 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c4973b' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    animation: fadeUp 0.8s ease-out;
}

.hero-logo {
    width: 180px;
    height: auto;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
}

.hero h1 {
    color: var(--color-white);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 2.5rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-gold);
    color: var(--color-navy);
    border-color: var(--color-gold);
}
.btn-primary:hover {
    background: var(--color-gold-light);
    border-color: var(--color-gold-light);
    color: var(--color-navy);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(196, 151, 59, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255,255,255,0.3);
}
.btn-secondary:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
}

.btn-outline {
    background: transparent;
    color: var(--color-navy);
    border-color: var(--color-navy);
}
.btn-outline:hover {
    background: var(--color-navy);
    color: var(--color-white);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

.text-link {
    font-weight: 600;
    color: var(--color-gold);
    display: inline-block;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.text-link:hover { border-color: var(--color-gold); }

/* ==========================================
   Pillars
   ========================================== */

.pillars {
    padding: var(--section-padding);
    background: var(--color-white);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.pillar-card {
    padding: 2.5rem 2rem;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: var(--color-cream);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}

.pillar-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-gold-pale);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.pillar-card h3 {
    margin-bottom: 0.75rem;
}

.pillar-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ==========================================
   Legacy (Homepage)
   ========================================== */

.legacy {
    padding: var(--section-padding);
    background: var(--color-cream);
}

.legacy-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}

.legacy-photo img,
.naum-photo img {
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    width: 100%;
    height: auto;
}

.photo-caption {
    text-align: center;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 0.75rem;
}

.legacy-text h2 {
    margin-bottom: 1.5rem;
}

.legacy-text p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.legacy-text .text-link {
    margin-top: 0.5rem;
}

/* ==========================================
   CTA
   ========================================== */

.cta {
    padding: 5rem 0;
    background: var(--color-navy);
    text-align: center;
}

.cta-content h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255,255,255,0.7);
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto 2rem;
}

/* ==========================================
   Page Header (About, Donate)
   ========================================== */

.page-header {
    padding: 140px 0 60px;
    background: linear-gradient(170deg, var(--color-navy) 0%, #243b5c 100%);
    text-align: center;
}

.page-header h1 {
    color: var(--color-white);
    margin-bottom: 0.75rem;
}

.page-subtitle {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--color-gold-light);
}

/* ==========================================
   About Page
   ========================================== */

.about-intro {
    padding: 4rem 0 2rem;
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-text-light);
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.about-mission {
    padding: var(--section-padding);
    background: var(--color-white);
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.mission-item {
    padding: 2.5rem;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: var(--color-cream);
}

.mission-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 0.75rem;
    line-height: 1;
}

.mission-item h3 {
    margin-bottom: 0.75rem;
}

.mission-item p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* Naum Akhiezer section on About page */
.about-naum {
    padding: var(--section-padding);
    background: var(--color-cream);
}

.naum-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}

.naum-photo {
    position: sticky;
    top: 100px;
}

.naum-content h2 {
    margin-bottom: 1.5rem;
}

.naum-content p {
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.about-contact {
    padding: var(--section-padding);
    background: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.contact-card {
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--color-border);
}

.contact-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.contact-card a {
    color: var(--color-gold);
    font-weight: 600;
}

.contact-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ==========================================
   Donate Page
   ========================================== */

.donate-intro {
    padding: 4rem 0 2rem;
}

.donate-tax-info {
    padding: 0 0 3rem;
}

.info-banner {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--color-gold-pale);
    border-radius: 10px;
    border-left: 4px solid var(--color-gold);
}

.info-icon {
    flex-shrink: 0;
    color: var(--color-gold);
    margin-top: 2px;
}

.info-text h3 {
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.info-text p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}
.info-text p:last-child { margin-bottom: 0; }

.donate-methods {
    padding: var(--section-padding);
    background: var(--color-white);
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.method-card {
    padding: 2.5rem 2rem;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: var(--color-cream);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.method-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-gold-pale);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.method-card h3 {
    margin-bottom: 0.75rem;
}

.method-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
}

.method-note {
    font-size: 0.85rem !important;
    color: var(--color-text-muted) !important;
    margin-top: auto;
    margin-bottom: 0 !important;
}

.paypal-button-wrapper {
    margin: 0.5rem 0 1rem;
}

.paypal-button-wrapper form {
    display: inline-block;
}

.check-details {
    text-align: left;
    width: 100%;
    padding: 1.25rem;
    background: var(--color-white);
    border-radius: 8px;
    border: 1px solid var(--color-border);
}

.check-details p {
    font-size: 0.92rem;
    margin-bottom: 0.75rem;
}
.check-details p:last-child { margin-bottom: 0; }

.donate-impact {
    padding: var(--section-padding);
    background: var(--color-cream);
    text-align: center;
}

.impact-content {
    max-width: 640px;
    margin: 0 auto;
}

.impact-content h2 {
    margin-bottom: 1.25rem;
}

.impact-content p {
    color: var(--color-text-light);
    font-size: 1.05rem;
}

/* ==========================================
   Footer
   ========================================== */

.footer {
    background: var(--color-navy);
    color: rgba(255,255,255,0.65);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer h4 {
    color: var(--color-white);
    font-size: 0.95rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--color-gold-light); }

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: var(--color-gold-light);
}

.ein {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.6;
}

.footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.5;
}

/* ==========================================
   Animations
   ========================================== */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 900px) {
    .pillars-grid,
    .methods-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .mission-grid {
        grid-template-columns: 1fr;
    }

    .legacy-content,
    .naum-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .legacy-photo,
    .naum-photo {
        max-width: 300px;
        margin: 0 auto;
        position: static;
    }

    .legacy-text,
    .naum-content {
        text-align: left;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero {
        min-height: 70vh;
        padding: 120px 1.5rem 60px;
    }

    .hero-logo {
        width: 140px;
    }
}

@media (max-width: 700px) {
    .nav-toggle { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-navy);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .nav-links.open { display: flex; }

    .nav-links a {
        padding: 0.75rem 1rem;
    }

    .info-banner {
        flex-direction: column;
    }

    .hero-description {
        font-size: 1rem;
    }

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