/* ============================================
   HHW3 — Main stylesheet (shared across all pages)
   Base tokens, typography, buttons, sections, gallery
   ============================================ */

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

:root {
    --forest: #14352A;
    --forest-mid: #1E4D3D;
    --sage: #3D7A5F;
    --mint: #7EC8A0;
    --gold: #D4A24E;
    --gold-light: #F2D98D;
    --gold-glow: rgba(212,162,78,0.15);
    --cream: #FAF8F3;
    --warm: #F3EEE5;
    --sand: #E4DDD1;
    --charcoal: #1E1E1E;
    --text: #3B3B3B;
    --text-dim: #7A7568;
    --white: #FFFFFF;
    --display: 'Instrument Serif', Georgia, serif;
    --body: 'Bricolage Grotesque', system-ui, sans-serif;
    --nav-h: 76px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--body); color: var(--text); background: var(--cream);
    line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============ HERO (variants per page) ============ */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    background: var(--forest); overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0.35; filter: blur(1px);
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(165deg, rgba(20,53,42,0.95) 0%, rgba(30,77,61,0.85) 45%, rgba(61,122,95,0.75) 100%);
}
.hero-shape-1 {
    position: absolute; top: -10%; right: -8%; width: 520px; height: 520px;
    border-radius: 50%; border: 1px solid rgba(212,162,78,0.1); z-index: 1;
}
.hero-shape-2 {
    position: absolute; bottom: -15%; left: -5%; width: 400px; height: 400px;
    border-radius: 50%; background: rgba(126,200,160,0.06); z-index: 1;
}
.hero-content {
    position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; width: 100%;
    padding: calc(var(--nav-h) + 80px) 32px 100px;
    display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center;
}
.hero-text { animation: fadeUp 1s var(--ease) both; }
@keyframes fadeUp { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:translateY(0); } }

.hero-eyebrow {
    font-family: var(--body); font-size: 0.78rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.18em;
    color: var(--gold-light); margin-bottom: 20px;
    display: flex; align-items: center; gap: 12px;
}
.hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--gold); }

.hero-text h1 {
    font-family: var(--display); font-size: clamp(3rem, 6vw, 4.8rem);
    line-height: 1.05; color: var(--white); font-weight: 400; margin-bottom: 28px;
}
.hero-text h1 em {
    font-style: italic; color: var(--gold-light); display: block; font-size: 0.85em;
}
.hero-text > p {
    font-size: 1.1rem; color: rgba(255,255,255,0.78); line-height: 1.75;
    max-width: 480px; margin-bottom: 40px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Compact hero for inner pages */
.hero-compact { min-height: 60vh; }
.hero-compact .hero-content { grid-template-columns: 1fr; padding: calc(var(--nav-h) + 60px) 32px 80px; text-align: center; }
.hero-compact .hero-eyebrow { justify-content: center; }
.hero-compact .hero-text > p { margin-left: auto; margin-right: auto; }
.hero-compact .hero-actions { justify-content: center; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 36px; border-radius: 100px;
    font-family: var(--body); font-size: 0.92rem; font-weight: 600;
    cursor: pointer; border: none; transition: all 0.35s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--charcoal); box-shadow: 0 4px 24px rgba(212,162,78,0.3); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(212,162,78,0.4); }
.btn-outline { background: transparent; color: rgba(255,255,255,0.9); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.btn-forest { background: var(--forest); color: var(--white); }
.btn-forest:hover { background: var(--forest-mid); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(20,53,42,0.3); }

/* ============ STAT CARDS ============ */
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; animation: fadeUp 1s 0.3s var(--ease) both; }
.stat-card {
    background: rgba(255,255,255,0.08); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.12); border-radius: 20px;
    padding: 32px 24px; text-align: center; transition: all 0.4s var(--ease);
    position: relative; overflow: hidden;
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 60%; height: 1px; background: linear-gradient(90deg, transparent, rgba(212,162,78,0.4), transparent);
}
.stat-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.1); }
.stat-num { font-family: var(--display); font-size: 2.8rem; color: var(--gold-light); display: block; line-height: 1; margin-bottom: 6px; }
.stat-label { color: rgba(255,255,255,0.6); font-size: 0.82rem; font-weight: 400; }

/* ============ SECTIONS ============ */
.section { padding: 110px 0; }
.section-inner { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.section-eyebrow {
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.18em; color: var(--sage); margin-bottom: 14px;
    display: flex; align-items: center; gap: 12px;
}
.section-eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--sage); }
.section-title {
    font-family: var(--display); font-size: clamp(2.2rem, 4.2vw, 3.4rem);
    color: var(--forest); font-weight: 400; line-height: 1.1; margin-bottom: 22px;
}
.section-title em { font-style: italic; color: var(--sage); }
.section-lede {
    font-size: 1.1rem; color: var(--text-dim); max-width: 640px; line-height: 1.75;
}

