/* ==========================================================================
   Hearts Agree Foundation — Design System
   ========================================================================== */

:root {
  --forest: #464528;
  --forest-soft: #6B6E52;
  --cream: #F2ECDF;
  --cream-dim: #E8DFC9;
  --sage: #3D2B1F;
  --sage-soft: #DDD2BC;
  --gold: #AE5A26;
  --charcoal: #2E2A22;
  --white: #FFFFFF;
  --terracotta: #AE5A26;
  --terracotta-soft: #DDBB98;
  --maroon: #511B1B;
  --maroon-soft: #C99A9B;

  --font-display: "Petrona", Georgia, "Times New Roman", serif;
  --font-body: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1180px;
  --gap: clamp(1.5rem, 4vw, 4rem);
  --radius: 22px;
  --radius-pill: 999px;
}

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

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

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

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--maroon);
  line-height: 1.08;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }

p { margin: 0 0 1.2em; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 1.4em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
section + section { border-top: 1px solid rgba(43,43,40,0.08); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.9em 1.7em;
  border: 1.5px solid var(--forest);
  border-radius: var(--radius-pill);
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  cursor: pointer;
}
.btn-primary { background: var(--forest); color: var(--cream); }
.btn-primary:hover { background: var(--forest-soft); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--cream); }
.btn-gold { background: var(--gold); color: var(--forest); border-color: var(--gold); }
.btn-gold:hover { background: #b8b153; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid rgba(43,43,40,0.1);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--maroon);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.brand span {
  color: inherit;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.1em;
}
.brand-logo {
  height: 46px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.2rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--forest);
  padding: 0.3em 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--forest);
  border-bottom-color: var(--gold);
}
.nav-cta { margin-left: 0.5rem; }
.nav-cta .btn {
  color: var(--cream);
  padding: 0.9em 1.7em;
  border-bottom: none;
}
.nav-cta .btn:hover { color: var(--cream); border-bottom: none; }
.nav-cta .btn-gold { color: var(--forest); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--forest);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: var(--cream);
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.6rem;
    border-bottom: 1px solid rgba(43,43,40,0.1);
    display: none;
    gap: 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-cta { margin-left: 0; }
}

/* ---------- Hero (interior pages, split layout) ---------- */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

/* ---------- Editorial hero (Home) ---------- */
.hero-editorial {
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(3rem, 7vw, 5rem);
}
.hero-editorial-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: clamp(1.5rem, 4vw, 3rem);
}
.hero-kicker {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  padding-top: 0.4em;
}
.hero-figure {
  text-align: right;
}
.hero-figure-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.hero-figure-label {
  display: block;
  max-width: 22ch;
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--forest-soft);
  margin-top: 0.4rem;
}
.hero-editorial-headline {
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.98;
  max-width: 18ch;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
}
.hero-editorial-foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2.5rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(43,43,40,0.12);
  padding-top: clamp(1.5rem, 4vw, 2.2rem);
}
.hero-editorial-lede {
  max-width: 44ch;
  font-size: 1.05rem;
  color: var(--forest-soft);
  margin: 0;
}
.hero-editorial-actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.link-arrow {
  font-weight: 600;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 0.15em;
  white-space: nowrap;
}
.link-arrow::after {
  content: " \2192";
}
.cta-band .link-arrow {
  color: var(--cream);
  border-bottom-color: var(--cream);
}
@media (max-width: 700px) {
  .hero-editorial-top { flex-direction: column; }
  .hero-figure { text-align: left; }
  .hero-figure-label { margin-left: 0; }
  .hero-editorial-foot { flex-direction: column; align-items: flex-start; }
}

/* ---------- Numbered ways list ---------- */
.section-title {
  max-width: 24ch;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.ways-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ways-list li {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: baseline;
  padding: clamp(1.6rem, 4vw, 2.4rem) 0;
  border-top: 1px solid rgba(43,43,40,0.12);
}
.ways-list li:last-child {
  border-bottom: 1px solid rgba(43,43,40,0.12);
}
.ways-num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--maroon-soft);
  flex: 0 0 auto;
  width: 3ch;
}
.ways-body h3 { margin-bottom: 0.3em; }
.ways-body p { margin: 0; max-width: 62ch; color: var(--forest-soft); }
@media (max-width: 700px) {
  .ways-list li { flex-direction: column; gap: 0.6rem; }
  .ways-num { width: auto; }
}

