/* ============================================================================
   Humphries & Odoom Energy Assessors — site styles
   Design tokens taken verbatim from the Claude design
   "Humphries Odoom Site v2.dc.html".
   ========================================================================== */

/* ---------------------------------------------------------------- webfonts --
   Self-hosted rather than loaded from Google Fonts: one less render-blocking
   third-party request, and no visitor IP addresses sent to Google — which the
   privacy notice would otherwise have to disclose.

   Both families are variable fonts, so a single file covers every weight used.
   Licensed under the SIL Open Font License 1.1 — see the OFL-*.txt files in
   assets/fonts/, which must travel with the font files.
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/instrument-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/instrument-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink:          #16181A;  /* headings, dark bands, primary buttons */
  --ink-2:        #2A2E31;  /* body copy on light                    */
  --body:         #4A5055;  /* secondary body copy                   */
  /* Was #7A8086 in the source design, which measured 3.99:1 on white and
     3.63:1 on --surface — below the 4.5:1 AA floor for text this small.
     #6B7075 is the nearest value that clears both (5.00:1 / 4.54:1). */
  --muted:        #6B7075;  /* eyebrows, labels                      */
  --accent:       #2E4756;  /* section numbers, links, active nav    */

  --rule:         #E2E2DE;  /* hairlines on white                    */
  --rule-strong:  #D8D8D3;  /* hairlines on the grey surface         */
  --rule-mid:     #C9CCC7;  /* underlined text links                 */
  --surface:      #F4F4F2;  /* alternating grey sections             */
  --surface-hover:#EDEDE9;
  --white:        #FFFFFF;

  --shell:        1320px;
  --gutter:       clamp(20px, 3vw, 44px);

  --font-display: Archivo, system-ui, sans-serif;
  --font-body:    "Instrument Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }
img { max-width: 100%; display: block; }
input, select, textarea, button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--white); }

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

.page { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

.shell { max-width: var(--shell); margin: 0 auto; padding-inline: var(--gutter); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--white); padding: 12px 18px; font-size: 13px;
}
.skip-link:focus { left: 0; color: var(--white); }

/* ---------------------------------------------------------------- typography */

.eyebrow {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin: 0 0 16px;
}
.eyebrow--light { color: rgba(255,255,255,0.62); }
.eyebrow--muted { color: var(--muted); letter-spacing: 0.16em; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.015em; margin: 0; }

.h-hero    { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.06; letter-spacing: -0.02em; }
.h-page    { font-size: clamp(32px, 3.8vw, 50px); line-height: 1.06; letter-spacing: -0.02em; }
.h-section { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; }
.h-sub     { font-size: clamp(23px, 2.2vw, 30px); line-height: 1.12; }

.lede { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; margin: 0 0 26px; max-width: 40rem; text-wrap: pretty; }
.prose { font-size: 16px; line-height: 1.68; color: var(--body); margin: 0 0 30px; max-width: 40rem; }
.prose:last-child { margin-bottom: 0; }

.text-link {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  color: var(--ink); border-bottom: 1px solid var(--rule-mid); padding-bottom: 6px;
  display: inline-block; white-space: nowrap;
}
.text-link:hover { border-bottom-color: var(--ink); color: var(--ink); }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-block; border: 1px solid transparent; cursor: pointer;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  padding: 16px 26px; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--dark  { background: var(--ink);   color: var(--white); }
.btn--dark:hover  { background: var(--accent); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--accent); color: var(--white); }
.btn--ghost { border-color: rgba(255,255,255,0.4); color: var(--white); background: transparent; }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.08); color: var(--white); }

/* ------------------------------------------------------------------- header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white); border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  max-width: var(--shell); margin: 0 auto;
  padding: 12px var(--gutter); min-height: 68px;
  display: flex; align-items: center; gap: clamp(16px, 3vw, 48px);
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand__mark { width: 44px; height: 44px; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; gap: 3px; }
.brand__name {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(15px, 1.5vw, 17px); letter-spacing: 0.02em; line-height: 1; white-space: nowrap;
}
.brand__sub {
  font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px); margin-left: auto; }
.nav__link {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
  color: var(--ink); white-space: nowrap; padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav__link:hover { color: var(--ink); border-bottom-color: var(--rule-mid); }
.nav__link[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
.nav__cta { margin-left: clamp(4px, 1.5vw, 12px); padding: 12px 20px; }

/* Phone sits ahead of the CTA: a lot of this trade's enquiries arrive by call. */
.nav__phone { display: flex; flex-direction: column; gap: 3px; color: var(--ink); white-space: nowrap; }
.nav__phone:hover { color: var(--accent); }
.nav__phone-label {
  font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; line-height: 1;
}
.nav__phone-number { font-size: 15px; font-weight: 500; letter-spacing: 0.01em; line-height: 1; }

