/* ==========================================================================
   JS Highway Transport Pty Ltd — jshighwaytransporttec.site
   Art direction: "Nightline" — bitumen slate + hi-vis amber, sharp geometry,
   condensed signage display type, road-marking rules as structure.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens — every colour, space, radius, shadow and type step lives here.
   -------------------------------------------------------------------------- */
:root {
  /* Brand — deep bitumen slate */
  --primary: #1c2a35;
  --primary-700: #131d25;
  --primary-500: #33485a;
  --primary-300: #5c7386;

  /* Accent — road-sign amber. --accent for marks and on-dark text,
     --accent-ink for AA-safe accent text on light surfaces. */
  --accent: #f2a93b;
  --accent-ink: #8f5305;
  --accent-soft: rgba(242, 169, 59, 0.13);

  /* Neutral ramp — cool concrete */
  --bg: #f1f3f5;
  --surface: #ffffff;
  --surface-2: #e7edf1;
  --border: #dce3e8;

  /* Ink */
  --text-dark: #14202a;
  --text-body: #46545f;
  --text-muted: #6b7a86;
  --text-light: #c9d3db;

  /* Composite colours used by layered backgrounds */
  --hero-glow: rgba(242, 169, 59, 0.16);
  --hero-hatch: rgba(255, 255, 255, 0.045);
  --on-dark-border: rgba(255, 255, 255, 0.13);
  --on-dark-panel: rgba(255, 255, 255, 0.045);
  --nav-bg: rgba(255, 255, 255, 0.82);

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

  /* Shape */
  --radius: 2px;
  --radius-lg: 3px;
  --container: 1140px;
  --gutter: 22px;
  --nav-h: 68px;
  --lane: 7px;

  /* Elevation */
  --shadow-1: 0 1px 2px rgba(20, 32, 42, 0.05);
  --shadow-2: 0 1px 2px rgba(20, 32, 42, 0.04), 0 10px 28px rgba(20, 32, 42, 0.08);
  --shadow-3: 0 1px 2px rgba(20, 32, 42, 0.05), 0 18px 40px rgba(20, 32, 42, 0.13);
  --focus-ring: 0 0 0 3px rgba(242, 169, 59, 0.13);

  /* Type */
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Arial Narrow", "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "Courier New", monospace;

  --fs-hero: clamp(2.4rem, 5.4vw, 4.1rem);
  --fs-h2: clamp(1.7rem, 3.1vw, 2.5rem);
  --fs-h3: 1.16rem;
  --fs-h4: 1rem;
  --fs-lead: clamp(1.03rem, 1.5vw, 1.2rem);
  --fs-body: 1.02rem;
  --fs-small: 0.875rem;
  --fs-fine: 0.8rem;
  --fs-eyebrow: 0.78rem;
  --measure: 66ch;

  --t: 180ms cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::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);
  font-stretch: 87.5%;
  color: var(--text-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 var(--s3);
  font-weight: 700;
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; }
h4 { font-size: var(--fs-h4); line-height: 1.3; letter-spacing: 0; }

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

a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text-dark); }

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

strong { color: var(--text-dark); font-weight: 600; }

svg { display: block; }

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

.skip-link {
  position: absolute;
  left: var(--s3);
  top: calc(var(--s1) * -12);
  z-index: 60;
  background: var(--primary);
  color: var(--surface);
  padding: var(--s2) var(--s3);
  border-radius: var(--radius);
  font-size: var(--fs-small);
  transition: top var(--t);
}
.skip-link:focus { top: var(--s2); color: var(--surface); }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--s7) 0; }
.section--tight { padding: var(--s6) 0; }

.section--tint { background: var(--bg); }
.section--surface { background: var(--surface); }

.section--dark {
  position: relative;
  background:
    radial-gradient(70% 120% at 82% 8%, var(--hero-glow) 0%, transparent 58%),
    linear-gradient(160deg, var(--primary) 0%, var(--primary-700) 100%);
  color: var(--text-light);
  overflow: hidden;
}
.section--dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    var(--hero-hatch) 0 1px,
    transparent 1px 9px
  );
  pointer-events: none;
}
.section--dark > .container { position: relative; }
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--surface); }
.section--dark p { color: var(--text-light); }
.section--dark strong { color: var(--surface); }
.section--dark .eyebrow { color: var(--accent); }
.section--dark :focus-visible { outline-color: var(--accent); }

/* Signature: road lane marking used as a structural rule */
.lane-rule {
  height: var(--lane);
  width: clamp(72px, 12vw, 132px);
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0 18px,
    transparent 18px 30px
  );
  margin-bottom: var(--s4);
}

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

.section-head { max-width: 62ch; margin-bottom: var(--s6); }
.section-head p { color: var(--text-muted); font-size: var(--fs-lead); }

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

