/* =====================================================================
   Capacity Counselling - styles.css
   Warm, grounded, nature-inspired aesthetic. Fraunces + Inter.
   Mobile-first. WCAG AA. No generic-template look.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400..600;1,9..144,400&family=Inter:wght@400;500;600&display=swap');

/* ---------- Design tokens ---------- */
:root {
  /* surfaces */
  --white: #FFFFFF;
  --offwhite: #FAF7F2;
  --sand: #EDE4D2;
  --mist: #D7D2C7;
  /* text */
  --charcoal: #574848;
  --muted: #8A7A7A;
  /* brand */
  --rose: #DB1B40;
  --ocean: #126993;
  --teal: #0D5369;
  /* accents (decorative / large text only) */
  --marigold: #EF811C;
  --green: #4A9C34;
  /* footer text on dark */
  --on-dark: #F6F1E8;

  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --maxw: 1180px;
  --maxw-narrow: 720px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(87,72,72,.06), 0 6px 18px rgba(87,72,72,.06);
  --shadow-md: 0 10px 40px rgba(13,83,105,.10);

  --space-section: clamp(3.5rem, 8vw, 7rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { max-width: 100%; display: block; height: auto; }
a { color: var(--ocean); text-decoration: none; }
a:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .65em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.1rem); line-height: 1.18; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.25; }
h4 { font-size: 1.0625rem; line-height: 1.3; }
p { margin: 0 0 1.1rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ocean);
  margin: 0 0 1rem;
}
.lede {
  font-size: clamp(1.125rem, 1.7vw, 1.3rem);
  line-height: 1.55;
  color: var(--charcoal);
}

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: var(--maxw-narrow); }
.section { padding: var(--space-section) 0; }
.section-alt { background: var(--offwhite); }
.section-sand { background: var(--sand); }

.grid { display: grid; gap: 2rem; }
@media (min-width: 760px) {
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600; font-size: 1rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  text-decoration: none !important;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; }
.btn-primary, .btn-primary:visited { background: var(--teal); color: var(--on-dark); }
.btn-primary:hover { background: #0a4256; color: var(--on-dark); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-secondary:hover { background: var(--teal); color: var(--on-dark); }
.btn-ghost { background: rgba(246,241,232,.14); color: var(--on-dark); border-color: rgba(246,241,232,.5); }
.btn-ghost:hover { background: var(--on-dark); color: var(--teal); }

/* ---------- Skip link / sr-only ---------- */
.sr-only {
  position: absolute; left: -9999px; top: 0;
  background: var(--teal); color: var(--on-dark);
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius-sm) 0;
  z-index: 1000; font-weight: 600;
}
.sr-only:focus { left: 0; }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,247,242,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--sand);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: .65rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 46px; width: auto; }
.lockup-responsive img { height: 46px; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--mist);
  border-radius: var(--radius-sm); color: var(--teal); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle:focus-visible { outline: 3px solid var(--ocean); outline-offset: 2px; }

.nav-links {
  list-style: none; display: flex; align-items: center; gap: .25rem;
  margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  font-size: .9375rem; font-weight: 500;
  color: var(--charcoal);
  padding: .5rem .7rem; border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--sand); color: var(--teal); text-decoration: none; }
.nav-links a.active { color: var(--teal); background: var(--sand); }
.nav-links a.active::after {
  content: ""; display: block; height: 2px; margin-top: 3px;
  background: var(--rose); border-radius: 2px;
}

