/* ==========================================================================
   EL BERACCA MANAGEMENT SERVICES LIMITED
   Art direction: deep spruce + ochre, Georgia display over system sans,
   soft shape language (14px radius, pill buttons).
   ========================================================================== */

:root {
  /* Colour */
  --primary: #1F3B3A;
  --primary-deep: #152A29;
  --primary-ink: #13201F;
  --accent: #9A6212;
  --accent-hover: #7E500E;
  --accent-soft: #E3B866;
  --accent-soft-hover: #EDC97F;
  --bg: #F4F7F6;
  --surface: #FFFFFF;
  --mist: #E4EBE9;
  --border: #D2DCD9;
  --text-dark: #17211F;
  --text-light: #55625F;
  --on-dark: #EEF3F1;
  --on-dark-muted: #A9B8B4;

  /* Translucent tints */
  --tint: rgba(31, 59, 58, 0.08);
  --tint-strong: rgba(31, 59, 58, 0.14);
  --accent-tint: rgba(154, 98, 18, 0.10);
  --glow: rgba(227, 184, 102, 0.20);
  --glow-cool: rgba(120, 170, 160, 0.22);
  --grid-line: rgba(255, 255, 255, 0.055);
  --dark-line: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.06);
  --nav-bg: rgba(244, 247, 246, 0.84);
  --focus: rgba(154, 98, 18, 0.55);
  --focus-dark: rgba(227, 184, 102, 0.8);

  /* Type */
  --font-body: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --fs-hero: clamp(2.25rem, 5vw, 4rem);
  --fs-h1-page: clamp(2rem, 4vw, 3.1rem);
  --fs-h2: clamp(1.6rem, 3vw, 2.4rem);
  --fs-h3: 1.2rem;
  --fs-body: 1.0625rem;
  --fs-lead: 1.1875rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.78rem;

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

  /* Shape and layout */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --line: 1px;
  --container: 1140px;
  --gutter: 22px;
  --measure: 68ch;
  --nav-h: 72px;
  --hero-visual-h: 460px;
  --grid-size: 48px;

  /* Depth */
  --shadow-sm: 0 1px 2px rgba(19, 32, 31, 0.05);
  --shadow: 0 1px 2px rgba(19, 32, 31, 0.04), 0 8px 24px rgba(19, 32, 31, 0.07);
  --shadow-lift: 0 2px 4px rgba(19, 32, 31, 0.05), 0 14px 32px rgba(19, 32, 31, 0.11);
  --shadow-dark: 0 20px 50px rgba(0, 0, 0, 0.32);

  /* Motion */
  --ease: 180ms ease;
}

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

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

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, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s3);
  color: inherit;
}

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

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

a { color: var(--accent); text-decoration-thickness: var(--line); text-underline-offset: 0.2em; transition: color var(--ease); }
a:hover { color: var(--accent-hover); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.on-dark a:focus-visible,
.footer a:focus-visible { outline-color: var(--focus-dark); }

ul, ol { margin: 0; padding: 0; }

svg { display: block; }

.on-dark { color: var(--on-dark); }

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

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

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s1);
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  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:focus-visible { border-radius: var(--radius-pill); }

.btn-primary {
  background: var(--primary);
  color: var(--on-dark);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--primary-deep); color: var(--on-dark); box-shadow: var(--shadow-lift); }

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

/* Buttons on dark bands */
.on-dark .btn-primary { background: var(--accent-soft); color: var(--text-dark); }
.on-dark .btn-primary:hover { background: var(--accent-soft-hover); color: var(--text-dark); box-shadow: var(--shadow-dark); }
.on-dark .btn-outline { color: var(--on-dark); border-color: var(--on-dark-muted); }
.on-dark .btn-outline:hover { background: var(--glass); color: var(--on-dark); border-color: var(--on-dark); }

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

