/* ==========================================================================
   Visora — global stylesheet
   Palette, type and layout per the Visora Website Developer Spec (v2).
   Accessibility is a brand requirement here: every text/background pair below
   is checked against WCAG 2.1 AA. Where the brand hex was too light to carry
   text, a deeper token of the same hue is used for the text-bearing surface
   and the bright brand hex is kept for large/decorative use. See README.
   ========================================================================== */

:root {
  /* Brand */
  --teal:          #008B8B;  /* decorative / large text only (3.9:1 on warm white) */
  --teal-dark:     #0a6e6e;  /* links, sub-headings, hero bg   (5.7:1) */
  --teal-deeper:   #065555;  /* problem band, footer, proof strip (8.1:1) */
  --warm-white:    #FFF8E7;
  --warm-sand:     #F5EAD2;  /* alternating band: warmer and deeper than the page */
  --gold:          #D4A017;  /* borders, rules, decoration */
  --gold-text:     #8A6410;  /* the same accent when it carries text (6.1:1) */
  --gold-light:    #f5e6b8;
  --coral:         #FF7F50;  /* decorative accent, large numerals */
  --coral-cta:     #BF4A1C;  /* CTA surfaces that carry text   (4.7:1 w/ warm white) */
  --coral-cta-hover: #A03D14;
  --coral-tint:    #FFEDE4;
  --charcoal:      #333333;
  --text-secondary:#555555;
  --white:         #ffffff;
  --rule:          #e7ddc8;

  --maxw: 1080px;
  --radius: 12px;
  --shadow: 0 2px 20px rgba(0,0,0,.06);
  --shadow-lift: 0 6px 28px rgba(0,0,0,.10);
  --nav-h: 62px;

  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

/* --- 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;
  background: var(--warm-white);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 1.0625rem;      /* 17px, scales with user settings */
  line-height: 1.65;
}
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.15rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.35rem); color: var(--teal-dark); }
h3 { font-size: 1.3rem; color: var(--teal-dark); }
p { margin: 0 0 1.1em; }
a { color: var(--teal-dark); text-underline-offset: 3px; }
a:hover { color: var(--teal-deeper); }
ul { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .4em; }
blockquote { margin: 0; }

/* --- focus + skip link -------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--gold-text);
  outline-offset: 2px;
  border-radius: 4px;
}
.on-dark :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible {
  outline-color: var(--gold);
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--teal-deeper); color: var(--warm-white);
  padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; color: var(--warm-white); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- layout helpers ----------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--warm-sand); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.eyebrow {
  font-family: var(--sans); font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-text); margin: 0 0 .9rem;
}
.lede { font-size: 1.2rem; color: var(--text-secondary); max-width: 62ch; }
.section-head { max-width: 68ch; margin-bottom: 2.25rem; }
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: center;
}
.split--text-narrow { grid-template-columns: 1.05fr .95fr; }
.split figure, .split .media { margin: 0; }
.rule { height: 4px; border: 0; margin: 0;
  background: linear-gradient(90deg, var(--teal), var(--teal-deeper) 60%, var(--gold)); }

/* --- buttons ----------------------------------------------------------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600;
  font-size: 1rem; line-height: 1.2;
  padding: .85rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .18s, color .18s, border-color .18s;
}
.btn--primary { background: var(--coral-cta); color: var(--warm-white); }
.btn--primary:hover { background: var(--coral-cta-hover); color: var(--warm-white); }
.btn--onCoral { background: var(--warm-white); color: var(--coral-cta-hover); }
.btn--onCoral:hover { background: var(--white); color: #8d340f; }
.btn--ghost { background: transparent; color: var(--teal-dark); border-color: var(--teal-dark); }
.btn--ghost:hover { background: var(--teal-deeper); color: var(--warm-white); border-color: var(--teal-deeper); }
.btn--onTeal { background: var(--warm-white); color: var(--teal-deeper); }
.btn--outlineLight { background: transparent; color: var(--warm-white); border-color: var(--warm-white); }
.btn--outlineLight:hover { background: var(--warm-white); color: var(--teal-deeper); }
.btn--onTeal:hover { background: var(--white); color: #044444; }

/* --- navigation -------------------------------------------------------- */
.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  /* Opaque, deliberately: backdrop-filter here created a compositing layer that
     Chrome and Safari failed to repaint on scroll, ghosting a second offset copy
     of the page behind the real one. */
  background: var(--warm-white);
  border-bottom: 1px solid var(--rule);
  transition: box-shadow .2s;
}
.site-nav.is-scrolled { box-shadow: 0 2px 18px rgba(0,0,0,.08); }
.site-nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.site-nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.site-nav__brand img { height: 38px; width: auto; }
.site-nav__list {
  list-style: none; display: flex; align-items: center; gap: 4px;
  margin: 0; padding: 0;
}
.site-nav__list > li { margin: 0; position: relative; }
.site-nav__link {
  display: block; padding: .55rem .6rem; border-radius: 8px;
  font-size: .95rem; font-weight: 500; color: var(--charcoal); text-decoration: none;
  border-bottom: 3px solid transparent;
}
.site-nav__link:hover { color: var(--teal-deeper); background: rgba(0,139,139,.08); }
.site-nav__link[aria-current="page"] { color: var(--teal-deeper); font-weight: 700; border-bottom-color: var(--teal); }
.site-nav__cta { margin-left: 6px; padding: .6rem 1.15rem; font-size: .95rem; }

