/* RSC Industries Pty Ltd - styles.css
   Art direction: engineering drawing / stamped spec plate.
   Deep ironbark teal, hi-vis amber used sparingly, cool concrete neutrals, sharp shape language. */

:root {
  /* Colour */
  --primary: #1f3a3d;
  --primary-deep: #132527;
  --primary-soft: #2b4f53;
  --accent: #d99a1e;
  --accent-hover: #e6aa38;
  --accent-ink: #8a5300;
  --bg: #f2f3f1;
  --surface: #ffffff;
  --stone: #e6e9e6;
  --rivet: #b4bcb8;
  --border: #d2d7d3;
  --text-dark: #1a2222;
  --text-light: #56605d;
  --text-on-dark: #eef2f0;
  --text-on-dark-muted: #b5c2bf;
  --line-on-dark: rgba(238, 242, 240, 0.16);
  --line-on-dark-strong: rgba(238, 242, 240, 0.45);
  --grid-line: rgba(238, 242, 240, 0.055);
  --glow: rgba(217, 154, 30, 0.2);
  --glow-cool: rgba(120, 170, 165, 0.16);
  --wash-light: rgba(238, 242, 240, 0.08);
  --nav-bg: rgba(242, 243, 241, 0.86);
  --tint: rgba(31, 58, 61, 0.08);
  --tint-accent: rgba(217, 154, 30, 0.18);
  --focus: var(--accent-ink);

  /* Type */
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Bahnschrift, "DIN Alternate", "Arial Narrow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --fs-hero: clamp(2.25rem, 5vw, 4rem);
  --fs-page: clamp(2rem, 4vw, 3rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3: 1.2rem;
  --fs-lead: clamp(1.05rem, 1.6vw, 1.2rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.78rem;

  /* Space */
  --s1: 0.5rem;
  --s2: 0.75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2.5rem;
  --s6: 4rem;
  --s7: 6rem;
  --container: 1140px;
  --gutter: 1.25rem;
  --nav-h: 4.25rem;
  --tile: 2.75rem;
  --measure: 68ch;

  /* Shape */
  --radius: 2px;
  --rule: 1px;
  --bar: 3px;
  --shadow-sm: 0 1px 2px rgba(19, 37, 39, 0.06);
  --shadow-md: 0 1px 2px rgba(19, 37, 39, 0.04), 0 8px 24px rgba(19, 37, 39, 0.08);
  --shadow-lg: 0 2px 4px rgba(19, 37, 39, 0.1), 0 24px 48px rgba(0, 0, 0, 0.28);
  --ease: 180ms ease;
}

/* ---------- Base ---------- */

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

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s3);
  color: inherit;
}

h1 { font-size: var(--fs-page); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -0.01em; }

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

a { color: var(--accent-ink); text-underline-offset: 0.2em; }
a:hover { color: var(--primary); }

:focus-visible {
  outline: var(--bar) solid var(--focus);
  outline-offset: var(--bar);
}

.skip-link {
  position: absolute;
  left: var(--s3);
  top: calc(-1 * var(--s6));
  z-index: 100;
  padding: var(--s1) var(--s3);
  background: var(--primary);
  color: var(--text-on-dark);
  border-radius: var(--radius);
}
.skip-link:focus { top: var(--s3); color: var(--text-on-dark); }

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

.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tile);
  height: var(--tile);
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--primary);
  flex-shrink: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  margin: 0 0 var(--s3);
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before {
  content: "";
  width: var(--s4);
  height: var(--bar);
  background: currentColor;
  flex-shrink: 0;
}

.text-link {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: var(--rule);
}

/* Dark contexts share a focus colour, text colour and link colour */
.hero,
.page-hero,
.band-dark,
.footer {
  --focus: var(--accent);
  color: var(--text-on-dark);
}
.hero .eyebrow,
.page-hero .eyebrow,
.band-dark .eyebrow { color: var(--accent); }
.band-dark a:not(.btn),
.footer a { color: var(--text-on-dark); }
.band-dark a:not(.btn):hover,
.footer a:hover { color: var(--accent); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  padding: var(--s2) var(--s4);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: var(--rule) solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background-color var(--ease), color var(--ease), border-color var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--text-dark);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--text-dark);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--text-on-dark);
}

.btn-outline-light {
  background: transparent;
  color: var(--text-on-dark);
  border-color: var(--line-on-dark-strong);
}
.btn-outline-light:hover {
  background: var(--wash-light);
  color: var(--text-on-dark);
  border-color: var(--text-on-dark);
}

