/* ============================================================
   Foundation Sanite Jeanty Haiti — shared design system
   ============================================================ */

:root {
  --ink: #1c2b27;
  --night: #10302b;
  --night-2: #163d36;
  --paper: #f6f1e4;
  --white: #fffdf8;
  --gold: #e7a33e;
  --gold-dim: #c98a2f;
  --clay: #ae4a30;
  --clay-dim: #953d27;
  --leaf: #4c7a57;
  --line: rgba(28, 43, 39, 0.14);
  --line-on-night: rgba(255, 253, 248, 0.18);

  --font-display: "Frank Ruhl Libre", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --measure: 62ch;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 500; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a {
  color: inherit;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

.measure { max-width: var(--measure); }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--night);
  padding: 10px 16px;
  z-index: 100;
  font-weight: 600;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

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

.site-header {
  background: var(--night);
  color: var(--white);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: 1120px;
  margin: 0 auto;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.brand-mark { width: 44px; height: 44px; flex-shrink: 0; object-fit: contain; }

.footer-logo { width: 128px; height: auto; margin-bottom: 16px; }

.brand-name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.2;
}
.brand-name span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--white);
  font-size: 0.96rem;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-bottom-color: var(--gold);
}

.nav-donate {
  background: var(--clay);
  color: var(--white) !important;
  padding: 9px 18px;
  border-radius: 3px;
  border-bottom: none !important;
}
.nav-donate:hover { background: var(--clay-dim); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-on-night);
  border-radius: 4px;
  color: var(--white);
  padding: 8px 10px;
  font-size: 1.1rem;
}

@media (max-width: 780px) {
  .main-nav {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    padding: 14px 0 6px;
  }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 10px 4px; }
  .nav-row { flex-wrap: wrap; }
  .nav-toggle { display: block; }
}

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

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 26px;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-clay { background: var(--clay); color: var(--white); }
.btn-clay:hover { background: var(--clay-dim); }

.btn-gold { background: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--gold-dim); }

.btn-outline-light {
  border-color: var(--line-on-night);
  color: var(--white);
}
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--clay); color: var(--clay); }

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

.hero {
  background: var(--night);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 88px 28px 110px;
  position: relative;
  z-index: 2;
}

.hero h1 { color: var(--white); max-width: 15ch; }

.hero-lede {
  max-width: 46ch;
  font-size: 1.15rem;
  color: rgba(255, 253, 248, 0.86);
  margin-bottom: 2em;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-motif {
  position: absolute;
  right: -6%;
  bottom: -8%;
  width: min(56vw, 620px);
  z-index: 1;
  opacity: 0.9;
}

@media (max-width: 780px) {
  .hero-motif { opacity: 0.35; right: -18%; }
}

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

section { padding: 76px 0; }

.section-tight { padding: 56px 0; }

.section-alt {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.kicker-row {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 0.6em;
}

.section-head { max-width: 60ch; margin-bottom: 2.2em; }

/* Pull quote */

.pull {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.4;
  color: var(--night);
  border-left: 3px solid var(--gold);
  padding-left: 1.1em;
  max-width: 52ch;
  margin: 0.4em 0;
}

/* Program grid */

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.program-card {
  padding: 32px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.program-icon { width: 34px; height: 34px; margin-bottom: 16px; color: var(--leaf); }

.program-card h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.program-card p { font-size: 0.96rem; color: rgba(28,43,39,0.78); margin: 0; }

/* Place / location block */

.place-block {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 820px) {
  .place-block { grid-template-columns: 1fr; }
}

.place-figure {
  background: var(--night-2);
  border-radius: 4px;
  padding: 30px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.place-figure svg { width: 100%; height: 100%; }

/* CTA band */

.cta-band {
  background: var(--leaf);
  color: var(--white);
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.cta-band h2 { color: var(--white); margin-bottom: 0.25em; }
.cta-band p { color: rgba(255,253,248,0.85); margin: 0; max-width: 46ch; }

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

.site-footer {
  background: var(--night);
  color: rgba(255, 253, 248, 0.82);
  padding: 56px 0 30px;
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid var(--line-on-night);
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

.footer-grid h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.9em;
}

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.55em; }
.footer-grid a { text-decoration: none; color: inherit; }
.footer-grid a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-size: 0.85rem;
  color: rgba(255,253,248,0.6);
}

/* Placeholder note (dev-only helper, styled quietly) */
.draft-note {
  background: #fff6e0;
  border: 1px dashed var(--gold-dim);
  color: #6b4a12;
  padding: 10px 16px;
  font-size: 0.85rem;
  border-radius: 3px;
  margin-bottom: 1.4em;
}
