/* Renlex Pty Ltd — renlextec.online
   Art direction: "Riverside workplan" — deep river teal, sparing ochre, cool concrete neutrals, sharp shapes. */

:root {
  /* Colour */
  --primary: #1d3f45;
  --primary-deep: #132b30;
  --primary-soft: #2b5a61;
  --accent: #9a6b12;
  --accent-light: #e2b65a;
  --accent-pale: #eccb83;
  --bg: #f4f6f5;
  --surface: #ffffff;
  --mist: #e8eceb;
  --border: #d5dcda;
  --border-strong: #7f8d8f;
  --text-dark: #1a2426;
  --text-light: #4c5a5d;
  --text-on-dark: #e9efee;
  --text-on-dark-muted: #a9bbbb;
  --tint: rgba(29, 63, 69, 0.08);
  --line-dark: rgba(233, 239, 238, 0.06);
  --line-dark-strong: rgba(233, 239, 238, 0.16);
  --outline-on-dark: rgba(233, 239, 238, 0.5);
  --glow: rgba(226, 182, 90, 0.16);
  --glow-cool: rgba(110, 160, 165, 0.18);
  --nav-bg: rgba(244, 246, 245, 0.84);

  /* Type */
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", 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.25rem;
  --fs-lead: clamp(1.075rem, 1.6vw, 1.2rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.8125rem;
  --fs-eyebrow: 0.78rem;
  --measure: 68ch;

  /* Spacing */
  --s0: 0.25rem;
  --s1: 0.5rem;
  --s2: 0.75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2.5rem;
  --s6: 4rem;
  --s7: 6rem;
  --btn-pad-y: 0.8rem;
  --btn-pad-x: 1.6rem;

  /* Layout */
  --container: 1140px;
  --gutter: 1.25rem;
  --nav-h: 4.25rem;
  --grid-size: 48px;
  --angle: 4rem;
  --angle-sm: 2.5rem;

  /* Shape & depth */
  --radius: 3px;
  --radius-sm: 2px;
  --shadow-sm: 0 1px 2px rgba(19, 43, 48, 0.06);
  --shadow: 0 1px 2px rgba(19, 43, 48, 0.04), 0 8px 24px rgba(19, 43, 48, 0.07);
  --shadow-deep: 0 2px 6px rgba(8, 20, 22, 0.18), 0 24px 48px rgba(8, 20, 22, 0.3);
  --ease: 180ms ease;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s3);
  color: inherit;
}
p { margin: 0 0 var(--s3); max-width: var(--measure); }
a { color: var(--primary); text-underline-offset: 0.2em; }
a:hover { color: var(--accent); }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }
.on-dark :focus-visible, .footer :focus-visible { outline-color: var(--accent-light); }

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

.skip-link {
  position: absolute;
  left: var(--s3);
  top: var(--s1);
  z-index: 100;
  padding: var(--s1) var(--s3);
  background: var(--primary);
  color: var(--text-on-dark);
  border-radius: var(--radius);
  transform: translateY(-300%);
}
.skip-link:focus { transform: none; color: var(--text-on-dark); }

/* ---------- Nav ---------- */
.site-header {
  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: 1px solid var(--border);
}
.navbar {
  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);
  color: var(--text-dark);
  text-decoration: none;
}
.brand:hover { color: var(--text-dark); }
.brand-mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--primary);
  color: var(--accent-light);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius);
}
.brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: var(--s1);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-suffix {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--s4);
}
.nav-links a:not(.btn) {
  position: relative;
  display: inline-block;
  padding: var(--s1) 0;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}
.nav-links a:not(.btn):hover::after { transform: scaleX(0.4); }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-links a.active::after, .nav-links a.active:hover::after { transform: scaleX(1); }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: var(--s0);
  width: 2.75rem;
  height: 2.75rem;
  padding: var(--s2);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-dark);
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(calc(var(--s0) + 2px)) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(calc(-1 * var(--s0) - 2px)) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  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(--primary); color: var(--text-on-dark); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--primary-soft); color: var(--text-on-dark); box-shadow: var(--shadow); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--tint); color: var(--primary); }
.btn-sm { padding: var(--s1) var(--s3); font-size: var(--fs-small); }
.on-dark .btn-primary { background: var(--accent-light); color: var(--primary-deep); }
.on-dark .btn-primary:hover { background: var(--accent-pale); color: var(--primary-deep); }
.on-dark .btn-outline { color: var(--text-on-dark); border-color: var(--outline-on-dark); }
.on-dark .btn-outline:hover { background: var(--line-dark-strong); color: var(--text-on-dark); border-color: var(--text-on-dark); }

