/* ===== Finding FairWays — design system =====
   Distinct from the other MHS-family sites on purpose: warm parchment paper
   instead of white or cream-fintech, deep pine green + brass gold instead of
   orange, and a soft organic serif (Fraunces) instead of classic-editorial
   or blocky-display type. Restrained and institutional — solid rules, plain
   cards, no novelty iconography. */
:root {
  --color-paper: #f6f2e6;
  --color-paper-deep: #efe8d5;
  --color-white: #fffdf7;
  --color-ink: #262319;
  --color-ink-soft: #5b5644;
  --color-line: #ddd3b4;

  /* Sourced directly from the Finding FairWays logo file: #3a6f45 is the
     logo's main green, #abe6b6 / #7fcb8d are its accent-bar mint greens. */
  --color-pine: #3a6f45;
  --color-pine-deep: #1a321f;
  --color-pine-mid: #7fcb8d;
  --color-fern: #abe6b6;

  --color-brass: #3a6f45;
  --color-brass-deep: #1a321f;
  --color-brass-bright: #abe6b6;

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

  --max-width: 1180px;
  --radius: 6px;
  --radius-sm: 3px;
  --shadow-soft: 0 10px 28px rgba(22, 40, 27, 0.09);
}

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

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

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

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

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

/* ===== Eyebrow label ===== */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-brass-deep);
}
.tag::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--color-brass);
}
.tag--on-dark { color: var(--color-brass-bright); }

/* ===== Divider ===== */
.stitch {
  border: none;
  border-top: 1px solid var(--color-line);
  margin: 0;
}

.section { padding: 76px 0; }
.section--tight { padding: 52px 0; }
.section--deep { background: var(--color-paper-deep); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); margin-top: 12px; }
.section-head p {
  max-width: 480px;
  color: var(--color-ink-soft);
  margin: 10px 0 0;
  font-size: 15px;
}
.section-head p, .card p, .involve-card p, .contact-grid p {
  text-wrap: balance;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { opacity: 0.9; }
.btn--primary { background: var(--color-pine); color: var(--color-white); }
.btn--outline { background: transparent; border-color: rgba(255,255,255,0.5); color: var(--color-white); }
.btn--outline:hover { background: rgba(255,255,255,0.1); }
.btn--brass { background: var(--color-pine); color: var(--color-white); }
.btn--ghost { background: var(--color-white); border-color: var(--color-line); color: var(--color-pine-deep); }
.btn--sm { padding: 9px 18px; font-size: 13px; }

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 230, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-pine-deep);
}
.nav-logo {
  height: 40px;
  width: auto;
}
.nav-brand-sub {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
  font-weight: 600;
  border-left: 1px solid var(--color-line);
  padding-left: 12px;
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--color-ink-soft);
  padding: 9px 11px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--color-pine-deep); }
.nav-links a.is-active { color: var(--color-pine-deep); border-bottom-color: var(--color-brass); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-pine-deep);
  margin: 5px 0;
}

/* ===== Page header (sub-pages) ===== */
.page-header {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--color-pine-deep);
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  padding: 44px 0;
}
.page-header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,40,27,0.4) 0%, rgba(22,40,27,0.68) 70%, rgba(22,40,27,0.78) 100%);
}
.page-header .wrap { position: relative; z-index: 1; }
.page-header h1 { font-size: clamp(32px, 4.4vw, 48px); color: var(--color-white); }
.page-header p {
  color: #e4e0cf;
  max-width: 600px;
  margin: 14px auto 0;
  font-size: 15px;
  text-wrap: balance;
}

/* ===== Home hero ===== */
.hero {
  position: relative;
  height: 62vh;
  min-height: 460px;
  max-height: 700px;
  overflow: hidden;
  background: var(--color-pine-deep);
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 38%;
  background-color: var(--color-pine-deep);
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,40,27,0.05) 0%, rgba(22,40,27,0.18) 60%, rgba(22,40,27,0.48) 100%);
}

.hero-tag-row {
  position: absolute;
  top: 24px;
  left: 0;
  right: 0;
  z-index: 2;
}

.hero-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 0 30px;
  z-index: 1;
}
.hero-caption h1.hero-h1 {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
  color: var(--color-white);
  margin-top: 0;
  white-space: nowrap;
}
.hero-caption p {
  font-size: 15.5px;
  color: #e4e0cf;
  max-width: 540px;
  margin: 10px 0 0;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 22px; }

.hero-dots {
  position: absolute;
  right: 24px;
  bottom: 26px;
  display: flex;
  gap: 7px;
  z-index: 2;
}
.hero-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
}
.hero-dots button.is-active { background: var(--color-brass-bright); }

@media (max-width: 700px) {
  .hero { height: 72vh; }
  .hero-dots { right: 16px; }
  .hero-caption h1.hero-h1 { white-space: normal; }
}

/* ===== Stats bar ===== */
.stats-bar {
  background: var(--color-paper-deep);
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-card {
  padding: 22px 24px;
  text-align: center;
  border-left: 1px solid var(--color-line);
}
.stat-card:first-child { border-left: none; }
.stat-number {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--color-ink);
  line-height: 1;
}
.stat-label {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-ink-soft);
}

