/*
 * Biz4Ed Foundation shared stylesheet -- used by every page.
 * Moved out of index.html's inline <style> block in T005; shared header,
 * nav, page-header and footer rules live here too. No build step: edit
 * this file directly.
 */
:root {
  color-scheme: light;
  --navy: #0b1f3a;
  --navy-soft: #16305a;
  --gold: #d4a017;
  --gold-dark: #7a5a08;
  --bg: #f7f7f5;
  --bg-band: #eef0ea;
  --ink: #0b1f3a;
  --ink-soft: #4b5563;
  --card-bg: #ffffff;
  --border: #e2e2dc;
  --max: 68rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
a { color: inherit; }

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--navy);
  color: #fff;
}
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  gap: 0.5rem 1.5rem;
}
.brand {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
}
.brand span { color: var(--gold); }

/* Shared site nav (header) -- plain links that wrap onto extra lines on
   narrow screens, so every link stays reachable with no JS and no
   horizontal scroll. */
.site-nav ul,
.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}
.site-nav ul { gap: 0.25rem 1.25rem; }
.site-nav a {
  display: inline-block;
  padding: 0.35rem 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.55); }
.site-nav a[aria-current="page"] {
  color: #fff;
  border-bottom-color: var(--gold);
}
.site-nav a:focus-visible,
.brand:focus-visible,
.footer-nav a:focus-visible,
footer.site .legal a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Page header (top band on inner pages and 404) */
.page-header {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  padding: 3rem 0 3.25rem;
}
.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.page-header .lede {
  max-width: 42rem;
  margin: 0;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
}
.page-header .lede + .lede { margin-top: 0.75rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
  background: var(--gold);
  color: var(--navy);
}
.btn-gold:hover { background: var(--gold-dark); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.btn-outline:hover { border-color: #fff; }
.btn-navy {
  background: var(--navy);
  color: #fff;
}
.btn-navy:hover { background: var(--navy-soft); }

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff;
  padding: 4.5rem 0 5rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.hero .lede {
  max-width: 42rem;
  margin: 0 auto 2.25rem;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
}
.hero .cta-row {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sections */
section { padding: 4rem 0; }
section.band { background: var(--bg-band); }
section.navy {
  background: var(--navy);
  color: #fff;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin: 0 0 0.6rem;
}
section.navy .eyebrow { color: var(--gold); }
h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
}
.lead-text {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 46rem;
}
section.navy .lead-text { color: rgba(255, 255, 255, 0.85); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.5rem 1.35rem;
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}
.step h3 {
  font-size: 1.02rem;
  margin: 0 0 0.5rem;
}
.step p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.split-model {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2rem;
}
.split-model .col {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.5rem;
}
.split-model .col h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}
.split-model .col p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Matching example */
.match-example {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 2rem;
}
.match-figure {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
}
.match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.95rem;
}
.match-row:last-of-type { border-bottom: none; }
.match-row .label { color: var(--ink-soft); }
.match-row .value { font-weight: 700; }
.match-total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--navy);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.match-total .label { font-weight: 600; }
.match-total .value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-dark);
}
.match-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Audience sections */
.audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.audience .copy p { color: var(--ink-soft); }
.audience ul {
  list-style: none;
  margin: 1.5rem 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.audience ul li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-size: 0.98rem;
}
.audience ul li::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 0.5rem;
}
.audience-visual {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
  height: 100%;
}
.audience-visual h3 {
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.audience-visual p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.audience:nth-of-type(even) .copy { order: 2; }
.audience:nth-of-type(even) .audience-visual { order: 1; }
section.navy .audience .copy p { color: rgba(255, 255, 255, 0.85); }
section.navy .audience-visual h3,
section.navy .audience-visual p { color: rgba(255, 255, 255, 0.75); }

/* Join us */
.join-ctas {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Interest-capture form */
#interest-form {
  margin-top: 2rem;
  display: grid;
  gap: 1.1rem;
}
.form-row {
  display: grid;
  gap: 0.4rem;
}
.form-row-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.form-row label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}
.form-row input,
.form-row select,
.form-row textarea {
  font: inherit;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--card-bg);
  color: var(--ink);
  width: 100%;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* Plain-language privacy notice above the submit button (Get Involved page). */
.form-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
#interest-form-submit {
  justify-self: start;
  border: none;
  cursor: pointer;
}
#interest-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
#interest-form-status {
  margin: 0;
  font-size: 0.92rem;
  min-height: 1.2em;
}
#interest-form-status[data-state="success"] { color: #1f7a3d; }
#interest-form-status[data-state="error"] { color: #b3261e; }
@media (max-width: 560px) {
  .form-row-group { grid-template-columns: 1fr; }
}

/* Footer */
footer.site {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 2.5rem 0;
  font-size: 0.9rem;
}
footer.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
footer.site .brand { color: #fff; }
footer.site .tagline { margin-top: 0.35rem; max-width: 28rem; }
.footer-nav ul { gap: 0.25rem 1.1rem; }
.footer-nav a {
  display: inline-block;
  padding: 0.25rem 0;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  white-space: nowrap;
}
.footer-nav a:hover { color: #fff; text-decoration: underline; }
footer.site .legal {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}
footer.site .legal a { color: inherit; }

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .match-example { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; }
  .audience:nth-of-type(even) .copy,
  .audience:nth-of-type(even) .audience-visual { order: initial; }
  .split-model { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  /* On phones the nav wraps to two lines; stop the header from sticking so
     it doesn't take up a big slice of a small screen while scrolling. */
  header.site { position: static; }
  header.site .wrap { flex-direction: column; align-items: flex-start; }
}