/* ---------- Shared type pieces ---------- */
.eyebrow {
  display: block;
  margin: 0 0 var(--s2);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.on-dark { color: var(--text-on-dark); }
.on-dark .eyebrow { color: var(--accent-light); }
.lead { font-size: var(--fs-lead); max-width: 52ch; }
.on-dark .lead, .on-dark p { color: var(--text-on-dark-muted); }
.text-link { font-weight: 600; color: var(--primary); text-decoration: underline; text-decoration-thickness: 1px; }
.muted { color: var(--text-light); }

/* ---------- Hero & page hero ---------- */
.hero, .page-hero {
  position: relative;
  background:
    radial-gradient(ellipse 55% 70% at 88% 25%, var(--glow), transparent 70%),
    radial-gradient(ellipse 50% 60% at 5% 100%, var(--glow-cool), transparent 70%),
    repeating-linear-gradient(0deg, var(--line-dark) 0 1px, transparent 1px var(--grid-size)),
    repeating-linear-gradient(90deg, var(--line-dark) 0 1px, transparent 1px var(--grid-size)),
    linear-gradient(160deg, var(--primary) 0%, var(--primary-deep) 100%);
}
.hero {
  display: flex;
  align-items: center;
  min-height: 62vh;
  padding: var(--s7) 0 calc(var(--s7) + var(--s4));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--angle)), 0 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--s6);
  align-items: center;
}
.hero-copy { min-width: 0; }
.hero h1 { font-size: var(--fs-hero); max-width: 18ch; margin-bottom: var(--s4); color: var(--text-on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.page-hero {
  padding: var(--s6) 0 calc(var(--s6) + var(--s3));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--angle-sm)), 0 100%);
}
.page-hero h1 { font-size: var(--fs-page); max-width: 22ch; color: var(--text-on-dark); }

/* Workplan visual (hero anchor) */
.plan-visual { position: relative; padding: var(--s5) var(--s5) 0 0; }
.plan-card-back {
  position: absolute;
  top: 0;
  right: 0;
  width: 86%;
  height: 88%;
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--radius);
  background: var(--line-dark);
}
.plan-card {
  position: relative;
  padding: var(--s4);
  background: var(--surface);
  color: var(--text-dark);
  border-top: 3px solid var(--accent-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
}
.plan-head {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding-bottom: var(--s3);
  margin-bottom: var(--s2);
  border-bottom: 1px solid var(--border);
}
.plan-title { display: flex; flex-direction: column; line-height: 1.3; }
.plan-title strong { font-family: var(--font-display); font-size: 1.05rem; }
.plan-title span { font-size: var(--fs-xs); color: var(--text-light); }
.plan-row {
  display: grid;
  grid-template-columns: 5.5rem repeat(4, minmax(0, 1fr));
  align-items: center;
  min-height: 2.25rem;
}
.plan-row + .plan-row { border-top: 1px dashed var(--border); }
.plan-row-head { min-height: 1.75rem; font-size: var(--fs-xs); color: var(--text-light); }
.plan-label { font-size: var(--fs-xs); font-weight: 600; color: var(--text-light); }
.plan-bar { height: 0.625rem; border-radius: var(--radius-sm); background: var(--primary); }
.bar-a { grid-column: 2 / 3; }
.bar-b { grid-column: 3 / 5; background: var(--primary-soft); }
.bar-c { grid-column: 4 / 6; background: var(--accent); }
.plan-checks {
  list-style: none;
  display: grid;
  gap: var(--s1);
  margin-top: var(--s2);
  padding-top: var(--s3);
  border-top: 1px solid var(--border);
}
.plan-checks li { display: flex; align-items: center; gap: var(--s1); font-size: var(--fs-small); }

.tick {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Sections ---------- */
.section { padding: var(--s7) 0; }
.section-alt { background: var(--mist); }
.section-head { margin-bottom: var(--s5); }
.section-head h2 { font-size: var(--fs-h2); max-width: 24ch; }
.section-head p { color: var(--text-light); }
.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s4);
}
.section-foot { margin-top: var(--s5); }

