/* ==========================================================================
   VCS Certified Consultants site - main.css
   One stylesheet for the whole site (web-builder-skills: website-build-standards).
   Palette: the VCS monochrome ramp (app-standards 05-frontend.md "Marketing
   pages carry the VCS monochrome brand"). Zero hue except the functional red
   validation-error state. System font stack, no webfont (05-frontend.md
   "Typography: system font stack").
   Sections: 1 Tokens · 2 Reset/base · 3 Layout · 4 Components · 5 Utilities
   ========================================================================== */

/* ============================================
   1. TOKENS
   ============================================ */
:root {
  --gray-950: #050505;
  --gray-900: #0c0c0c;
  --gray-800: #262626;
  --gray-700: #404040;
  --gray-600: #525252;
  --gray-500: #6b6b6b;
  --gray-400: #a3a3a3;
  --gray-300: #d4d4d4;
  --gray-200: #e5e5e5;
  --gray-100: #f0f0f0;
  --gray-50: #f7f7f7;

  --background: #ffffff;
  --background-alt: var(--gray-50);
  --foreground: var(--gray-900);
  --muted: var(--gray-50);
  --muted-foreground: var(--gray-600);
  --border: var(--gray-200);
  --border-strong: var(--gray-300);
  --primary: var(--gray-900);
  --primary-dark: var(--gray-950);
  --primary-foreground: #ffffff;
  --surface: #ffffff;
  /* Anything that floats over the page (the open mobile menu): a raised surface,
     a full border (--border-strong) and a shadow, together. */
  --surface-raised: #ffffff;
  --shadow-raised: 0 8px 24px rgba(0, 0, 0, 0.16);
  /* The footer is a dark band in both themes; only its background changes. */
  --footer-bg: var(--gray-900);
  --footer-fg: var(--gray-50);
  --footer-muted: var(--gray-400);
  --footer-border: var(--gray-800);

  --destructive: #b91c1c;
  --destructive-bg: rgba(220, 38, 38, 0.1);
  --destructive-foreground: #ffffff;

  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;

  --radius: 8px;
  --container: 1120px;
  --header-height: 4rem;
  /* A record only (a custom property can't be read inside @media): where the nav
     fits on one row. Keep the nav media query below and matchMedia() in main.js on it. */
  --breakpoint-nav: 1000px;
}

:root[data-theme="dark"] {
  --dark-elevated: #1c1c1c;
  --background: var(--gray-950);
  --background-alt: var(--dark-elevated);
  --foreground: var(--gray-50);
  --muted: var(--dark-elevated);
  --muted-foreground: var(--gray-400);
  --border: var(--gray-800);
  --border-strong: var(--gray-700);
  --primary: var(--gray-50);
  --primary-dark: #ffffff;
  --primary-foreground: var(--gray-950);
--surface: var(--dark-elevated);
  --surface-raised: var(--dark-elevated);
  --shadow-raised: 0 8px 24px rgba(0, 0, 0, 0.6);
  --footer-bg: var(--dark-elevated);

  --destructive: #f87171;
  --destructive-bg: rgba(248, 113, 113, 0.14);
  --destructive-foreground: var(--gray-950);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --dark-elevated: #1c1c1c;
    --background: var(--gray-950);
    --background-alt: var(--dark-elevated);
    --foreground: var(--gray-50);
    --muted: var(--dark-elevated);
    --muted-foreground: var(--gray-400);
    --border: var(--gray-800);
    --border-strong: var(--gray-700);
    --primary: var(--gray-50);
    --primary-dark: #ffffff;
    --primary-foreground: var(--gray-950);
--surface: var(--dark-elevated);
    --surface-raised: var(--dark-elevated);
    --shadow-raised: 0 8px 24px rgba(0, 0, 0, 0.6);
    --footer-bg: var(--dark-elevated);
    --destructive: #f87171;
    --destructive-bg: rgba(248, 113, 113, 0.14);
    --destructive-foreground: var(--gray-950);
  }
}

/* ============================================
   2. RESET / BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  color-scheme: light dark;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
}

img, svg { max-width: 100%; display: block; }

/* A group of tick boxes is laid out by .check-group alone, never the browser's frame. */
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
legend { padding: 0; }

h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0 0 var(--space-md); }

h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

a {
  color: var(--foreground);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

code, pre { font-family: var(--font-mono); font-size: 0.875em; }
code {
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 0.25em;
}

hr { border: 0; border-top: 1px solid var(--border); margin: var(--space-lg) 0; }

table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: var(--space-sm); border-bottom: 1px solid var(--border); }
th { font-weight: 600; }

