/* =====================================================================
   CARE — Master Strategic Website
   Design system: institutional wayfinding, not marketplace decoration.
   Palette: sourced directly from the Infinity C.A.R.E. logo —
   navy ink, azure, ochre gold, lilac and teal, on cool paper.
   Type: Fraunces (display) + Work Sans (body) + IBM Plex Mono (utility)
   ===================================================================== */

/* Fonts are loaded via <link> in the HTML <head> of every page
   (Fraunces / Work Sans / IBM Plex Mono) — see index.html and the
   legal page shells. */

:root{
  /* --- palette (drawn from the Infinity C.A.R.E. logo) --- */
  --ink:        #0B3D66;   /* primary dark — logo "INFINITY" / IMI navy */
  --ink-2:      #082A47;   /* deepest ink, dark sections */
  --paper:      #F4F7FA;   /* cool azure-tinted paper */
  --paper-2:    #FFFFFF;
  --moss:       #2F8E96;   /* secondary / growth / trust — logo "Educating" teal */
  --moss-dark:  #24696F;
  --gold:       #E5A518;   /* signature warm accent — logo gold medallion */
  --gold-dark:  #B87F10;
  --slate:      #4B6270;   /* muted body text on paper */
  --slate-soft: #7C93A3;
  --line:       #DCE4EA;   /* hairline borders on paper */
  --line-dark:  rgba(244,247,250,0.16);

  /* --- logo accent set (used for pillar highlights) --- */
  --blue:       #0086C9;   /* logo "C" / Counselling */
  --orange:     #F0A868;   /* logo "A" / Assessing */
  --purple:     #C9A0CE;   /* logo "R" / Recruiting */
  --teal:       #3E9CA1;   /* logo "E" / Educating */

  --font-display: 'Fraunces', 'Source Serif 4', Georgia, serif;
  --font-body: 'Work Sans', 'Manrope', -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Menlo, monospace;

  --container: 1180px;
  --radius: 3px;
  --shadow-card: 0 1px 2px rgba(11,61,102,0.06), 0 8px 24px rgba(11,61,102,0.05);
  --ease: cubic-bezier(.22,.68,.29,1);
}

/* ---------------------------------------------------------------------
   Reset & base
   --------------------------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--ink);
}
p{ margin: 0 0 1em; color: var(--slate); }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
img{ max-width: 100%; display: block; }
blockquote{ margin: 0; }
button{ font-family: inherit; }

::selection{ background: var(--gold); color: var(--paper-2); }

:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink);
  color: var(--paper-2);
  padding: 0.85em 1.4em;
  z-index: 999;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border-radius: 0 0 4px 0;
}
.skip-link:focus{ left: 0; top: 0; }

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

.hidden{ position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------------
   Brand ribbon — signature gradient pulled from the logo ring
   --------------------------------------------------------------------- */
body{
  padding-top: 6px;
}
body::before{
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue), var(--orange), var(--purple), var(--teal));
  z-index: 200;
}

/* ---------------------------------------------------------------------
   Notice bar
   --------------------------------------------------------------------- */
.notice-bar{
  background: var(--ink-2);
  color: rgba(244,246,242,0.82);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 16px;
}

/* ---------------------------------------------------------------------
   Header / nav
   --------------------------------------------------------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244,246,242,0.92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.site-header.is-scrolled{ box-shadow: 0 4px 24px rgba(18,48,58,0.07); }

.nav-wrap{
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
  /* Wider than the site's normal --container (1180px) — the nav row
     genuinely needs more room than body content does. This is a common,
     safe pattern (header spans wider than the content column below it)
     rather than continuing to shrink nav items indefinitely every time
     something new gets added. Only affects the header. */
  max-width: 1360px;
}

.brand{ display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark{
  width: 44px; height: 44px;
  display: inline-block;
  flex-shrink: 0;
}
.brand-mark img{
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.footer-brand .brand-mark{ width: 52px; height: 52px; }
.brand-copy{ display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong{ font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0.01em; }
.brand-copy small{ font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--slate-soft); }

.primary-nav{
  display: flex;
  gap: 14px;
}
.primary-nav a{
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--slate);
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s;
}
.primary-nav a::after{
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--gold);
  transition: right 0.25s var(--ease);
}
.primary-nav a:hover, .primary-nav a.is-active{ color: var(--ink); }
.primary-nav a:hover::after, .primary-nav a.is-active::after{ right: 0; }