/* ---------- Header / 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: var(--line) solid var(--border);
}

.navbar { position: relative; }

.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-grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--accent-soft);
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); margin-top: 2px; }

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

.nav-links { display: flex; list-style: none; gap: var(--s4); }

.nav-links a {
  position: relative;
  display: inline-block;
  padding: var(--s1) 0;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.975rem;
  font-weight: 500;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--ease);
}
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { transform: scaleX(0.5); }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta { padding: 0.65rem 1.25rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: var(--line) solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--text-dark);
  transition: transform var(--ease), opacity var(--ease);
}
.navbar.open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar.open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.navbar.open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 62vh;
  display: flex;
  align-items: center;
  padding: var(--s7) 0 calc(var(--s7) + var(--s5));
  color: var(--on-dark);
  background:
    radial-gradient(ellipse 60% 70% at 85% 20%, var(--glow), transparent 70%),
    radial-gradient(ellipse 50% 60% at 5% 100%, var(--glow-cool), transparent 70%),
    linear-gradient(160deg, var(--primary) 0%, var(--primary-deep) 60%, var(--primary-ink) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 64px), 0 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.15));
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.15));
}

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

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

.hero .eyebrow { color: var(--accent-soft); }

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

.hero .lead { color: var(--on-dark-muted); max-width: 46ch; margin-bottom: var(--s5); }

/* Hero visual anchor */
.hero-visual { position: relative; min-height: var(--hero-visual-h); }

.cycle-card {
  position: absolute;
  top: 0;
  right: 0;
  width: 88%;
  padding: var(--s4);
  border-radius: var(--radius);
  background: var(--glass);
  border: var(--line) solid var(--dark-line);
  box-shadow: var(--shadow-dark);
  color: var(--on-dark-muted);
}
.cycle-card svg { width: 100%; height: auto; }

.monogram-card {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 58%;
  padding: var(--s4);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text-dark);
  box-shadow: var(--shadow-dark);
}
.monogram {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--primary);
  letter-spacing: -0.03em;
  margin-bottom: var(--s2);
}
.monogram-card p { margin: 0; font-size: var(--fs-small); color: var(--text-light); line-height: 1.5; }
.monogram-rule { height: 3px; width: 40px; border-radius: var(--radius-pill); background: var(--accent); margin-bottom: var(--s2); }

.svg-ring { fill: none; stroke: var(--dark-line); stroke-width: 1; stroke-dasharray: 3 6; }
.svg-arc { fill: none; stroke: var(--on-dark-muted); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.svg-node { fill: var(--primary-deep); stroke: var(--accent-soft); stroke-width: 1.5; }
.svg-dot { fill: var(--accent-soft); }
.svg-label { fill: var(--on-dark); font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; }
.svg-centre { fill: var(--on-dark); font-family: var(--font-display); font-size: 19px; }

/* Page hero (inner pages) */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--s6) 0 calc(var(--s6) + var(--s4));
  color: var(--on-dark);
  background:
    radial-gradient(ellipse 50% 90% at 90% 10%, var(--glow), transparent 70%),
    linear-gradient(160deg, var(--primary) 0%, var(--primary-deep) 70%, var(--primary-ink) 100%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}
.page-hero .eyebrow { color: var(--accent-soft); }
.page-hero h1 { font-size: var(--fs-h1-page); max-width: 22ch; margin-bottom: var(--s3); }
.page-hero .lead { color: var(--on-dark-muted); max-width: 56ch; margin: 0; }

/* ---------- Sections ---------- */
.section { padding: var(--s7) 0; }
.section-alt { background: var(--mist); }
.section-dark {
  background:
    radial-gradient(ellipse 40% 80% at 100% 0%, var(--glow), transparent 70%),
    var(--primary);
  color: var(--on-dark);
}
.section-dark .eyebrow { color: var(--accent-soft); }
.section-dark p { color: var(--on-dark-muted); }

.section-head { margin-bottom: var(--s5); max-width: 720px; }
.section-head p:last-child { margin-bottom: 0; }

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-bottom: var(--s5);
}
.section-head-row .section-head { margin-bottom: 0; }

/* Pillars (value props) */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  list-style: none;
}
.pillar { padding-left: var(--s4); border-left: 3px solid var(--accent); }
.pillar h3 { margin-bottom: var(--s1); }
.pillar p { color: var(--text-light); margin: 0; font-size: 1rem; }

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

.service-card {
  display: flex;
  flex-direction: column;
  padding: var(--s5) var(--s4) var(--s4);
  background: var(--surface);
  border: var(--line) solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--tint-strong); }
.service-card h3 { margin-bottom: var(--s1); }
.service-card p { color: var(--text-light); font-size: 1rem; margin: 0; }
.service-card .service-points { margin-top: var(--s3); }

.service-points { list-style: none; display: grid; gap: var(--s1); font-size: var(--fs-small); color: var(--text-dark); }
.service-points li { position: relative; padding-left: var(--s4); }
.service-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: var(--accent);
}

