/* ==========================================================================
   Wellbeing Chiropractic Queensland Pty Ltd
   ---------------------------------------------------------------------------
   THESIS      An anatomical plate, not a wellness spa. This surface refuses the
               sage-green / pastel-gradient / rounded-sans clinic template and
               the cold hospital-blue that is its predictable opposite.
   OWN-WORLD   Deep petrol-green ink over a cool bone-grey ground, with a single
               deep vermilion used exactly as a printed anatomy plate uses it:
               to key the structure under discussion. Hairline rules, keyline
               leaders with square terminals, registration marks, sharp 3px
               corners, Georgia display against a system sans for labels.
   STORY       A person in pain learns what happens in the room, in what order,
               and how to ask for an appointment.
   FIRST VIEW  Asymmetric dark band: copy left, a drawn vertebral-column plate
               with keyed leaders right; primary action sits under the lead.
   FORM        Diagrammatic plate. Sharp shape language held everywhere.
   ---------------------------------------------------------------------------
   Every value used below this block is a token defined inside it.
   ========================================================================== */

:root {
  /* ---- colour: brand ---- */
  --brand:            #12332f;
  --brand-deep:       #0b201d;
  --brand-mid:        #26564c;
  --brand-tint:       #e4ece9;

  /* ---- colour: accent (plate keyline vermilion) ---- */
  --accent:           #a32f1d;
  --accent-press:     #862515;
  --accent-on-dark:   #ef9077;
  --accent-tint:      #f7e8e3;

  /* ---- colour: neutral ramp (cool, never cream) ---- */
  --ink:              #101c1a;
  --muted:            #566360;
  --muted-dark:       #a9bdb6;
  --bg:               #f5f6f4;
  --surface:          #ffffff;
  --surface-alt:      #eceeeb;
  --border:           #d8ded9;
  --border-strong:    #bcc6c1;
  --border-dark:      #2b4e47;
  --on-dark:          #f2f6f4;
  --on-accent:        #ffffff;

  /* ---- colour: layered / alpha ---- */
  --glow:             rgba(239, 144, 119, 0.16);
  --glow-cool:        rgba(38, 86, 76, 0.60);
  --hatch:            rgba(255, 255, 255, 0.045);
  --grid-line-dark:   rgba(242, 246, 244, 0.07);
  --nav-bg:           rgba(245, 246, 244, 0.82);
  --nav-border:       rgba(16, 28, 26, 0.10);

  /* ---- elevation ---- */
  --shadow-1: 0 1px 2px rgba(16, 28, 26, 0.05);
  --shadow-2: 0 1px 2px rgba(16, 28, 26, 0.04), 0 10px 28px rgba(16, 28, 26, 0.07);
  --shadow-3: 0 2px 4px rgba(16, 28, 26, 0.06), 0 18px 44px rgba(16, 28, 26, 0.13);
  --ring:      0 0 0 3px rgba(163, 47, 29, 0.38);
  --ring-dark: 0 0 0 3px rgba(239, 144, 119, 0.55);

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

  /* ---- geometry (sharp shape language) ---- */
  --radius:     3px;
  --radius-sm:  2px;
  --hair:       1px;
  --rule:       2px;
  --container:  1140px;
  --gutter:     22px;
  --cut:        3.5rem;
  --tile:       44px;
  --mark:       38px;
  --leader:     28px;
  --blur:       10px;
  --plate-max:  380px;

  /* ---- typography ---- */
  --font-sans:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Iowan Old Style", "Times New Roman", Times, 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.6vw, 1.35rem);
  --fs-lead:    clamp(1.05rem, 1.5vw, 1.2rem);
  --fs-body:    1.0625rem;
  --fs-small:   0.875rem;
  --fs-micro:   0.78rem;
  --fs-plate:   11px;
  --fs-numeral: clamp(1.5rem, 2.6vw, 2rem);

  --lh-tight: 1.1;
  --lh-head:  1.18;
  --lh-body:  1.65;
  --measure:  66ch;
  --measure-narrow: 58ch;
  --track-tight: -0.02em;
  --track-label: 0.14em;

  /* ---- motion ---- */
  --t:       180ms cubic-bezier(0.2, 0.7, 0.3, 1);
  --lift:    -1px;
  --lift-lg: -3px;
}