.nav-actions{ display: flex; gap: 10px; align-items: center; }

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background 0.18s, border-color 0.18s, color 0.18s;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: var(--gold); color: var(--paper-2); }
.btn-primary:hover{ background: var(--gold-dark); }
.btn-secondary{ background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover{ background: var(--ink); color: var(--paper-2); }
.btn-ghost{ background: transparent; color: var(--slate); border-color: var(--line); }
.btn-ghost:hover{ border-color: var(--moss); color: var(--moss-dark); }
.btn-lg{ padding: 14px 26px; font-size: 0.98rem; }

/* ---------------------------------------------------------------------
   Sections — shared rhythm
   --------------------------------------------------------------------- */
.section{ padding: 96px 0; }
.section-tight{ padding: 48px 0; }
.section-soft{ background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-accent{ background: linear-gradient(180deg, #EAF1F6, var(--paper)); }
.section-dark{
  background: var(--ink-2);
  color: rgba(244,246,242,0.9);
}
.section-dark h2, .section-dark h3{ color: var(--paper-2); }
.section-dark p{ color: rgba(244,246,242,0.68); }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin: 0 0 10px;
}
.section-dark .eyebrow{ color: var(--gold); }

.split-heading{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 48px;
}
.split-heading h2{ font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
.split-heading > p{ margin: 0; font-size: 1.02rem; }

.center-heading{ max-width: 640px; margin: 0 auto 44px; text-align: center; }
.center-heading h2{ font-size: clamp(1.6rem, 2.6vw, 2.15rem); }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero{ padding-top: 64px; padding-bottom: 72px; }
.hero-grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1{
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  max-width: 15ch;
}
.hero-lead{ font-size: 1.08rem; max-width: 46ch; }
.hero-actions{ display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 30px; }

.trust-strip{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--slate-soft);
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.trust-strip span::before{ content: "— "; color: var(--gold-dark); }

/* --- hero-panel: the directory board / wayfinding signature --- */
.hero-panel{
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 22px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.panel-label{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate);
  margin: 0 0 16px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.audience-list{
  position: relative;
  padding-left: 20px;
}
.audience-list::before{
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: -6px;
  width: 1px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 5px, transparent 5px 9px);
}
.audience-list a{
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  align-items: baseline;
  padding: 13px 10px 13px 8px;
  border-radius: var(--radius);
  position: relative;
  transition: background 0.18s, padding-left 0.18s var(--ease);
}
.audience-list a::before{
  content: "";
  position: absolute;
  left: -20px;
  top: 50%;
  width: 11px; height: 11px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--moss);
  border: 2px solid var(--moss);
  box-shadow: 0 0 0 3px var(--paper-2);
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.audience-list a:hover::before, .audience-list a:focus-visible::before{
  transform: translateY(-50%) scale(1.15);
}
.audience-list a:hover, .audience-list a:focus-visible{
  background: #EAF1F6;
  padding-left: 14px;
}
.audience-list a:hover::before, .audience-list a:focus-visible::before{
  background: var(--gold);
  border-color: var(--gold);
}
/* Pillar accent colours, drawn from the logo ring */
.audience-list a[data-audience="self"]::before{ border-color: var(--blue); background: var(--blue); }
.audience-list a[data-audience="child"]::before{ border-color: var(--orange); background: var(--orange); }
.audience-list a[data-audience="family"]::before{ border-color: var(--purple); background: var(--purple); }
.audience-list a[data-audience="organisation"]::before{ border-color: var(--teal); background: var(--teal); }
.audience-list a[data-audience="professional"]::before{ border-color: var(--gold); background: var(--gold); }
.audience-list a[data-audience="self"] span{ background: rgba(0,134,201,0.12); color: var(--blue); }
.audience-list a[data-audience="child"] span{ background: rgba(240,168,104,0.18); color: var(--gold-dark); }
.audience-list a[data-audience="family"] span{ background: rgba(201,160,206,0.2); color: #8A5C91; }
.audience-list a[data-audience="organisation"] span{ background: rgba(62,156,161,0.16); color: var(--teal); }
.audience-list a[data-audience="professional"] span{ background: rgba(229,165,24,0.16); color: var(--gold-dark); }
.audience-list span{
  grid-row: 1 / 3;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--slate-soft);
  align-self: start;
  padding: 3px 7px;
  border-radius: 20px;
  line-height: 1.4;
}
.audience-list strong{ font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; }
.audience-list small{ grid-column: 2; color: var(--slate-soft); font-size: 0.82rem; }

.pathway-hub{
  margin-top: 8px;
  padding: 14px 16px 14px 24px;
  background: var(--ink);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.pathway-hub::before{
  content: "";
  position: absolute;
  left: -15px;
  top: -22px;
  width: 1px;
  height: 22px;
  background: var(--line);
}
.hub-dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #F5D879, var(--gold) 70%);
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(215,160,43,0.24);
}
.pathway-hub p{ margin: 0; color: rgba(244,246,242,0.88); font-size: 0.86rem; font-family: var(--font-mono); letter-spacing: 0.01em; }

/* ---------------------------------------------------------------------
   Metrics
   --------------------------------------------------------------------- */
.metrics{ border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.metric-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.metric-grid > div{ border-left: 2px solid var(--gold); padding-left: 16px; }
.metric-grid strong{
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}
.metric-grid span{ font-size: 0.82rem; color: var(--slate-soft); }
.metric-note{ margin-top: 22px; font-family: var(--font-mono); font-size: 0.7rem; color: var(--slate-soft); }

/* ---------------------------------------------------------------------
   Navigator form + shared form styling
   --------------------------------------------------------------------- */
.navigator-card{
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-card);
}
.form-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
  margin-bottom: 22px;
}
label{
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}
input, select, textarea{
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  transition: border-color 0.18s, box-shadow 0.18s;
}
input:focus, select:focus, textarea:focus{
  border-color: var(--moss);
  box-shadow: 0 0 0 3px rgba(79,107,90,0.14);
  outline: none;
}
label.consent{
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--slate);
  margin-bottom: 18px;
}
label.consent input{ width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }
.form-status{
  min-height: 1.2em;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--moss-dark);
  margin: 12px 0 0;
}
.form-status[data-state="error"]{ color: #A03E3E; }

/* ---------------------------------------------------------------------
   Concern grid / support
   --------------------------------------------------------------------- */
.concern-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.concern-grid article{
  background: var(--paper-2);
  padding: 28px 22px 26px;
  transition: background 0.2s;
  border-top: 3px solid var(--line);
}
.concern-grid article:hover{ background: #EAF1F6; }
.concern-grid h3{ font-size: 1.02rem; margin-bottom: 8px; }
.concern-grid p{ font-size: 0.86rem; margin: 0; }
.concern-grid article:nth-child(4n+1){ border-top-color: var(--blue); }
.concern-grid article:nth-child(4n+2){ border-top-color: var(--orange); }
.concern-grid article:nth-child(4n+3){ border-top-color: var(--purple); }
.concern-grid article:nth-child(4n+4){ border-top-color: var(--teal); }

/* ---------------------------------------------------------------------
   Pathways
   --------------------------------------------------------------------- */
.pathway-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.pathway-card{
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-top: 5px solid var(--moss);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.pathway-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-card); }
.pathway-card .number{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--paper-2);
  background: var(--slate-soft);
  letter-spacing: 0;
}
.pathway-card h3{ font-size: 1.15rem; margin: 8px 0 10px; }
.pathway-card p{ font-size: 0.9rem; }
.pathway-card ul{ margin: 6px 0 18px; }
.pathway-card li{
  font-size: 0.85rem;
  color: var(--slate);
  padding: 5px 0 5px 16px;
  position: relative;
}
.pathway-card li::before{
  content: "";
  position: absolute;
  left: 0; top: 13px;
  width: 6px; height: 1px;
  background: var(--moss);
}
.pathway-card a{
  margin-top: auto;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--gold-dark);
}
.pathway-card a:hover{ text-decoration: underline; }

