/* ==========================================================================
   Energreen Solutions — site stylesheet
   Structure: tokens, fonts, base, layout, header, sections, components, footer
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------- */
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --- Design tokens -------------------------------------------------------- */
:root {
  /* Brand greens. The lime is taken from the logo artwork and is only ever
     placed on a dark green ground, where it clears WCAG AA comfortably. */
  --forest-900: #072a20;
  --forest-800: #0b3d2e;
  --forest-700: #12503b;
  --forest-600: #1a6549;
  --lime: #8ee555;
  --lime-bright: #a3ee71;

  /* Neutrals */
  --ink: #0e1a15;
  --ink-70: #41544b;
  --ink-50: #5f726a;
  --paper: #ffffff;
  --stone: #f4f7f4;
  --stone-200: #e9efe9;
  --line: #dde4e0;
  --line-strong: #c6d2cb;

  /* On dark grounds */
  --on-dark: #ffffff;
  --on-dark-70: rgba(255, 255, 255, 0.78);
  --on-dark-50: rgba(255, 255, 255, 0.58);
  --line-dark: rgba(255, 255, 255, 0.14);
  --line-dark-strong: rgba(255, 255, 255, 0.26);

  /* Typography */
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --step-h1: clamp(2.05rem, 1.55rem + 2.1vw, 3.15rem);
  --step-h2: clamp(1.55rem, 1.33rem + 0.95vw, 2.15rem);
  --step-h3: clamp(1.1rem, 1.05rem + 0.2vw, 1.225rem);
  --step-lead: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  --step-body: 1.0625rem;
  --step-small: 0.9375rem;

  /* Spacing and shape */
  --gutter: clamp(1.25rem, 0.9rem + 1.6vw, 2.5rem);
  --shell: 71.25rem; /* 1140px */
  --section-y: clamp(3.75rem, 2.75rem + 4vw, 6.5rem);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(14, 26, 21, 0.05);
  --shadow: 0 6px 20px -8px rgba(14, 26, 21, 0.14), 0 2px 6px -2px rgba(14, 26, 21, 0.06);
  --shadow-lg: 0 18px 44px -20px rgba(14, 26, 21, 0.28);

  --header-h: 68px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 62rem) {
  :root { --header-h: 78px; }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

h1 { font-size: var(--step-h1); letter-spacing: -0.028em; }
h2 { font-size: var(--step-h2); letter-spacing: -0.022em; }
h3 { font-size: var(--step-h3); letter-spacing: -0.012em; }

p { margin: 0; }
p + p { margin-top: 1em; }

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

a { color: inherit; }

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

:target { scroll-margin-top: calc(var(--header-h) + 1.5rem); }

::selection {
  background: var(--forest-800);
  color: var(--on-dark);
}

/* Focus. A two-tone ring so it stays visible on both light and dark grounds. */
:focus-visible {
  outline: 3px solid var(--forest-600);
  outline-offset: 3px;
  border-radius: 3px;
}

.section--dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--lime);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 200;
  transform: translate(-50%, -140%);
  padding: 0.75rem 1.25rem;
  background: var(--lime);
  color: var(--forest-900);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: transform 160ms var(--ease);
}

.skip-link:focus-visible { transform: translate(-50%, 0); }

/* --- Intro screen --------------------------------------------------------- */
/* The homepage content sits underneath in the HTML, so search engines and
   non-JavaScript visitors get the full page; this is only a brand overlay. */
.splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  /* Solid colour first so the text always has a known ground behind it. */
  background-color: var(--forest-800);
  background-image:
    radial-gradient(1100px 620px at 50% -8%, var(--forest-700) 0%, transparent 60%),
    linear-gradient(180deg, #0e4634 0%, var(--forest-800) 45%, var(--forest-900) 100%);
  color: var(--on-dark);
  text-align: center;
  opacity: 1;
  transition: opacity 420ms var(--ease), visibility 420ms var(--ease);
}

.splash.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 4vh, 3rem);
  width: 100%;
  max-width: 44rem;
  animation: splash-in 900ms var(--ease) both;
}