/* ============ MISSION / FEATURE BLOCKS ============ */
.mission { background: var(--cream); }
.mission-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.mission-image {
    aspect-ratio: 4/5; border-radius: 24px; overflow: hidden;
    box-shadow: 0 30px 60px rgba(20,53,42,0.15);
    position: relative;
}
.mission-image img { width: 100%; height: 100%; object-fit: cover; }
.mission-text h2 { font-family: var(--display); font-size: clamp(2rem,3.6vw,3rem); color: var(--forest); margin-bottom: 20px; line-height: 1.15; }
.mission-text h2 em { font-style: italic; color: var(--sage); }
.mission-text p { color: var(--text); font-size: 1.05rem; margin-bottom: 18px; line-height: 1.8; }
.mission-text p:last-child { margin-bottom: 0; }

/* ============ FEATURE / VALUE GRID ============ */
.values { background: var(--warm); }
.values-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 60px;
}
.value-card {
    background: var(--white); border-radius: 22px; padding: 40px 32px;
    border: 1px solid var(--sand); transition: all 0.4s var(--ease);
}
.value-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(20,53,42,0.08); border-color: var(--mint); }
.value-icon {
    width: 56px; height: 56px; border-radius: 16px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 22px; color: var(--charcoal);
}
.value-icon svg { width: 26px; height: 26px; }
.value-card h3 { font-family: var(--display); font-size: 1.5rem; color: var(--forest); margin-bottom: 12px; font-weight: 400; }
.value-card p { color: var(--text-dim); font-size: 0.98rem; line-height: 1.7; }

/* ============ GALLERY ============ */
.gallery { background: var(--cream); }
.gallery-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 60px;
}
.gallery-item {
    position: relative; border-radius: 18px; overflow: hidden;
    aspect-ratio: 1/1; cursor: pointer;
    transition: all 0.4s var(--ease);
}
.gallery-item.tall { grid-row: span 2; aspect-ratio: 1/2; }
.gallery-item.wide { grid-column: span 2; aspect-ratio: 2/1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-item:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(20,53,42,0.15); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(20,53,42,0.85) 0%, rgba(20,53,42,0) 60%);
    display: flex; align-items: flex-end; padding: 24px;
    color: var(--white); opacity: 0; transition: opacity 0.4s var(--ease);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { font-family: var(--display); font-size: 1.2rem; font-style: italic; }
.tag {
    display: inline-block; padding: 4px 12px; background: var(--gold); color: var(--charcoal);
    font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
    border-radius: 100px; margin-bottom: 8px;
}

/* ============ NUMBERS (impact strip) ============ */
.numbers {
    background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 100%);
    padding: 100px 0; position: relative; overflow: hidden;
}
.numbers::before {
    content: ''; position: absolute; top: -50%; left: -10%; width: 400px; height: 400px;
    border-radius: 50%; background: radial-gradient(circle, rgba(212,162,78,0.08), transparent 70%);
}
.numbers-inner { max-width: 1240px; margin: 0 auto; padding: 0 32px; position: relative; }
.numbers-top { text-align: center; margin-bottom: 60px; }
.numbers-top .section-eyebrow { color: var(--gold-light); justify-content: center; }
.numbers-top .section-eyebrow::before { background: var(--gold-light); }
.numbers-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.num-card {
    text-align: center; padding: 36px 20px;
    background: rgba(255,255,255,0.04); backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 22px;
    transition: all 0.4s var(--ease);
}
.num-card:hover { background: rgba(255,255,255,0.07); transform: translateY(-4px); }
.num-val { font-family: var(--display); font-size: 3.4rem; color: var(--gold-light); display: block; margin-bottom: 8px; line-height: 1; }
.num-desc { color: rgba(255,255,255,0.7); font-size: 0.95rem; }