/* kits dropdown — hover for pointers, click for keyboard/touch */
.has-menu > button {
  font: inherit; font-size: .95rem; font-weight: 500; font-family: var(--sans);
  display: inline-flex; align-items: center; gap: .35rem;
  background: none; border: 0; border-bottom: 3px solid transparent;
  padding: .55rem .6rem; border-radius: 8px; color: var(--charcoal); cursor: pointer;
}
.has-menu > button:hover { color: var(--teal-deeper); background: rgba(0,139,139,.08); }
.has-menu > button[aria-current="page"] { color: var(--teal-deeper); font-weight: 700; border-bottom-color: var(--teal); }
.has-menu > button svg { transition: transform .18s; }
.has-menu > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.submenu {
  list-style: none; margin: 0; padding: .4rem;
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px;
  background: var(--white); border: 1px solid var(--rule);
  border-radius: var(--radius); box-shadow: var(--shadow-lift);
}
.submenu[hidden] { display: none; }
.submenu a {
  display: block; padding: .55rem .7rem; border-radius: 8px;
  text-decoration: none; color: var(--charcoal); font-size: .95rem;
}
.submenu a:hover { background: var(--warm-white); color: var(--teal-deeper); }
.submenu a[aria-current="page"] { color: var(--teal-deeper); font-weight: 700; }

.nav-toggle {
  display: none; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0;
  background: none; border: 2px solid var(--teal-dark); color: var(--teal-deeper);
  border-radius: 999px; cursor: pointer;
}
.nav-toggle[aria-expanded="true"] { background: var(--teal-deeper); color: var(--warm-white); border-color: var(--teal-deeper); }
.nav-toggle__bars { display: block; width: 18px; height: 12px; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after, .nav-toggle__bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
}
.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars span { top: 5px; }
.nav-toggle__bars::after { bottom: 0; }

/* --- hero -------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-deeper));
  color: var(--warm-white);
  padding: calc(var(--nav-h) + 64px) 0 64px;
}
.hero h1 { color: var(--warm-white); }
.hero .eyebrow { color: var(--gold); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
/* the banner runs the full width beneath the text, at its own 1600x560 ratio */
.hero__stack { display: grid; gap: 40px; }
.hero__lead { max-width: 62ch; }
.hero__banner { margin: 0; }
.hero__banner img {
  width: 100%; display: block; border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,.22);
}
.hero__sub { font-size: 1.2rem; color: var(--warm-white); max-width: 54ch; }
.hero__attrib { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--gold); margin: 0 0 1.8rem; }
.hero__figure { margin: 0; }
.hero__figure img {
  width: 100%; border-radius: var(--radius);
  background: rgba(255,255,255,.06); box-shadow: 0 10px 40px rgba(0,0,0,.22);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* page hero (interior pages) */
.page-hero {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal-deeper));
  color: var(--warm-white);
  padding: calc(var(--nav-h) + 56px) 0 56px;
}
.page-hero h1 { color: var(--warm-white); margin-bottom: .35em; }
.page-hero p { font-size: 1.2rem; color: var(--warm-white); max-width: 60ch; margin: 0; }
.page-hero .eyebrow { color: var(--gold); }