@keyframes splash-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.splash__title {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 5.375rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.splash__title span { display: block; }

/* "Since 2006" flanked by rules, as on the original screen. */
.splash__since {
  display: flex;
  align-items: center;
  gap: 1.125rem;
  width: min(32.5rem, 78vw);
  margin: 0;
}

.splash__since::before,
.splash__since::after {
  content: "";
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
}

.splash__since span,
.splash__slogan {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--on-dark-70);
  white-space: nowrap;
  padding-left: 0.34em;
}

.splash__since span { font-size: clamp(0.55rem, 1.5vw, 0.75rem); }

.splash__slogan {
  margin: 0;
  font-size: clamp(0.6875rem, 2vw, 1rem);
  white-space: normal;
}

.splash__enter {
  margin-top: clamp(0.5rem, 2vh, 1.5rem);
  min-height: 56px;
  padding: 0.9rem 2.25rem;
  font-size: 1rem;
}

/* The overlay takes focus on open; it is a container, not a control. */
.splash:focus { outline: none; }

/* --- Layout helpers ------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow { max-width: 48rem; }

.eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--forest-600);
}

.section--dark .eyebrow,
.hero .eyebrow,
.page-head .eyebrow { color: var(--lime); }

/* Small mono label used above panels and footer columns. */
.kicker {
  margin: 0 0 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-50);
}

.section--dark .kicker,
.hero .kicker,
.page-head .kicker,
.contact-cta .kicker,
.site-footer .kicker { color: var(--on-dark-50); }

.lead {
  font-size: var(--step-lead);
  line-height: 1.6;
  color: var(--ink-70);
}

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

.section-head { max-width: 46rem; }
.section-head h2 + p { margin-top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: var(--step-small);
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease),
              color 160ms var(--ease), transform 160ms var(--ease), box-shadow 160ms var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn__icon {
  width: 1.05em;
  height: 1.05em;
  flex: none;
}

.btn--primary {
  background: var(--lime);
  color: var(--forest-900);
}
.btn--primary:hover { background: var(--lime-bright); }

.btn--solid {
  background: var(--forest-800);
  color: var(--on-dark);
  box-shadow: var(--shadow);
}
.btn--solid:hover { background: var(--forest-700); }

.btn--outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn--outline:hover { border-color: var(--forest-600); background: var(--stone); }

.btn--ghost {
  background: transparent;
  border-color: var(--line-dark-strong);
  color: var(--on-dark);
}
.btn--ghost:hover { border-color: var(--lime); background: rgba(142, 229, 85, 0.1); }

.btn--sm { min-height: 42px; padding: 0.5rem 1.15rem; font-size: 0.875rem; }
.btn--block { width: 100%; }

/* Inline text link with a chevron */
.link-arrow {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0.4rem;
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--forest-800);
  text-decoration: none;
  text-underline-offset: 3px;
}
.link-arrow svg { width: 1em; height: 1em; transition: transform 160ms var(--ease); }
.link-arrow:hover { text-decoration: underline; }
.link-arrow:hover svg { transform: translateX(3px); }

.section--dark .link-arrow { color: var(--lime); }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--forest-800);
  border-bottom: 1px solid var(--line-dark);
  transition: box-shadow 200ms var(--ease), background-color 200ms var(--ease);
}

.site-header.is-scrolled {
  background: var(--forest-900);
  box-shadow: 0 8px 24px -14px rgba(0, 0, 0, 0.7);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.header__brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  margin-right: auto;
  padding: 0.35rem 0;
  border-radius: var(--radius-sm);
}

.header__brand img {
  width: 158px;
  height: auto;
}

@media (min-width: 62rem) {
  .header__brand img { width: 182px; }
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  color: var(--on-dark-70);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 140ms var(--ease), background-color 140ms var(--ease);
}

.nav__link:hover { color: var(--on-dark); background: rgba(255, 255, 255, 0.07); }
.nav__link[aria-current="page"] { color: var(--lime); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--radius-sm);
  color: var(--on-dark);
  cursor: pointer;
  transition: border-color 140ms var(--ease), background-color 140ms var(--ease);
}