/* ---------- Two column content ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  align-items: center;
}
.tint {
  background: var(--cream-dim);
}

.timeline-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 0.8rem 0 1.2rem;
}

.portrait-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
}
.split.reverse .split-media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

.quote {
  border-left: 3px solid var(--terracotta);
  padding-left: clamp(1.4rem, 3vw, 2rem);
}
.quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--maroon);
  margin: 0;
  line-height: 1.35;
}
.quote cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest-soft);
}

/* ---------- What We Do / Program columns ---------- */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
@media (min-width: 701px) {
  .pillar-grid > div:not(:first-child) {
    border-left: 1px solid rgba(43,43,40,0.12);
    padding-left: clamp(1.5rem, 3vw, 2rem);
  }
}
@media (max-width: 700px) { .pillar-grid { grid-template-columns: 1fr; } }

/* ---------- Program detail blocks ---------- */
.program-block {
  max-width: 68ch;
}
.program-block .eyebrow { color: var(--terracotta); }

/* ---------- Action grid (compact get-involved list) ---------- */
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3rem) clamp(2rem, 5vw, 3.5rem);
}
.action-grid > div:nth-child(odd) {
  padding-right: clamp(1.5rem, 3vw, 2rem);
}
@media (min-width: 701px) {
  .action-grid > div:nth-child(odd) { border-right: 1px solid rgba(43,43,40,0.12); }
  .action-grid > div:nth-child(n+3) { border-top: 1px solid rgba(43,43,40,0.12); padding-top: 1.8rem; }
}
@media (max-width: 700px) {
  .action-grid { grid-template-columns: 1fr; }
  .action-grid > div:not(:first-child) { border-top: 1px solid rgba(43,43,40,0.12); padding-top: 1.6rem; }
}
.action-grid h3 { margin-bottom: 0.4em; }
.action-grid p { font-size: 0.95rem; color: var(--forest-soft); }

/* ---------- Photo grid ---------- */
.photo-grid {
  margin-top: clamp(2rem, 5vw, 3rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.9rem, 2vw, 1.4rem);
}
.photo-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}
@media (max-width: 700px) {
  .photo-grid { grid-template-columns: 1fr; }
}

/* ---------- Board / people grid ---------- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
@media (min-width: 701px) {
  .board-grid > div:not(:first-child) {
    border-left: 1px solid rgba(43,43,40,0.12);
    padding-left: clamp(1.5rem, 3vw, 2rem);
  }
}
@media (max-width: 700px) { .board-grid { grid-template-columns: 1fr; } }
.board-grid h3 { margin-bottom: 0.1em; }
.board-role {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 0.7em;
}

/* ---------- Growth bar chart ---------- */
.growth-chart {
  display: flex;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  margin-top: 2.5rem;
}
.growth-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1 1 0;
  min-width: 84px;
}
.growth-bar-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 200px;
}
.growth-value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--maroon);
  margin-bottom: 0.5rem;
}
.growth-bar {
  width: clamp(48px, 8vw, 84px);
  background: linear-gradient(180deg, var(--gold) 0%, var(--maroon) 100%);
  border-radius: 10px 10px 4px 4px;
}
.growth-year {
  display: block;
  margin-top: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest-soft);
}
.growth-caption {
  font-size: 0.85rem;
  color: var(--forest-soft);
  max-width: 20ch;
  margin: 0.4rem 0 0;
}