.glyph {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--s4);
  border-radius: var(--radius-sm);
  background: var(--tint);
  color: var(--primary);
}
.glyph svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Split (two-column band) */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s6);
  align-items: center;
}
.split-copy { min-width: 0; }
.split-reverse .split-copy { order: 2; }
.split-reverse .split-visual { order: 1; }
.split-copy p { color: var(--text-light); }
.section-dark .split-copy p { color: var(--on-dark-muted); }

/* CSS-drawn one-page plan */
.split-visual { position: relative; isolation: isolate; padding: var(--s3); }
.sheet {
  position: relative;
  padding: var(--s5) var(--s4);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 460px;
  margin-left: auto;
}
.split-reverse .sheet { margin-left: 0; margin-right: auto; }
.sheet::before {
  content: "";
  position: absolute;
  inset: var(--s3) calc(-1 * var(--s3)) calc(-1 * var(--s3)) var(--s3);
  z-index: -1;
  border-radius: var(--radius);
  background: var(--primary);
}
.sheet-title { font-family: var(--font-display); font-size: 1.35rem; margin-bottom: var(--s1); color: var(--text-dark); }
.sheet-meta { font-size: var(--fs-small); color: var(--text-light); margin-bottom: var(--s4); }
.sheet-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr;
  gap: var(--s2);
  align-items: center;
  padding: var(--s2) 0;
  border-top: var(--line) solid var(--border);
}
.sheet-head { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-light); border-top: none; padding-top: 0; }
.bar { display: block; height: 8px; border-radius: var(--radius-pill); background: var(--mist); }
.bar-short { width: 55%; }
.bar-mid { width: 75%; }
.bar-long { width: 95%; }
.tick {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: var(--accent-tint);
  color: var(--accent);
}
.tick svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tick-empty { background: transparent; border: 2px solid var(--border); }

/* Credentials */
.credentials {
  display: grid;
  grid-template-columns: 0.9fr 2.1fr;
  gap: var(--s5);
  align-items: center;
}
.cred-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  margin: 0;
}
.cred-item {
  min-width: 0;
  padding: var(--s4);
  border-radius: var(--radius);
  border: var(--line) solid var(--dark-line);
  background: var(--glass);
}
.cred-item dt { font-size: var(--fs-eyebrow); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: var(--s1); font-weight: 600; }
.cred-item dd { margin: 0; font-family: var(--font-display); font-size: 1.25rem; color: var(--on-dark); overflow-wrap: anywhere; }

/* Engagement types (services dark band) */
.engage-list { display: grid; gap: var(--s3); margin: 0; }
.engage-list dd { font-size: 1.15rem; line-height: 1.4; }

/* Steps (genuine sequence) */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.step { counter-increment: step; position: relative; padding-top: var(--s5); }
.step::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: var(--accent-soft);
  font-family: var(--font-display);
  font-size: 1rem;
}
.step::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 44px;
  right: calc(-1 * var(--s3));
  height: 1px;
  background: var(--border);
}
.step:last-child::after { display: none; }
.step h3 { margin-bottom: var(--s1); }
.step p { color: var(--text-light); font-size: 1rem; margin: 0; }

/* Fit panels (about) */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.fit-panel { padding: var(--s5) var(--s4); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.fit-panel h3 { margin-bottom: var(--s3); }
.fit-panel .service-points { font-size: 1rem; gap: var(--s2); }

/* CTA band */
.cta-band { padding: var(--s6) 0; }
.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s5);
  flex-wrap: wrap;
  padding: var(--s5);
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse 50% 120% at 100% 0%, var(--glow), transparent 70%),
    linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: var(--shadow);
}
.cta-inner h2 { margin-bottom: var(--s1); }
.cta-inner p { color: var(--on-dark-muted); margin: 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: var(--s6); align-items: start; }
.contact-grid > div { min-width: 0; }
.contact-detail {
  display: flex;
  gap: var(--s3);
  align-items: flex-start;
  padding: var(--s4) 0;
  border-top: var(--line) solid var(--border);
}
.contact-detail .glyph { margin: 0; flex-shrink: 0; }
.contact-detail h3 { margin-bottom: var(--s1); font-size: 1.05rem; }
.contact-detail p { margin: 0; color: var(--text-light); font-size: 1rem; overflow-wrap: anywhere; }

.form-card { padding: var(--s5) var(--s4); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.6rem; }
.form-card .field-hint { margin-bottom: var(--s4); }
.field { display: flex; flex-direction: column; gap: var(--s1); margin-bottom: var(--s4); }
.field label { font-size: 0.95rem; font-weight: 600; color: var(--text-dark); }
.field-hint { font-size: var(--fs-small); color: var(--text-light); margin: 0; overflow-wrap: anywhere; }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  background: var(--bg);
  border: var(--line) solid var(--border);
  border-radius: var(--radius-sm);
  padding: var(--s2) var(--s3);
  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: 170px; resize: vertical; }