/* --- bands ------------------------------------------------------------- */
.problem-band { background: var(--teal-deeper); color: var(--warm-white); padding: 56px 0; }
.problem-band blockquote p {
  font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.45; max-width: 46ch; margin: 0 auto; text-align: center;
}
.proof-strip { background: var(--teal-deeper); color: var(--warm-white); padding: 28px 0; }
.proof-strip ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 0;
  font-size: .98rem; text-align: center;
}
.proof-strip li { margin: 0; padding: 0 1.4rem; border-left: 1px solid rgba(212,160,23,.55); }
.proof-strip li:first-child { border-left: 0; }
.cta-band { background: var(--coral-cta); color: var(--warm-white); padding: 56px 0; }
.cta-band h2 { color: var(--warm-white); margin-bottom: .3em; }
.cta-band p { max-width: 56ch; margin: 0 0 1.6rem; }
.free-band { background: var(--gold-light); color: var(--charcoal); padding: 56px 0; }
.free-band h2 { color: #5c4308; }

/* --- cards ------------------------------------------------------------- */
.card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px;
}
.section--alt .card, .section--alt .kit-card { box-shadow: 0 2px 20px rgba(90,63,10,.10); }
.card h3 { margin-top: 0; }
/* a small mark, shown at its own size — the source file is only 100px square */
.project-mark {
  width: 72px; height: 72px; object-fit: contain;
  background: var(--warm-white); border-radius: 8px; padding: 6px;
  margin-bottom: .9rem;
}
.card > :last-child { margin-bottom: 0; }
.card--gold { border: 2px solid var(--gold); background: var(--warm-white); box-shadow: none; }
.card--teal-edge { border-left: 5px solid var(--teal); }
.card-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
/* where one card carries media and its neighbour is text only, equal heights leave
   the short card mostly empty — let each take the height it needs */
.card-grid--natural { align-items: start; }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform .18s, box-shadow .18s; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); color: inherit; }
.card-link .more { font-weight: 600; color: var(--teal-dark); }
/* same treatment as the stat tiles on the homepage: teal cap, centred, even */
.card--tile {
  text-align: center; border-top: 4px solid var(--teal);
  display: flex; flex-direction: column; padding: 24px 20px;
}
.card--tile { padding-top: 0; overflow: hidden; }
.card--tile__shot {
  width: calc(100% + 40px); margin: 0 -20px 1rem; display: block;
  aspect-ratio: 940 / 788; object-fit: cover; background: var(--white);
}
.card--tile h3 { margin-bottom: .3rem; }
.card--tile .component-kind { margin: 0 0 .8rem; }
.card--tile > p:not(.component-kind):not(.more) { flex: 1; }
.card--tile .more { margin: .9rem 0 0; }
.component-kind {
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold-text); margin: -.35rem 0 .6rem;
}
.card-link:hover .more { text-decoration: underline; }

/* component how-to blocks */
.component-list { display: grid; gap: 28px; }
.component {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 26px 28px; border-left: 5px solid var(--gold);
}
.component__shot {
  width: 100%; border-radius: 8px; margin-bottom: 1rem;
  background: var(--white); aspect-ratio: 940 / 788; object-fit: cover;
}
.component h3 { margin-bottom: .15em; }
.component > p:last-of-type { margin-bottom: 1rem; }
.component__steps { margin: 0; padding-left: 1.3em; counter-reset: step; }
.component__steps li { margin-bottom: .5rem; }
.component__steps li::marker { color: var(--gold-text); font-weight: 700; }
.component__steps--page {
  max-width: 60ch; font-size: 1.08rem; padding-left: 1.5em;
}
.component__steps--page li { margin-bottom: .85rem; }
@media (min-width: 780px) {
  .component-list { grid-template-columns: repeat(2, 1fr); }
  .component:first-child { grid-column: 1 / -1; }
}

/* stats */
.stat-grid { display: grid; gap: 20px; grid-template-columns: repeat(6, 1fr); }
.stat {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px 18px; text-align: center; border-top: 4px solid var(--teal);
}
.stat__value { font-family: var(--serif); font-size: 1.85rem; line-height: 1.1; color: var(--teal-deeper); display: block; }
.stat__label { font-size: .92rem; color: var(--text-secondary); }
/* the one number that matters most gets the brand's accent, not a bigger box —
   same grid, same six tiles, but the eye lands here first. */
.stat--lead { border-top-color: var(--gold); }
.stat--lead .stat__value { font-size: 2.3rem; color: var(--gold-text); }

