/* ==========================================================================
   Empowering Hearts Support Services Pty Ltd
   Art direction: deep Gippsland-lake teal + garnet rose accent,
   soft shape language (large radii, pill buttons), Georgia display
   against a system sans body.
   All colour / spacing / shape values are declared once, here.
   ========================================================================== */

:root {
  /* Brand ------------------------------------------------------------- */
  --primary: #123f45;
  --primary-deep: #0c2e33;
  --primary-mid: #1b5a63;
  --primary-tint: #e2eeec;
  --primary-tint-strong: #cadedb;

  --accent: #a8455c;
  --accent-deep: #8b3549;
  --accent-soft: #f5dee3;
  --accent-on-dark: #f2b3c0;

  /* Neutrals ---------------------------------------------------------- */
  --bg: #f4f7f6;
  --surface: #ffffff;
  --surface-alt: #eaf1ef;
  --border: #d8e3e0;
  --border-strong: #c2d3cf;
  --border-on-dark: rgba(255, 255, 255, 0.14);

  --text-dark: #12211f;
  --text-body: #37504c;
  --text-muted: #5e716d;
  --text-on-dark: #d6e6e4;
  --text-on-dark-muted: #9db8b6;

  /* Layered backgrounds ------------------------------------------------ */
  --grad-hero: linear-gradient(158deg, var(--primary-deep) 0%, var(--primary) 52%, var(--primary-deep) 100%);
  --glow-teal: radial-gradient(900px 460px at 84% 4%, rgba(27, 90, 99, 0.95), transparent 62%);
  --glow-rose: radial-gradient(640px 420px at 4% 106%, rgba(168, 69, 92, 0.34), transparent 66%);
  --dot-grid: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1.3px);
  --dot-grid-size: 22px 22px;
  --grad-panel: linear-gradient(150deg, var(--primary-tint) 0%, var(--surface) 70%);
  --scrim-nav: rgba(244, 247, 246, 0.82);
  --scrim-light: rgba(255, 255, 255, 0.06);
  --footer-bottom-bg: rgba(255, 255, 255, 0.05);

  /* Spacing scale ------------------------------------------------------ */
  --s1: 0.5rem;
  --s2: 0.75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2.5rem;
  --s6: 4rem;
  --s7: 6rem;

  /* Shape -------------------------------------------------------------- */
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;
  --radius-band: clamp(1.5rem, 5vw, 3.25rem);
  --radius-pill: 999px;
  --hairline: 1px;

  --shadow-sm: 0 1px 2px rgba(12, 46, 51, 0.05);
  --shadow: 0 1px 2px rgba(12, 46, 51, 0.04), 0 8px 24px rgba(12, 46, 51, 0.07);
  --shadow-lg: 0 18px 46px rgba(12, 46, 51, 0.16);
  --ring: 0 0 0 3px var(--accent-soft), 0 0 0 5px var(--accent);
  --ring-on-dark: 0 0 0 3px var(--primary-deep), 0 0 0 5px var(--accent-on-dark);

  /* Layout ------------------------------------------------------------- */
  --container: 1140px;
  --measure: 66ch;

  /* Type --------------------------------------------------------------- */
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --fs-hero: clamp(2.25rem, 5vw, 4rem);
  --fs-h1: clamp(2rem, 4.2vw, 3.1rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3: clamp(1.15rem, 1.5vw, 1.35rem);
  --fs-lead: clamp(1.05rem, 1.1vw, 1.25rem);
  --fs-body: clamp(1rem, 0.25vw + 0.95rem, 1.0625rem);
  --fs-small: 0.8125rem;
  --fs-eyebrow: 0.78rem;

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --speed: 180ms;
}

/* Reset -------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 var(--s3);
  font-weight: 700;
}

p { margin: 0 0 var(--s3); max-width: var(--measure); }

a { color: var(--accent); text-decoration-thickness: var(--hairline); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }

ul { margin: 0 0 var(--s3); padding-left: var(--s4); }
li { margin-bottom: var(--s1); }

svg { display: block; }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-sm);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s4);
}

.measure { max-width: var(--measure); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--s3);
  top: calc(var(--s3) * -6);
  z-index: 50;
  background: var(--surface);
  color: var(--primary);
  padding: var(--s2) var(--s3);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  transition: top var(--speed) var(--ease);
}
.skip-link:focus { top: var(--s3); }

/* Eyebrow ------------------------------------------------------------ */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 var(--s2);
}
.eyebrow-light { color: var(--accent-on-dark); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-body);
}

/* Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 0.8rem 1.6rem;
  border: var(--hairline) solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--speed) var(--ease),
              background-color var(--speed) var(--ease),
              color var(--speed) var(--ease),
              box-shadow var(--speed) var(--ease),
              border-color var(--speed) var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--surface);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent-deep);
  color: var(--surface);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  color: var(--primary);
  background: var(--surface);
}

.btn-light {
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--border-on-dark);
}
.btn-light:hover {
  transform: translateY(-1px);
  color: var(--surface);
  border-color: var(--text-on-dark);
  background: var(--scrim-light);
}
.btn-light:focus-visible { box-shadow: var(--ring-on-dark); }

.btn-sm { padding: var(--s2) var(--s4); font-size: var(--fs-small); }

/* Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
}

.navbar {
  background: var(--scrim-nav);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: var(--hairline) solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 4.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  text-decoration: none;
  color: var(--text-dark);
}

.wordmark-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--surface);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
}

.wordmark-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.wordmark-sub {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0 var(--s2);
  background: var(--surface);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--primary);
  border-radius: var(--radius-pill);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--s4);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links li { margin: 0; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: var(--s1) 0;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: var(--radius-pill);
  background: transparent;
  transition: background-color var(--speed) var(--ease);
}
.nav-link:hover { color: var(--accent-deep); }
.nav-link:hover::after { background: var(--border-strong); }
.nav-link.is-active { color: var(--accent-deep); }
.nav-link.is-active::after { background: var(--accent); }

/* Hero --------------------------------------------------------------- */
.hero,
.page-hero {
  position: relative;
  isolation: isolate;
  background-color: var(--primary-deep);
  background-image: var(--glow-teal), var(--glow-rose), var(--grad-hero);
  color: var(--text-on-dark);
  border-bottom-left-radius: var(--radius-band);
  border-bottom-right-radius: var(--radius-band);
  overflow: hidden;
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--dot-grid);
  background-size: var(--dot-grid-size);
  opacity: 0.55;
  z-index: -1;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: var(--s6);
  padding-block: clamp(var(--s6), 9vw, var(--s7));
  min-height: 60vh;
}

.hero-title {
  font-size: var(--fs-hero);
  color: var(--surface);
  line-height: 1.06;
  margin-bottom: var(--s4);
}

.hero-copy .lead {
  color: var(--text-on-dark);
  max-width: 34ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s5);
}

.hero-note {
  margin: var(--s4) 0 0;
  font-size: var(--fs-small);
  color: var(--text-on-dark-muted);
  max-width: 44ch;
}

/* Hero visual anchor -------------------------------------------------- */
.hero-anchor { position: relative; min-width: 0; }

.anchor-card {
  position: relative;
  background: var(--grad-panel);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s5);
  box-shadow: var(--shadow-lg);
  color: var(--text-body);
}

.anchor-card::before {
  content: "";
  position: absolute;
  inset: var(--s3) calc(var(--s3) * -1) calc(var(--s3) * -1) var(--s3);
  border: var(--hairline) solid var(--border-on-dark);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.anchor-mono {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--surface);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: var(--s3);
}

.anchor-lines {
  width: 100%;
  height: auto;
  color: var(--primary-mid);
  margin-bottom: var(--s3);
}

.anchor-caption {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  color: var(--text-dark);
  margin: 0 0 var(--s3);
}

.anchor-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--hairline) solid var(--border);
}

.anchor-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s2) 0;
  border-bottom: var(--hairline) solid var(--border);
  font-size: var(--fs-small);
  margin: 0;
}
.anchor-item span:first-child { color: var(--text-muted); }
.anchor-item span:last-child { color: var(--text-dark); font-weight: 600; text-align: right; }

/* Page hero (inner pages) -------------------------------------------- */
.page-hero-inner {
  padding-block: clamp(var(--s5), 6vw, var(--s6));
  max-width: 62ch;
}
.page-hero-inner h1 {
  font-size: var(--fs-h1);
  color: var(--surface);
  margin-bottom: var(--s3);
}
.page-hero-inner .lead {
  color: var(--text-on-dark);
  margin-bottom: 0;
}