input, select, textarea, button { font: inherit; }

/* ============================================
   3. LAYOUT
   ============================================ */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

.section { padding: var(--space-xl) 0; }
.section-alt { background: var(--background-alt); }
/* Dark mode steps the alt surface up the ramp instead of a flat inversion. */
:root[data-theme="dark"] .section-alt { --background-alt: var(--gray-800); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .section-alt { --background-alt: var(--gray-800); }
}

.section__head { max-width: 46rem; margin-bottom: var(--space-lg); }
.section__eyebrow {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  margin-bottom: var(--space-sm);
}
.section__lede { font-size: 1.125rem; color: var(--muted-foreground); }
/* A group inside a section (the two brands on the home page). */
.section__subtitle { font-size: 1.25rem; margin-bottom: var(--space-xs); }
.section__subtitle + p { color: var(--muted-foreground); }

.grid {
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

.page-main { padding: var(--space-lg) 0 var(--space-xl); }
.prose { max-width: 46rem; }
.prose h2 { font-size: 1.25rem; margin-top: var(--space-lg); }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   4. COMPONENTS
   ============================================ */

/* --- Skip link --- */
.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -100px;
  z-index: 100;
  padding: var(--space-sm) var(--space-md);
  background: var(--primary);
  color: var(--primary-foreground);
  border-radius: var(--radius);
}
.skip-link:focus { top: var(--space-sm); }

/* --- Site header (static, not sticky) --- */
.site-header {
  position: relative;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
  min-height: var(--header-height);
}
.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  color: var(--foreground);
}
.site-header__logo svg { width: 1.75rem; height: 1.75rem; }
.site-header__by {
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

/* --- Theme toggle --- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--foreground);
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--border-strong); }
.theme-toggle svg { width: 1.25rem; height: 1.25rem; }
.theme-toggle__moon { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle__moon { display: block; }
}

/* --- Mobile nav toggle --- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--border-strong); }
.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: var(--foreground);
  position: relative;
}
.nav-toggle__icon::before,
.nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -6px; }
.nav-toggle__icon::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { top: 0; transform: rotate(-45deg); }

/* --- Primary nav ---
   Below the nav breakpoint the open menu is a floating panel under the header:
   the full row on a phone, capped and right-aligned from 480px, and it scrolls
   inside itself when taller than the screen. */
.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  max-height: calc(100dvh - var(--header-height) - var(--space-md));
  overflow-y: auto;
  padding: var(--space-sm);
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-raised);
}
.nav--open { display: block; }
.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.nav__link {
  display: block;
  padding: var(--space-sm);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--muted-foreground);
  font-weight: 500;
}
.nav__link:hover { color: var(--foreground); background: var(--muted); }
.nav__link[aria-current="page"] { color: var(--foreground); font-weight: 700; }

@media (min-width: 480px) {
  /* Past phone width the open menu stops spanning the row. */
  .nav {
    left: auto;
    right: var(--space-md);
    width: min(20rem, calc(100% - 2 * var(--space-md)));
  }
}

/* Nav breakpoint: its own query, the same value as --breakpoint-nav and main.js. */
@media (min-width: 1000px) {
  .site-header__inner { flex-wrap: nowrap; }
  .nav-toggle { display: none; }
  .nav {
    display: block;
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    margin-left: auto;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .nav__list { flex-direction: row; align-items: center; }
}

/* --- Tick boxes: <fieldset class="check-group"> with a <legend>, each box inside
   its own <label class="check"> --- */
.check-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
}
.check-group legend {
  margin-bottom: var(--space-sm);
  font-weight: 600;
}
.check {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  min-height: 2.75rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-family: var(--font-body);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--foreground);
}
.btn-outline:hover { border-color: var(--primary); }
.btn-sm { min-height: 2.25rem; padding: 0.375rem 0.875rem; font-size: 0.9375rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* --- Hero --- */
.hero { padding: var(--space-xl) 0; }
.hero__grid { display: grid; gap: var(--space-lg); align-items: center; }
.hero__grid > * { min-width: 0; } /* lets the hero card shrink instead of widening the page */
.hero__eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: var(--space-xs) 0.75rem;
  margin-bottom: var(--space-md);
}
.hero__lede { font-size: 1.1875rem; color: var(--muted-foreground); max-width: 38rem; }
.hero__note { font-size: 0.875rem; color: var(--muted-foreground); margin-top: var(--space-md); }
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; }
}