/* Pillar accent colours, drawn from the logo ring */
.pathway-grid .pathway-card:nth-child(1){ border-top-color: var(--blue); }
.pathway-grid .pathway-card:nth-child(2){ border-top-color: var(--orange); }
.pathway-grid .pathway-card:nth-child(3){ border-top-color: var(--purple); }
.pathway-grid .pathway-card:nth-child(4){ border-top-color: var(--teal); }
.pathway-grid .pathway-card:nth-child(5){ border-top-color: var(--gold); }
.pathway-grid .pathway-card:nth-child(1) .number{ background: var(--blue); }
.pathway-grid .pathway-card:nth-child(2) .number{ background: var(--orange); }
.pathway-grid .pathway-card:nth-child(3) .number{ background: var(--purple); }
.pathway-grid .pathway-card:nth-child(4) .number{ background: var(--teal); }
.pathway-grid .pathway-card:nth-child(5) .number{ background: var(--gold); }
.pathway-grid .pathway-card:nth-child(1) li::before{ background: var(--blue); }
.pathway-grid .pathway-card:nth-child(2) li::before{ background: var(--orange); }
.pathway-grid .pathway-card:nth-child(3) li::before{ background: var(--purple); }
.pathway-grid .pathway-card:nth-child(4) li::before{ background: var(--teal); }
.pathway-grid .pathway-card:nth-child(5) li::before{ background: var(--gold-dark); }
.pathway-grid .pathway-card:nth-child(1) a{ color: var(--blue); }
.pathway-grid .pathway-card:nth-child(2) a{ color: var(--gold-dark); }
.pathway-grid .pathway-card:nth-child(3) a{ color: #8A5C91; }
.pathway-grid .pathway-card:nth-child(4) a{ color: var(--teal); }
.pathway-grid .pathway-card:nth-child(5) a{ color: var(--gold-dark); }

/* ---------------------------------------------------------------------
   Steps (the CARE difference) — sequential, numbering is earned here
   --------------------------------------------------------------------- */
.steps-grid{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  padding-top: 10px;
}
.steps-grid::before{
  content: "";
  position: absolute;
  top: 32px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: repeating-linear-gradient(to right, rgba(244,246,242,0.28) 0 6px, transparent 6px 11px);
}
.steps-grid article{ padding: 0 16px 0 0; position: relative; }
.steps-grid span{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--ink-2);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.steps-grid h3{ font-size: 1rem; margin-bottom: 6px; }
.steps-grid p{ font-size: 0.84rem; }

/* ---------------------------------------------------------------------
   Trust & governance
   --------------------------------------------------------------------- */
.trust-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.trust-grid article{
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.trust-grid h3{ font-size: 1rem; margin-bottom: 8px; }
.trust-grid p{ font-size: 0.86rem; margin: 0; }

/* ---------------------------------------------------------------------
   Founder
   --------------------------------------------------------------------- */
.founder-grid{
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 44px;
  align-items: start;
}
.founder-monogram{
  width: 148px; height: 148px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid var(--gold);
}
.founder-grid .lead{ font-size: 1.08rem; color: var(--ink); }
.founder-grid blockquote{
  margin-top: 20px;
  padding: 18px 20px;
  border-left: 3px solid var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
  background: var(--paper);
}

/* ---------------------------------------------------------------------
   Resources
   --------------------------------------------------------------------- */
.resource-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.resource-grid article{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  background: var(--paper-2);
}
.resource-grid > article > span{
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--moss-dark);
}
.resource-grid h3{ font-size: 1.02rem; margin: 8px 0; }
.resource-grid p{ font-size: 0.86rem; }
.resource-grid a{ font-weight: 600; font-size: 0.86rem; color: var(--gold-dark); }
.resource-grid a:hover{ color: var(--gold); }

/* ---------------------------------------------------------------------
   Professional application / contact forms
   --------------------------------------------------------------------- */
.form-layout{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.form-layout form, .contact-grid form{
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-card);
}

.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.contact-details{ margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.contact-details p{ margin: 0; display: flex; flex-direction: column; gap: 2px; }
.contact-details strong{ font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-soft); }
.contact-details a{ font-size: 1rem; color: var(--ink); font-weight: 600; }
.contact-details a:hover{ color: var(--gold-dark); }

/* ---------------------------------------------------------------------
   Emergency notice
   --------------------------------------------------------------------- */
.emergency{
  background: #FBF1DC;
  border-top: 1px solid #EFD8A0;
  border-bottom: 1px solid #EFD8A0;
}
.emergency .container{
  font-size: 0.88rem;
  color: #7A5A12;
  text-align: center;
}
.emergency strong{ color: #5C4308; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer{ background: var(--ink-2); color: rgba(244,246,242,0.72); padding: 64px 0 0; }
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand{ margin-bottom: 14px; }
.footer-brand .brand-copy strong{ color: var(--paper-2); }
.footer-grid h3{
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(244,246,242,0.5);
  margin-bottom: 14px;
}
.footer-grid a{ display: block; padding: 5px 0; font-size: 0.88rem; color: rgba(244,246,242,0.72); transition: color 0.18s; }
.footer-grid a:hover{ color: var(--gold); }
.footer-grid .tagline{ font-family: var(--font-mono); font-size: 0.72rem; color: rgba(244,246,242,0.45); margin-top: 8px; }
.footer-bottom{
  display: flex;
  justify-content: space-between;
  padding: 20px 24px 26px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(244,246,242,0.45);
}

/* ---------------------------------------------------------------------
   Legal / shell pages
   --------------------------------------------------------------------- */
.legal-hero{ padding: 56px 0 32px; border-bottom: 1px solid var(--line); }
.legal-hero h1{ font-size: clamp(1.8rem, 3.4vw, 2.4rem); max-width: 20ch; }
.legal-body{ padding: 48px 0 96px; max-width: 760px; }
.legal-body h2{ font-size: 1.2rem; margin-top: 2.2em; }
.legal-body p, .legal-body li{ color: var(--slate); font-size: 0.96rem; }
.legal-body ul{ padding-left: 20px; list-style: disc; margin-bottom: 1em; }
.placeholder-flag{
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: #FBF1DC;
  border: 1px solid #EFD8A0;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.86rem;
  color: #7A5A12;
  margin-bottom: 8px;
}
.legal-review-note{
  font-size: 0.82rem;
  color: var(--slate-soft);
  border-left: 3px solid var(--line);
  padding: 4px 0 4px 14px;
  margin-bottom: 20px;
}

/* ---------------------------------------------------------------------
   Scroll reveal
   --------------------------------------------------------------------- */
.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 1024px){
  .hero-grid{ grid-template-columns: 1fr; }
  .founder-grid{ grid-template-columns: 1fr; }
  .founder-monogram{ width: 96px; height: 96px; font-size: 1.1rem; }
  .form-layout, .contact-grid{ grid-template-columns: 1fr; gap: 32px; }
  .metric-grid{ grid-template-columns: repeat(2, 1fr); }
  .concern-grid{ grid-template-columns: repeat(2, 1fr); }
  .trust-grid{ grid-template-columns: repeat(2, 1fr); }
  .resource-grid{ grid-template-columns: repeat(2, 1fr); }
  .steps-grid{ grid-template-columns: repeat(3, 1fr); gap: 28px 16px; }
  .steps-grid::before{ display: none; }
  .footer-grid{ grid-template-columns: 1fr 1fr; }
}

/* NEW — the nav now has 8 links + 2 buttons (Professional Portal was
   added without checking this range) — genuinely doesn't fit between
   760px and ~1180px on common laptop widths, causing the rightmost
   items (Get Matched) to overflow off-screen instead of wrapping.
   Collapsing to the same hamburger menu earlier fixes it cleanly,
   reusing the exact same dropdown styling already defined below. */
@media (max-width: 1300px){
  .primary-nav{
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 16px;
    display: none;
  }
  .primary-nav.is-open{ display: flex; }
  .primary-nav a{ padding: 12px 0; border-bottom: 1px solid var(--line); }
  .primary-nav a::after{ display: none; }
  .nav-toggle{ display: inline-flex; }
}

@media (max-width: 760px){
  .nav-actions .btn-ghost{ display: none; }
  .split-heading{ grid-template-columns: 1fr; }
  .metric-grid{ grid-template-columns: 1fr 1fr; }
  .concern-grid{ grid-template-columns: 1fr; }
  .trust-grid{ grid-template-columns: 1fr; }
  .resource-grid{ grid-template-columns: 1fr; }
  .pathway-grid{ grid-template-columns: 1fr; }
  .steps-grid{ grid-template-columns: 1fr 1fr; }
  .form-grid{ grid-template-columns: 1fr; }
  .footer-grid{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; gap: 6px; }
  .section{ padding: 64px 0; }
}