/* --------------------------------------------------------------------------
   4. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

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

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

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

.wordmark-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--primary);
  color: var(--accent);
  font-family: var(--font-display);
  font-stretch: 87.5%;
  font-weight: 700;
  font-size: var(--fs-h4);
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border-bottom: 2px solid var(--accent);
}

.wordmark-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-stretch: 87.5%;
  font-weight: 700;
  font-size: var(--fs-h4);
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-transform: uppercase;
}
.wordmark-sub {
  font-family: var(--font-body);
  font-size: var(--fs-fine);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.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;
  max-width: none;
}
.nav-links li { margin: 0; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: var(--s2) 0;
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-body);
  text-decoration: none;
  transition: color var(--t);
}
.nav-link:hover { color: var(--text-dark); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--text-dark); }
.nav-link.is-active::after { transform: scaleX(1); height: 3px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 38px;
  padding: 0 var(--s1);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-dark);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  padding: 0.8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t), background-color var(--t), color var(--t),
    border-color var(--t), box-shadow var(--t);
}

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

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

.btn-onDark {
  background: transparent;
  color: var(--surface);
  border-color: var(--on-dark-border);
}
.btn-onDark:hover {
  background: var(--surface);
  color: var(--primary-700);
  border-color: var(--surface);
  transform: translateY(-1px);
}

.btn-sm { padding: var(--s2) var(--s3); font-size: var(--fs-fine); }
.btn-block { width: 100%; }

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

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(58% 100% at 78% 12%, var(--hero-glow) 0%, transparent 60%),
    linear-gradient(158deg, var(--primary) 0%, var(--primary-700) 72%, var(--primary) 100%);
  color: var(--text-light);
  padding: var(--s7) 0 calc(var(--s7) + var(--s6));
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 3.5rem));
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    var(--hero-hatch) 0 1px,
    transparent 1px 9px
  );
  pointer-events: none;
}
.hero > .container { position: relative; }
.hero :focus-visible { outline-color: var(--accent); }

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: var(--s6);
  align-items: center;
  min-height: 60vh;
}

.hero h1 { color: var(--surface); }
.hero .eyebrow { color: var(--accent); }
.hero-lead {
  font-size: var(--fs-lead);
  color: var(--text-light);
  max-width: 48ch;
  margin-top: var(--s4);
}

.hero-anchor { display: block; width: 100%; max-width: 440px; margin-left: auto; }
.hero-anchor svg { width: 100%; height: auto; }

.hero-note {
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: 1px solid var(--on-dark-border);
  font-size: var(--fs-small);
  color: var(--text-light);
  max-width: 52ch;
}

/* Compact hero for inner pages — same craft, shorter */
.page-hero {
  position: relative;
  background:
    radial-gradient(64% 130% at 84% 0%, var(--hero-glow) 0%, transparent 58%),
    linear-gradient(158deg, var(--primary) 0%, var(--primary-700) 100%);
  color: var(--text-light);
  padding: var(--s6) 0;
  overflow: hidden;
  border-bottom: var(--lane) solid var(--primary-700);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    115deg,
    var(--hero-hatch) 0 1px,
    transparent 1px 9px
  );
  pointer-events: none;
}
.page-hero > .container { position: relative; }
.page-hero h1 { color: var(--surface); font-size: var(--fs-h2); }
.page-hero .eyebrow { color: var(--accent); }
.page-hero p { color: var(--text-light); max-width: 58ch; margin-top: var(--s3); }

/* --------------------------------------------------------------------------
   7. Capability row — hairline separated, not cards
   -------------------------------------------------------------------------- */
.capability-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
}
.cap { padding-top: var(--s3); border-top: 2px solid var(--text-dark); }
.cap h3 { margin-bottom: var(--s1); }
.cap p { font-size: var(--fs-small); color: var(--text-muted); margin: 0; }
.cap-index {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-fine);
  color: var(--accent-ink);
  letter-spacing: 0.08em;
  margin-bottom: var(--s2);
}

/* --------------------------------------------------------------------------
   8. Services
   -------------------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
  gap: var(--s4);
}
.services-grid--wide {
  grid-template-columns: repeat(auto-fit, minmax(312px, 1fr));
}

.service-card {
  background: var(--surface);
  border: 1px 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(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--primary-300);
}
.service-card h3 { margin-bottom: var(--s2); }
.service-card p { font-size: var(--fs-small); color: var(--text-body); margin: 0; }
.service-card ul {
  margin: var(--s3) 0 0;
  padding: var(--s2) 0 0;
  list-style: none;
  font-size: var(--fs-small);
  border-top: 1px solid var(--border);
}
.service-card li {
  position: relative;
  padding-left: var(--s3);
  color: var(--text-muted);
  margin-bottom: var(--s1);
}
.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 9px;
  height: 2px;
  background: var(--accent);
}

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: var(--s3);
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-ink);
  border: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   9. Corridors band
   -------------------------------------------------------------------------- */