.nav-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--rule);
  padding: 10px 14px; cursor: pointer;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500;
}

/* --------------------------------------------------------------------- hero */

.hero { position: relative; height: min(76vh, 660px); background: var(--ink); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
.hero__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(10,12,14,0.88) 0%, rgba(10,12,14,0.62) 46%, rgba(10,12,14,0.18) 100%);
}
.hero__inner {
  position: relative; height: 100%; max-width: var(--shell); margin: 0 auto;
  padding-inline: var(--gutter);
  display: flex; flex-direction: column; justify-content: flex-end; pointer-events: none;
}
.hero__body { padding-bottom: clamp(40px, 6vw, 72px); max-width: 44rem; }
.hero__title { color: var(--white); margin: 0 0 24px; text-wrap: balance; }
.hero__lede {
  font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6;
  color: rgba(255,255,255,0.82); margin: 0 0 32px; max-width: 34rem;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; pointer-events: auto; }
.hero .eyebrow { margin-bottom: 22px; }

/* -------------------------------------------------------------------- stats */

.stats { border-bottom: 1px solid var(--rule); }
.stats__grid {
  max-width: var(--shell); margin: 0 auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat { padding: 34px 28px; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--rule); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat:last-child { padding-right: 0; }
.stat__figure {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(24px, 2.4vw, 32px); line-height: 1; letter-spacing: -0.01em;
}
.stat__label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* -------------------------------------------------------------------- bands */

.band { padding-block: clamp(56px, 6vw, 88px); }
.band--tight { padding-block: clamp(48px, 5vw, 76px); }
.band--surface { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.band--ruled { border-bottom: 1px solid var(--rule); }
.band--dark { background: var(--ink); color: rgba(255,255,255,0.66); }

.split {
  display: grid; grid-template-columns: minmax(0, 0.36fr) minmax(0, 0.64fr);
  gap: clamp(32px, 5vw, 72px);
}
.split--even { grid-template-columns: minmax(0, 0.5fr) minmax(0, 0.5fr); align-items: end; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 32px; margin-bottom: clamp(28px, 3vw, 44px); flex-wrap: wrap;
}

/* ----------------------------------------------------------- service rows */

.rows { border-top: 1px solid var(--rule-strong); }
.row {
  display: grid;
  grid-template-columns: minmax(0, 56px) minmax(0, 1.1fr) minmax(0, 1.6fr) minmax(0, 90px);
  gap: clamp(16px, 2.5vw, 40px); align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--rule-strong); color: var(--ink);
}
.row:hover { background: var(--surface-hover); color: var(--ink); }
.row__num { font-size: 11px; letter-spacing: 0.14em; color: var(--muted); font-weight: 500; }
.row__title { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.2; letter-spacing: -0.01em; }
.row__copy { font-size: 15.5px; line-height: 1.6; color: var(--body); margin: 0; }
.row__action {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; text-align: right;
}

/* ------------------------------------------------------------------ sectors */

.sectors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 36px); }
.sector { display: flex; flex-direction: column; }
.sector__media { position: relative; height: clamp(180px, 20vw, 260px); background: var(--surface); overflow: hidden; }
.sector__media img { width: 100%; height: 100%; object-fit: cover; }
.sector__title { font-size: 19px; line-height: 1.25; margin: 22px 0 10px; }
.sector__copy { font-size: 15.5px; line-height: 1.62; color: var(--body); margin: 0; }

/* ------------------------------------------------------------- landlord CTA */

.cta-band {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(28px, 4vw, 56px); flex-wrap: wrap;
  padding-block: clamp(44px, 5vw, 68px);
}
.cta-band__title { color: var(--white); font-size: clamp(23px, 2.3vw, 30px); line-height: 1.16; letter-spacing: -0.01em; margin: 0 0 12px; }
.cta-band__copy { font-size: 16px; line-height: 1.62; color: rgba(255,255,255,0.66); margin: 0; }