/* Sections ------------------------------------------------------------ */
.section { padding-block: clamp(var(--s6), 8vw, var(--s7)); }
.section-alt { background: var(--surface-alt); }
.section-tight { padding-block: clamp(var(--s5), 6vw, var(--s6)); }

.section-head { max-width: 60ch; margin-bottom: var(--s5); }
.section-title { font-size: var(--fs-h2); margin-bottom: var(--s3); }
.section-lead { color: var(--text-muted); margin-bottom: 0; }

/* Value props ---------------------------------------------------------- */
.props {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
}
.prop { min-width: 0; }
.prop-title { font-size: var(--fs-h3); margin-bottom: var(--s2); }
.prop-text { color: var(--text-muted); margin: 0; }

/* Icon tiles ----------------------------------------------------------- */
.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius);
  background: var(--primary-tint);
  color: var(--primary);
  margin-bottom: var(--s3);
}
.icon-tile-accent { background: var(--accent-soft); color: var(--accent-deep); }
.icon { width: 1.5rem; height: 1.5rem; }

/* Services ------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--s4);
}

.service-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--s5) var(--s4);
  box-shadow: var(--shadow);
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.service-title { font-size: var(--fs-h3); margin-bottom: var(--s2); }
.service-text { color: var(--text-muted); margin: 0; font-size: 0.97rem; }

.services-more { margin-top: var(--s5); }

.card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  margin-top: var(--s3);
  font-weight: 600;
  font-size: var(--fs-small);
  text-decoration: none;
}
.card-link:hover { text-decoration: underline; }

/* Split bands ---------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(var(--s5), 5vw, var(--s6));
  align-items: center;
}
.split-reverse .split-media { order: -1; }
.split-copy { min-width: 0; }
.split-copy p:last-child { margin-bottom: 0; }

.split-media {
  min-width: 0;
  background: var(--surface);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s5);
  box-shadow: var(--shadow);
}
.split-media h3 { font-size: var(--fs-h3); }

/* Steps (a real sequence) ---------------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; }
.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--s3);
  padding: var(--s4) 0;
  border-top: var(--hairline) solid var(--border);
  margin: 0;
}
.step:last-child { border-bottom: var(--hairline) solid var(--border); }
.step-num {
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--accent);
  padding-top: 0.2rem;
  letter-spacing: 0.08em;
}
.step-title { font-size: 1.05rem; margin-bottom: var(--s1); }
.step-text { color: var(--text-muted); margin: 0; font-size: 0.97rem; }

/* Facts strip ---------------------------------------------------------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4);
  background: var(--surface);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s5) var(--s4);
  box-shadow: var(--shadow-sm);
}
.fact { padding-inline: var(--s3); border-left: var(--hairline) solid var(--border); min-width: 0; }
.fact:first-child { border-left: 0; }
.fact-label {
  display: block;
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: var(--s1);
}
.fact-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Checklist ------------------------------------------------------------ */
.list-check { list-style: none; margin: 0 0 var(--s3); padding: 0; }
.list-check li {
  position: relative;
  padding-left: var(--s4);
  margin-bottom: var(--s2);
  max-width: var(--measure);
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: var(--s1);
  height: var(--s1);
  border-radius: var(--radius-pill);
  background: var(--accent);
}