/* mobile nav */
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: var(--offwhite);
    border-bottom: 1px solid var(--sand);
    padding: .75rem 1.5rem 1.25rem;
    box-shadow: var(--shadow-sm);
    max-height: 0; overflow: hidden;
    opacity: 0; pointer-events: none;
    transition: max-height .28s ease, opacity .2s ease;
  }
  .nav-links.open { max-height: 80vh; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: .8rem .85rem; font-size: 1rem; }
  .nav-links a.active::after { display: none; }
}
@media (min-width: 981px) {
  .nav-toggle { display: none; }
  .nav-links { max-height: none !important; opacity: 1 !important; pointer-events: auto !important; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(120% 120% at 90% 0%, rgba(18,105,147,.06), transparent 55%),
    linear-gradient(180deg, var(--offwhite), var(--white));
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; }
}
.hero-text h1 { margin-bottom: .5em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art img { width: min(360px, 80%); position: relative; z-index: 1; filter: drop-shadow(0 22px 50px rgba(13,83,105,.18)); }
.mark-bg {
  position: absolute; inset: 0; margin: auto;
  width: min(380px, 86%); aspect-ratio: 1;
  background: radial-gradient(circle at 50% 45%, rgba(237,228,210,.9), rgba(215,210,199,.35) 60%, transparent 72%);
  border-radius: 50%;
}

/* ---------- Page hero (interior pages, full-width photographic) ---------- */
.page-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(360px, 52vh, 520px);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2.25rem, 5vw, 3.75rem);
  overflow: hidden;
  isolation: isolate;
  background: var(--teal);
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: -2;
}
.page-hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Legibility overlay: stronger on the left where text sits, fading right. */
.page-hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(40,28,28,.82) 0%, rgba(40,28,28,.62) 42%, rgba(40,28,28,.18) 78%, rgba(40,28,28,.06) 100%),
    linear-gradient(0deg, rgba(40,28,28,.45) 0%, rgba(40,28,28,0) 55%);
}
.page-hero-text {
  max-width: 46rem;
  color: #FFFFFF;
}
.page-hero-text .eyebrow { color: #FFE3C2; }
.page-hero-text h1 {
  color: #FFFFFF;
  margin-bottom: .4em;
  text-shadow: 0 2px 18px rgba(30,18,18,.45);
}
.page-hero-text .lede {
  color: rgba(255,255,255,.94);
  text-shadow: 0 1px 12px rgba(30,18,18,.4);
}
.page-hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.6rem; }
.page-hero-actions .btn { box-shadow: 0 8px 24px rgba(20,12,12,.32); }
.page-hero-actions .btn-primary, .page-hero-actions .btn-primary:visited { background: var(--marigold); color: #2E1A08; }
.page-hero-actions .btn-primary:hover { background: #d96f0d; color: #2E1A08; }
.btn-hero-ghost {
  background: rgba(255,255,255,.12);
  color: #FFFFFF;
  border-color: rgba(255,255,255,.7);
  backdrop-filter: blur(2px);
}
.btn-hero-ghost:hover { background: #FFFFFF; color: var(--teal); border-color: #FFFFFF; }

/* Home hero: taller, content vertically centred for landing impact. */
.home-hero {
  align-items: center;
  min-height: clamp(440px, 64vh, 620px);
}

/* ---------- About intro (portrait + welcome) ---------- */
.about-intro {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 760px) {
  .about-intro { grid-template-columns: minmax(220px, 320px) 1fr; gap: clamp(2rem, 4vw, 3.25rem); }
}
.about-portrait { margin: 0; }
.about-portrait img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--sand);
}
.about-portrait figcaption {
  margin-top: .85rem;
  font-size: .85rem; letter-spacing: .04em;
  color: var(--teal); font-weight: 600;
  text-align: center;
}
@media (min-width: 760px) {
  .about-portrait figcaption { text-align: left; }
}
.about-intro-text .lede { margin-top: 0; }
@media (max-width: 720px) {
  .page-hero {
    align-items: flex-end;
    min-height: clamp(420px, 70vh, 560px);
  }
  .page-hero-bg img { object-position: 60% center; }
  .page-hero-overlay {
    background:
      linear-gradient(0deg, rgba(40,28,28,.86) 0%, rgba(40,28,28,.55) 45%, rgba(40,28,28,.18) 100%);
  }
  .page-hero-text { max-width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .page-hero-text { animation: heroFade .7s ease both; }
}
@keyframes heroFade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--mist); }
.card-tag {
  display: inline-block;
  font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ocean);
  background: var(--sand);
  padding: .35rem .7rem; border-radius: 999px;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: .75rem; }

/* ---------- Topic groups / lists ---------- */
.topic-group { margin-bottom: 2rem; }
.topic-group:last-child { margin-bottom: 0; }
.topic-group h4 { color: var(--teal); margin-bottom: .75rem; font-size: 1.05rem; }
.topic-list { list-style: none; margin: 0; padding: 0; }
.topic-list li {
  position: relative; padding-left: 1.65rem; margin-bottom: .55rem;
  color: var(--charcoal);
}
.topic-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: .65rem; height: .65rem; border-radius: 50%;
  background: var(--marigold);
}