/* ---------- Navbar ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: var(--rule) solid var(--border);
}

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

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

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--s1);
  min-width: var(--tile);
  background: var(--primary);
  color: var(--text-on-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-small);
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  border-bottom: var(--bar) solid var(--accent);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

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

.nav-links a {
  position: relative;
  display: inline-block;
  padding: var(--s1) 0;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.975rem;
}
.nav-links a:hover { color: var(--primary-soft); }

.nav-links a.active { font-weight: 700; color: var(--primary); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--bar);
  background: var(--accent);
}

.nav-links .nav-cta {
  padding: var(--s1) var(--s3);
  color: var(--text-dark);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: var(--tile);
  height: var(--tile);
  padding: var(--s2);
  background: transparent;
  border: var(--rule) solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-dark);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 60vh;
  padding: var(--s7) 0 calc(var(--s7) + var(--s5));
  background:
    radial-gradient(60rem 30rem at 85% 10%, var(--glow), transparent 60%),
    radial-gradient(40rem 30rem at 0% 100%, var(--glow-cool), transparent 70%),
    repeating-linear-gradient(0deg, var(--grid-line) 0 1px, transparent 1px var(--s5)),
    repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px var(--s5)),
    linear-gradient(160deg, var(--primary) 0%, var(--primary-deep) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s6)), 0 100%);
}
.hero > .container { width: 100%; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--s6);
  align-items: center;
}

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

.hero h1 {
  font-size: var(--fs-hero);
  line-height: 1.05;
  max-width: 16ch;
  margin-bottom: var(--s4);
}

.hero-lead {
  font-size: var(--fs-lead);
  color: var(--text-on-dark-muted);
  max-width: 52ch;
  margin-bottom: var(--s5);
}

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

/* Spec plate: the hero's visual anchor */
.spec-plate {
  position: relative;
  max-width: 26rem;
  justify-self: end;
  width: 100%;
  padding: var(--s5) var(--s4) var(--s4);
  color: var(--text-dark);
  border: var(--rule) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  background:
    radial-gradient(circle at var(--s3) var(--s3), var(--rivet) 0 0.22rem, transparent 0.28rem),
    radial-gradient(circle at calc(100% - var(--s3)) var(--s3), var(--rivet) 0 0.22rem, transparent 0.28rem),
    radial-gradient(circle at var(--s3) calc(100% - var(--s3)), var(--rivet) 0 0.22rem, transparent 0.28rem),
    radial-gradient(circle at calc(100% - var(--s3)) calc(100% - var(--s3)), var(--rivet) 0 0.22rem, transparent 0.28rem),
    linear-gradient(180deg, var(--surface) 0%, var(--stone) 100%);
}
.spec-plate::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(var(--s3), var(--s3));
  border: var(--rule) solid var(--accent);
  border-radius: var(--radius);
  z-index: -1;
}

.plate-head {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding-bottom: var(--s3);
  border-bottom: var(--rule) solid var(--border);
}

.plate-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--s1) var(--s2);
  background: var(--primary);
  color: var(--text-on-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  border-radius: var(--radius);
  border-bottom: var(--bar) solid var(--accent);
}

.plate-title {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
}
.plate-title small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-small);
  color: var(--text-light);
}

.plate-drawing {
  display: block;
  width: 100%;
  height: auto;
  margin: var(--s4) 0;
  color: var(--primary);
}
.plate-accent { color: var(--accent-ink); }

.plate-rows { margin: 0; }
.plate-row {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s1) 0;
  border-top: var(--rule) dashed var(--border);
}
.plate-label {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 600;
}
.plate-value {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  padding: var(--s6) 0 calc(var(--s6) + var(--s4));
  background:
    radial-gradient(50rem 22rem at 90% 0%, var(--glow), transparent 60%),
    repeating-linear-gradient(0deg, var(--grid-line) 0 1px, transparent 1px var(--s5)),
    repeating-linear-gradient(90deg, var(--grid-line) 0 1px, transparent 1px var(--s5)),
    linear-gradient(160deg, var(--primary) 0%, var(--primary-deep) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s5)), 0 100%);
}
.page-hero h1 { max-width: 22ch; margin-bottom: var(--s3); }
.page-lead {
  font-size: var(--fs-lead);
  color: var(--text-on-dark-muted);
  max-width: 60ch;
  margin: 0;
}

/* ---------- Sections ---------- */

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

.section-head { max-width: 44rem; margin-bottom: var(--s5); }
.section-lead { color: var(--text-light); font-size: var(--fs-lead); margin: 0; }

.section-foot {
  margin-top: var(--s5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s6);
  align-items: start;
}
.split-copy { min-width: 0; }
.split-copy p { color: var(--text-light); }
.band-dark .split-copy p { color: var(--text-on-dark-muted); }