/* kit preview cards */
.kit-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.kit-card video, .kit-card img { width: 100%; display: block; background: #05403f; aspect-ratio: 16 / 10; object-fit: cover; }
.kit-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.kit-card__body > p { flex: 1; }

/* badges */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.badge {
  display: inline-block; font-size: .88rem; font-weight: 600;
  padding: .4rem .85rem; border-radius: 999px;
  background: var(--warm-white); color: var(--teal-deeper); border: 2px solid var(--teal);
}
.badge--gold { border-color: var(--gold); color: #5c4308; }
.badge--progress { background: var(--coral-tint); border-color: var(--coral); color: var(--coral-cta-hover); }
.badge--progress::before { content: "◔ "; }

/* branded play button, laid over the poster until the video starts */
.video-frame { position: relative; }
.video-frame__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; padding: 0; border-radius: 50%;
  background: var(--coral-cta); color: var(--warm-white);
  border: 3px solid var(--warm-white); box-shadow: var(--shadow-lift);
  display: grid; place-items: center; cursor: pointer;
  transition: background-color .18s, transform .18s;
}
.video-frame__play:hover { background: var(--coral-cta-hover); transform: translate(-50%, -50%) scale(1.06); }
.video-frame__play[hidden] { display: none; }
.video-frame__play svg { width: 26px; height: 26px; fill: currentColor; margin-left: 3px; }

/* media / figures */
.media-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
figure.framed { margin: 0; }
figure.framed img, figure.framed video, .framed-media {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white);
}
/* Every tile in a media grid shares one frame, whatever the source orientation —
   otherwise a portrait photo towers over the landscape one beside it. */
.media-grid figure.framed video,
.media-grid figure.framed img {
  aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: #05403f;
}
/* portrait sources: bias the crop up so faces and hands survive it */
.media-grid figure.framed img { object-position: center 40%; }
figcaption { font-size: .92rem; color: var(--text-secondary); margin-top: .6rem; }
.diagram { background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius); padding: 12px; }
.diagram img { display: block; width: 100%; border-radius: 6px; }
/* These are dense infographics (~1100px-wide originals) with small caption text.
   Shrinking them to a phone's full width makes that text illegible, so below the
   point they'd lose real size, keep them near their native width and let the
   diagram scroll horizontally instead — legible over "fits without scrolling." */
@media (max-width: 900px) {
  .diagram { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* out-specifies "figure.framed img" (0,1,2), which would otherwise win and
     force width:100% back over this override */
  figure.framed .diagram img { width: 900px; max-width: none; }
}

/* photo placeholder (used until consent-clean photos are supplied) */
.placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem;
  border: 2px dashed var(--teal); border-radius: var(--radius);
  background: rgba(0,139,139,.05); color: var(--teal-deeper);
  padding: 28px 20px; text-align: center;
  /* width first, height from the ratio: a min-height combined with aspect-ratio
     makes the box compute its own width (180px x 16/9 = 320px) and burst out of a
     narrower card. */
  width: 100%; min-height: 180px;
}
.placeholder--4x3, .placeholder--16x9, .placeholder--portrait { min-height: 0; }
.placeholder__label { font-weight: 600; }
.placeholder__file { font-size: .85rem; color: var(--text-secondary); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.placeholder--4x3 { aspect-ratio: 4 / 3; }
.placeholder--16x9 { aspect-ratio: 16 / 9; }
.placeholder--portrait { aspect-ratio: 3 / 4; }

/* partner logos */
.logo-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.logo-row li { margin: 0; }
.logo-row img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white);
}

/* timeline (Our Story) */
.timeline { list-style: none; margin: 0; padding: 0 0 0 30px; border-left: 4px solid; border-image: linear-gradient(var(--teal), var(--gold)) 1; }
.timeline li { position: relative; margin: 0 0 1.6rem; }
.timeline li::before {
  content: ""; position: absolute; left: -42px; top: .45rem;
  width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 3px solid var(--warm-white);
}
.timeline h3 { margin-bottom: .15em; }
.timeline p { margin: 0; }

/* pull quote */
.pull-quote { text-align: center; max-width: 40ch; margin: 0 auto; }
.pull-quote p {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.4; color: var(--teal-deeper);
}
.pull-quote cite { font-family: var(--sans); font-style: normal; font-size: 1rem; color: var(--text-secondary); }
.story-quote p { font-size: 1.15rem; }
.story-quote p:first-of-type::first-letter {
  font-family: var(--serif); font-size: 3.4rem; float: left; line-height: .82;
  padding: .1em .12em 0 0; color: var(--teal-dark);
}