/* --- Hero card (illustration): a made-up proposal, case or order journey --- */
.proposal {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: var(--space-md);
  font-size: 0.875rem;
  margin: 0;
}
.proposal__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-xs) var(--space-sm);
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--space-sm);
  margin-bottom: var(--space-xs);
}
.proposal__title { font-weight: 700; font-size: 0.9375rem; }
.proposal__status {
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0 0.5rem;
}
.proposal__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  margin: var(--space-sm) 0 var(--space-xs);
}
.proposal__lines { margin: 0; }
.proposal__line {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 0.1875rem 0;
}
.proposal__line dt { color: var(--muted-foreground); }
.proposal__line dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.proposal__line--total {
  border-top: 1px solid var(--border-strong);
  margin-top: var(--space-xs);
  padding-top: var(--space-xs);
  font-weight: 700;
}
.proposal__line--total dt { color: var(--foreground); }
.proposal__milestones {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xs);
}
.proposal__milestone {
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}
.proposal__milestone strong { display: block; font-size: 0.9375rem; color: var(--foreground); }
.proposal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-md);
  font-size: 0.75rem;
  color: var(--muted-foreground);
  border-top: 1px solid var(--border);
  padding-top: var(--space-sm);
  margin-top: var(--space-md);
}
.proposal__caption { font-size: 0.75rem; color: var(--muted-foreground); margin-top: var(--space-sm); }

/* --- Cards --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.card__title { font-size: 1.125rem; margin-bottom: var(--space-sm); }
.card__text { color: var(--muted-foreground); margin-bottom: 0; }
.card__list { color: var(--muted-foreground); padding-left: 1.125rem; margin: var(--space-sm) 0 0; }
.card__list li + li { margin-top: var(--space-xs); }
.card--featured { border-color: var(--primary); border-width: 2px; }
.card__kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
  margin-bottom: var(--space-sm);
}

/* --- Problem / solution pairs --- */
.pairs { display: grid; gap: var(--space-md); }
.pair {
  display: grid;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.pair__side { padding: 1.25rem; }
.pair__side--problem { background: var(--muted); border-bottom: 1px solid var(--border); }
.pair__side p:last-child { margin-bottom: 0; }
.pair__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted-foreground);
  margin-bottom: var(--space-xs);
}
@media (min-width: 860px) {
  .pair { grid-template-columns: 1fr 1fr; }
  .pair__side--problem { border-bottom: 0; border-right: 1px solid var(--border); }
}

/* --- Steps (Getting Started) --- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-md);
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}
.step__num--zero { background: transparent; color: var(--foreground); border: 1px solid var(--border-strong); }
.step__title { font-size: 1.0625rem; margin-bottom: var(--space-xs); }
.step__text { color: var(--muted-foreground); margin-bottom: 0; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(5, 1fr); } .steps--3 { grid-template-columns: repeat(3, 1fr); } }

/* --- Check list (ticks) --- */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: var(--space-sm);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.35em;
  width: 0.45rem;
  height: 0.8rem;
  border: solid var(--foreground);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checks--cross li::before {
  border: 0;
  width: 0.8rem;
  height: 2px;
  top: 0.75em;
  left: 0.1rem;
  background: var(--muted-foreground);
  transform: none;
}

/* --- Price panel --- */
.price {
  display: grid;
  gap: var(--space-md);
}
.price__amount {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-xs);
}
.price__unit { font-size: 1rem; font-weight: 500; color: var(--muted-foreground); }
.price__note { font-size: 0.875rem; color: var(--muted-foreground); }
.price__zar { margin: 0; font-weight: 600; }
/* The three AI subscriptions, side by side from tablet width. */
.plans { display: grid; gap: var(--space-md); margin-bottom: var(--space-md); }
@media (min-width: 860px) { .plans { grid-template-columns: repeat(3, 1fr); } }

/* --- FAQ --- */
.faq { max-width: 50rem; }
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__item summary {
  cursor: pointer;
  padding: var(--space-md) 0;
  font-weight: 600;
  list-style-position: outside;
}
.faq__item summary:hover { text-decoration: underline; }
.faq__answer { padding-bottom: var(--space-md); color: var(--muted-foreground); }
.faq__answer p:last-child { margin-bottom: 0; }

/* --- CTA band --- */
.cta-band {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: var(--space-xl) 0;
}
.cta-band h2 { color: var(--primary-foreground); }
.cta-band p { max-width: 42rem; }
.cta-band .btn-primary {
  background: var(--primary-foreground);
  color: var(--primary);
}
.cta-band .btn-primary:hover { background: var(--gray-200); }
:root[data-theme="dark"] .cta-band .btn-primary:hover { background: var(--gray-800); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta-band .btn-primary:hover { background: var(--gray-800); }
}
.cta-band .btn-outline { color: var(--primary-foreground); border-color: currentColor; }
.cta-band a:not(.btn) { color: var(--primary-foreground); }

