/* ========== Reset & Base ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cream:      #FDF6EC;
  --warm:       #F5E6D0;
  --brown:      #6B4226;
  --brown-l:    #8B6340;
  --brown-dark: #2C1A0E;
  --gold:       #D4A24E;
  --gold-l:     #F0D68A;
  --terracotta: #C67B5C;
  --green:      #7A9E7E;
  --white:      #FFFDF9;
  --text:       #3A2A1A;
  --text-l:     #6B5A4A;
  --radius:     16px;
  --shadow-sm:  0 2px 16px rgba(107,66,38,0.07);
  --shadow-md:  0 8px 32px rgba(107,66,38,0.11);
  --shadow-lg:  0 20px 56px rgba(107,66,38,0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ========== Reveal Animation ========== */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: none;
}

/* ========== Nav ========== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(253, 246, 236, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(107, 66, 38, 0.08);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(253, 246, 236, 0.97);
  box-shadow: 0 2px 24px rgba(107, 66, 38, 0.1);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-links { list-style: none; display: flex; gap: 28px; align-items: center; }
.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo-img { height: 40px; width: auto; object-fit: contain; display: block; }
.nav-links a:not(.btn) {
  font-size: 0.9rem; font-weight: 500; color: var(--text-l);
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover { color: var(--brown); }

/* ========== Buttons ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 999px; font-size: 0.95rem;
  font-weight: 600; border: none; cursor: pointer;
  transition: all 0.25s ease; font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em; min-height: 44px;
}
.btn-primary { background: var(--brown); color: var(--cream); }
.btn-primary:hover {
  background: var(--brown-l);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(107,66,38,0.25);
}
.btn-ghost {
  background: transparent; color: var(--cream);
  border: 1.5px solid rgba(255,253,249,0.45);
}
.btn-ghost:hover { border-color: var(--cream); background: rgba(255,255,255,0.1); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; white-space: nowrap; }
.btn-outline { background: transparent; color: var(--brown); border: 1.5px solid var(--brown); }
.btn-outline:hover { background: var(--brown); color: #fff; }

/* ========== Hero ========== */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background:
    linear-gradient(145deg, rgba(88,50,26,0.82) 0%, rgba(175,95,65,0.60) 55%, rgba(100,60,30,0.78) 100%),
    linear-gradient(160deg, #C67B5C 0%, #D4A24E 45%, #8B6340 100%);
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 55%, rgba(255,253,249,0.16) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 25%, rgba(212,162,78,0.20) 0%, transparent 50%);
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(circle, rgba(255,255,255,0.065) 1px, transparent 1px);
  background-size: 28px 28px;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 680px; margin: 0 auto; padding: 140px 24px 100px;
}
.hero-tag {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-l); margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(3rem, 6vw, 4.8rem);
  color: var(--cream); line-height: 1.05; margin-bottom: 26px;
}
.hero h1 em { font-style: italic; color: var(--gold-l); }
.hero p {
  font-size: 1.15rem; color: rgba(253,246,236,0.80);
  max-width: 500px; margin-bottom: 40px; line-height: 1.75;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ========== Stats Strip ========== */
.stats-strip {
  background: var(--brown);
  padding: 36px 0;
}
.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 220px;
  gap: 6px;
}
.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem;
  color: var(--gold-l);
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(253,246,236,0.60);
}
.stat-divider {
  width: 1px;
  height: 44px;
  background: rgba(253,246,236,0.14);
  flex-shrink: 0;
}

/* ========== Sections ========== */
.section { padding: 100px 0; }
.section-header { margin-bottom: 52px; }
.section-header.centered { text-align: center; }
.section-header h2 { font-size: 2.2rem; margin-top: 8px; line-height: 1.2; }
.section-subtitle {
  color: var(--text-l); max-width: 480px;
  margin: 14px auto 0; font-size: 1rem; line-height: 1.65;
}

/* ========== About ========== */
.label {
  display: inline-block;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--terracotta); margin-bottom: 12px;
}
.about-story {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.about-story h2 {
  font-size: 2.4rem; margin-bottom: 40px; line-height: 1.2;
}
.about-narrative {
  text-align: left;
  margin-bottom: 48px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 48px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(107,66,38,0.06);
}
.about-lead {
  font-size: 1.12rem;
  color: var(--text-l);
  margin-bottom: 22px;
  line-height: 1.75;
}
.about-narrative p {
  color: var(--text-l);
  font-size: 1.02rem;
  line-height: 1.75;
}
.about-timeline {
  margin-top: 52px;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.timeline-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  position: relative;
  padding-bottom: 40px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: 21px; top: 44px; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--terracotta), var(--gold));
  opacity: 0.22;
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(107,66,38,0.07);
  z-index: 1;
}
.timeline-content h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem; color: var(--brown); margin-bottom: 6px;
}
.timeline-content p {
  color: var(--text-l);
  font-size: 0.98rem; line-height: 1.65; max-width: 520px;
}
.handwritten {
  font-family: 'Caveat', cursive; font-size: 1.15em; color: var(--terracotta);
}