/* ==========================================================================
   Base
   ========================================================================== */

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--lh-head);
  letter-spacing: var(--track-tight);
  margin: 0 0 var(--s3);
  font-weight: 700;
}

h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

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

a { color: var(--accent); text-decoration-thickness: var(--hair); text-underline-offset: var(--s0); }
a:hover { color: var(--accent-press); }

ul, ol { margin: 0 0 var(--s3); padding-left: var(--s4); max-width: var(--measure); }
li { margin-bottom: var(--s1); }

strong { font-weight: 700; }

svg { display: block; }

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

.skip-link {
  position: absolute;
  left: var(--s3);
  top: var(--s3);
  z-index: 200;
  transform: translateY(calc(-1 * var(--s7) * 2));
  background: var(--accent);
  color: var(--on-accent);
  padding: var(--s2) var(--s3);
  border-radius: var(--radius);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); color: var(--on-accent); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

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

/* ==========================================================================
   Plate key — the signature device (eyebrow as an anatomical-plate label)
   ========================================================================== */

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin: 0 0 var(--s2);
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--accent);
  max-width: var(--measure);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: var(--leader);
  height: var(--hair);
  background: currentColor;
}
.eyebrow::after {
  content: "";
  flex: none;
  width: var(--s1);
  height: var(--s1);
  background: currentColor;
  order: -1;
}
.eyebrow.on-dark { color: var(--accent-on-dark); }

.section-head { margin-bottom: var(--s5); }
.section-head p { color: var(--muted); font-size: var(--fs-lead); }
.section-head.on-dark p { color: var(--muted-dark); }

.lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  max-width: var(--measure-narrow);
}
.lead.on-dark { color: var(--muted-dark); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  padding: var(--s2) var(--s4);
  border: var(--hair) solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t), background-color var(--t), border-color var(--t), color var(--t), box-shadow var(--t);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  box-shadow: var(--shadow-1);
}
.btn-primary:hover {
  background: var(--accent-press);
  border-color: var(--accent-press);
  color: var(--on-accent);
  transform: translateY(var(--lift));
  box-shadow: var(--shadow-2);
}

.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--surface);
  transform: translateY(var(--lift));
  box-shadow: var(--shadow-1);
}
.btn-outline.on-dark { color: var(--on-dark); border-color: var(--border-dark); }
.btn-outline.on-dark:hover { background: var(--brand-mid); color: var(--on-dark); border-color: var(--brand-mid); }
.btn-outline.on-dark:focus-visible { box-shadow: var(--ring-dark); }

.btn-lg { padding: var(--s2) var(--s5); font-size: var(--fs-body); }
.btn-sm { padding: var(--s1) var(--s3); font-size: var(--fs-micro); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s4);
}

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(var(--blur));
  backdrop-filter: saturate(180%) blur(var(--blur));
  border-bottom: var(--hair) solid var(--nav-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: var(--s6);
  position: relative;
}

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

.brand-mark {
  flex: none;
  width: var(--mark);
  height: var(--mark);
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--on-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: var(--track-tight);
}

.brand-text { display: flex; flex-direction: column; line-height: var(--lh-tight); }
.brand-text strong {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  letter-spacing: var(--track-tight);
}
.brand-text span {
  font-size: var(--fs-micro);
  color: var(--muted);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
}

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

.nav-links a {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  font-size: var(--fs-small);
  font-weight: 600;
  padding: var(--s1) 0;
  transition: color var(--t);
}
.nav-links a:hover { color: var(--accent); }

.nav-links a.active { color: var(--brand); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(-1 * var(--s0));
  height: var(--rule);
  background: var(--accent);
}

