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

:root {
  --green-dark:   #085041;
  --green-mid:    #0F6E56;
  --green-light:  #1D9E75;
  --green-pale:   #E1F5EE;
  --green-muted:  #9FE1CB;
  --cream:        #FAF9F6;
  --sand:         #F0EDE6;
  --ink:          #1A1A17;
  --ink-mid:      #3D3D38;
  --ink-light:    #6B6B64;
  --ink-faint:    #A8A89F;
  --border:       rgba(26,26,23,0.12);
  --border-light: rgba(26,26,23,0.07);
  --radius:       10px;
  --radius-lg:    18px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, blockquote {
  font-family: 'Cormorant Garamond', serif;
}

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 500; line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 500; line-height: 1.2; }
h3 { font-size: 1.3rem; font-weight: 500; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ─── Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  height: 64px;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.nav-links {
  display: flex; align-items: center; gap: 32px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-light);
  transition: color 0.2s;
  letter-spacing: 0.02em;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }

.nav-donate {
  background: var(--green-mid) !important;
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}
.nav-donate:hover { background: var(--green-dark) !important; }

.nav-toggle {
  display: none;
  background: none; border: none; font-size: 1.4rem;
  cursor: pointer; color: var(--ink);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  gap: 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 1rem;
  color: var(--ink-mid);
  padding: 4px 0;
  border-bottom: 1px solid var(--border-light);
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-block;
  background: var(--green-mid);
  color: #fff;
  padding: 13px 28px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
  border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-primary.btn-large { padding: 16px 40px; font-size: 1rem; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  padding: 13px 28px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 400;
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline:hover { background: var(--sand); border-color: rgba(26,26,23,0.25); }

.link-arrow {
  font-size: 0.9rem;
  color: var(--green-mid);
  font-weight: 500;
  display: inline-block;
  margin-top: 8px;
  transition: gap 0.2s;
}
.link-arrow:hover { text-decoration: underline; }

/* ─── Section shared ─── */
.section-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-mid);
  margin-bottom: 12px;
}

/* ─── Hero ─── */
.hero {
  padding: 80px 40px 0;
  border-bottom: 1px solid var(--border);
  animation: fadeUp 0.7s ease both;
}
.hero-inner { max-width: 780px; margin-bottom: 64px; }
.hero-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--ink-light);
  letter-spacing: 0.06em;
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.hero h1 em { color: var(--green-mid); font-style: italic; }
.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-light);
  max-width: 560px;
  margin: 20px 0 36px;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
}
.hero-stat {
  padding: 28px 32px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.hero-stat:last-child { border-right: none; }
.stat-n {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--green-mid);
  line-height: 1;
}
.stat-l {
  font-size: 0.8rem;
  color: var(--ink-light);
  line-height: 1.4;
}

/* ─── Home Photos ─── */
.home-photos {
  padding: 48px 40px;
  border-bottom: 1px solid var(--border);
}
.home-photos-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}
.home-photo-main, .home-photo-side {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.home-photo-main img, .home-photo-side img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.home-photo-side img { height: 380px; object-fit: cover; }
.home-photo-main:hover img, .home-photo-side:hover img { transform: scale(1.03); }
.photo-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

@media (max-width: 900px) {
  .home-photos { padding: 32px 24px; }
  .home-photos-grid { grid-template-columns: 1fr; }
  .home-photo-main img, .home-photo-side img { height: 260px; }
}

/* ─── Mission ─── */
.mission {
  padding: 80px 40px;
  border-bottom: 1px solid var(--border);
}
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 24px;
  align-items: start;
}
.mission-text h2 { margin-bottom: 20px; }
.mission-text p { color: var(--ink-mid); margin-bottom: 16px; }

.mission-quote {
  padding-top: 8px;
}
blockquote {
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
  padding-left: 28px;
  border-left: 3px solid var(--green-light);
  position: relative;
}
blockquote cite {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-style: normal;
  color: var(--ink-faint);
  margin-top: 16px;
  letter-spacing: 0.03em;
}