.nav-toggle:hover { border-color: var(--lime); background: rgba(255, 255, 255, 0.06); }
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile navigation panel */
@media (max-width: 61.99rem) {
  .nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--forest-900);
    border-bottom: 1px solid var(--line-dark);
    box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.8);
    display: none;
  }

  .site-header.is-open .nav { display: block; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.25rem;
  }

  .nav__item + .nav__item { border-top: 1px solid var(--line-dark); }

  .nav__link {
    min-height: 54px;
    padding-inline: 0;
    font-size: 1.0625rem;
    border-radius: 0;
  }

  .nav__link:hover { background: transparent; }

  .nav__cta { padding: 0.35rem 0 0; }
  .nav__cta .btn { width: 100%; }

  .header__cta { display: none; }
}

@media (min-width: 62rem) {
  .nav-toggle { display: none; }
  .nav__cta { display: none; }
}

/* --- Sections ------------------------------------------------------------- */
.section {
  padding-block: var(--section-y);
  scroll-margin-top: var(--header-h);
}

.section--stone { background: var(--stone); }
.section--dark { background: var(--forest-800); color: var(--on-dark); }
.section--tight { padding-block: clamp(2.5rem, 2rem + 2vw, 4rem); }

.section--dark .section-head p,
.section--dark p { color: var(--on-dark-70); }
.section--dark h2,
.section--dark h3 { color: var(--on-dark); }

.rule {
  display: block;
  width: 56px;
  height: 3px;
  margin: 1.5rem 0 1.75rem;
  background: var(--lime);
  border-radius: 2px;
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--forest-800);
  color: var(--on-dark);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 12% -10%, var(--forest-600) 0%, transparent 62%),
    linear-gradient(180deg, var(--forest-700) 0%, var(--forest-800) 46%, var(--forest-900) 100%);
  opacity: 0.95;
}

.hero > * { position: relative; }

.hero__inner {
  display: grid;
  gap: clamp(2.5rem, 2rem + 3vw, 4rem);
  padding-block: clamp(3.25rem, 2.5rem + 4vw, 6rem);
  align-items: center;
}

@media (min-width: 60rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

.hero__title { max-width: 21ch; }

.hero__title .accent { color: var(--lime); }

.hero__text {
  max-width: 54ch;
  margin-top: 1.35rem;
  font-size: var(--step-lead);
  line-height: 1.62;
  color: var(--on-dark-70);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  list-style: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--on-dark-50);
}

.hero__meta li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.hero__meta li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  flex: none;
}

/* Hero side panel */
.hero__panel {
  padding: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(2px);
}

.hero__panel h2 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--lime);
}

.panel-list {
  margin: 1.25rem 0 0;
  list-style: none;
}

.panel-list li + li { border-top: 1px solid var(--line-dark); }

.panel-list a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 46px;
  padding: 0.55rem 0;
  color: var(--on-dark);
  font-size: var(--step-small);
  font-weight: 500;
  text-decoration: none;
  transition: color 140ms var(--ease);
}

.panel-list a:hover { color: var(--lime); }

.panel-list svg {
  width: 20px;
  height: 20px;
  flex: none;
  color: var(--lime);
}

.panel-list .chev {
  width: 14px;
  height: 14px;
  margin-left: auto;
  color: var(--on-dark-50);
  transition: transform 160ms var(--ease);
}

.panel-list a:hover .chev { transform: translateX(3px); color: var(--lime); }

/* --- Service cards -------------------------------------------------------- */
.card-grid {
  display: grid;
  gap: 1.125rem;
  margin-top: clamp(2.25rem, 1.75rem + 2vw, 3.25rem);
  list-style: none;
}

@media (min-width: 40rem) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.service {
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 1.2rem + 0.6vw, 1.85rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
}

.service:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.15rem;
  background: var(--stone-200);
  border-radius: 11px;
  color: var(--forest-700);
}

.service__icon svg { width: 22px; height: 22px; }

.service h3 { margin-bottom: 0.6rem; }

.service p {
  color: var(--ink-70);
  font-size: var(--step-small);
  line-height: 1.6;
}

.service__for {
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line);
  font-size: 0.875rem;
  color: var(--ink-50);
}

.service__for strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-600);
  margin-bottom: 0.3rem;
}

.service .link-arrow { margin-top: 0.85rem; align-self: flex-start; }

/* Dark tile that breaks up the run of white service cards. */
.service--dark {
  background: var(--forest-800);
  border-color: var(--forest-800);
  color: var(--on-dark);
}