.nav-links a.nav-cta { color: var(--on-accent); padding: var(--s1) var(--s3); }
.nav-links a.nav-cta:hover { color: var(--on-accent); }
.nav-links a.nav-cta::after { content: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: var(--s0);
  width: var(--tile);
  height: var(--tile);
  padding: 0 var(--s2);
  background: transparent;
  border: var(--hair) solid var(--border-strong);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle .bar {
  display: block;
  width: 100%;
  height: var(--rule);
  background: var(--ink);
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Shared dark-band background craft (hero, page-hero, sequence bands)
   ========================================================================== */

.plate-bg {
  position: relative;
  background-color: var(--brand);
  background-image:
    radial-gradient(60% 90% at 78% 12%, var(--glow) 0%, transparent 62%),
    radial-gradient(70% 100% at 10% 100%, var(--glow-cool) 0%, transparent 60%),
    linear-gradient(168deg, var(--brand-deep) 0%, var(--brand) 55%, var(--brand-deep) 100%);
  color: var(--on-dark);
  isolation: isolate;
}
.plate-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--hatch) 0,
    var(--hatch) var(--hair),
    transparent var(--hair),
    transparent var(--s2)
  );
  pointer-events: none;
}
.plate-bg h1, .plate-bg h2, .plate-bg h3 { color: var(--on-dark); }
.plate-bg p { color: var(--muted-dark); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: var(--s7) 0 calc(var(--s7) + var(--cut));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s6);
  align-items: center;
  width: 100%;
}

.hero-copy { min-width: 0; }
.hero-plate { min-width: 0; }

.hero h1 {
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  margin-bottom: var(--s3);
  max-width: var(--measure-narrow);
}

.hero .lead { margin-bottom: 0; }

/* Drawn anatomical plate — the hero's visual anchor */
.plate-frame {
  position: relative;
  border: var(--hair) solid var(--border-dark);
  border-radius: var(--radius);
  padding: var(--s4);
  background-color: var(--brand-deep);
  background-image:
    linear-gradient(var(--grid-line-dark) var(--hair), transparent var(--hair)),
    linear-gradient(90deg, var(--grid-line-dark) var(--hair), transparent var(--hair));
  background-size: var(--s4) var(--s4);
  box-shadow: var(--shadow-3);
}
.plate-frame::before,
.plate-frame::after {
  content: "";
  position: absolute;
  width: var(--s2);
  height: var(--s2);
  border: var(--hair) solid var(--accent-on-dark);
}
.plate-frame::before { top: var(--s2); left: var(--s2); border-right: 0; border-bottom: 0; }
.plate-frame::after { bottom: var(--s2); right: var(--s2); border-left: 0; border-top: 0; }

.plate-svg { width: 100%; height: auto; color: var(--muted-dark); }
.plate-spine { stroke: var(--on-dark); }
.plate-leader { stroke: var(--accent-on-dark); }
.plate-dot { fill: var(--accent-on-dark); }
.plate-label {
  fill: var(--on-dark);
  font-family: var(--font-sans);
  font-size: var(--fs-plate);
  font-weight: 700;
  letter-spacing: var(--track-label);
}
.plate-sub {
  fill: var(--muted-dark);
  font-family: var(--font-sans);
  font-size: var(--fs-plate);
}
.plate-caption {
  margin: var(--s3) 0 0;
  padding-top: var(--s2);
  border-top: var(--hair) solid var(--border-dark);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--muted-dark);
  max-width: none;
}

/* Compact page hero for inner pages */
.page-hero {
  padding: var(--s6) 0 calc(var(--s5) + var(--cut));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%);
}
.page-hero h1 { font-size: var(--fs-h1); margin-bottom: var(--s2); }
.page-hero .lead { margin-bottom: 0; }
.page-hero .breadcrumb {
  font-size: var(--fs-micro);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: var(--s3);
}
.page-hero .breadcrumb a { color: var(--muted-dark); text-decoration: none; }
.page-hero .breadcrumb a:hover { color: var(--accent-on-dark); }
.page-hero .breadcrumb a:focus-visible { box-shadow: var(--ring-dark); }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: var(--s7) 0; }
.section-tight { padding: var(--s6) 0; }
.section-alt {
  background: var(--surface);
  border-top: var(--hair) solid var(--border);
  border-bottom: var(--hair) solid var(--border);
}