.corridor-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--s6);
  align-items: start;
}
.route-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 var(--s5);
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}
.route-item {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--on-dark-border);
  margin: 0;
  font-size: var(--fs-small);
  color: var(--text-light);
}
.route-item span { color: var(--surface); font-weight: 600; }
.route-item::before {
  content: "";
  flex: 0 0 auto;
  width: 12px;
  height: 2px;
  background: var(--accent);
  transform: translateY(-4px);
}
.route-note {
  margin-top: var(--s4);
  font-size: var(--fs-small);
  color: var(--text-light);
}

/* --------------------------------------------------------------------------
   10. Two-column content bands
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: center;
}
.split--offset { grid-template-columns: 1.05fr 0.95fr; align-items: start; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s5);
  box-shadow: var(--shadow-1);
}
.panel--tint { background: var(--surface-2); box-shadow: none; }
.panel h2 { font-size: var(--fs-h3); margin-bottom: var(--s3); }
.panel h3 { margin-bottom: var(--s3); }

.check-list { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.check-list li {
  position: relative;
  padding-left: var(--s5);
  margin-bottom: var(--s3);
  font-size: var(--fs-small);
  color: var(--text-body);
}
.check-list li:last-child { margin-bottom: 0; }
.check-list li strong { display: block; margin-bottom: 2px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 18px;
  height: 18px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
}

/* --------------------------------------------------------------------------
   11. Compliance plate — the factual credentials block
   -------------------------------------------------------------------------- */
.plate {
  background: var(--primary);
  border-radius: var(--radius);
  border-left: var(--lane) solid var(--accent);
  padding: var(--s5);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  box-shadow: var(--shadow-2);
}
.plate-item { border-left: 1px solid var(--on-dark-border); padding-left: var(--s3); }
.plate-item:first-child { border-left: 0; padding-left: 0; }
.plate-key {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s1);
}
.plate-value {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--surface);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   12. Steps — a real sequence, so it is numbered
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--s4);
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: none;
}
.step {
  padding-top: var(--s3);
  border-top: 1px solid var(--border);
  margin: 0;
}
.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-fine);
  color: var(--accent-ink);
  letter-spacing: 0.1em;
  margin-bottom: var(--s2);
}
.step h3 { font-size: var(--fs-h4); margin-bottom: var(--s1); }
.step p { font-size: var(--fs-small); color: var(--text-muted); margin: 0; }

/* --------------------------------------------------------------------------
   13. CTA panel
   -------------------------------------------------------------------------- */
.cta-panel {
  border: 1px solid var(--border);
  border-top: var(--lane) solid var(--accent);
  background: var(--surface);
  border-radius: var(--radius);
  padding: var(--s6) var(--s5);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: var(--s5);
  align-items: center;
  box-shadow: var(--shadow-1);
}
.cta-panel h2 { margin-bottom: var(--s2); }
.cta-panel p { color: var(--text-muted); margin: 0; }
.cta-actions { display: flex; flex-direction: column; gap: var(--s2); }

/* --------------------------------------------------------------------------
   14. Contact
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--s6);
  align-items: start;
}

.info-list { list-style: none; margin: 0; padding: 0; max-width: none; }
.info-list li {
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--border);
  margin: 0;
}
.info-list li:first-child { padding-top: 0; }
.info-key {
  display: block;
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.info-value {
  display: block;
  font-size: var(--fs-small);
  color: var(--text-dark);
  word-break: break-word;
}
.info-value a { font-weight: 600; }
.info-value--mono { font-family: var(--font-mono); letter-spacing: 0.02em; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.form-field { display: flex; flex-direction: column; gap: var(--s1); }
.form-field--full { grid-column: 1 / -1; }
.form-field label {
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
}
.form-field input,
.form-field textarea,
.form-field select {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  color: var(--text-dark);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s2) var(--s3);
  width: 100%;
  transition: border-color var(--t), box-shadow var(--t);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  border-color: var(--accent-ink);
  box-shadow: var(--focus-ring);
  outline: none;
}
.form-hint { font-size: var(--fs-fine); color: var(--text-muted); margin-top: var(--s3); }

/* --------------------------------------------------------------------------
   15. Legal / prose pages
   -------------------------------------------------------------------------- */
.prose { max-width: 74ch; }
.prose h2 {
  font-size: var(--fs-h3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: var(--s6);
  padding-top: var(--s3);
  border-top: 2px solid var(--text-dark);
}
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-size: var(--fs-h4); margin-top: var(--s4); }
.prose p, .prose li { font-size: var(--fs-small); }
.prose ul { padding-left: var(--s4); }