/* The tile carries no icon, so this reserves the same space above the heading
   and keeps the headings and calls to action across a row on one line. */
.service--dark::before {
  content: "";
  display: block;
  height: 44px;
  margin-bottom: 1.15rem;
}

.service--dark .link-arrow { margin-top: auto; }

.service--dark h3 { color: var(--on-dark); }
.service--dark p { color: var(--on-dark-70); }
.service--dark .link-arrow { color: var(--lime); }
.service--dark:hover { border-color: var(--forest-600); }

/* --- Sectors -------------------------------------------------------------- */
.sector-grid {
  display: grid;
  gap: 0;
  margin-top: clamp(2.25rem, 1.75rem + 2vw, 3rem);
  list-style: none;
  border-top: 1px solid var(--line-dark);
}

@media (min-width: 44rem) {
  .sector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 4vw, 4rem); }
}

.sector {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 1rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line-dark);
}

.sector__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--lime);
  padding-top: 0.35rem;
}

.sector h3 { font-size: 1.0625rem; }

.sector p {
  margin-top: 0.4rem;
  grid-column: 2;
  font-size: var(--step-small);
  line-height: 1.6;
}

/* --- Survey tier comparison ------------------------------------------------ */
.table-hint {
  margin: clamp(2.25rem, 1.75rem + 2vw, 3rem) 0 0.85rem;
  font-size: 0.8125rem;
  color: var(--ink-50);
}

@media (min-width: 60rem) {
  .table-hint { display: none; }
  .table-scroll { margin-top: clamp(2.25rem, 1.75rem + 2vw, 3rem); }
}

/* Scrolls sideways on narrow screens rather than shrinking the text. */
.table-scroll {
  overflow-x: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.table-scroll:focus-visible {
  outline: 3px solid var(--forest-600);
  outline-offset: 3px;
}

.compare {
  width: 100%;
  min-width: 56rem;
  border-collapse: collapse;
  /* Equal tier columns so the three scopes read side by side. */
  table-layout: fixed;
  text-align: left;
  font-size: 0.9375rem;
}

.compare th:first-child { width: 22%; }
.compare th:not(:first-child) { width: 26%; }

.compare caption { text-align: left; }

.compare thead th {
  padding: 0.9rem 1.15rem;
  background: var(--forest-800);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.compare tbody th,
.compare tbody td {
  padding: 1rem 1.15rem;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }

.compare tbody th {
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.compare tbody td {
  color: var(--ink-70);
  line-height: 1.5;
}

.compare tbody tr:nth-child(even) { background: var(--stone); }

/* Keep the service name in view while the tier columns scroll on a phone. */
.compare thead th:first-child,
.compare tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--paper);
  box-shadow: 1px 0 0 var(--line);
}

.compare thead th:first-child {
  z-index: 2;
  background: var(--forest-800);
  box-shadow: 1px 0 0 var(--forest-700);
}

.compare tbody tr:nth-child(even) th { background: var(--stone); }

/* Consistent marker wherever the tier system does not apply. */
.na {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-50);
}

/* On a phone the sticky name column has to leave room for a tier column
   beside it, so the whole table narrows rather than the text shrinking. */
@media (max-width: 47.99rem) {
  .compare { min-width: 44rem; }
  .compare th:first-child { width: 9.5rem; }
  .compare th:not(:first-child) { width: 11.5rem; }

  .compare thead th { padding: 0.8rem 0.85rem; }

  .compare tbody th,
  .compare tbody td { padding: 0.85rem; }
}

.scope-notes {
  display: grid;
  gap: 1.5rem;
  margin: 1.5rem 0 0;
}

@media (min-width: 52rem) {
  .scope-notes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
}

.scope-note {
  padding-top: 1rem;
  border-top: 2px solid var(--line-strong);
}

.scope-note dt {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.scope-note dd {
  margin: 0.4rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-70);
}

.tier-note {
  margin-top: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  padding-top: clamp(1.75rem, 1.5rem + 1vw, 2.5rem);
  border-top: 1px solid var(--line-strong);
}

.tier-note__lead { font-size: var(--step-body); color: var(--ink); }
.tier-note__lead strong { font-weight: 600; }