/* ---------- Hero photo panel ---------- */
.hero-photo {
  margin-top: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 700px) {
  .hero-photo { aspect-ratio: 4/3; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hover polish ---------- */
.photo-grid img,
.timeline-photo,
.portrait-photo {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.photo-grid img:hover,
.timeline-photo:hover,
.portrait-photo:hover {
  transform: scale(1.025);
}

/* ---------- Callout / CTA band ---------- */
.cta-band {
  background: var(--forest);
  color: var(--cream);
  text-align: center;
}
.cta-band h2 { color: var(--cream); }
.cta-band .btn-outline { color: var(--cream); border-color: var(--cream); }
.cta-band .btn-outline:hover { background: var(--cream); color: var(--forest); }

.note {
  border-left: 3px solid var(--gold);
  padding-left: 1.4rem;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--forest-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--forest);
  color: var(--cream-dim);
  padding: 3.5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--gold);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 700;
}
.site-footer a { color: var(--cream-dim); }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-bottom {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 0;
  border-top: 1px solid rgba(245,241,230,0.15);
  font-size: 0.8rem;
  color: rgba(245,241,230,0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Page header (interior pages) ---------- */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 5vw, 3rem);
}

/* ---------- Merged intro block (About) ---------- */
.intro-block {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3rem, 7vw, 5rem);
}
.intro-headline {
  max-width: 26ch;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
.intro-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  border-top: 1px solid rgba(43,43,40,0.12);
  padding-top: clamp(1.8rem, 4vw, 2.6rem);
}
.intro-lede {
  font-size: 1.15rem;
  color: var(--forest-soft);
  margin: 0;
}
.intro-detail p {
  max-width: 60ch;
  color: var(--charcoal);
}
@media (max-width: 860px) {
  .intro-body { grid-template-columns: 1fr; }
}

/* ---------- Glossary rows (About: Mission/Vision/Philosophy) ---------- */
.glossary-list {
  margin: 0;
}
.glossary-row {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.6rem, 4vw, 2.2rem) 0;
  border-top: 1px solid rgba(43,43,40,0.12);
  margin: 0;
}
.glossary-row:last-child {
  border-bottom: 1px solid rgba(43,43,40,0.12);
}
.glossary-row dt {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0;
}
.glossary-row dd {
  margin: 0;
  color: var(--forest-soft);
  max-width: 62ch;
}
.glossary-row dd p { margin: 0 0 1em; }
.glossary-row dd p:last-child { margin-bottom: 0; }
@media (max-width: 700px) {
  .glossary-row { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ---------- Vertical timeline (Story) ---------- */
.timeline {
  position: relative;
  margin-top: clamp(2rem, 5vw, 3rem);
}
.timeline::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(43,43,40,0.15);
}
.timeline-item {
  position: relative;
  padding-left: 64px;
  margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--cream);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--maroon);
  z-index: 1;
}
.timeline-content {
  display: flex;
  gap: clamp(1.2rem, 3vw, 1.8rem);
  align-items: flex-start;
}
.timeline-content .timeline-photo {
  width: 130px;
  flex: 0 0 130px;
  margin: 0;
}
.timeline-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest-soft);
  margin-bottom: 0.5em;
}
@media (max-width: 700px) {
  .timeline-content { flex-direction: column; }
  .timeline-content .timeline-photo { width: 100%; flex: none; max-width: 200px; }
}

/* ---------- Manifesto statement (Story: The Bigger Realization) ---------- */
.manifesto h2 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  max-width: 17ch;
}
.manifesto p {
  font-size: 1.08rem;
  max-width: 62ch;
}

/* ---------- Initiative list (Programs) ---------- */
.initiative-list {
  list-style: none;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0;
}
.initiative-list li {
  display: grid;
  grid-template-columns: minmax(160px, 280px) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.8rem, 4vw, 2.6rem) 0;
  border-top: 1px solid rgba(43,43,40,0.12);
}
.initiative-list li:last-child {
  border-bottom: 1px solid rgba(43,43,40,0.12);
}
.initiative-head .eyebrow { display: block; margin-bottom: 0.5em; }
.initiative-head h3 { margin: 0; }
.initiative-body p { color: var(--forest-soft); max-width: 58ch; }
@media (max-width: 700px) {
  .initiative-list li { grid-template-columns: 1fr; }
}
