/* ==========================================================================
   The MMH Foundation — clean static stylesheet
   Mobile-first, semantic, no framework dependencies.
   ========================================================================== */

:root {
  --green-900: #14342b;
  --green-800: #1d4d3e;
  --green-700: #266451;
  --green-600: #2f7d65;
  --green-100: #e7f1ec;
  --gold-600: #c9952f;
  --gold-500: #e0ad45;
  --gold-100: #faf2dd;
  --ink: #1f2723;
  --body: #3a4641;
  --muted: #6b7771;
  --line: #e2e7e4;
  --bg: #ffffff;
  --bg-soft: #f6f8f6;
  --max: 1140px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 52, 43, 0.08);
  --font-head: "Georgia", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-900); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

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

.section { padding: 4rem 0; }
.section--soft { background: var(--bg-soft); }
.section--green { background: var(--green-900); color: #dfe9e4; }
.section--green h2, .section--green h3 { color: #fff; }
.section__intro { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-600);
  margin-bottom: 0.6rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--gold-500); color: var(--green-900); }
.btn--primary:hover { background: var(--gold-600); color: #fff; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn--ghost:hover { background: #fff; color: var(--green-900); }
.btn--outline { background: transparent; color: var(--green-700); border-color: var(--green-600); }
.btn--outline:hover { background: var(--green-700); color: #fff; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--green-900);
}
.brand:hover { text-decoration: none; color: var(--green-700); }
.brand svg { flex: 0 0 auto; }
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--green-900); display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.6rem;
  align-items: center;
}
.nav-links a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.98rem;
}
.nav-links a:hover { color: var(--green-700); text-decoration: none; }
.nav-links .btn { color: var(--green-900); }

@media (max-width: 820px) {
  .nav-toggle { order: 2; }
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .nav-links li { width: 100%; border-top: 1px solid var(--line); }
  .nav-links li:first-child { border-top: 0; }
  .nav-links a, .nav-links .btn {
    display: block;
    padding: 1rem 1.25rem;
    border-radius: 0;
    background: none;
    border: 0;
    text-align: left;
  }
  .nav-links .btn:hover { transform: none; background: var(--green-100); }
  .nav.open .nav-links { max-height: 420px; }
}
@media (min-width: 821px) {
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(20,52,43,0.55), rgba(20,52,43,0.75)),
              url("/assets/img/hero.webp") center/cover no-repeat;
}
.hero__inner { max-width: 760px; padding: 5rem 0; }
.hero h1 { color: #fff; }
.hero p { font-size: 1.2rem; color: #eef4f0; max-width: 620px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: var(--green-900);
  color: #fff;
  padding: 3.5rem 0;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 0.3rem; }
.page-hero p { color: #cfe0d8; max-width: 640px; margin: 0 auto; }
.crumbs { font-size: 0.85rem; color: #9fc0b4; margin-bottom: 0.8rem; }
.crumbs a { color: #cfe0d8; }

/* ---------- Pillars / cards ---------- */
.grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 880px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--2 { grid-template-columns: 1fr 1fr; }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card__media { aspect-ratio: 3 / 2; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.card__body h3 { margin-bottom: 0.4rem; }
.card__body p:last-child { margin-bottom: 0; }

/* Pillar card with caption over image */
.pillar {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  box-shadow: var(--shadow);
}
.pillar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pillar::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,52,43,0) 30%, rgba(20,52,43,0.85));
}
.pillar__label { position: relative; z-index: 1; padding: 1.5rem; }
.pillar__label h3 { color: #fff; font-size: 1.5rem; margin: 0; }

/* ---------- Split feature ---------- */
.split {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .split--reverse .split__media { order: 2; }
}
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.split__body p:last-child { margin-bottom: 0; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
}
.quote p { font-size: 1.05rem; font-style: italic; margin-bottom: 0.8rem; color: #eef4f0; }
.quote cite { font-style: normal; font-weight: 600; color: var(--gold-500); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe0d8; max-width: 620px; margin: 0 auto 1.6rem; }

/* ---------- Impact / giving tiers ---------- */
.tiers { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 740px) { .tiers { grid-template-columns: repeat(3,1fr); } }
.tier {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
  background: var(--bg-soft);
}
.tier .amount { font-family: var(--font-head); font-size: 2rem; color: var(--green-700); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  background: #fff;
  overflow: hidden;
}
.faq-item > summary {
  cursor: pointer;
  list-style: none;
  padding: 1.2rem 1.4rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; color: var(--green-600); font-size: 1.5rem; line-height: 1; }
.faq-item[open] > summary::after { content: "\2013"; }
.faq-item .faq-answer { padding: 0 1.4rem 1.3rem; }
.faq-item .faq-answer h4 { color: var(--green-700); margin-bottom: 0.3rem; }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }

/* ---------- Article / blog ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article .meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.5rem; }
.article h2, .article h3 { margin-top: 1.8rem; }
.article hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.post-nav { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.post-nav a { font-weight: 600; }
.post-nav .label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

.blog-list { display: grid; gap: 1.8rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .blog-list { grid-template-columns: 1fr 1fr; } }
.post-card .date { color: var(--muted); font-size: 0.88rem; }
.post-card h3 { margin: 0.2rem 0 0.5rem; }
.post-card .author { font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1.1fr 0.9fr; } }
.form-field { margin-bottom: 1.1rem; }
.form-field label { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--ink); }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px var(--green-100);
}
.form-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .form-row { grid-template-columns: 1fr 1fr; } }
.contact-info { background: var(--green-100); border-radius: var(--radius); padding: 1.8rem; }
.contact-info h3 { color: var(--green-800); }
.contact-info address { font-style: normal; line-height: 1.7; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-900);
  color: #b9cdc4;
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.9rem; }
.site-footer a { color: #cfe0d8; }
.site-footer a:hover { color: #fff; }
.footer-brand { font-family: var(--font-head); font-size: 1.3rem; color: #fff; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.5rem; }
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  font-size: 0.85rem;
  color: #8fab9f;
}

.lede { font-size: 1.18rem; color: var(--body); }
.text-center { text-align: center; }
.mt-2 { margin-top: 1.6rem; }