.tier-note > p {
  max-width: 62ch;
  font-size: var(--step-small);
  line-height: 1.65;
  color: var(--ink-70);
}

.tier-note__small {
  margin-top: 1.5rem;
  max-width: 62ch;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-50);
}

/* --- Process -------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 1.5rem;
  margin-top: clamp(2.25rem, 1.75rem + 2vw, 3.25rem);
  list-style: none;
  counter-reset: step;
}

@media (min-width: 48rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; } }
@media (min-width: 68rem) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; } }

.step {
  position: relative;
  padding-top: 1.5rem;
  border-top: 2px solid var(--line-strong);
}

.step:first-child { border-top-color: var(--forest-700); }

.step__num {
  display: block;
  margin-bottom: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--forest-600);
}

.step h3 { font-size: 1.0625rem; margin-bottom: 0.45rem; }

.step p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-70);
}

/* --- About / feature list ------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(2.25rem, 1.75rem + 3vw, 4rem);
  align-items: start;
}

@media (min-width: 60rem) {
  .split { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
}

.check-list {
  display: grid;
  gap: 1.25rem;
  list-style: none;
}

@media (min-width: 30rem) { .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.check-list li {
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-dark);
}

.check-list h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.check-list svg { width: 18px; height: 18px; flex: none; color: var(--lime); }

.check-list p { font-size: 0.9375rem; line-height: 1.6; }

/* Statement panel used beside the about copy */
.stat-panel {
  padding: clamp(1.5rem, 1.25rem + 1vw, 2.15rem);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--radius-lg);
}

/* Practice details, shown beside the about copy. */
.facts {
  display: grid;
  gap: 0;
  margin: 2.25rem 0 0;
  border-top: 1px solid var(--line-dark);
}

@media (min-width: 30rem) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.5rem; }
}

.fact {
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line-dark);
}

.fact--wide { grid-column: 1 / -1; }

.fact dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-dark-50);
}

.fact dd {
  margin: 0.25rem 0 0;
  font-size: var(--step-small);
  font-weight: 600;
  color: var(--on-dark);
}

/* --- Contact -------------------------------------------------------------- */
.contact-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.contact-list li { border-bottom: 1px solid var(--line); }

.contact-list__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
  padding: 1rem 0;
  color: inherit;
  text-decoration: none;
  transition: color 140ms var(--ease);
}

a.contact-list__row:hover { color: var(--forest-700); }
a.contact-list__row:hover .contact-list__value { text-decoration: underline; text-underline-offset: 3px; }

.contact-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
  background: var(--stone-200);
  border-radius: 11px;
  color: var(--forest-700);
}

.contact-list__icon svg { width: 20px; height: 20px; }

.contact-list__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-50);
}

.contact-list__value {
  display: block;
  font-size: var(--step-small);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-cta {
  margin-top: 2rem;
  padding: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  background: var(--forest-800);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
}

.contact-cta h2,
.contact-cta h3 {
  color: var(--on-dark);
  font-size: var(--step-h3);
  margin-bottom: 0.6rem;
}
.contact-cta p { color: var(--on-dark-70); font-size: var(--step-small); }
.contact-cta .btn { margin-top: 1.4rem; }

/* Numbered list inside the dark call-to-action panel. */
.next-steps {
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: next-step;
}

.next-steps li {
  position: relative;
  padding-left: 2.25rem;
  font-size: var(--step-small);
  line-height: 1.55;
  color: var(--on-dark-70);
  counter-increment: next-step;
}

.next-steps li + li { margin-top: 0.9rem; }

.next-steps li::before {
  content: counter(next-step);
  position: absolute;
  left: 0;
  top: 0.15rem;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--line-dark-strong);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--lime);
}

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  background: var(--forest-900);
  color: var(--on-dark-70);
  padding-block: clamp(3rem, 2.5rem + 2vw, 4.5rem) 0;
  font-size: var(--step-small);
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 2.75rem;
}

@media (min-width: 44rem) { .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .footer__grid { grid-template-columns: 1.5fr 1fr 1.3fr; gap: 3rem; } }

.footer__brand img { width: 176px; height: auto; }

.footer__blurb {
  max-width: 34ch;
  margin-top: 1.25rem;
  color: var(--on-dark-70);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer__list { list-style: none; }

.footer__list li + li { margin-top: 0.15rem; }

.footer__list a,
.footer__list span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--on-dark-70);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color 140ms var(--ease);
}