/* Value list */
.value-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: var(--rule) solid var(--border);
}
.value-item {
  display: flex;
  gap: var(--s4);
  padding: var(--s4) 0;
  border-bottom: var(--rule) solid var(--border);
}
.value-text h3 { margin-bottom: var(--s1); }
.value-text p { margin: 0; color: var(--text-light); }

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
}
.services-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s5) var(--s4);
  background: var(--surface);
  border: var(--rule) solid var(--border);
  border-top: var(--bar) solid var(--primary);
  border-radius: var(--radius);
}
.section-alt .service-card { background: var(--bg); }
.service-card h3 { margin: 0; }
.service-card p { margin: 0; color: var(--text-light); }

.service-points {
  margin: 0;
  padding-left: var(--s4);
  color: var(--text-light);
  font-size: var(--fs-small);
}
.service-points li { margin-bottom: var(--s1); }

/* ---------- Dark band + steps ---------- */

.band-dark {
  padding: var(--s7) 0;
  background:
    radial-gradient(40rem 24rem at 100% 100%, var(--glow), transparent 65%),
    linear-gradient(180deg, var(--primary-deep) 0%, var(--primary) 100%);
}

.steps {
  list-style: none;
  margin: 0 0 0 calc(var(--tile) / 2);
  padding: 0;
  border-left: var(--rule) solid var(--line-on-dark-strong);
}
.step {
  position: relative;
  display: flex;
  gap: var(--s4);
  padding: 0 0 var(--s5) var(--s4);
}
.step:last-child { padding-bottom: 0; }
.step h3 { margin-bottom: var(--s1); }
.step p { margin: 0; color: var(--text-on-dark-muted); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tile);
  height: var(--tile);
  flex-shrink: 0;
  margin-left: calc(-1 * (var(--s4) + var(--tile) / 2));
  background: var(--primary-deep);
  color: var(--accent);
  border: var(--rule) solid var(--accent);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ---------- Credentials ---------- */

.cred-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border: var(--rule) solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.cred-item {
  padding: var(--s4);
  border-right: var(--rule) solid var(--border);
}
.cred-item:last-child { border-right: 0; }
.cred-label {
  display: block;
  margin-bottom: var(--s1);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-light);
}
.cred-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
}

/* ---------- About page ---------- */

.fact-sheet {
  margin: 0;
  padding: var(--s4);
  background: var(--surface);
  border: var(--rule) solid var(--border);
  border-top: var(--bar) solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.fact-row {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s2) 0;
  border-bottom: var(--rule) dashed var(--border);
}
.fact-row:last-child { border-bottom: 0; }
.fact-row dt { color: var(--text-light); font-size: var(--fs-small); }
.fact-row dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
}
.principle {
  padding-top: var(--s4);
  border-top: var(--bar) solid var(--primary);
}
.principle p { margin: 0; color: var(--text-light); }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--s5);
  align-items: start;
}

.contact-card {
  --focus: var(--accent);
  padding: var(--s5) var(--s4);
  background: var(--primary);
  color: var(--text-on-dark);
  border-radius: var(--radius);
}
.contact-card h2 { font-size: 1.5rem; }
.contact-card p { color: var(--text-on-dark-muted); }
.contact-card a { color: var(--text-on-dark); }
.contact-card a:hover { color: var(--accent); }
.contact-card .icon-tile { background: var(--tint-accent); color: var(--accent); }

.contact-list {
  list-style: none;
  margin: var(--s4) 0 0;
  padding: 0;
}
.contact-item {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  padding: var(--s3) 0;
  border-top: var(--rule) solid var(--line-on-dark);
}
.contact-label {
  display: block;
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-on-dark-muted);
}
.contact-value {
  font-family: var(--font-display);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.form {
  padding: var(--s5) var(--s4);
  background: var(--surface);
  border: var(--rule) solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.form h2 { font-size: 1.5rem; }

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s3);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  margin-bottom: var(--s3);
}
.form-field label {
  font-weight: 600;
  font-size: var(--fs-small);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: var(--s2);
  font: inherit;
  color: var(--text-dark);
  background: var(--bg);
  border: var(--rule) solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--ease), background-color var(--ease);
}
.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover { border-color: var(--text-light); }
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  background: var(--surface);
  border-color: var(--primary);
}
.form-field textarea { min-height: 9rem; resize: vertical; }

.form-note {
  font-size: var(--fs-small);
  color: var(--text-light);
  margin: var(--s3) 0 0;
}

/* ---------- Legal pages ---------- */

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: var(--s6);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + var(--s4));
  padding-left: var(--s3);
  border-left: var(--bar) solid var(--accent);
}
.legal-toc h2 {
  font-size: var(--fs-small);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}
