/* ============================================================
   Threads of Hope Global — shared stylesheet
   ============================================================ */

:root {
  --cream:        #faf5ec;
  --cream-deep:    #f1e8d8;
  --ink:          #211c16;
  --ink-soft:      #52493d;
  --rust:         #b98f5e;
  --rust-deep:     #8a6a42;
  --gold:         #d9a441;
  --forest:       #204c3b;
  --forest-deep:   #163527;
  --line:         #e4d9c4;
  --white:        #ffffff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -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);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--forest-deep);
}
p { margin: 0 0 1.1em; }
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust-deep);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--rust-deep);
  display: inline-block;
}

/* -------- thread stitch divider -------- */
.stitch {
  height: 14px;
  width: 100%;
  background-image: repeating-linear-gradient(
    100deg,
    var(--gold) 0 16px,
    transparent 16px 28px
  );
  background-position: center;
  background-repeat: no-repeat;
  background-size: auto 2px;
  background-position-y: center;
  opacity: 0.9;
}

/* -------- buttons -------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn-primary {
  background: var(--rust);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(185, 143, 94, 0.55);
}
.btn-primary:hover { transform: translateY(-1px); opacity: 0.94; }
.btn-outline {
  border: 1.5px solid var(--forest);
  color: var(--forest-deep);
}
.btn-outline:hover { background: var(--forest); color: var(--white); }
.btn-light {
  background: var(--white);
  color: var(--forest-deep);
}
.btn-light:hover { transform: translateY(-1px); }

/* -------- header / nav -------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 236, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--forest-deep);
}
.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--rust) 0%, var(--gold) 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}
nav.main-nav a:hover { color: var(--rust-deep); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 6px 0 20px;
  border-top: 1px solid var(--line);
}
.mobile-nav a {
  padding: 13px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: none; }

@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  body.nav-open .mobile-nav { display: flex; }
}

/* -------- breadcrumb -------- */
.breadcrumb {
  font-size: 13px;
  color: var(--ink-soft);
  padding-top: 26px;
}
.breadcrumb a:hover { color: var(--rust-deep); }

/* -------- hero (home) -------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-bg, .page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-collage {
  position: absolute; inset: 0;
  display: flex;
}
.hero-collage .panel {
  flex: 1 1 0;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-collage .panel + .panel::before {
  content: "";
  position: absolute; inset: 0 auto 0 0;
  width: 2px;
  background: rgba(250,245,236,0.18);
}
.hero-overlay, .page-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(22,53,39,0.35) 0%, rgba(22,53,39,0.55) 55%, rgba(20,17,13,0.92) 100%);
}
.hero-content {
  position: relative;
  padding: 90px 0 76px;
  color: var(--white);
}
.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  max-width: 16ch;
  margin-bottom: 0.4em;
}
.hero-content .lede {
  max-width: 56ch;
  font-size: 18px;
  color: rgba(255,255,255,0.88);
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.scroll-cue {
  position: absolute;
  bottom: 26px; left: 28px;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  letter-spacing: 0.18em;
  display: flex; align-items: center; gap: 10px;
}
.scroll-cue::after {
  content: "";
  width: 1px; height: 26px;
  background: rgba(255,255,255,0.5);
}

/* -------- page hero (subpages) -------- */
.page-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero .hero-content { padding: 70px 0 56px; }
.page-hero .lede { font-size: 17px; }

/* -------- stat / vision section -------- */
section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 36px; }
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 760px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 22px;
}
.stat-card .num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--rust-deep);
  display: block;
  margin-bottom: 6px;
}
.stat-card .label { font-size: 14px; color: var(--ink-soft); }

/* -------- programs -------- */
.bg-forest { background: var(--forest-deep); color: rgba(255,255,255,0.92); }
.bg-forest h2 { color: var(--white); }
.bg-forest .eyebrow { color: var(--gold); }
.bg-forest .eyebrow::before { background: var(--gold); }

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 46px;
}
@media (max-width: 940px) {
  .program-grid { grid-template-columns: 1fr; }
}
.program-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.program-img {
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.program-img .num {
  position: absolute;
  top: 16px; left: 16px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(20,17,13,0.55);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
}
.program-card .body { padding: 26px 24px 30px; flex: 1; display: flex; flex-direction: column; }
.program-card h3 { color: var(--white); font-size: 1.3rem; }
.program-card p { color: rgba(255,255,255,0.78); font-size: 15px; flex: 1; }
.program-card .link {
  font-size: 14px; font-weight: 600; color: var(--gold);
  margin-top: 10px;
}

/* -------- image band (photo strip) -------- */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 760px) {
  .photo-strip { grid-template-columns: 1fr 1fr; }
}
.photo-strip figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--cream-deep);
}
.photo-strip img { width: 100%; height: 100%; object-fit: cover; }

/* -------- get involved -------- */
.involve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 44px;
}
@media (max-width: 900px) { .involve-grid { grid-template-columns: 1fr; } }
.involve-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 26px;
}
.involve-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.involve-card p { font-size: 15px; color: var(--ink-soft); }
.involve-card .link { font-size: 14px; font-weight: 700; color: var(--rust-deep); margin-top: 8px; display: inline-block; }

/* -------- CTA band -------- */
.cta-band {
  background: linear-gradient(120deg, var(--forest-deep) 0%, #1c3b52 100%);
  color: var(--white);
  text-align: center;
  padding: 84px 0;
}
.cta-band h2 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 26ch; margin: 0 auto 20px; }

/* -------- contact -------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { padding: 24px 0; border-top: 1px solid var(--line); }
.contact-card .k { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rust-deep); font-weight: 700; margin-bottom: 8px; }
.contact-card .v { font-size: 17px; font-weight: 600; color: var(--forest-deep); }

/* -------- testimonial -------- */
.testimonial {
  background: var(--cream-deep);
  border-radius: 20px;
  padding: 44px;
}
@media (max-width: 640px) { .testimonial { padding: 30px 22px; } }
.testimonial p.quote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--forest-deep);
  line-height: 1.5;
}
.testimonial .who { font-size: 14px; color: var(--ink-soft); font-weight: 600; }

/* -------- footer -------- */
footer.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 15px; }
.footer-grid li a:hover { color: var(--white); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand span.name { font-family: var(--font-display); color: var(--white); font-size: 18px; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* -------- generic prose section -------- */
.prose h2 { font-size: 1.6rem; margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); font-size: 16.5px; }
.prose strong { color: var(--forest-deep); }