/* Process steps (a real sequence) */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
}
.step { padding-top: var(--s3); border-top: 2px solid var(--primary); }
.step-num {
  display: block;
  margin-bottom: var(--s2);
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--accent);
}
.step h3 { font-size: var(--fs-h3); }
.step p { margin: 0; color: var(--text-light); }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s4);
}
.service-card {
  display: flex;
  flex-direction: column;
  padding: var(--s5) var(--s4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: var(--s4);
  background: var(--tint);
  color: var(--primary);
  border-radius: var(--radius);
}
.icon-tile svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service-card h3 { font-size: var(--fs-h3); margin-bottom: var(--s2); }
.service-card p { margin: 0; color: var(--text-light); }
.service-points {
  list-style: none;
  display: grid;
  gap: var(--s1);
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid var(--border);
  font-size: var(--fs-small);
}
.service-points li { position: relative; padding-left: var(--s3); }
.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: var(--s1);
  height: 2px;
  background: var(--accent);
}

/* Two-column split band */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s6);
  align-items: center;
}
.split-reverse .split-visual { order: -1; }
.split-copy h2 { font-size: var(--fs-h2); max-width: 22ch; }
.split-copy p { color: var(--text-light); }
.check-list { list-style: none; display: grid; gap: var(--s2); margin: var(--s4) 0 var(--s5); }
.check-list li { display: flex; align-items: flex-start; gap: var(--s2); }
.check-list .tick { margin-top: var(--s0); }

/* CSS-drawn document stack */
.doc-stack { position: relative; min-height: 22rem; }
.doc {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  width: 58%;
  height: 80%;
  padding: var(--s4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.doc-1 { top: 0; left: 0; transform: rotate(-3deg); }
.doc-2 { top: 8%; left: 20%; }
.doc-3 { top: 16%; left: 40%; transform: rotate(2deg); border-top: 3px solid var(--primary); }
.doc-tag {
  align-self: flex-start;
  padding: var(--s0) var(--s1);
  background: var(--tint);
  color: var(--primary);
  font-size: var(--fs-xs);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.doc-line { height: 0.5rem; border-radius: var(--radius-sm); background: var(--mist); }
.doc-line-title { width: 72%; height: 0.75rem; background: var(--primary); }
.doc-line-short { width: 55%; }
.doc-line-mid { width: 80%; }

/* Values / principles */
.principles {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s5);
}
.principle { padding-top: var(--s3); border-top: 1px solid var(--border-strong); }
.principle h3 { font-size: var(--fs-h3); }
.principle p { margin: 0; color: var(--text-light); }

/* Credentials strip */
.credentials {
  padding: var(--s6) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cred-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 2fr);
  gap: var(--s5);
  align-items: start;
}
.cred-wrap h2 { font-size: 1.5rem; }
.cred-wrap p { color: var(--text-light); font-size: var(--fs-small); margin: 0; }
.cred-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s4);
  margin: 0;
}
.cred { padding-left: var(--s3); border-left: 2px solid var(--accent); }
.cred dt {
  margin-bottom: var(--s0);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-light);
}
.cred dd { margin: 0; font-family: var(--font-display); font-size: 1.15rem; color: var(--text-dark); }