/* --- Forms --- */
.form { max-width: 36rem; }
.form-group { margin-bottom: var(--space-md); }
.form-group label { display: block; font-weight: 600; margin-bottom: var(--space-xs); }
.form-hint { display: block; font-size: 0.875rem; color: var(--muted-foreground); font-weight: 400; }
.form-control {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
}
textarea.form-control { min-height: 9rem; resize: vertical; }
.form-control:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.form-control[aria-invalid="true"] { border-color: var(--destructive); }
.form-error {
  display: block;
  margin-top: var(--space-xs);
  font-size: 0.875rem;
  color: var(--destructive);
}
.form-error:empty { display: none; }
.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  display: none;
  margin-top: var(--space-md);
  padding: 0.75rem var(--space-md);
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
}
.form-status.is-visible { display: block; }
.form-status.is-success { background: var(--muted); }
.form-status.is-error { background: var(--destructive-bg); border-color: var(--destructive); color: var(--destructive); }
.required-mark { color: var(--muted-foreground); font-weight: 400; }

/* --- Info block (company information on Terms) --- */
.info-block {
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md) 1.25rem;
}
.info-block p:last-child { margin-bottom: 0; }

/* --- Site footer --- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  border-top: 1px solid var(--footer-border);
  padding: var(--space-lg) 0 var(--space-md);
  font-size: 0.875rem;
}
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover,
.site-footer a:focus-visible { text-decoration: underline; }
/* The page's focus ring is the page's ink, which is the band's own colour in light mode. */
.site-footer :focus-visible { outline-color: var(--footer-fg); }
.site-footer__inner {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}
.site-footer__heading {
  margin-bottom: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-muted);
}
.site-footer__text { color: var(--footer-fg); }
.site-footer__list { list-style: none; padding: 0; margin: 0; }
.site-footer__list li + li { margin-top: var(--space-xs); }
.site-footer__bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--footer-border);
  color: var(--footer-muted);
  font-size: 0.8125rem;
}
.site-footer__bottom p { margin: 0; }
@media (min-width: 640px) { .site-footer__inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .site-footer__inner { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* --- Nav call to action: full width in the open mobile menu, inline on the desktop row. --- */
.nav__cta { width: 100%; }
@media (min-width: 1000px) {
  .nav__cta { width: auto; margin-left: var(--space-xs); }
}

/* --- Consultant profile (directory.md §2): header, badges, rating, reviews --- */
.notice {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.9375rem;
  color: var(--muted-foreground);
  margin-bottom: var(--space-lg);
}
.profile-section { margin-top: var(--space-xl); }
.profile { display: grid; gap: var(--space-lg); align-items: start; }
.profile__photo {
  width: 7.5rem;
  height: 7.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 2.25rem;
  font-weight: 700;
}
.profile__title { color: var(--muted-foreground); font-size: 1.125rem; margin-bottom: var(--space-sm); }
.profile__facts { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); color: var(--muted-foreground); font-size: 0.9375rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .profile { grid-template-columns: auto 1fr; } }

.badges { list-style: none; padding: 0; margin: 0 0 var(--space-md); display: grid; gap: var(--space-sm); }
@media (min-width: 640px) { .badges { grid-template-columns: repeat(2, 1fr); } }
.badge {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  background: var(--surface);
}
.badge__name { font-weight: 600; }
.badge__since { font-size: 0.8125rem; color: var(--muted-foreground); white-space: nowrap; }

.rating { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); }
.rating__score { font-size: 2rem; font-weight: 700; line-height: 1; }
.rating__count { color: var(--muted-foreground); }
.stars { display: inline-flex; gap: 2px; color: var(--foreground); }
.stars svg { width: 1.125rem; height: 1.125rem; }
.stars .star--off { color: var(--border-strong); }

.reviews { display: grid; gap: var(--space-md); }
.review__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-xs) var(--space-md); margin-bottom: var(--space-sm); }
.review__who { font-weight: 600; }
.review__meta { font-size: 0.8125rem; color: var(--muted-foreground); }
.review__title { font-size: 1.0625rem; margin: var(--space-sm) 0 var(--space-xs); }
.review__text { margin-bottom: 0; }
.review__reply {
  margin-top: var(--space-md);
  padding-left: var(--space-md);
  border-left: 3px solid var(--border-strong);
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}
.review__reply strong { color: var(--foreground); }

/* ============================================
   5. UTILITIES
   ============================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.text-muted { color: var(--muted-foreground); }
.mt-lg { margin-top: var(--space-lg); }