/* Value props — hairline-divided columns, not cards */
.props {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: var(--rule) solid var(--ink);
}
.prop {
  padding: var(--s4) var(--s4) var(--s2) 0;
  border-right: var(--hair) solid var(--border);
}
.prop:last-child { border-right: 0; padding-right: 0; }
.prop h3 { margin-bottom: var(--s1); }
.prop p { color: var(--muted); font-size: var(--fs-small); margin-bottom: 0; }
.prop .prop-no {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  color: var(--accent);
  letter-spacing: var(--track-label);
  margin-bottom: var(--s2);
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}
.services-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.service-card {
  background: var(--surface);
  border: var(--hair) solid var(--border);
  border-radius: var(--radius);
  padding: var(--s4);
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.service-card:hover {
  transform: translateY(var(--lift-lg));
  box-shadow: var(--shadow-2);
  border-color: var(--border-strong);
}
.service-card h3 { margin-bottom: var(--s1); }
.service-card p { color: var(--muted); font-size: var(--fs-small); margin-bottom: 0; }
.service-card ul { font-size: var(--fs-small); color: var(--muted); margin: var(--s2) 0 0; }

.icon-tile {
  width: var(--tile);
  height: var(--tile);
  flex: none;
  display: grid;
  place-items: center;
  background: var(--brand-tint);
  color: var(--brand);
  border-radius: var(--radius);
  margin-bottom: var(--s3);
}
.icon-tile.accent { background: var(--accent-tint); color: var(--accent); }

/* Full-bleed dark band: sequence of care */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  margin-top: var(--s5);
}
.step {
  padding-top: var(--s3);
  border-top: var(--rule) solid var(--border-dark);
}
.step .step-no {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-numeral);
  color: var(--accent-on-dark);
  line-height: var(--lh-tight);
  margin-bottom: var(--s2);
}
.step h3 { margin-bottom: var(--s1); }
.step p { font-size: var(--fs-small); margin-bottom: 0; }

/* Two-column split band */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: center;
}
.split.narrow-right { grid-template-columns: 1.15fr 0.85fr; }

.panel {
  background: var(--surface);
  border: var(--hair) solid var(--border);
  border-left: var(--rule) solid var(--accent);
  border-radius: var(--radius);
  padding: var(--s5);
  box-shadow: var(--shadow-2);
}
.panel h3 { margin-bottom: var(--s2); }
.panel p { color: var(--muted); }
.panel p:last-child { margin-bottom: 0; }

.fact-list { list-style: none; margin: 0; padding: 0; max-width: none; }
.fact-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s3);
  padding: var(--s2) 0;
  border-bottom: var(--hair) solid var(--border);
  font-size: var(--fs-small);
  margin: 0;
}
.fact-list li:last-child { border-bottom: 0; }
.fact-list .fact-k {
  flex: none;
  color: var(--muted);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  font-size: var(--fs-micro);
}
.fact-list .fact-v { font-weight: 700; text-align: right; }

/* Credentials strip — factual only */
.credentials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  padding: var(--s4) 0;
  border-top: var(--hair) solid var(--border);
  border-bottom: var(--hair) solid var(--border);
}
.cred { display: flex; flex-direction: column; gap: var(--s0); }
.cred .cred-k {
  font-size: var(--fs-micro);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.cred .cred-v {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  letter-spacing: var(--track-tight);
}

/* CTA strip */
.cta-strip { padding: var(--s6) 0; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  flex-wrap: wrap;
}
.cta-inner h2 { margin-bottom: var(--s1); max-width: var(--measure-narrow); }
.cta-inner p { margin-bottom: 0; }

/* ==========================================================================
   Prose / legal documents
   ========================================================================== */

.doc { padding: var(--s7) 0; }
.doc-meta {
  font-size: var(--fs-micro);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: var(--s3);
  border-bottom: var(--hair) solid var(--border);
  margin-bottom: var(--s5);
}
.doc h2 {
  font-size: var(--fs-h3);
  margin-top: var(--s5);
  margin-bottom: var(--s2);
  padding-top: var(--s3);
  border-top: var(--hair) solid var(--border);
}
.doc h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.doc h3 { font-size: var(--fs-body); margin-top: var(--s4); margin-bottom: var(--s1); }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--ink); }
.doc .fact-list li { color: var(--ink); }

.callout {
  background: var(--brand-tint);
  border-radius: var(--radius);
  padding: var(--s4);
  margin: var(--s4) 0;
}
.callout p { color: var(--ink); font-size: var(--fs-small); }
.callout p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: start;
}

.form { display: flex; flex-direction: column; gap: var(--s3); }
.field { display: flex; flex-direction: column; gap: var(--s1); }
.field label {
  font-size: var(--fs-micro);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink);
}
.field input,
.field textarea,
.field select {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--surface);
  border: var(--hair) solid var(--border-strong);
  border-radius: var(--radius);
  padding: var(--s2) var(--s3);
  width: 100%;
  transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { min-height: var(--s7); resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--brand-mid); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--ring);
}
.form-note { font-size: var(--fs-micro); color: var(--muted); margin: 0; }