/* CTA band -------------------------------------------------------------- */
.cta-band { padding-block: clamp(var(--s5), 6vw, var(--s6)); }
.cta-card {
  position: relative;
  overflow: hidden;
  background: var(--grad-panel);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--s5), 5vw, var(--s6));
  box-shadow: var(--shadow-sm);
}
.cta-title { font-size: var(--fs-h2); margin-bottom: var(--s3); }
.cta-text { color: var(--text-muted); max-width: 52ch; margin-bottom: var(--s5); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.cta-contour {
  position: absolute;
  right: calc(var(--s5) * -1);
  bottom: calc(var(--s5) * -1);
  width: 22rem;
  height: auto;
  color: var(--primary-mid);
  opacity: 0.16;
  pointer-events: none;
}

/* Contact --------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(var(--s5), 5vw, var(--s6));
  align-items: start;
}

.contact-card {
  background: var(--surface);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s5);
  box-shadow: var(--shadow-sm);
}
.contact-card h2 { font-size: var(--fs-h3); }
.contact-card h3 {
  font-size: var(--fs-eyebrow);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--s1);
}
.contact-block { margin-bottom: var(--s4); }
.contact-block:last-child { margin-bottom: 0; }
.contact-value { font-size: 1.02rem; color: var(--text-dark); margin: 0; word-break: break-word; }

.contact-form {
  background: var(--surface);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(var(--s4), 4vw, var(--s5));
  box-shadow: var(--shadow);
}
.field { margin-bottom: var(--s4); }
.field-label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--s1);
}
.field-input,
.field-textarea {
  width: 100%;
  padding: var(--s2) var(--s3);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text-dark);
  background: var(--bg);
  border: var(--hairline) solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.field-textarea { min-height: 9rem; resize: vertical; }
.field-input:hover,
.field-textarea:hover { border-color: var(--primary-mid); }
.form-note { font-size: var(--fs-small); color: var(--text-muted); margin: var(--s3) 0 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }

/* Legal / long-form ------------------------------------------------------ */
.legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: clamp(var(--s5), 5vw, var(--s6));
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 6rem;
  background: var(--surface);
  border: var(--hairline) solid var(--border);
  border-radius: var(--radius);
  padding: var(--s4);
  box-shadow: var(--shadow-sm);
}
.legal-toc h2 {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: var(--s2);
}
.legal-toc ul { list-style: none; margin: 0; padding: 0; }
.legal-toc li { margin-bottom: var(--s1); }
.legal-toc a { font-size: var(--fs-small); text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }

.legal-body { min-width: 0; }
.legal-body h2 {
  font-size: var(--fs-h3);
  margin-top: var(--s5);
  padding-top: var(--s4);
  border-top: var(--hairline) solid var(--border);
}
.legal-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.legal-body h3 { font-size: 1.02rem; margin-top: var(--s4); margin-bottom: var(--s2); }
.legal-updated {
  font-size: var(--fs-small);
  color: var(--text-muted);
  margin-bottom: var(--s5);
}

/* Footer ------------------------------------------------------------------ */
.footer {
  background: var(--primary-deep);
  color: var(--text-on-dark-muted);
  border-top: var(--hairline) solid var(--border-on-dark);
  margin-top: var(--s6);
}
.footer a { color: var(--text-on-dark); text-decoration: none; }
.footer a:hover { color: var(--accent-on-dark); text-decoration: underline; }
.footer a:focus-visible { box-shadow: var(--ring-on-dark); }

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--s5);
  padding-block: clamp(var(--s5), 6vw, var(--s6));
}

.footer-col { min-width: 0; }

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--surface);
  margin-bottom: var(--s3);
}
.footer-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--primary-mid);
  color: var(--surface);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
}
.footer-text { font-size: var(--fs-small); line-height: 1.7; max-width: 38ch; }
.footer-reg {
  font-size: var(--fs-small);
  line-height: 1.7;
  color: var(--text-on-dark-muted);
  margin: 0;
}
.footer-title {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--surface);
  margin-bottom: var(--s3);
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: var(--s2); font-size: var(--fs-small); word-break: break-word; }

.footer-bottom {
  background: var(--footer-bottom-bg);
  border-top: var(--hairline) solid var(--border-on-dark);
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding-block: var(--s4);
  font-size: var(--fs-small);
}
.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-bottom-links li { margin: 0; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 980px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .props { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-left: 0; }
  .legal-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-toc { position: static; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-inner { position: relative; }

  .nav-menu {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + var(--s2));
    flex-direction: column;
    align-items: stretch;
    gap: var(--s3);
    background: var(--surface);
    border: var(--hairline) solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: var(--s4);
  }
  .nav-menu.open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: var(--s2); }
  .nav-link { padding: var(--s2) 0; }
  .nav-link::after { display: none; }
  .nav-link.is-active {
    border-left: 2px solid var(--accent);
    padding-left: var(--s2);
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s5);
    min-height: 0;
    padding-block: var(--s6);
  }
  .hero-anchor { display: none; }
  .hero-copy .lead { max-width: none; }

  .split,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .split-reverse .split-media { order: 0; }

  .facts { grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
  .fact { border-left: 0; padding-inline: 0; }
  .fact + .fact { border-top: var(--hairline) solid var(--border); padding-top: var(--s3); }

  .footer-inner { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .cta-contour { display: none; }
}

@media (max-width: 420px) {
  .hero-actions .btn,
  .cta-actions .btn,
  .form-actions .btn { width: 100%; }
  .wordmark-sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .btn:hover,
  .service-card:hover { transform: none; }
}
