/* ==========================================================
   HerHealthndHappiness — Design tokens
   Palette: deep forest green + warm off-white, a single muted
   red used only where something needs real weight (Donate, alerts).
   Type: Fraunces (display) + Work Sans (body/UI).
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=Work+Sans:wght@400;500;600;700&display=swap');

:root {
  --green-deep:  #1E4633;
  --green-mid:   #3F7355;
  --green-pale:  #E4ECE3;
  --cream:       #FBF8F2;
  --cream-dim:   #F1ECE1;
  --red:         #A63C2A;
  --red-dim:     #F3E0D9;
  --ink:         #1C2420;
  --ink-soft:    #52594F;
  --line:        #D9D3C4;
  --white:       #FFFFFF;

  --display: 'Fraunces', Georgia, serif;
  --body: 'Work Sans', -apple-system, Segoe UI, sans-serif;

  --max: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--green-deep);
  margin: 0 0 0.4em;
  line-height: 1.15;
  font-weight: 600;
}

h1 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); max-width: 62ch; }

.lede {
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 54ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--green-deep); color: var(--white); }
.btn-primary:hover { background: var(--green-mid); }
.btn-outline { background: transparent; color: var(--green-deep); border-color: var(--green-deep); }
.btn-outline:hover { background: var(--green-deep); color: var(--white); }
.btn-donate { background: var(--red); color: var(--white); }
.btn-donate:hover { background: #8A2F21; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img { height: 46px; width: auto; }
.brand span {
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--green-deep);
  font-weight: 600;
}
nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.96rem;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover,
nav.main-nav a.active { border-bottom-color: var(--green-deep); }

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

@media (max-width: 860px) {
  nav.main-nav {
    display: none;
    position: absolute;
    top: 74px; left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 10px 28px 24px;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 14px; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 88px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-mark {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
  background: linear-gradient(150deg, var(--green-deep), var(--green-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14%;
}
.hero-mark img { width: 100%; background: #FBF8F2; border-radius: 16px; padding: 10%; box-sizing: border-box; object-fit: contain; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-mark { max-width: 280px; margin: 0 auto; }
}

/* ---------- Section rhythm ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--green-pale); }
.section-deep { background: var(--green-deep); color: var(--white); }
.section-deep h2, .section-deep h3 { color: var(--white); }
.section-deep p { color: #D7E3DA; }
.section-head { max-width: 640px; margin-bottom: 44px; }

/* ---------- Logo showcase section ---------- */
.logo-panel {
  display: flex;
  align-items: center;
  gap: 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 40px;
  flex-wrap: wrap;
}
.logo-panel img { height: 96px; width: auto; }
.logo-panel .divider { width: 1px; align-self: stretch; background: var(--line); }

/* ---------- Services list ---------- */
.service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.service-item { background: var(--cream); padding: 30px 32px; display: flex; gap: 18px; }
.service-item .mark {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--green-deep);
  color: var(--green-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: 1.1rem;
}
.service-item h3 { margin-bottom: 6px; }
.service-item p { margin: 0; font-size: 0.96rem; }

@media (max-width: 700px) { .service-list { grid-template-columns: 1fr; } }

/* ---------- Impact band ---------- */
.impact-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.impact-stat .num {
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  color: var(--white);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
}
.impact-stat p { color: #D7E3DA; margin: 0; max-width: 30ch; }
@media (max-width: 760px) { .impact-band { grid-template-columns: 1fr; gap: 34px; } }

/* ---------- Founder / about ---------- */
.founder-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 52px;
  align-items: start;
}
.founder-portrait {
  aspect-ratio: 4/5;
  background: var(--green-pale);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-mid);
  font-family: var(--display);
  text-align: center;
  padding: 20px;
}
.pull-quote {
  border-left: 3px solid var(--red);
  padding-left: 22px;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--green-deep);
  margin: 28px 0;
}
.credentials { list-style: none; padding: 0; margin: 20px 0 0; }
.credentials li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--ink-soft);
}
@media (max-width: 860px) { .founder-grid { grid-template-columns: 1fr; } .founder-portrait { max-width: 320px; } }

/* ---------- Cards (blog, generic) ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.blog-card .thumb { aspect-ratio: 16/10; background: var(--green-pale); }
.blog-card .body { padding: 22px 24px; }
.blog-card .date { font-size: 0.82rem; color: var(--ink-soft); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 40px;
  max-width: 560px;
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 0.98rem;
  background: var(--cream);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--green-mid);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 14px; }

.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 22px; font-size: 0.95rem; }
.alert-success { background: var(--green-pale); color: var(--green-deep); border: 1px solid var(--green-mid); }
.alert-error { background: var(--red-dim); color: var(--red); border: 1px solid var(--red); }

/* ---------- Donate ---------- */
.donate-panel { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 44px; text-align: center; max-width: 520px; margin: 0 auto; }
.amount-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 24px 0; }
.amount-btn {
  padding: 12px 20px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--body);
}
.amount-btn.selected, .amount-btn:hover { border-color: var(--red); color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: #D7E3DA; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-grid h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 9px; }
.footer-grid a { color: #D7E3DA; text-decoration: none; font-size: 0.92rem; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Utility ---------- */
.text-center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; }
.small { font-size: 0.85rem; color: var(--ink-soft); }