.footer__list a:hover { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line-dark);
  color: var(--on-dark-50);
  font-size: 0.8125rem;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  list-style: none;
}

.footer__legal a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: inherit;
  text-decoration: none;
}
.footer__legal a:hover { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }

/* --- Enquiry page layout ------------------------------------------------- */
.enquiry {
  display: grid;
  gap: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
  align-items: start;
}

@media (min-width: 62rem) {
  .enquiry { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
}

.enquiry__aside .contact-cta { background: var(--forest-800); }

/* --- Forms ---------------------------------------------------------------- */
.form-card {
  padding: clamp(1.5rem, 1.15rem + 1.6vw, 2.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.form-grid { display: grid; gap: 1.25rem; }

@media (min-width: 40rem) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field--full { grid-column: 1 / -1; }
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.field .optional {
  font-weight: 400;
  color: var(--ink-50);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 0.7rem 0.875rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}

.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%235f726a' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
}

.field input::placeholder,
.field textarea::placeholder { color: var(--ink-50); opacity: 1; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--ink-50); }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--forest-600);
  box-shadow: 0 0 0 3px rgba(26, 101, 73, 0.18);
}

.field .error {
  display: none;
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  color: #a4232a;
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #a4232a; }

.field.is-invalid input:focus-visible,
.field.is-invalid select:focus-visible,
.field.is-invalid textarea:focus-visible { box-shadow: 0 0 0 3px rgba(164, 35, 42, 0.16); }

.field.is-invalid .error { display: block; }

/* Honeypot: off-screen but not display:none, so bots still fill it in. */
.hp {
  position: absolute !important;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Shown in place of the tier select for services with no tier system. */
.form-flag {
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--stone);
  border: 1px solid var(--line);
  border-left: 3px solid var(--forest-600);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-70);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.form-note {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--ink-50);
}

.form-note a { color: var(--forest-800); }

.form-status {
  margin-top: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: var(--step-small);
  line-height: 1.55;
  display: none;
}

.form-status.is-visible { display: block; }
.form-status.is-error { background: #fdf2f2; border: 1px solid #f0c9c9; color: #8c1d23; }
.form-status.is-pending { background: var(--stone); border: 1px solid var(--line); color: var(--ink-70); }

.form-success {
  display: none;
  padding: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
  background: var(--stone);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: left;
}

.form-success.is-visible { display: block; }

.form-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  background: var(--forest-800);
  border-radius: 50%;
  color: var(--lime);
}

.form-success__icon svg { width: 24px; height: 24px; }
.form-success h2 { margin-bottom: 0.65rem; }
.form-success p { color: var(--ink-70); font-size: var(--step-small); }
.form-success .btn { margin-top: 1.75rem; }

button[disabled] { opacity: 0.6; cursor: progress; }

/* --- Prose (privacy notice, 404) ----------------------------------------- */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.75rem; margin-bottom: 0.85rem; }
.prose h3 { margin-top: 1.75rem; margin-bottom: 0.5rem; }
.prose p, .prose ul { color: var(--ink-70); }
.prose p + p { margin-top: 0.9rem; }
.prose ul { margin: 0.75rem 0 0; padding-left: 1.25rem; list-style: disc; }
.prose li + li { margin-top: 0.4rem; }
.prose a { color: var(--forest-800); text-underline-offset: 3px; }
.prose > p:first-of-type { font-size: var(--step-lead); color: var(--ink-70); }

.page-head {
  background: var(--forest-800);
  color: var(--on-dark);
  padding-block: clamp(2.75rem, 2.25rem + 3vw, 4.5rem);
}

.page-head h1 { color: var(--on-dark); max-width: 22ch; }
.page-head p { margin-top: 1rem; max-width: 52ch; color: var(--on-dark-70); font-size: var(--step-lead); }

/* --- Motion preferences --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- Print ---------------------------------------------------------------- */
@media print {
  .site-header, .nav, .hero__panel, .skip-link { display: none !important; }
  body { color: #000; background: #fff; }
  .section--dark, .hero, .site-footer { background: #fff !important; color: #000 !important; }
}
