﻿:root {
  --accent: #c4531d;
  --accent-dark: #9e4116;
  --accent-light: #f1e6d6;
  --ink: #2b2117;
  --muted: #6b5d4f;
  --bg: #fdfaf5;
  --bg-alt: #f6ede1;
  --border: #e7ddcd;
  --white: #ffffff;
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); margin: 0 0 16px; line-height: 1.2; }
p { margin: 0 0 16px; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Topbar */
.topbar { background: var(--ink); color: #e9dfd2; font-size: 13px; }
.topbar-inner { display: flex; justify-content: flex-end; gap: 24px; padding: 8px 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; padding: 14px 20px; }
.logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.logo img { height: 34px; width: auto; filter: invert(30%) sepia(60%) saturate(1000%) hue-rotate(340deg); }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); }
.main-nav { display: flex; gap: 28px; }
.main-nav a { font-weight: 500; font-size: 15px; color: var(--ink); }
.main-nav a:hover { color: var(--accent); }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); }

.btn {
  display: inline-block; padding: 10px 22px; border-radius: 999px;
  font-weight: 600; font-size: 14px; transition: all .2s ease; border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-lg { padding: 14px 30px; font-size: 15px; }
.nav-donate { white-space: nowrap; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--accent-light), var(--bg));
  padding: 90px 0 70px;
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .08em; font-size: 13px;
  font-weight: 700; color: var(--accent); margin-bottom: 10px;
}
.eyebrow.center { text-align: center; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); color: var(--ink); }
.hero-lede { font-size: 17px; color: var(--muted); margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Stats */
.stats { padding: 50px 0 20px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  text-align: center; margin-bottom: 10px;
}
.stat-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 28px 12px;
}
.stat-number { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--accent); }
.stat-label { font-size: 14px; color: var(--muted); margin-top: 6px; }
.placeholder-note {
  font-size: 12.5px; color: var(--muted); font-style: italic; text-align: right; margin-top: 4px;
}
.placeholder-note.center { text-align: center; }

/* Sections */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-alt); }
h2 { font-size: clamp(24px, 3.5vw, 34px); color: var(--ink); }
h2.center, p.center { text-align: center; }
h2.center { max-width: 600px; margin-left: auto; margin-right: auto; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-image img { border-radius: 16px; box-shadow: 0 20px 40px -20px rgba(43,33,23,.35); }
.link-arrow { color: var(--accent); font-weight: 600; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.news-card { background: var(--white); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.ph-thumb {
  height: 160px; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, var(--accent-light), var(--accent-light) 10px, var(--bg-alt) 10px, var(--bg-alt) 20px);
  color: var(--muted); font-size: 13px; font-weight: 600;
}
.news-body { padding: 20px; }
.news-date { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); font-weight: 700; }
.news-body h3 { font-size: 18px; margin: 8px 0; }
.news-body p { font-size: 14px; color: var(--muted); margin: 0; }

/* Programs */
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 40px; }
.program-card { background: var(--white); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: transform .2s ease; }
.program-card:hover { transform: translateY(-4px); }
.program-card img { height: 190px; width: 100%; object-fit: cover; }
.program-body { padding: 22px; }
.program-body h3 { font-size: 20px; color: var(--accent-dark); margin-bottom: 8px; }
.program-body p { font-size: 14px; color: var(--muted); }

/* Stories carousel */
.stories-carousel { position: relative; margin-top: 30px; overflow: hidden; }
.story-track { display: flex; gap: 24px; transition: transform .4s ease; }
.story-card {
  flex: 0 0 280px; background: var(--white); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px; text-align: center;
}
.ph-avatar {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--accent-light); color: var(--accent-dark); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
}
.story-quote { font-size: 14.5px; font-style: italic; color: var(--ink); }
.story-name { font-size: 13px; color: var(--muted); font-weight: 600; margin: 0; }
.carousel-controls { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.carousel-controls button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--white); cursor: pointer; font-size: 16px;
}
.carousel-controls button:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* Events */
.events-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.event-card {
  display: flex; gap: 16px; align-items: center; background: var(--white);
  border: 1px solid var(--border); border-radius: 14px; padding: 20px;
}
.event-date {
  background: var(--accent); color: var(--white); border-radius: 10px; padding: 10px 14px;
  text-align: center; font-size: 12px; font-weight: 700; line-height: 1.2; flex-shrink: 0;
}
.event-date span { display: block; font-size: 22px; font-family: var(--font-display); }
.event-card h3 { font-size: 16px; margin: 0 0 4px; }
.event-card p { font-size: 13px; color: var(--muted); margin: 0; }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.testimonial-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  padding: 26px; margin: 0; font-size: 14.5px; color: var(--ink);
}
.testimonial-card p { font-style: italic; }
.testimonial-card cite { font-size: 13px; color: var(--accent-dark); font-weight: 600; font-style: normal; }