.form-note { font-size: var(--fs-small); color: var(--text-light); margin: var(--s3) 0 0; overflow-wrap: anywhere; }

/* ---------- Legal pages ---------- */
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--s6); align-items: start; }
.toc {
  position: sticky;
  top: calc(var(--nav-h) + var(--s4));
  padding: var(--s4);
  border-radius: var(--radius);
  background: var(--surface);
  border: var(--line) solid var(--border);
}
.toc-title { font-family: var(--font-body); font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--s2); }
.toc ol { list-style: none; display: grid; gap: var(--s1); }
.toc a { color: var(--text-light); text-decoration: none; font-size: var(--fs-small); }
.toc a:hover { color: var(--primary); text-decoration: underline; }

.prose { max-width: var(--measure); overflow-wrap: break-word; }
.prose h2 { font-size: 1.55rem; margin-top: var(--s5); scroll-margin-top: calc(var(--nav-h) + var(--s4)); }
.prose h3 { margin-top: var(--s4); }
.prose ul { padding-left: var(--s4); margin-bottom: var(--s3); }
.prose li { margin-bottom: var(--s1); }
.prose .updated { font-size: var(--fs-small); color: var(--text-light); }

.ipp-list { list-style: none; display: grid; gap: var(--s2); margin: var(--s3) 0 var(--s4); padding: 0; counter-reset: ipp; }
.ipp-list li {
  counter-increment: ipp;
  position: relative;
  padding: var(--s2) var(--s3) var(--s2) calc(var(--s5) + var(--s2));
  background: var(--surface);
  border: var(--line) solid var(--border);
  border-radius: var(--radius-sm);
  margin: 0;
  font-size: 1rem;
}
.ipp-list li::before {
  content: "IPP " counter(ipp);
  position: absolute;
  left: var(--s3);
  top: var(--s2);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  line-height: 2.2;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--primary-ink);
  color: var(--on-dark-muted);
  border-top: var(--line) solid var(--dark-line);
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: var(--s5);
  padding-top: var(--s6);
  padding-bottom: var(--s6);
}
.footer-col { min-width: 0; }
.footer .brand { color: var(--on-dark); margin-bottom: var(--s3); }
.footer .brand-sub { color: var(--on-dark-muted); }
.footer p { font-size: 0.95rem; }
.footer-legal { color: var(--on-dark); line-height: 1.7; }
.footer .footer-legal { font-size: var(--fs-small); }
.footer-title { font-family: var(--font-body); font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: var(--s3); }
.footer-links { list-style: none; display: grid; gap: var(--s1); }
.footer-links li { overflow-wrap: anywhere; }
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { color: var(--accent-soft); text-decoration: underline; }

.footer-bar { background: var(--primary-deep); border-top: var(--line) solid var(--dark-line); }
.footer-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  padding-top: var(--s3);
  padding-bottom: var(--s3);
}
.footer .footer-bar p { margin: 0; font-size: var(--fs-small); }
.footer-bar-links { display: flex; flex-wrap: wrap; gap: var(--s4); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .credentials { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-menu { gap: var(--s4); }
  .nav-links { gap: var(--s3); }
}

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

  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--s3);
    padding: var(--s3) var(--gutter) var(--s4);
    background: var(--surface);
    border-bottom: var(--line) solid var(--border);
    box-shadow: var(--shadow);
  }
  .navbar.open .nav-menu { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: var(--s2) 0; }
  .nav-links a::after { bottom: var(--s1); right: auto; width: 32px; }
  .nav-cta { width: 100%; }

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

  .pillars,
  .services-grid,
  .split,
  .contact-grid,
  .fit-grid,
  .legal-layout,
  .steps { grid-template-columns: minmax(0, 1fr); }
  .pillars { gap: var(--s4); }
  .split { gap: var(--s5); }
  .split-reverse .split-copy,
  .split-reverse .split-visual { order: 0; }
  .sheet,
  .split-reverse .sheet { margin: 0 auto; }

  .cred-list { grid-template-columns: 1fr; }
  .toc { position: static; }

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

@media (max-width: 400px) {
  .brand-sub { display: none; }
  .btn-row .btn { width: 100%; }
}

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