/* ===== Quick link cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.card {
  display: block;
  text-decoration: none;
  color: var(--color-ink);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: border-color 0.15s ease;
}
.card:hover { border-color: var(--color-pine-mid); }
.card .arrow { color: var(--color-brass); font-weight: 600; }
.card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 6px; color: var(--color-pine-deep); }
.card p { font-size: 13.5px; color: var(--color-ink-soft); margin: 0; }

/* ===== Pull quote ===== */
.pull-quote {
  border-left: 3px solid var(--color-brass);
  padding: 2px 0 2px 26px;
  margin: 0;
}
.pull-quote--center {
  border-left: none;
  padding: 0;
  display: block;
  text-align: center;
}
.pull-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(21px, 2.7vw, 29px);
  color: var(--color-pine-deep);
  margin: 0;
  line-height: 1.42;
}
.pull-quote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-ink-soft);
}

/* ===== Two-up media/text ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
}
.split img { border-radius: var(--radius); }
.split-reverse .split-media { order: 2; }
.split h2 { font-size: clamp(23px, 3vw, 31px); margin-bottom: 15px; }
.split p { color: var(--color-ink-soft); font-size: 15px; margin: 0 0 12px; }
.split p:last-child { margin-bottom: 0; }
.split-media { position: relative; }
.split-media img { box-shadow: var(--shadow-soft); }

/* ===== Founder note ===== */
.founder-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 52px;
  align-items: start;
}
.founder-portrait {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.founder-copy blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(19px, 2.3vw, 23px);
  line-height: 1.55;
  color: var(--color-pine-deep);
}
.founder-copy .signoff {
  margin-top: 24px;
  font-family: var(--font-body);
  font-style: normal;
}
.founder-copy .signoff strong { display: block; font-size: 16px; font-family: var(--font-display); }
.founder-copy .signoff span { font-size: 13px; color: var(--color-ink-soft); }

/* ===== Timeline ===== */
.trail {
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--color-line);
}
.trail-item { position: relative; padding-bottom: 30px; }
.trail-item:last-child { padding-bottom: 0; }
.trail-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 5px;
  width: 9px;
  height: 9px;
  background: var(--color-brass);
}
.trail-date {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brass-deep);
  margin-bottom: 5px;
}
.trail-item p { margin: 0; font-size: 14.5px; color: var(--color-ink-soft); }

/* ===== Serves cards ===== */
.serves-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.serves-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 24px 24px;
}
.serves-card h3 { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; margin-bottom: 8px; color: var(--color-pine-deep); }
.serves-card p { margin: 0; color: var(--color-ink-soft); font-size: 13.5px; }
.serves-card .stamp {
  display: block;
  margin-top: 14px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-brass-deep);
}

/* ===== Video panel ===== */
.video-panel {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.video-frame { position: relative; aspect-ratio: 16 / 9; background: var(--color-pine-deep); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-panel-body { padding: 18px 20px; }
.video-panel-body h3 { font-family: var(--font-display); font-size: 16px; font-weight: 600; margin: 0 0 4px; color: var(--color-pine-deep); }
.video-panel-body p { margin: 0; font-size: 13px; color: var(--color-ink-soft); }

/* ===== Get Involved cards ===== */
.involve-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.involve-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.involve-card .step-number {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-brass-deep);
  letter-spacing: 0.02em;
}
.involve-card h3 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--color-pine-deep); }
.involve-card p { margin: 0; color: var(--color-ink-soft); font-size: 14px; flex: 1; }
.involve-card .btn { align-self: flex-start; margin-top: 6px; }

/* ===== Gallery ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 168px;
  grid-auto-flow: dense;
  gap: 8px;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  border-radius: var(--radius-sm);
  cursor: zoom-in;
}
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(22,40,27,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 32px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius); }
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
}

/* ===== Dark panel section ===== */
.section--panel {
  background: var(--color-pine-deep);
  color: var(--color-white);
}
.section--panel .section-head p { color: #cfd0bd; }
.section--panel .serves-card { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.16); }
.section--panel .serves-card h3 { color: var(--color-white); }
.section--panel .serves-card p { color: #cfd0bd; }
.section--panel .trail { border-left-color: rgba(255,255,255,0.2); }
.section--panel .trail-item p { color: #cfd0bd; }
.section--panel .trail-date { color: var(--color-brass-bright); }
.section--panel h2 { color: var(--color-white); }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-grid h2 { font-size: clamp(25px, 3.6vw, 34px); }
.contact-grid p { color: var(--color-ink-soft); max-width: 440px; margin: 14px 0 0; }
.contact-links { display: flex; flex-direction: column; gap: 14px; }
.contact-link {
  display: block;
  padding: 18px 22px;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-left: 3px solid var(--color-brass);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-ink);
  transition: border-color 0.15s ease;
}
.contact-link:hover { border-left-color: var(--color-pine); }
.contact-link .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-ink-soft);
  display: block;
  margin-bottom: 3px;
  font-weight: 700;
}
.contact-link .value { font-size: 15px; }

.site-footer {
  background: var(--color-pine-deep);
  color: #a9ab97;
  font-size: 13px;
  padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 66px;
    left: 0;
    right: 0;
    background: var(--color-paper);
    padding: 16px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--color-line);
    z-index: 60;
  }
  .nav-links.is-open a { padding: 12px 8px; border-bottom: none; }
  .nav-links.is-open a.is-active { background: var(--color-paper-deep); border-radius: var(--radius-sm); }
  .nav-brand-sub { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(odd) { border-left: none; }
  .stat-card { border-top: 1px solid var(--color-line); }
  .stat-card:nth-child(1), .stat-card:nth-child(2) { border-top: none; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .involve-grid { grid-template-columns: 1fr; }
  .serves-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .split-reverse .split-media { order: 0; }
  .founder-wrap { grid-template-columns: 1fr; }
  .founder-portrait { max-width: 220px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 148px; }
  .section { padding: 56px 0; }
}

@media (max-width: 520px) {
  .card-grid { grid-template-columns: 1fr; }
}