/* ========== Get Involved ========== */
.get-involved { background: var(--warm); }
.involve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.involve-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  border: 1px solid rgba(107,66,38,0.07);
  display: flex; flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.involve-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.involve-card.highlight {
  border: 2px solid var(--gold);
  background: linear-gradient(145deg, var(--white), rgba(240,214,138,0.10));
}
.involve-icon { font-size: 2.6rem; margin-bottom: 18px; }
.involve-card h3 { font-size: 1.3rem; margin-bottom: 12px; color: var(--brown); }
.involve-card p { font-size: 0.92rem; color: var(--text-l); margin-bottom: 28px; line-height: 1.7; }
.involve-card .btn { margin-top: auto; }

/* ========== CTA Band ========== */
.cta-band {
  background: var(--brown-dark);
  padding: 96px 0;
  text-align: center;
}
.cta-inner { max-width: 580px; margin: 0 auto; }
.cta-band .label { color: var(--gold-l); }
.cta-band h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--cream);
  margin: 10px 0 20px;
  line-height: 1.12;
}
.cta-band p {
  color: rgba(253,246,236,0.60);
  font-size: 1.05rem; line-height: 1.7; margin-bottom: 36px;
}
.cta-btn { padding: 16px 44px; font-size: 1rem; }

/* ========== Footer ========== */
.footer {
  padding: 64px 0 32px;
  background: var(--cream);
  border-top: 1px solid rgba(107,66,38,0.09);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand .logo { display: inline-flex; align-items: flex-end; gap: 8px; padding-bottom: 4px; }
.footer-brand .logo-img { height: 36px; width: auto; object-fit: contain; }
.footer-brand p { font-size: 0.9rem; color: var(--text-l); margin-top: 14px; margin-bottom: 4px; }
.footer-tax { font-size: 0.8rem; color: var(--terracotta); }
.footer-links h4 {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem; margin-bottom: 16px; color: var(--brown);
}
.footer-links a {
  display: block; font-size: 0.88rem; color: var(--text-l);
  margin-bottom: 10px; transition: color 0.2s;
}
.footer-links a:hover { color: var(--terracotta); }
.footer-bottom {
  border-top: 1px solid rgba(107,66,38,0.08); padding-top: 24px;
  text-align: center; font-size: 0.82rem; color: var(--text-l);
}

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

/* --- Tablet (601–900px) --- */
@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .about-story { padding: 0 16px; }
  .about-narrative { padding: 32px 28px; }
  /* 2-col grid on tablet; last card spans full width to avoid orphan half-column */
  .involve-grid { grid-template-columns: 1fr 1fr; }
  .involve-card:last-child { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-strip { padding: 28px 0; }
  .stats-grid { flex-wrap: wrap; gap: 20px 0; }
  .stat-divider { display: none; }
  .stat-item { flex: 1 0 40%; max-width: 50%; }
  .cta-band { padding: 80px 0; }
}

/* --- Mobile (≤600px) --- */
@media (max-width: 600px) {
  .section { padding: 52px 0; }
  .container { padding: 0 16px; }
  .nav-inner { padding: 10px 16px; }
  .logo-img { height: 32px; }
  .nav-links { gap: 10px; }
  .nav-links a:not(.btn) { display: none; }
  .nav-links .btn-sm { padding: 7px 14px; font-size: 0.82rem; }
  .hero-content { padding: 108px 16px 56px; }
  .hero p { font-size: 1.05rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .about-story h2 { font-size: 1.8rem; }
  .about-narrative { padding: 24px 20px; }
  .about-lead { font-size: 1.02rem; }
  .timeline-item { gap: 16px; }
  .timeline-dot { width: 36px; height: 36px; font-size: 1.1rem; }
  .timeline-item::before { left: 17px; }
  /* Reset tablet grid overrides — single column on mobile */
  .involve-grid { grid-template-columns: 1fr; }
  .involve-card:last-child { grid-column: auto; }
  .stats-strip { padding: 24px 0; }
  .stats-grid { flex-direction: column; align-items: center; gap: 20px; }
  .stat-item { max-width: 100%; flex: none; }
  .stat-number { font-size: 1.9rem; }
  .cta-band { padding: 60px 0; }
  .cta-btn { width: 100%; }
}

/* ========== Modal ========== */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(44, 26, 14, 0.55);
  backdrop-filter: blur(8px);
  justify-content: center; align-items: center;
  padding: 20px;
}
.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 40px 40px;
  max-width: 480px; width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none;
  font-size: 1.6rem; cursor: pointer; line-height: 1;
  color: var(--text-l); transition: color 0.2s;
}
.modal-close:hover { color: var(--brown); }
.modal h3 {
  font-size: 1.6rem; margin-bottom: 24px;
  color: var(--brown); text-align: center;
}
.modal-form .form-group { margin-bottom: 16px; }
.modal-form label {
  display: block; font-size: 0.84rem; font-weight: 500;
  color: var(--text-l); margin-bottom: 6px;
}
.modal-form input,
.modal-form select,
.modal-form textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid rgba(107, 66, 38, 0.13);
  border-radius: 10px; font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  background: var(--cream); color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 162, 78, 0.18);
}
.modal-form textarea { resize: vertical; min-height: 80px; }
.modal-form .btn { width: 100%; padding: 14px; margin-top: 10px; font-size: 1rem; }
@media (max-width: 600px) {
  .modal { padding: 36px 24px 28px; }
  .modal h3 { font-size: 1.3rem; }
}