/* ─── Projects ─── */
.projects {
  padding: 80px 40px;
  background: var(--sand);
  border-bottom: 1px solid var(--border);
}
.section-title { margin-bottom: 36px; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.project-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}
.project-status {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.project-card.done .project-status {
  background: var(--green-pale);
  color: var(--green-dark);
}
.project-card.active .project-status.funded {
  background: #FFF3CD;
  color: #7A5800;
}
.project-card.next .project-status.needs {
  background: #FCE8E6;
  color: #8C2012;
}
.project-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.project-card p { font-size: 0.88rem; color: var(--ink-light); line-height: 1.6; }

/* ─── Letter ─── */
.letter-section {
  padding: 80px 40px;
  border-bottom: 1px solid var(--border);
}
.letter-wrap { margin-top: 24px; max-width: 680px; }
.letter {
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
}
.letter p {
  color: var(--ink-mid);
  margin-bottom: 18px;
  font-size: 0.97rem;
  line-height: 1.8;
}
.letter p:last-child { margin-bottom: 0; }
.letter .sig { color: var(--ink); }
.letter .sig span { color: var(--ink-light); font-size: 0.9rem; }

/* ─── CTA Band ─── */
.cta-band {
  background: var(--green-dark);
  padding: 72px 40px;
  text-align: center;
}
.cta-inner h2 { color: #fff; margin-bottom: 12px; }
.cta-inner p { color: var(--green-muted); font-size: 0.9rem; margin-bottom: 32px; }
.cta-band .btn-primary {
  background: #fff;
  color: var(--green-dark);
}
.cta-band .btn-primary:hover { background: var(--green-pale); }

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 40px 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-bottom: 48px;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.footer-left p {
  font-size: 0.87rem;
  color: var(--ink-light);
  max-width: 340px;
  line-height: 1.7;
}
.footer-ein {
  margin-top: 8px;
  font-size: 0.8rem !important;
  color: var(--ink-faint) !important;
}
.footer-links {
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 6px;
}
.footer-links a {
  font-size: 0.87rem;
  color: var(--ink-light);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.footer-bottom span { font-size: 0.78rem; color: var(--ink-faint); }
.footer-bottom a { font-size: 0.78rem; color: var(--ink-light); }
.footer-bottom a:hover { color: var(--ink); }

/* ─── Page hero (inner pages) ─── */
.page-hero {
  padding: 64px 40px 48px;
  border-bottom: 1px solid var(--border);
  max-width: 760px;
}
.page-hero .section-label { margin-bottom: 10px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 14px; }
.page-hero p {
  font-size: 1.05rem; color: var(--ink-light); line-height: 1.7; max-width: 600px;
}

/* ─── Photos page ─── */
.photos-section {
  padding: 64px 40px;
}
.photos-section h2 { margin-bottom: 8px; }
.photos-section .photo-caption {
  font-size: 0.92rem; color: var(--ink-light); margin-bottom: 40px; max-width: 640px;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.photo-grid img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}
.photo-grid img:hover { transform: scale(1.02); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }

/* ─── Stories page ─── */
.story-section {
  padding: 64px 40px;
  border-bottom: 1px solid var(--border);
  max-width: 780px;
}
.story-section h2 { margin-bottom: 20px; }
.story-section p { color: var(--ink-mid); margin-bottom: 18px; font-size: 0.97rem; line-height: 1.85; }
.story-section p:last-child { margin-bottom: 0; }
.story-photo {
  margin: 24px 0 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}
.story-photo img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
}
.story-photo-caption {
  display: block;
  padding: 10px 16px;
  font-size: 0.8rem;
  color: var(--ink-light);
  background: var(--sand);
  border-top: 1px solid var(--border);
  font-style: italic;
}

.story-section .story-date {
  font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green-mid); margin-bottom: 12px;
}

/* ─── Founder page ─── */
.founder-section {
  padding: 64px 40px;
  border-bottom: 1px solid var(--border);
}
.founder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.founder-bio h2 { margin-bottom: 20px; }
.founder-bio p { color: var(--ink-mid); margin-bottom: 16px; font-size: 0.97rem; line-height: 1.85; }
.founder-bio blockquote {
  font-size: 1.2rem;
  margin: 32px 0;
}
.book-card {
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: sticky; top: 84px;
}
.book-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.book-card .book-subtitle { font-size: 0.85rem; color: var(--ink-light); margin-bottom: 18px; }
.book-card p { font-size: 0.88rem; color: var(--ink-mid); line-height: 1.7; margin-bottom: 20px; }
.book-links { display: flex; flex-direction: column; gap: 10px; }
.book-link {
  display: block;
  text-align: center;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--cream);
  transition: background 0.2s, border-color 0.2s;
}
.book-link:hover { background: var(--green-pale); border-color: var(--green-muted); }

/* ─── Testimonials page ─── */
.testimonials-section {
  padding: 64px 40px;
}
.testimonials-section .intro {
  font-size: 1rem; color: var(--ink-light); max-width: 600px;
  margin-bottom: 48px; line-height: 1.7;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}
.testimonial-card blockquote {
  font-size: 1.1rem;
  border-left: none;
  padding-left: 0;
  margin-bottom: 20px;
}
.testimonial-card cite { margin-top: 0; }

/* ─── Donate page ─── */
.donate-section {
  padding: 64px 40px;
  border-bottom: 1px solid var(--border);
}
.donate-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}
.donate-main h2 { margin-bottom: 16px; }
.donate-main p { color: var(--ink-mid); font-size: 0.97rem; line-height: 1.8; margin-bottom: 16px; }
.donate-ein {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-dark);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 100px;
  margin: 8px 0 28px;
}
.donate-sidebar {
  background: var(--sand);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: sticky; top: 84px;
}
.donate-sidebar h3 { font-size: 1.3rem; margin-bottom: 16px; }
.contact-row {
  display: flex; flex-direction: column; gap: 14px;
  margin-top: 4px;
}
.contact-item label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 2px;
}
.contact-item span, .contact-item a {
  font-size: 0.92rem;
  color: var(--ink-mid);
}
.contact-item a:hover { color: var(--green-mid); text-decoration: underline; }
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ─── Animations ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mission, .projects, .letter-section { animation: fadeUp 0.6s ease both; animation-delay: 0.1s; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .hero { padding: 56px 24px 0; }
  .hero-bar { grid-template-columns: repeat(2, 1fr); }
  .hero-stat { border-bottom: 1px solid var(--border); }

  .mission, .projects, .letter-section, .cta-band,
  .photos-section, .story-section, .founder-section,
  .testimonials-section, .donate-section { padding: 48px 24px; }

  .mission-grid, .founder-grid, .donate-grid { grid-template-columns: 1fr; gap: 40px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer { padding: 40px 24px 0; }

  .page-hero { padding: 48px 24px 36px; }
  .book-card { position: static; }
  .donate-sidebar { position: static; }
}

@media (max-width: 560px) {
  .hero-bar { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .letter { padding: 28px 24px; }
}