/* --- forms ------------------------------------------------------------- */
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .35rem; }
.field .req { color: var(--coral-cta-hover); }
.field .hint { display: block; font-size: .87rem; color: var(--text-secondary); font-weight: 400; margin-top: .15rem; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--charcoal);
  padding: .7rem .85rem; border: 2px solid #cbbfa6; border-radius: 8px; background: var(--white);
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal-dark); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .92rem; color: var(--text-secondary); }
.field-error { color: var(--coral-cta-hover); font-size: .92rem; margin: 1rem 0 0; }
.btn[aria-busy="true"] { opacity: .7; cursor: progress; }

/* --- form-submission modal ---------------------------------------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(6, 24, 24, .55);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-lift);
  max-width: 420px; width: 100%; padding: 32px;
}
.modal:focus { outline: none; }
.modal__icon { width: 44px; height: 44px; color: var(--teal-dark); margin-bottom: 1rem; }
.modal--error .modal__icon { color: var(--coral-cta-hover); }
.modal__title { margin-bottom: .5rem; }
.modal__message { color: var(--text-secondary); margin-bottom: 1.6rem; }

/* --- footer ------------------------------------------------------------ */
.site-footer { background: var(--teal-deeper); color: var(--warm-white); padding: 56px 0 0; }
.site-footer a { color: var(--warm-white); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer h2 { color: var(--gold); font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .55rem; overflow-wrap: anywhere; }
.footer-brand img {
  height: 46px; width: auto; margin-bottom: 1rem;
  /* The logo is transparent but inked in dark navy, which all but disappears on the
     teal footer. Render it as a warm-white silhouette instead of boxing it in. */
  filter: brightness(0) invert(1);
}
.footer-brand p { font-size: .98rem; max-width: 34ch; }
.social-row { display: flex; gap: 12px; list-style: none; margin: 1rem 0 0; padding: 0; }
.social-row a {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid rgba(255,248,231,.45);
}
.social-row a:hover { border-color: var(--gold); background: rgba(212,160,23,.16); }
.social-row svg { width: 20px; height: 20px; fill: currentColor; }
.footer-bottom {
  margin-top: 48px; border-top: 1px solid rgba(255,248,231,.22); padding: 20px 0;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: .9rem;
}

/* --- responsive -------------------------------------------------------- */
@media (max-width: 1040px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  /* mild tightening only — below this, the drawer takes over rather than
     shrinking link text to a size that fails the touch-target guideline. */
  .site-nav__inner { gap: 10px; padding: 0 16px; }
  .site-nav__link, .has-menu > button { font-size: .86rem; padding: .5rem .38rem; }
  .site-nav__cta { padding: .5rem .85rem; font-size: .86rem; margin-left: 2px; }
  .site-nav__brand img { height: 32px; }
}
@media (max-width: 900px) {
  /* The drawer is positioned against the fixed header, not the viewport. */
  .site-nav__nav {
    position: absolute; top: 100%; right: 0; width: min(330px, 86vw);
    max-height: calc(100vh - var(--nav-h));
    background: var(--warm-white); border-left: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    box-shadow: -8px 8px 30px rgba(0,0,0,.14);
    padding: 18px; overflow-y: auto; overscroll-behavior: contain;
  }
  .site-nav__nav[hidden] { display: none; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav__link, .has-menu > button { width: 100%; padding: .8rem .6rem; border-bottom: 0; border-left: 3px solid transparent; }
  .site-nav__link[aria-current="page"], .has-menu > button[aria-current="page"] { border-left-color: var(--teal); }
  .has-menu > button { justify-content: space-between; }
  .submenu { position: static; box-shadow: none; border: 0; padding: 0 0 .4rem 1rem; background: none; }
  .site-nav__cta { margin: .8rem 0 0; text-align: center; }
  .nav-toggle { display: inline-flex; }
  .site-nav__link, .has-menu > button { font-size: .98rem; }
  .nav-long { display: inline; }
  .hero__grid, .split, .split--text-narrow { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
}
@media (max-width: 640px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .btn { width: 100%; text-align: center; }
  .site-nav__brand img { height: 32px; }
  .proof-strip li:not(:last-child)::after { display: none; }
  .proof-strip ul { flex-direction: column; gap: .5rem; }
  .proof-strip li { gap: 0; }
}

/* --- print / high contrast --------------------------------------------- */
@media (forced-colors: active) {
  .stat, .card, .kit-card, .form-card { border: 1px solid CanvasText; }
  .btn { border-color: CanvasText; }
}