/* Partners */
.partners-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 30px; }
.partner-logo {
  background: var(--white); border: 1px dashed var(--border); border-radius: 10px;
  height: 80px; display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; color: var(--muted); text-align: center; padding: 8px;
}

/* SDG */
.sdg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 30px; }
.sdg-tile {
  background: var(--accent); color: var(--white); border-radius: 14px; padding: 26px 14px;
  text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 16px;
}
.sdg-tile span { display: block; font-weight: 500; font-size: 12.5px; margin-top: 6px; opacity: .9; }

/* CTA band */
.cta-band { background: var(--ink); color: var(--white); padding: 60px 0; text-align: center; }
.cta-inner h2 { color: var(--white); }
.cta-inner p { color: #cfc4b4; margin-bottom: 26px; }

/* Footer */
.site-footer { background: #211a13; color: #cfc4b4; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 40px; }
.logo-footer img { filter: none; }
.logo-footer .logo-text { color: var(--white); }
.site-footer h4 { color: var(--white); font-family: var(--font-display); font-size: 15px; margin-bottom: 14px; }
.site-footer p { font-size: 14px; margin-bottom: 10px; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid #3a2f22; padding: 18px 20px; text-align: center; font-size: 12.5px; color: #8a7c6a;
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid, .stats-grid, .programs-grid, .news-grid, .events-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
  .sdg-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .topbar-inner { justify-content: center; flex-wrap: wrap; gap: 10px; font-size: 11px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image { order: -1; }
  .stats-grid, .programs-grid, .news-grid, .events-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .sdg-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-donate { display: none; }
}
@media (max-width: 720px) {
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); padding: 16px 20px; border-bottom: 1px solid var(--border); gap: 14px;
  }
}


/* Project detail pages */
.page-hero { background: linear-gradient(135deg, var(--accent-light), var(--bg)); padding: 40px 0 60px; }
.back-link { display: inline-block; margin-bottom: 18px; font-size: 14px; font-weight: 600; color: var(--accent-dark); }
.back-link:hover { color: var(--accent); }
.page-hero h1 { font-size: clamp(30px, 5vw, 46px); }
.page-hero .hero-lede { max-width: 700px; margin-left: 0; margin-right: 0; }
.page-hero .hero-actions { justify-content: flex-start; }

.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.content-grid .content-image img { border-radius: 16px; box-shadow: 0 20px 40px -20px rgba(43,33,23,.35); }
.content-grid.reverse .content-image { order: -1; }

.stat-strip { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 10px; }
.stat-pill { background: var(--white); border: 1px solid var(--border); border-radius: 14px; padding: 20px 26px; min-width: 180px; flex: 1; text-align: center; }
.stat-pill strong { display: block; font-family: var(--font-display); font-size: 28px; color: var(--accent); }
.stat-pill span { font-size: 13px; color: var(--muted); }

.case-study { background: var(--white); border: 1px solid var(--border); border-radius: 18px; padding: 34px; margin-top: 10px; }
.case-study-images { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.case-study-images figure { margin: 0; }
.case-study-images img { border-radius: 12px; height: 220px; width: 100%; object-fit: cover; }
.case-study-images figcaption { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
.gallery-grid img { height: 150px; width: 100%; object-fit: cover; border-radius: 10px; }

.work-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 10px; padding: 0; list-style: none; }
.work-list li { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; font-size: 14.5px; }

.budget-list { padding: 0; list-style: none; margin-top: 10px; }
.budget-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.budget-list li strong { color: var(--accent-dark); }

.pull-quote { border-left: 4px solid var(--accent); padding: 6px 0 6px 22px; font-size: 18px; font-style: italic; color: var(--ink); margin: 10px 0 0; }
.pull-quote cite { display: block; font-size: 13px; font-style: normal; color: var(--muted); margin-top: 10px; }

@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .content-grid .content-image { order: -1; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .case-study-images { grid-template-columns: 1fr; }
  .work-list { grid-template-columns: 1fr; }
}


/* Simple labeled sub-sections (project detail pages) */
.labeled-sections { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.labeled-section h3 { font-size: 19px; color: var(--accent-dark); margin-bottom: 8px; }
.labeled-section p { font-size: 15px; color: var(--ink); margin: 0; }
.hero-since { font-size: 15px; color: var(--muted); margin: -8px 0 0; font-weight: 500; }