/* -------------------------------------------------------------------- areas */

.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 32px); border-top: 1px solid var(--rule); }
.areas span { font-size: 15px; padding: 13px 0; border-bottom: 1px solid var(--rule); color: var(--ink-2); }

/* ------------------------------------------------------------ accreditation */

.accreds {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(32px, 6vw, 80px); flex-wrap: wrap;
  padding-block: clamp(36px, 4vw, 52px);
}
.accreds img { height: clamp(46px, 5vw, 62px); width: auto; }
.accreds__label {
  width: 100%; text-align: center; font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 4px;
}

/* ------------------------------------------------------- services page rows */

.service {
  display: grid; grid-template-columns: minmax(0, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(38px, 4.5vw, 60px); border-bottom: 1px solid var(--rule);
}
.service:last-of-type { border-bottom: 0; }
.service p { font-size: 17px; line-height: 1.66; color: var(--ink-2); margin: 0 0 16px; max-width: 38rem; }
.service p:last-child { margin-bottom: 0; }
.service__tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); margin-top: 28px; }
.service__tags span { font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--body); padding: 14px 8px 0 0; }

/* ---------------------------------------------------------------- directors */

.figure-band { position: relative; height: clamp(240px, 32vw, 420px); background: var(--surface); overflow: hidden; }
.figure-band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }

.directors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.director__media { position: relative; height: clamp(280px, 30vw, 420px); margin-bottom: 24px; background: var(--surface); overflow: hidden; }
.director__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.director__name { font-size: clamp(21px, 2vw, 26px); line-height: 1.16; letter-spacing: -0.01em; margin: 0 0 6px; }
.director__role { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 18px; }
.director__bio { font-size: 16px; line-height: 1.68; color: var(--ink-2); margin: 0; }

/* --------------------------------------------------------------- contact */

.contact {
  display: grid; grid-template-columns: minmax(0, 0.62fr) minmax(0, 0.38fr);
  gap: clamp(36px, 5vw, 80px); align-items: start;
  padding-top: clamp(44px, 5vw, 72px); padding-bottom: clamp(64px, 7vw, 96px);
}

.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.field { display: flex; flex-direction: column; gap: 9px; }
.field--wide { grid-column: 1 / -1; }
.field__label, .fieldset__label {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; color: var(--body);
}
.field input, .field select, .field textarea {
  background: var(--white); border: 1px solid var(--rule-strong);
  padding: 13px 14px; font-size: 16px; outline: none; border-radius: 0;
}
.field textarea { resize: vertical; font-family: inherit; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); }

.fieldset { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: 13px; letter-spacing: 0.04em; padding: 11px 16px; cursor: pointer;
  border: 1px solid var(--rule-strong); background: var(--white); color: var(--ink-2);
}
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* Bot bait. Positioned off-screen rather than display:none, which some bots skip. */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__footer { grid-column: 1 / -1; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 4px; }
.form__note { font-size: 14.5px; color: var(--muted); }
/* Point-of-collection notice — the ICO expects this next to the form itself,
   not only buried on the privacy page. */
.form__privacy {
  grid-column: 1 / -1; font-size: 13.5px; line-height: 1.6;
  color: var(--muted); margin: 2px 0 0; max-width: 34rem;
}
.form__privacy a { color: var(--body); border-bottom: 1px solid var(--rule-mid); }
.form__privacy a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.form__submit { padding: 17px 30px; }

.form-status { border: 1px solid var(--rule); border-top: 2px solid var(--accent); background: var(--surface); padding: clamp(28px, 3.5vw, 44px); }
.form-status h2 { font-size: clamp(21px, 2vw, 27px); line-height: 1.14; letter-spacing: -0.01em; margin: 0 0 12px; }
.form-status p { font-size: 16.5px; line-height: 1.64; color: var(--body); margin: 0 0 22px; }
.form-status button { background: none; border: none; border-bottom: 1px solid var(--rule-mid); color: var(--ink); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 500; padding: 0 0 6px; cursor: pointer; }
.form-status button:hover { border-bottom-color: var(--ink); }
[hidden] { display: none !important; }

.aside { border-top: 1px solid var(--rule); }
.aside__block { padding: 22px 0; border-bottom: 1px solid var(--rule); }
.aside__block h3 { font-family: var(--font-body); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 10px; }
.aside__block p { font-size: 16.5px; line-height: 1.5; margin: 0; }
.aside__block p.small { font-size: 15.5px; line-height: 1.62; color: var(--body); }
.aside__block a { font-size: 16.5px; font-weight: 500; }