/* CTA band */
.cta-band {
  padding: var(--s7) 0;
  background:
    radial-gradient(ellipse 40% 90% at 100% 50%, var(--glow), transparent 70%),
    repeating-linear-gradient(135deg, var(--line-dark) 0 1px, transparent 1px 14px),
    var(--primary);
}
.cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
}
.cta-inner h2 { font-size: var(--fs-h2); max-width: 20ch; color: var(--text-on-dark); }
.cta-inner p { margin: 0; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--s6);
  align-items: start;
}
.contact-item { padding: var(--s4) 0; border-top: 1px solid var(--border); }
.contact-item:last-child { border-bottom: 1px solid var(--border); }
.contact-item h2 { font-size: var(--fs-h3); margin-bottom: var(--s1); }
.contact-item p { margin: 0; color: var(--text-light); }
.contact-email {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  overflow-wrap: anywhere;
}
.include-list { list-style: none; display: grid; gap: var(--s1); margin-top: var(--s2); color: var(--text-light); }
.include-list li { display: flex; align-items: flex-start; gap: var(--s1); }
.include-list .tick { margin-top: var(--s0); }
.form {
  padding: var(--s5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.form h2 { font-size: 1.5rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.field { display: flex; flex-direction: column; gap: var(--s1); margin-bottom: var(--s4); }
.field label { font-size: var(--fs-small); font-weight: 600; }
.optional { font-weight: 400; color: var(--text-light); }
.field input, .field textarea {
  width: 100%;
  padding: var(--s2) var(--s3);
  font: inherit;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: border-color var(--ease), background-color var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--primary); background: var(--surface); }
.field textarea { min-height: 10rem; resize: vertical; }
.form-note { margin: var(--s3) 0 0; font-size: var(--fs-small); color: var(--text-light); }

/* ---------- Legal ---------- */
.legal-layout {
  display: grid;
  grid-template-columns: 14rem minmax(0, 1fr);
  gap: var(--s6);
  align-items: start;
}
.toc {
  position: sticky;
  top: calc(var(--nav-h) + var(--s4));
  padding-left: var(--s3);
  border-left: 1px solid var(--border-strong);
  font-size: var(--fs-small);
}
.toc-title {
  margin-bottom: var(--s2);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.toc ol { list-style: none; display: grid; gap: var(--s1); }
.toc a { color: var(--text-light); text-decoration: none; }
.toc a:hover { color: var(--primary); text-decoration: underline; }
.prose h2 {
  margin-top: var(--s5);
  font-size: 1.5rem;
  scroll-margin-top: calc(var(--nav-h) + var(--s4));
}
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin-top: var(--s4); font-size: 1.15rem; }
.prose ul { max-width: var(--measure); margin-bottom: var(--s3); padding-left: var(--s4); }
.prose li { margin-bottom: var(--s1); }
.legal-meta { font-size: var(--fs-small); color: var(--text-light); }
.callout {
  max-width: var(--measure);
  margin-bottom: var(--s5);
  padding: var(--s3) var(--s4);
  background: var(--surface);
  border-left: 3px solid var(--primary);
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--primary-deep);
  color: var(--text-on-dark-muted);
  border-top: 1px solid var(--line-dark-strong);
  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-col { min-width: 0; }
.footer .brand { margin-bottom: var(--s3); color: var(--text-on-dark); }
.footer .brand-suffix { color: var(--text-on-dark-muted); }
.footer p { max-width: 38ch; }
.footer-reg { color: var(--text-on-dark); }
.footer-heading {
  margin-bottom: var(--s3);
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.footer-links { list-style: none; display: grid; gap: var(--s1); }
.footer a { color: var(--text-on-dark); text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { color: var(--accent-light); text-decoration: underline; }
.footer-bottom { background: var(--primary); border-top: 1px solid var(--line-dark-strong); }
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding-top: var(--s3);
  padding-bottom: var(--s3);
}
.footer-bottom p { margin: 0; }
.footer-legal { list-style: none; display: flex; flex-wrap: wrap; gap: var(--s4); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cred-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .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: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .navbar.nav-open .nav-links { display: flex; }
  .nav-links li + li { border-top: 1px solid var(--border); }
  .nav-links a:not(.btn) { display: block; padding: var(--s2) 0; }
  .nav-links a:not(.btn)::after { right: auto; width: var(--s5); bottom: var(--s1); }
  .nav-links .nav-cta-item { padding-top: var(--s3); }
  .nav-cta-item .btn { width: 100%; padding: var(--btn-pad-y) var(--btn-pad-x); }

  .section { padding: var(--s6) 0; }
  .hero { min-height: 0; padding: var(--s6) 0 calc(var(--s6) + var(--s3)); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--angle-sm)), 0 100%); }
  .page-hero { padding: var(--s5) 0 calc(var(--s5) + var(--s4)); }
  .hero-grid, .split, .contact-grid, .legal-layout, .cred-wrap { grid-template-columns: 1fr; gap: var(--s5); }
  .plan-visual { display: none; }
  .split-reverse .split-visual { order: 0; }
  .steps, .services-grid, .principles { grid-template-columns: 1fr; gap: var(--s4); }
  .doc-stack { min-height: 17rem; }
  .doc { width: 64%; }
  .doc-3 { left: 34%; }
  .form { padding: var(--s4); }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; }
  .cta-band { padding: var(--s6) 0; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s4); padding-top: var(--s5); padding-bottom: var(--s5); }
}

@media (max-width: 420px) {
  .brand-suffix { display: none; }
  .cred-list { grid-template-columns: 1fr; }
}

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