/* ============ CTA ============ */
.cta {
    background: var(--forest); padding: 120px 0;
    position: relative; overflow: hidden; text-align: center;
}
.cta-deco { position: absolute; border-radius: 50%; }
.cta-deco-1 { top: -20%; right: -8%; width: 460px; height: 460px; border: 1px solid rgba(212,162,78,0.15); }
.cta-deco-2 { bottom: -25%; left: -5%; width: 380px; height: 380px; background: rgba(126,200,160,0.05); }
.cta-content { position: relative; max-width: 760px; margin: 0 auto; padding: 0 32px; }
.cta-content .section-eyebrow { justify-content: center; color: var(--gold-light); }
.cta-content .section-eyebrow::before { background: var(--gold-light); }
.cta-content .section-title { color: var(--white); margin-bottom: 24px; }
.cta-content .section-title em { color: var(--gold-light); }
.cta-content > p { color: rgba(255,255,255,0.78); font-size: 1.1rem; margin-bottom: 40px; line-height: 1.75; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============ EVENT-SPECIFIC LAYOUTS ============ */
.event-meta {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px; margin: 60px 0;
    padding: 36px; background: var(--white); border-radius: 22px;
    border: 1px solid var(--sand);
}
.event-meta-item { }
.event-meta-label {
    font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.16em; color: var(--sage); margin-bottom: 8px;
}
.event-meta-value { font-family: var(--display); font-size: 1.4rem; color: var(--forest); line-height: 1.3; }

.event-body {
    max-width: 760px; margin: 0 auto;
}
.event-body p { font-size: 1.08rem; color: var(--text); line-height: 1.85; margin-bottom: 22px; }
.event-body p:first-of-type::first-letter {
    font-family: var(--display); font-size: 4rem; float: left; line-height: 0.9;
    margin-right: 12px; margin-top: 6px; color: var(--sage);
}
.event-body h3 {
    font-family: var(--display); font-size: 1.8rem; color: var(--forest);
    margin: 40px 0 16px; font-weight: 400;
}
.event-body ul { list-style: none; padding: 0; margin: 0 0 24px; }
.event-body ul li {
    padding: 12px 0 12px 32px; position: relative;
    border-bottom: 1px solid var(--sand); color: var(--text);
}
.event-body ul li::before {
    content: ''; position: absolute; left: 0; top: 22px;
    width: 16px; height: 1px; background: var(--gold);
}

.partner-callout {
    margin: 40px 0; padding: 32px; border-radius: 22px;
    background: linear-gradient(135deg, var(--warm) 0%, var(--cream) 100%);
    border-left: 4px solid var(--gold);
}
.partner-callout-label {
    font-size: 0.72rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.16em; color: var(--sage); margin-bottom: 6px;
}
.partner-callout p {
    font-family: var(--display); font-size: 1.4rem; color: var(--forest);
    line-height: 1.4; margin: 0;
}

/* ============ ABOUT / BOARD ============ */
.board-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px; margin-top: 60px;
}
.board-card {
    background: var(--white); border-radius: 22px; padding: 36px 28px;
    border: 1px solid var(--sand); text-align: center;
    transition: all 0.4s var(--ease);
}
.board-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,53,42,0.08); border-color: var(--mint); }
.board-avatar {
    width: 90px; height: 90px; border-radius: 50%;
    background: linear-gradient(135deg, var(--sage) 0%, var(--mint) 100%);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 22px; color: var(--white);
    font-family: var(--display); font-size: 2rem;
}
.board-name { font-family: var(--display); font-size: 1.5rem; color: var(--forest); margin-bottom: 4px; }
.board-role {
    font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.16em; color: var(--sage);
}

/* ============ DONATION SECTION ============ */
.donate-section { background: var(--cream); }
.donate-card {
    max-width: 760px; margin: 60px auto 0;
    padding: 60px 48px; border-radius: 28px;
    background: linear-gradient(135deg, var(--forest) 0%, var(--forest-mid) 100%);
    text-align: center; color: var(--white);
    box-shadow: 0 30px 60px rgba(20,53,42,0.2);
    position: relative; overflow: hidden;
}
.donate-card::before {
    content: ''; position: absolute; top: -40%; right: -20%;
    width: 380px; height: 380px; border-radius: 50%;
    background: radial-gradient(circle, rgba(212,162,78,0.15), transparent 70%);
}
.donate-card h2 {
    font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 18px; font-weight: 400; position: relative;
}
.donate-card h2 em { font-style: italic; color: var(--gold-light); }
.donate-card > p {
    font-size: 1.05rem; color: rgba(255,255,255,0.8); line-height: 1.75;
    margin-bottom: 36px; position: relative;
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal { opacity: 0; transform: translateY(36px); transition: all 0.9s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
    .hero-content { grid-template-columns: 1fr; gap: 50px; padding: calc(var(--nav-h) + 60px) 24px 80px; }
    .mission-grid { grid-template-columns: 1fr; gap: 50px; }
    .values-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .numbers-grid { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 80px 0; }
    .section-inner { padding: 0 24px; }
}
@media (max-width: 600px) {
    .hero-text h1 { font-size: 2.6rem; }
    .hero-stats { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr; }
    .gallery-item.wide { grid-column: span 1; aspect-ratio: 1/1; }
    .gallery-item.tall { grid-row: span 1; aspect-ratio: 1/1; }
    .numbers-grid { grid-template-columns: 1fr; }
    .donate-card { padding: 40px 28px; }
}