/* -------------------------------------------------------------- legal prose */

.legal { max-width: 46rem; }
.legal h2 {
  font-size: clamp(20px, 2vw, 25px); line-height: 1.16;
  margin: clamp(38px, 4vw, 52px) 0 14px;
}
.legal h2:first-child { margin-top: 0; }
.legal h3 {
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  letter-spacing: 0; margin: 26px 0 8px;
}
.legal p { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin: 0 0 16px; }
.legal ul { margin: 0 0 18px; padding-left: 20px; }
.legal li { font-size: 16px; line-height: 1.7; color: var(--ink-2); margin-bottom: 9px; }
.legal a { border-bottom: 1px solid var(--rule-mid); }
.legal a:hover { border-bottom-color: var(--ink); }
.legal strong { font-weight: 500; color: var(--ink); }

.legal__meta {
  font-size: 13px; letter-spacing: 0.04em; color: var(--muted);
  padding-bottom: 26px; border-bottom: 1px solid var(--rule); margin: 0 0 clamp(30px, 3.5vw, 44px);
}

/* Wide tables scroll inside their own box rather than pushing the page out. */
.legal__table-wrap { overflow-x: auto; margin: 0 0 24px; }
.legal table { width: 100%; min-width: 30rem; border-collapse: collapse; }
.legal th, .legal td {
  text-align: left; vertical-align: top;
  padding: 15px 20px 15px 0; border-bottom: 1px solid var(--rule);
  font-size: 15px; line-height: 1.6; color: var(--ink-2);
}
.legal th {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; border-bottom-color: var(--rule-strong);
}
.legal td:last-child, .legal th:last-child { padding-right: 0; }

/* ------------------------------------------------------------------ consent */

.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: var(--white); border-top: 1px solid var(--rule);
  box-shadow: 0 -2px 28px rgba(10, 12, 14, 0.09);
}
.consent__inner {
  max-width: var(--shell); margin: 0 auto;
  padding: 24px var(--gutter);
  display: flex; align-items: center; gap: clamp(20px, 3vw, 56px); flex-wrap: wrap;
}
.consent__body { flex: 1 1 26rem; min-width: 0; }
.consent__eyebrow {
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin: 0 0 8px;
}
.consent__title {
  font-family: var(--font-display); font-weight: 500; font-size: 18px;
  letter-spacing: -0.01em; line-height: 1.2; margin: 0 0 8px;
}
.consent__copy { font-size: 14.5px; line-height: 1.62; color: var(--body); margin: 0; max-width: 46rem; }
.consent__copy a { border-bottom: 1px solid var(--rule-mid); }
.consent__actions { display: flex; gap: 10px; flex-wrap: wrap; flex-shrink: 0; }

.btn--sm    { padding: 13px 20px; }
.btn--quiet { background: none; border-color: var(--rule-strong); color: var(--ink); }
.btn--quiet:hover { border-color: var(--ink); background: var(--surface); color: var(--ink); }

/* Preferences dialog ------------------------------------------------------- */

.consent-panel {
  border: none; padding: 0; max-width: 580px; width: min(580px, calc(100% - 32px));
  background: var(--white); color: var(--ink);
  border-top: 2px solid var(--accent);
  box-shadow: 0 24px 64px rgba(10, 12, 14, 0.28);
}
.consent-panel::backdrop { background: rgba(10, 12, 14, 0.62); }
.consent-panel__head { padding: clamp(26px, 4vw, 34px) clamp(24px, 4vw, 36px) 0; }
.consent-panel__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(21px, 2.4vw, 26px); line-height: 1.14; letter-spacing: -0.015em; margin: 14px 0 10px;
}
.consent-panel__intro { font-size: 15px; line-height: 1.62; color: var(--body); margin: 0; }
.consent-panel__list { padding: 22px clamp(24px, 4vw, 36px) 0; }

.consent-item {
  display: flex; align-items: flex-start; gap: 18px;
  padding: 20px 0; border-top: 1px solid var(--rule);
}
.consent-item:last-child { border-bottom: 1px solid var(--rule); }
.consent-item__text { flex: 1; min-width: 0; }
.consent-item__name { font-size: 15.5px; font-weight: 500; margin: 0 0 6px; }
.consent-item__desc { font-size: 14px; line-height: 1.58; color: var(--body); margin: 0; }
.consent-item__locked {
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; white-space: nowrap; padding-top: 3px;
}