.legal-meta {
  background: var(--surface-2);
  border-left: var(--lane) solid var(--accent);
  border-radius: var(--radius);
  padding: var(--s4);
  margin-bottom: var(--s6);
  max-width: 74ch;
}
.legal-meta p { font-size: var(--fs-small); margin-bottom: var(--s1); }
.legal-meta p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--primary-700);
  color: var(--text-light);
  border-top: var(--lane) solid var(--accent);
}
.footer :focus-visible { outline-color: var(--accent); }

.footer-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.3fr;
  gap: var(--s5);
  padding: var(--s6) 0 var(--s5);
}
.footer h4 {
  color: var(--surface);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--s3);
}
.footer p { font-size: var(--fs-small); color: var(--text-light); max-width: 40ch; }
.footer .wordmark { color: var(--surface); margin-bottom: var(--s3); }
.footer .wordmark-sub { color: var(--text-light); }

.footer-list { list-style: none; margin: 0; padding: 0; max-width: none; }
.footer-list li { margin-bottom: var(--s2); }
.footer-list a {
  font-size: var(--fs-small);
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--t);
}
.footer-list a:hover { color: var(--accent); text-decoration: underline; }

.footer-reg {
  margin-top: var(--s3);
  padding-top: var(--s3);
  border-top: 1px solid var(--on-dark-border);
  font-family: var(--font-mono);
  font-size: var(--fs-fine);
  color: var(--text-light);
  letter-spacing: 0.02em;
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid var(--on-dark-border);
  background: var(--primary);
}
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding-top: var(--s3);
  padding-bottom: var(--s3);
}
.footer-bottom p { font-size: var(--fs-fine); color: var(--text-light); margin: 0; }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s4); }
.footer-legal a {
  font-size: var(--fs-fine);
  color: var(--text-light);
  text-decoration: none;
}
.footer-legal a:hover { color: var(--accent); text-decoration: underline; }

/* --------------------------------------------------------------------------
   17. Dark-context overrides
   Declared after the light-surface components so they win on equal
   specificity — otherwise .cap / .cap p / .section-head p keep their
   light-background colours inside a .section--dark band and fail contrast.
   -------------------------------------------------------------------------- */
.section--dark .section-head p { color: var(--text-light); }
.section--dark .cap { border-top-color: var(--accent); }
.section--dark .cap p { color: var(--text-light); }
.section--dark .cap-index { color: var(--accent); }
.section--dark .step { border-top-color: var(--on-dark-border); }
.section--dark .step p { color: var(--text-light); }
.section--dark .step-num { color: var(--accent); }
.section--dark .lead { color: var(--text-light); }
.section--dark .check-list li { color: var(--text-light); }
.section--dark .check-list li strong { color: var(--surface); }
.section--dark .service-card li { color: var(--text-light); }
.section--dark .icon-tile {
  background: var(--on-dark-panel);
  color: var(--accent);
  border-color: var(--on-dark-border);
}
.section--dark a { color: var(--accent); }
.section--dark a:hover { color: var(--surface); }

/* --------------------------------------------------------------------------
   18. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .capability-row { grid-template-columns: 1fr; gap: var(--s4); }
  .corridor-grid,
  .split,
  .split--offset,
  .contact-grid { grid-template-columns: 1fr; gap: var(--s5); }
  .plate { grid-template-columns: repeat(2, 1fr); }
  .plate-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .cta-panel { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: var(--s6) 0; }
  .section--tight { padding: var(--s5) 0; }

  .nav-toggle { display: flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s3);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-2);
    padding: var(--s3) var(--gutter) var(--s4);
  }
  .nav-menu.is-open { display: flex; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-link { display: block; padding: var(--s3) 0; font-size: var(--fs-body); }
  .nav-link::after { bottom: -1px; }
  .nav-cta { width: 100%; }

  .hero {
    padding: var(--s6) 0 var(--s7);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 2rem));
  }
  .hero-grid { grid-template-columns: 1fr; gap: var(--s5); min-height: 0; }
  .hero-anchor { display: none; }

  .page-hero { padding: var(--s5) 0; }

  .route-list { grid-template-columns: 1fr; }
  .plate { grid-template-columns: 1fr; padding: var(--s4); }
  .plate-item {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--on-dark-border);
    padding-top: var(--s3);
  }
  .plate-item:first-child { border-top: 0; padding-top: 0; }

  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: var(--s4); padding: var(--s5) 0 var(--s4); }
  .btn-row .btn { flex: 1 1 auto; }
}

@media (max-width: 400px) {
  .wordmark-text { font-size: var(--fs-small); }
}

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

@media print {
  .site-header, .cta-panel, .hero-anchor { display: none; }
  body { background: var(--surface); color: var(--text-dark); }
}
