/* ==========================================================================
   Help Beyond Tears — site styles
   Warm humanitarian palette: sand / terracotta / deep earth brown
   ========================================================================== */

:root {
  --ink: #2e241c;
  --ink-soft: #6b5d4f;
  --paper: #faf6ef;
  --sand: #f1e8da;
  --terra: #c0492b;
  --terra-deep: #8f331d;
  --earth: #3a2c22;
  --gold: #d9a441;
  --line: rgba(46, 36, 28, 0.16);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --max-width: 72rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--earth);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--terra);
  text-decoration: none;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  flex: none;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--earth);
  letter-spacing: 0.01em;
}
.brand-text small {
  font-size: 0.7rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--terra); }

.nav-cta {
  display: inline-block;
  padding: 0.45rem 1.15rem;
  border: 1px solid var(--terra);
  border-radius: 3px;
  color: var(--terra) !important;
  transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--terra); color: #fff !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1.3rem;
  height: 2px;
  background: var(--earth);
  transform: translateX(-50%);
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateX(-50%) translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateX(-50%) translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 34rem;
  display: flex;
  align-items: flex-end;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-overlay {
  position: relative;
  width: 100%;
  padding: 7rem 0 4rem;
  background: linear-gradient(to top, rgba(35, 22, 14, 0.78) 0%, rgba(35, 22, 14, 0.35) 55%, transparent 100%);
}

.hero-inner { max-width: 46rem; }

.hero-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  line-height: 1.05;
  color: #fbf7ee;
  margin: 0 0 1rem;
}

.hero-lede {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: rgba(251, 247, 238, 0.92);
  margin: 0 0 2rem;
  max-width: 36rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.8rem 1.9rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-primary { background: var(--terra); color: #fff; }
.btn-primary:hover { background: var(--terra-deep); }
.btn-ghost { border: 1px solid rgba(251, 247, 238, 0.8); color: #fbf7ee; }
.btn-ghost:hover { background: rgba(251, 247, 238, 0.15); }

/* ---------- Sections ---------- */

.section { padding: 5rem 0; border-top: 1px solid var(--line); }
.section-sand { background: var(--sand); }

.section-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
  font-weight: 600;
  margin: 0 0 0.9rem;
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  color: var(--earth);
  margin: 0 0 1.2rem;
}

.section-title { max-width: 42rem; }
.section-intro { max-width: 46rem; margin-bottom: 2.4rem; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  align-items: start;
}

#mothers .two-col,
#governance .two-col { grid-template-columns: 1.15fr 1fr; align-items: center; }

.prose p { margin: 0 0 1.1rem; }
.prose a { color: var(--terra); font-weight: 500; }

.note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-left: 3px solid var(--gold);
  padding-left: 0.9rem;
}

/* ---------- Cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--terra);
  padding: 1.8rem 1.6rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(46, 36, 28, 0.1);
}

.card-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--terra);
  margin-bottom: 0.6rem;
}

.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--earth);
  margin: 0 0 0.6rem;
}

.card p { margin: 0 0 1rem; font-size: 0.95rem; color: var(--ink-soft); }

.tick-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.93rem;
  color: var(--ink-soft);
}
.tick-list li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.45rem;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.48em;
  width: 0.85rem;
  height: 0.45rem;
  border-left: 2px solid var(--terra);
  border-bottom: 2px solid var(--terra);
  transform: rotate(-45deg);
}

/* ---------- Figure & band ---------- */

.figure { margin: 0; }
.figure img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(46, 36, 28, 0.14);
}
.figure figcaption {
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding-top: 0.6rem;
  font-style: italic;
}

.band { line-height: 0; }
.band img {
  width: 100%;
  max-height: 24rem;
  object-fit: cover;
  object-position: center 55%;
}

/* ---------- Facts ---------- */

.fact-list { margin: 1.4rem 0 0; }
.fact-list div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.fact-list dt {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  padding-top: 0.15rem;
}
.fact-list dd { margin: 0; }

/* ---------- Contact ---------- */

.contact-block {
  font-style: normal;
  line-height: 1.8;
  padding: 1.4rem 1.6rem;
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 1.2rem;
}

.contact-lines a { color: var(--terra); font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--earth);
  color: rgba(250, 246, 239, 0.78);
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  padding-block: 2.8rem 1.2rem;
}
.footer-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fbf7ee;
  font-size: 1.25rem;
  margin: 0 0 0.3rem;
}
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-nav {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.footer-base {
  border-top: 1px solid rgba(250, 246, 239, 0.16);
  padding-block: 1.2rem 2rem;
  font-size: 0.82rem;
}
.credits { font-size: 0.72rem; opacity: 0.55; margin-bottom: 0; }

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 56rem) {
  .two-col, #mothers .two-col, #governance .two-col { grid-template-columns: 1fr; gap: 1.8rem; }
  .section { padding: 3.4rem 0; }
  .hero { min-height: 28rem; }

  .nav-toggle { display: block; }
  .site-nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.5rem 1rem;
    display: none;
  }
  .site-nav ul.is-open { display: flex; }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav a { display: block; padding: 0.8rem 0; }
  .nav-cta { border: none; padding-left: 0 !important; }
  .nav-cta:hover { background: none; color: var(--gold) !important; }

  .fact-list div { grid-template-columns: 1fr; gap: 0.1rem; }
}