.legal-toc ol {
  margin: 0;
  padding-left: var(--s3);
  font-size: var(--fs-small);
}
.legal-toc li { margin-bottom: var(--s1); }
.legal-toc a { color: var(--text-dark); text-decoration: none; }
.legal-toc a:hover { color: var(--accent-ink); text-decoration: underline; }

.legal-body { min-width: 0; }
.legal-body h2 {
  font-size: 1.4rem;
  margin-top: var(--s5);
  padding-top: var(--s3);
  border-top: var(--rule) solid var(--border);
  scroll-margin-top: calc(var(--nav-h) + var(--s3));
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body p,
.legal-body li { color: var(--text-light); }
.legal-body ul { max-width: var(--measure); padding-left: var(--s4); }
.legal-body li { margin-bottom: var(--s1); }
.legal-body strong { color: var(--text-dark); }

.legal-updated {
  font-size: var(--fs-small);
  color: var(--text-light);
  margin-bottom: var(--s5);
}

/* ---------- CTA strip ---------- */

.cta-strip {
  padding: var(--s6) 0;
  background:
    repeating-linear-gradient(135deg, var(--tint) 0 1px, transparent 1px var(--s2)),
    var(--stone);
  border-top: var(--rule) solid var(--border);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  flex-wrap: wrap;
}
.cta-inner h2 { margin-bottom: var(--s1); }
.cta-inner p { margin: 0; color: var(--text-light); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* ---------- Footer ---------- */

.footer {
  background: var(--primary-deep);
  border-top: var(--bar) solid var(--accent);
  font-size: var(--fs-small);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: var(--s5);
  padding-top: var(--s6);
  padding-bottom: var(--s6);
}

.footer-brand { min-width: 0; }
.footer-brand .brand { color: var(--text-on-dark); margin-bottom: var(--s3); }
.footer-brand .brand:hover { color: var(--text-on-dark); }
.footer-blurb { color: var(--text-on-dark-muted); max-width: 36ch; }
.footer-reg {
  margin: 0;
  color: var(--text-on-dark-muted);
  font-variant-numeric: tabular-nums;
  line-height: 1.7;
}

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

.footer-heading {
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s3);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text-on-dark-muted);
}
.footer-links li { margin-bottom: var(--s1); overflow-wrap: anywhere; }
.footer .footer-links a { text-decoration: none; }
.footer .footer-links a:hover { text-decoration: underline; }

.footer-bar {
  background: var(--primary);
  border-top: var(--rule) solid var(--line-on-dark);
}
.footer-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s2);
  padding-top: var(--s3);
  padding-bottom: var(--s3);
  color: var(--text-on-dark-muted);
}
.footer-bar-inner p { margin: 0; }
.footer-legal {
  display: flex;
  gap: var(--s4);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cred-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cred-item:nth-child(2) { border-right: 0; }
  .cred-item:nth-child(-n + 2) { border-bottom: var(--rule) solid var(--border); }
}

@media (max-width: 768px) {
  .section,
  .band-dark { padding: var(--s6) 0; }

  .nav-inner > nav { order: 1; }
  .nav-toggle { display: inline-flex; order: 2; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s2) var(--gutter) var(--s4);
    background: var(--surface);
    border-bottom: var(--rule) solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: var(--rule) solid var(--border); }
  .nav-links li:last-child { border-bottom: 0; padding-top: var(--s3); }
  .nav-links a { display: block; padding: var(--s2) 0; }
  .nav-links a.active::after { right: auto; width: var(--s5); }
  .nav-links .nav-cta { display: flex; padding: var(--s2) var(--s3); }

  .hero {
    min-height: 0;
    padding: var(--s6) 0 calc(var(--s6) + var(--s4));
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--s5)), 0 100%);
  }
  .hero-grid { grid-template-columns: 1fr; }
  .spec-plate { display: none; }

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

  .split,
  .contact-grid,
  .legal-layout { grid-template-columns: 1fr; gap: var(--s5); }

  .services-grid,
  .services-grid-2,
  .principles { grid-template-columns: 1fr; }

  .legal-toc { position: static; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .cta-inner { flex-direction: column; align-items: flex-start; }

  .footer-grid { grid-template-columns: 1fr; gap: var(--s4); padding-top: var(--s5); padding-bottom: var(--s5); }
}

@media (max-width: 480px) {
  .cred-grid { grid-template-columns: 1fr; }
  .cred-item { border-right: 0; border-bottom: var(--rule) solid var(--border); }
  .cred-item:last-child { border-bottom: 0; }
  .hero-actions .btn,
  .cta-actions .btn { width: 100%; }
  .cta-actions { width: 100%; }
  .brand-name { font-size: 1rem; }
}

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