/* Switch: a real checkbox, restyled — keyboard and screen readers still work. */
.switch { position: relative; flex-shrink: 0; width: 46px; height: 26px; }
.switch input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer; z-index: 1;
}
.switch__track {
  position: absolute; inset: 0; background: var(--rule-strong);
  border: 1px solid var(--rule-strong); transition: background-color .15s, border-color .15s;
}
.switch__thumb {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  background: var(--white); transition: transform .15s;
}
.switch input:checked ~ .switch__track { background: var(--accent); border-color: var(--accent); }
.switch input:checked ~ .switch__track .switch__thumb { transform: translateX(20px); }
.switch input:focus-visible ~ .switch__track { outline: 2px solid var(--accent); outline-offset: 3px; }

.consent-panel__foot {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  padding: 24px clamp(24px, 4vw, 36px) clamp(26px, 4vw, 34px);
}
.consent-panel__foot .consent-panel__link { margin-left: auto; font-size: 13.5px; color: var(--body); }
.consent-panel__foot .consent-panel__link:hover { color: var(--ink); }

@media (max-width: 680px) {
  .consent__actions { width: 100%; }
  .consent__actions .btn { flex: 1 1 auto; text-align: center; }
  .consent-panel__foot .consent-panel__link { margin-left: 0; width: 100%; }
}

/* ------------------------------------------------------------------- footer */

.site-footer { background: var(--ink); color: rgba(255,255,255,0.66); }
.site-footer__grid {
  max-width: var(--shell); margin: 0 auto;
  padding: clamp(44px, 5vw, 64px) var(--gutter) 32px;
  display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px);
}
.site-footer__brand-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; color: var(--white); margin: 0 0 4px; }
.site-footer__brand-sub { font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.55); font-weight: 500; margin: 0 0 18px; }
.site-footer__blurb { font-size: 15px; line-height: 1.62; margin: 0; max-width: 24rem; }
.site-footer__col { display: flex; flex-direction: column; gap: 12px; }
.site-footer__col-title { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.55); font-weight: 500; margin-bottom: 4px; }
.site-footer__col a, .site-footer__col span:not(.site-footer__col-title) { font-size: 15px; color: rgba(255,255,255,0.78); }
.site-footer__col a:hover { color: var(--white); }
.site-footer__legal {
  max-width: var(--shell); margin: 0 auto;
  padding: 22px var(--gutter) 40px; border-top: 1px solid rgba(255,255,255,0.14);
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.site-footer__legal span { font-size: 12.5px; letter-spacing: 0.04em; color: rgba(255,255,255,0.55); }
.site-footer__legal a { color: rgba(255,255,255,0.78); border-bottom: 1px solid rgba(255,255,255,0.22); }
.site-footer__legal a:hover { color: var(--white); border-bottom-color: rgba(255,255,255,0.6); }
.site-footer__legal .motto { letter-spacing: 0.12em; text-transform: uppercase; }

/* =========================================================== responsive ==== */

@media (max-width: 1080px) {
  .row { grid-template-columns: minmax(0, 44px) minmax(0, 1fr) minmax(0, 70px); }
  .row__copy { grid-column: 2 / -1; margin-top: 8px; }
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--rule);
    padding: 8px var(--gutter) 20px;
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .nav__cta { margin: 14px 0 0; text-align: center; }
  .nav__phone { flex-direction: row; align-items: baseline; gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .nav__phone-number { font-size: 18px; }
  .nav-toggle { display: block; }
  .site-header { position: relative; }
  .site-header__inner { position: relative; }

  .split, .split--even, .contact, .directors { grid-template-columns: minmax(0, 1fr); }
  .service { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .sectors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { height: min(70vh, 560px); }
  .hero__scrim { background: linear-gradient(180deg, rgba(10,12,14,0.45) 0%, rgba(10,12,14,0.85) 78%); }
}

@media (max-width: 680px) {
  .stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 26px 20px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .sectors { grid-template-columns: minmax(0, 1fr); }
  .areas { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: minmax(0, 36px) minmax(0, 1fr); gap: 12px; }
  .row__action { display: none; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .service__tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  .brand__mark { width: 38px; height: 38px; }
}