/* ---------- Pillars ---------- */
.pillars { display: grid; gap: 1.5rem; }
@media (min-width: 860px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--white); border: 1px solid var(--sand);
  border-radius: var(--radius); padding: 1.75rem;
}
.pillar-num {
  font-family: var(--font-head); font-weight: 500; font-size: 2rem;
  color: var(--green); line-height: 1; flex: none;
}
.pillar h3 { margin-bottom: .5rem; }

/* ---------- Prose blocks (interior content) ---------- */
.prose { max-width: var(--maxw-narrow); }
.prose h2 { margin-top: 2.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .5rem; }

/* feature row alternating */
.feature {
  display: grid; gap: 2rem; align-items: center; margin-bottom: var(--space-section);
}
.feature:last-child { margin-bottom: 0; }
@media (min-width: 820px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}
.feature .feature-media {
  background: var(--sand); border-radius: var(--radius);
  min-height: 240px; display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}
.feature .feature-media img { width: min(200px, 60%); filter: drop-shadow(0 14px 30px rgba(13,83,105,.15)); }

/* ---------- FAQ ---------- */
.faq-list { max-width: var(--maxw-narrow); margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--sand);
  padding: 1.5rem 0;
}
.faq-item:first-child { padding-top: 0; }
.faq-item h3 { color: var(--teal); margin-bottom: .6rem; }