.contact-list { list-style: none; margin: 0 0 var(--s4); padding: 0; max-width: none; }
.contact-list li {
  display: flex;
  gap: var(--s3);
  align-items: center;
  padding: var(--s3) 0;
  border-bottom: var(--hair) solid var(--border);
  margin: 0;
}
.contact-list li:first-child { padding-top: 0; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list .icon-tile { margin-bottom: 0; }
.contact-list .contact-k {
  display: block;
  font-size: var(--fs-micro);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s0);
}
.contact-list .contact-v {
  display: block;
  font-weight: 600;
  font-size: var(--fs-small);
  word-break: break-word;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--brand-deep);
  color: var(--on-dark);
  border-top: var(--rule) solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: var(--s5);
  padding: var(--s6) 0 var(--s5);
}

.footer h4 {
  font-family: var(--font-sans);
  font-size: var(--fs-micro);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--accent-on-dark);
  margin: 0 0 var(--s3);
}
.footer p { color: var(--muted-dark); font-size: var(--fs-small); }
.footer-brand { display: inline-flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); }
.footer-brand .brand-mark { background: var(--brand-mid); }
.footer-brand .footer-name {
  font-family: var(--font-display);
  font-size: var(--fs-body);
  color: var(--on-dark);
  letter-spacing: var(--track-tight);
}
.footer-reg {
  font-size: var(--fs-micro);
  color: var(--muted-dark);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  margin: 0;
}

.footer-links { list-style: none; margin: 0; padding: 0; max-width: none; }
.footer-links li { margin-bottom: var(--s1); }
.footer-links a {
  color: var(--muted-dark);
  text-decoration: none;
  font-size: var(--fs-small);
  word-break: break-word;
  transition: color var(--t);
}
.footer-links a:hover { color: var(--accent-on-dark); }
.footer-links a:focus-visible { box-shadow: var(--ring-dark); }

.footer-bottom {
  border-top: var(--hair) solid var(--border-dark);
  background: var(--brand);
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: var(--s3) 0;
}
.footer-bottom p { margin: 0; font-size: var(--fs-micro); color: var(--muted-dark); }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s3); }
.footer-legal a {
  color: var(--muted-dark);
  font-size: var(--fs-micro);
  text-decoration: none;
  transition: color var(--t);
}
.footer-legal a:hover { color: var(--accent-on-dark); }
.footer-legal a:focus-visible { box-shadow: var(--ring-dark); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .hero-plate { max-width: var(--plate-max); }
  .services-grid, .services-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .split.narrow-right { grid-template-columns: 1fr; gap: var(--s5); }
  .contact-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s5); }
  .credentials { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --cut: 2rem; }

  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border: var(--hair) solid var(--border);
    border-radius: var(--radius);
    padding: var(--s2);
    box-shadow: var(--shadow-3);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: var(--s2); border-bottom: var(--hair) solid var(--border); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a.active::after {
    left: 0;
    right: auto;
    bottom: auto;
    top: var(--s2);
    width: var(--rule);
    height: calc(100% - var(--s4));
  }
  .nav-links a.nav-cta { margin-top: var(--s2); justify-content: center; }

  .section { padding: var(--s6) 0; }
  .section-tight, .doc, .cta-strip { padding: var(--s5) 0; }
  .hero { padding: var(--s6) 0 calc(var(--s6) + var(--cut)); min-height: auto; }
  .page-hero { padding: var(--s5) 0 calc(var(--s5) + var(--cut)); }

  .props { grid-template-columns: 1fr; }
  .prop { border-right: 0; border-bottom: var(--hair) solid var(--border); padding-right: 0; }
  .prop:last-child { border-bottom: 0; }

  .services-grid, .services-grid.cols-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .credentials { grid-template-columns: 1fr; gap: var(--s3); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: var(--s4); }
  .panel { padding: var(--s4); }
  .fact-list li { flex-direction: column; gap: var(--s0); align-items: flex-start; }
  .fact-list .fact-v { text-align: left; }
}

@media (max-width: 420px) {
  .brand-text span { display: none; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
}

@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; }
}

@media print {
  .site-header, .nav-toggle, .cta-strip { display: none; }
  body { background: var(--surface); color: var(--ink); }
}