/* ---------- Fees table ---------- */
.fees-grid { display: grid; gap: 1.25rem; max-width: var(--maxw-narrow); margin: 0 auto; grid-template-columns: 1fr; }
@media (min-width: 640px) { .fees-grid { grid-template-columns: repeat(2, 1fr); } }
.fee-card {
  background: var(--white); border: 1px solid var(--sand);
  border-radius: var(--radius); padding: 1.75rem; text-align: center;
  box-shadow: var(--shadow-sm);
}
.fee-card .fee-name { font-weight: 600; color: var(--teal); margin-bottom: .35rem; }
.fee-card .fee-price { font-family: var(--font-head); font-size: 2rem; color: var(--charcoal); margin: .25rem 0; }
.fee-card .fee-meta { color: var(--muted); font-size: .95rem; }
.note-box {
  background: var(--offwhite); border: 1px solid var(--sand);
  border-left: 4px solid var(--ocean);
  border-radius: var(--radius-sm); padding: 1.25rem 1.5rem;
  max-width: var(--maxw-narrow); margin: 2rem auto 0;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background:
    radial-gradient(120% 160% at 0% 0%, rgba(18,105,147,.5), transparent 60%),
    var(--teal);
  color: var(--on-dark);
  text-align: center;
  padding: var(--space-section) 0;
}
.cta-strip h2 { color: var(--on-dark); }
.cta-strip p { max-width: 40rem; margin: 0 auto 1.75rem; color: rgba(246,241,232,.85); }
/* On the teal CTA strip, the primary button needs marigold for contrast (teal-on-teal reads as washed out / already clicked). */
.cta-strip .btn-primary, .cta-strip .btn-primary:visited { background: var(--marigold); color: #2E1A08; }
.cta-strip .btn-primary:hover { background: #d96f0d; color: #2E1A08; box-shadow: var(--shadow-md); }

/* ---------- Contact form ---------- */
.contact-layout { display: grid; gap: 3rem; }
@media (min-width: 880px) { .contact-layout { grid-template-columns: 1.2fr .8fr; gap: 4rem; } }
.form { display: grid; gap: 1.25rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .95rem; color: var(--charcoal); }
.field .req { color: var(--rose); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--charcoal);
  padding: .8rem .9rem;
  border: 1.5px solid var(--mist); border-radius: var(--radius-sm);
  background: var(--white); width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(18,105,147,.15);
}
.consent { display: flex; gap: .65rem; align-items: flex-start; }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; flex: none; }
.consent label { font-weight: 400; font-size: .95rem; color: var(--muted); }
.form-status { border-radius: var(--radius-sm); padding: .9rem 1.1rem; font-weight: 500; display: none; }
.form-status.show { display: block; }
.form-status.success { background: rgba(74,156,52,.12); color: #2f6a1f; border: 1px solid rgba(74,156,52,.4); }
.form-status.error { background: rgba(219,27,64,.08); color: #a3122d; border: 1px solid rgba(219,27,64,.35); }

.contact-aside { }
.contact-aside .info-block { margin-bottom: 1.75rem; }
.contact-aside h3 { color: var(--teal); font-size: 1.15rem; margin-bottom: .5rem; }
.location-list { list-style: none; margin: .9rem 0; padding: 0; }
.location-list li { padding: .75rem 0 .85rem; border-top: 1px solid var(--sand); line-height: 1.5; }
.location-list li:first-child { border-top: none; }
.location-list strong { color: var(--charcoal); }
.contact-crisis {
  background: var(--offwhite); border: 1px solid var(--sand);
  border-left: 4px solid var(--rose);
  border-radius: var(--radius-sm); padding: 1.1rem 1.25rem;
  font-size: .95rem;
}

/* ---------- Profile links (About) ---------- */
.profile-links { list-style: none; margin: .75rem 0 .5rem; padding: 0; display: grid; gap: .6rem; }
.profile-links li { margin: 0; }
.profile-links a {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; color: var(--ocean);
}
.profile-links a::before {
  content: ""; width: .5rem; height: .5rem; border-radius: 50%;
  background: var(--marigold); flex: none;
}
.profile-note { font-size: .92rem; color: var(--muted); }

/* ---------- Events & Media ---------- */
.media-tabs {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
  margin: 0 auto 2.5rem; max-width: var(--maxw-narrow);
}
.media-tab {
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: .6rem 1.15rem; border-radius: 999px;
  border: 1.5px solid var(--mist); background: var(--white); color: var(--charcoal);
  cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.media-tab:hover { border-color: var(--teal); color: var(--teal); }
.media-tab.active { background: var(--teal); color: var(--on-dark); border-color: var(--teal); }
.media-tab:focus-visible { outline: 3px solid var(--ocean); outline-offset: 2px; }

.media-filters {
  display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center; align-items: center;
  margin: -1rem auto 2.5rem; max-width: var(--maxw-narrow);
}
.media-filters-label {
  font-family: var(--font-body); font-size: .85rem; font-weight: 600;
  color: var(--muted); margin-right: .35rem;
}
.type-filter {
  font-family: var(--font-body); font-weight: 600; font-size: .82rem;
  padding: .4rem .9rem; border-radius: 999px;
  border: 1.5px solid var(--mist); background: var(--white); color: var(--charcoal);
  cursor: pointer; transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.type-filter:hover { border-color: var(--marigold); color: var(--marigold); }
.type-filter.active { background: var(--marigold); color: var(--on-dark); border-color: var(--marigold); }
.type-filter:focus-visible { outline: 3px solid var(--ocean); outline-offset: 2px; }
.media-empty {
  text-align: center; color: var(--muted); font-style: italic;
  margin: 0 auto 2rem; max-width: var(--maxw-narrow);
}

.media-panel { display: none; }
.media-panel.active { display: block; }

.timeline { display: grid; gap: 1.25rem; max-width: var(--maxw-narrow); margin: 0 auto; }
.event-card {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem 1.5rem;
  align-items: start;
  background: var(--white); border: 1px solid var(--sand);
  border-radius: var(--radius); padding: 1.6rem 1.75rem; box-shadow: var(--shadow-sm);
}
.event-date {
  font-family: var(--font-head); color: var(--teal); font-weight: 500;
  font-size: 1rem; line-height: 1.2; min-width: 5.5rem;
}
.event-body h3 { margin-bottom: .35rem; }
.event-meta {
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ocean); margin-bottom: .5rem;
}
.event-body p { margin-bottom: .65rem; }
@media (max-width: 620px) {
  .event-card { grid-template-columns: 1fr; gap: .4rem; }
}

.media-grid { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .media-grid { grid-template-columns: repeat(3, 1fr); } }
.channel-card { text-align: center; }
.channel-card .card-tag { display: inline-block; }
.placeholder-tag {
  display: inline-block; font-size: .72rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--marigold); background: rgba(239,129,28,.12);
  padding: .25rem .6rem; border-radius: 999px; margin-left: .5rem;
}
.collab-grid { display: grid; gap: 2rem; }
@media (min-width: 820px) { .collab-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* ---------- Footer ---------- */
.footer { background: var(--teal); color: var(--on-dark); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer a { color: rgba(246,241,232,.85); }
.footer a:hover { color: var(--white); }
.footer-grid {
  display: grid; gap: 2.5rem; grid-template-columns: 1fr;
  padding-bottom: 2.5rem; border-bottom: 1px solid rgba(246,241,232,.18);
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.1fr 1fr; } }
.footer-logo img, .footer-lockup-responsive img { height: 50px; width: auto; }
.footer h4 {
  color: var(--white); font-family: var(--font-body); font-weight: 600;
  font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase;
  margin: 0 0 1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer ul li { margin-bottom: .6rem; color: rgba(246,241,232,.78); }
.footer-crisis { margin-top: 1.25rem; font-size: .9rem; color: rgba(246,241,232,.78); }
.footer-crisis a { color: var(--white); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  padding-top: 1.75rem; font-size: .875rem; color: rgba(246,241,232,.62);
}

/* ---------- Scroll reveal ---------- */
/* Content is visible by default; only hidden once JS marks the page as
   JS-enabled, so content never disappears if JS fails or is slow. */
.js [data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s ease, transform .6s ease;
}
.js [data-reveal].revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.maxw-40 { max-width: 40rem; }
.lead-block { max-width: 42rem; margin-bottom: 3rem; }

/* ---------- Capacity-First Approach page ---------- */
.approach-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.approach-head .eyebrow { color: var(--marigold); }

/* Layout: tablist (left) + panels (right) on desktop; stacked on mobile */
.approach-layout { display: grid; grid-template-columns: minmax(0, 21rem) 1fr; gap: clamp(1.5rem, 3vw, 2.75rem); align-items: start; }

.approach-tabs {
  display: flex; flex-direction: column; gap: .75rem;
  list-style: none; margin: 0; padding: 0;
  position: sticky; top: 5.5rem;
}
.approach-tab {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--white); color: var(--charcoal);
  border: 1.5px solid var(--mist); border-radius: var(--radius);
  padding: 1rem 1.15rem; transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
  font-family: var(--font-body);
}
.approach-tab:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.approach-tab:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; }
.approach-tab-title {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: 1.08rem; line-height: 1.25; color: var(--teal);
}
.approach-tab-preview {
  display: block; margin-top: .4rem; font-size: .9rem; line-height: 1.5;
  color: rgba(87,72,72,.78);
}
.approach-tab.active {
  background: var(--teal); border-color: var(--teal);
  box-shadow: var(--shadow-md);
}
.approach-tab.active .approach-tab-title { color: var(--on-dark); }
.approach-tab.active .approach-tab-preview { color: rgba(246,241,232,.82); }

/* Panels */
.approach-panel { display: none; }
.approach-panel.active { display: block; animation: approach-fade .4s ease; }
@keyframes approach-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .approach-panel.active { animation: none; } }
.approach-panel { max-width: 44rem; }
.approach-panel-kicker {
  font-family: var(--font-head); font-style: italic; color: var(--marigold);
  font-size: 1.02rem; margin-bottom: .35rem;
}
.approach-panel h3 {
  font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--charcoal); margin-bottom: .85rem;
}
.approach-panel .lede { color: var(--charcoal); }

/* Callout box inside each panel */
.approach-callout {
  margin-top: 1.85rem; padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--white); border: 1px solid var(--sand);
  border-left: 4px solid var(--marigold); border-radius: var(--radius);
}
.approach-callout h4 {
  color: var(--teal); font-size: 1.1rem; margin: 0 0 1rem;
}
.approach-callout .topic-list { margin-bottom: 1rem; }
.approach-callout > p:last-child { margin-bottom: 0; font-style: italic; color: rgba(87,72,72,.85); }

/* CTA row (closing section) */
.cta-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }

@media (max-width: 860px) {
  .approach-layout { grid-template-columns: 1fr; }
  .approach-tabs {
    position: static; flex-direction: row; flex-wrap: nowrap;
    overflow-x: auto; gap: .65rem; padding-bottom: .5rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .approach-tab {
    flex: 0 0 78%; max-width: 20rem; scroll-snap-align: start;
  }
  .approach-tab-preview { display: none; }
  .approach-panel { max-width: none; }
}
