/* ==========================================================================
   N&N Comfort BV: stylesheet
   Concept: a thermostat. On wide screens the site hangs beside a dark rail
   whose half-dial carries the sections as temperature marks; the section in
   view glows amber. Warm red and cool blue are the two pipes of the system.
   Order: tokens, fonts, base, components, header + dial, sections, legal
   pages, footer, consent, utilities, motion, print.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --ink: #1e1b26;
  --ink-2: #2a2634;
  --ink-3: #39344a;
  --paper: #f6f3ee;
  --paper-2: #ece6dc;
  --paper-3: #e0d7c9;
  --line: #cfc5b5;
  --text: #1e1b26;
  --muted: #565061;
  --on-ink: #f4f0e9;
  --on-ink-muted: #bdb5ca;
  --heat: #b3372a;
  --heat-soft: #f3d9d3;
  --cool: #1d5597;
  --cool-soft: #d7e3f2;
  --glow: #f2a43a;
  --comfort: #23705f;
  --white: #fffdf9;

  --font-display: 'Lexend Giga', 'Trebuchet MS', sans-serif;
  --font-body: 'Afacad Flux', 'Segoe UI', sans-serif;

  --step--1: clamp(0.94rem, 0.9rem + 0.15vw, 1rem);
  --step-0: clamp(1.1rem, 1.05rem + 0.2vw, 1.2rem);
  --step-1: clamp(1.25rem, 1.15rem + 0.4vw, 1.45rem);
  --step-3: clamp(1.65rem, 1.2rem + 1.9vw, 2.75rem);

  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: clamp(2rem, 1.5rem + 2vw, 3rem);
  --space-5: clamp(3.5rem, 2.5rem + 4vw, 6.5rem);

  --rail: 340px;
  --bar: 64px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgb(30 27 38 / 0.08), 0 10px 30px -12px rgb(30 27 38 / 0.25);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Fonts (self-hosted, latin subset, variable weight) ---------- */
@font-face {
  font-family: 'Lexend Giga';
  src: url('../fonts/lexend-giga-latin-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Afacad Flux';
  src: url('../fonts/afacad-flux-latin-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar) + 1rem);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
}

body.nav-open { overflow: hidden; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

p, li, dd { text-wrap: pretty; }

p { margin: 0 0 1em; }

a { color: var(--cool); text-underline-offset: 0.18em; }
a:hover { color: var(--heat); }

:focus-visible {
  outline: 3px solid var(--glow);
  outline-offset: 3px;
  border-radius: 4px;
}

[tabindex="-1"]:focus { outline: none; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--glow);
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Components ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.3rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: 600 var(--step-0)/1.1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn-heat { background: var(--heat); color: var(--white); }
.btn-heat:hover { background: #962c21; color: var(--white); }

.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }

.section-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 var(--space-2);
  font: 600 var(--step--1)/1 var(--font-body);
  color: var(--muted);
}
/* A small dial reading the section's temperature mark, echoing the rail. */
.section-mark b {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 2px solid var(--ink);
  font: 600 0.8rem/1 var(--font-display);
  color: var(--ink);
  /* Only an outer ring fills with heat, so the reading itself stays on plain paper. */
  background:
    radial-gradient(circle, var(--paper) 0 62%, transparent 63%),
    conic-gradient(from 210deg, var(--heat) 0 var(--fill, 50%), var(--paper-3) 0);
}

.lede { font-size: var(--step-1); color: var(--muted); max-width: 46ch; }

/* ---------- Header: rail with the thermostat dial ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: var(--bar);
  padding: 0 clamp(0.75rem, 3vw, 1.5rem);
  background: var(--ink);
  color: var(--on-ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  margin-right: auto;
  color: var(--on-ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand:hover { color: var(--glow); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { font: 600 1rem/1 var(--font-display); letter-spacing: -0.03em; }
.brand-name small {
  display: block;
  margin-top: 0.3rem;
  font: 500 0.78rem/1 var(--font-body);
  letter-spacing: 0.02em;
  color: var(--on-ink-muted);
}

.header-call {
  min-height: 44px;
  padding: 0.55rem 1rem;
  font-size: 1rem;
  background: var(--glow);
  color: var(--ink);
}
.header-call:hover { background: var(--white); color: var(--ink); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 2px solid var(--on-ink-muted);
  border-radius: 999px;
  background: transparent;
  color: var(--on-ink);
  font: 600 1rem/1 var(--font-body);
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--glow); color: var(--glow); }
.nav-toggle-knob {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  position: relative;
}
.nav-toggle-knob::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 6px;
  width: 2px;
  height: 6px;
  background: currentColor;
  transform-origin: 1px 6px;
  transition: transform 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-knob::after { transform: rotate(120deg); }

.rail-foot { display: none; }

/* The dial: a half-disc whose centre sits on the left edge; marks follow its rim. */
.dial {
  --r: 165px;
  --cx: 14px;
  position: fixed;
  inset: var(--bar) 0 0 0;
  z-index: 39;
  display: none;
  align-items: center;
  padding: 1rem 0.75rem;
  background: var(--ink);
  overflow-y: auto;
}
.dial.is-open { display: flex; }

.dial-body {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 400px;
  margin: 0 auto;
}

.dial-face {
  position: absolute;
  left: calc(var(--cx) - var(--r));
  top: calc(50% - var(--r));
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--ink-2) 0 calc(var(--r) - 30px), transparent calc(var(--r) - 29px)),
    repeating-conic-gradient(from 0deg, #4a445c 0 1deg, transparent 1deg 6deg);
  -webkit-mask: radial-gradient(circle, #000 calc(var(--r) - 12px), transparent calc(var(--r) - 11px));
  mask: radial-gradient(circle, #000 calc(var(--r) - 12px), transparent calc(var(--r) - 11px));
  clip-path: inset(0 0 0 50%);
}

.dial-readout {
  position: absolute;
  left: calc(var(--cx) + 12px);
  top: 50%;
  transform: translateY(-50%);
  color: var(--on-ink);
  font: 600 2.2rem/1 var(--font-display);
  letter-spacing: -0.04em;
}
.dial-readout small {
  display: block;
  margin-top: 0.45rem;
  font: 500 0.82rem/1 var(--font-body);
  letter-spacing: 0.04em;
  color: var(--on-ink-muted);
}

/* The glowing pointer travels along the rim to the active mark. */
.dial-pointer {
  position: absolute;
  left: var(--cx);
  top: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--needle, -90deg));
  transition: transform 0.6s var(--ease);
}
.dial-pointer::before {
  content: '';
  position: absolute;
  left: calc(var(--r) - 30px);
  top: -5px;
  width: 20px;
  height: 10px;
  border-radius: 5px;
  background: var(--glow);
  box-shadow: 0 0 14px 3px rgb(242 164 58 / 0.55);
}

.dial-marks { list-style: none; margin: 0; padding: 0; }
.dial-marks li {
  position: absolute;
  left: calc(var(--cx) + var(--r) * cos(var(--a)));
  top: calc(50% + var(--r) * sin(var(--a)));
  transform: translate(-11px, -50%);
}
.dial-marks a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding-right: 0.5rem;
  color: var(--on-ink);
  text-decoration: none;
  white-space: nowrap;
  font-size: 1.12rem;
  font-weight: 500;
}
.dial-marks a::before {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--on-ink-muted);
  background: var(--ink);
  transition: background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.mark-temp {
  font: 600 0.8rem/1 var(--font-display);
  color: var(--on-ink-muted);
  min-width: 2.4em;
}
.dial-marks a:hover { color: var(--glow); }
.dial-marks a:hover::before { border-color: var(--glow); }
.dial-marks a[aria-current]::before {
  background: var(--glow);
  border-color: var(--glow);
  box-shadow: 0 0 0 5px rgb(242 164 58 / 0.18), 0 0 18px 4px rgb(242 164 58 / 0.5);
}
.dial-marks a[aria-current] .mark-temp { color: var(--glow); }

@media (min-width: 1100px) {
  body { padding-left: var(--rail); }

  html { scroll-padding-top: 1rem; }

  .site-header {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail);
    height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.75rem 0 1.5rem;
    overflow: hidden;
  }

  .brand { margin: 0 1.75rem; }
  .brand svg { width: 46px; height: 46px; }
  .brand-name { font-size: 1.15rem; }

  .nav-toggle, .header-call { display: none; }

  .dial {
    position: relative;
    inset: auto;
    display: flex;
    flex: 1;
    padding: 0;
    overflow: visible;
  }

  .rail-foot {
    display: block;
    margin: 0 1.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ink-3);
    font-size: 1rem;
    color: var(--on-ink-muted);
  }
  .rail-foot a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--on-ink);
    font: 600 1.15rem/1 var(--font-display);
    letter-spacing: -0.03em;
    text-decoration: none;
  }
  .rail-foot a:hover { color: var(--glow); }
  .rail-foot p { margin: 0; }
}

@media (max-width: 420px) {
  .brand-name small { display: none; }
  .brand-name { font-size: 0.9rem; }
  .brand svg { width: 32px; height: 32px; }
  .header-call { padding: 0.55rem 0.8rem; }
  .nav-toggle { padding: 0 0.7rem; }
}

@media (max-width: 400px) {
  .site-header { gap: 0.5rem; }
  .nav-toggle-knob { display: none; }
  .header-call { font-size: 0.95rem; padding: 0.5rem 0.75rem; }
}

/* Below 380px only the round mark stays visible; the name remains for screen readers.
   The dial drops its degree labels so the section names still fit beside the rim. */
@media (max-width: 379px) {
  .mark-temp { display: none; }

  .brand-name {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* ---------- Layout shell ---------- */
.wrap {
  width: min(100% - 2 * clamp(1rem, 4vw, 3.5rem), 1120px);
  margin-inline: auto;
}

.section { padding-block: var(--space-5); }
.section + .section { border-top: 1px solid var(--line); }

.section-head { max-width: 760px; margin-bottom: var(--space-4); }
.section-head h2 { font-size: var(--step-3); margin-bottom: var(--space-2); }
.section-head p { color: var(--muted); }

/* ---------- Hero: the utility room ---------- */
.hero { padding-block: clamp(2rem, 1rem + 4vw, 4.5rem) var(--space-5); }

.hero h1 {
  font-size: clamp(1.75rem, 1rem + 2.9vw, 3.3rem);
  max-width: 20ch;
  margin-bottom: var(--space-3);
}
.hero h1 em { font-style: normal; color: var(--heat); }
.hero h1 em + em { color: var(--cool); }

.hero-intro {
  display: grid;
  gap: var(--space-3);
  align-items: end;
  margin-bottom: var(--space-4);
}
.hero-intro .lede { margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.room {
  display: grid;
  gap: var(--space-3);
  align-items: start;
}
.room-art {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}
.room-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
  counter-reset: legend;
}
.room-legend li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: var(--step--1);
  color: var(--muted);
}
.room-legend li::before {
  counter-increment: legend;
  content: counter(legend);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--on-ink);
  font: 600 0.8rem/1 var(--font-display);
}
.room-legend strong { display: block; color: var(--text); font-size: var(--step-0); }

@media (min-width: 760px) {
  .hero-intro { grid-template-columns: 1.3fr 1fr; }
  .hero-actions { justify-content: flex-end; }
}

@media (min-width: 1280px) {
  .room { grid-template-columns: 1fr 250px; }
}

@media (min-width: 760px) and (max-width: 1279px) {
  .room-legend { grid-template-columns: 1fr 1fr; }
}

/* ---------- Services: one supply line, seven branches ---------- */
.branches {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.6rem;
  position: relative;
}
/* Two pipes, supply (red) and return (blue), run down the whole list. */
.branches::before,
.branches::after {
  content: '';
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  width: 6px;
  border-radius: 3px;
}
.branches::before { left: 0.35rem; background: var(--heat); }
.branches::after { left: 1.15rem; background: var(--cool); }

.branch {
  position: relative;
  display: grid;
  gap: 0.4rem 2rem;
  padding: var(--space-3) 0 var(--space-3) 1.6rem;
  border-bottom: 1px dashed var(--line);
}
.branch:last-child { border-bottom: 0; }
.branch::before {
  content: '';
  position: absolute;
  left: -0.1rem;
  top: calc(var(--space-3) + 0.55rem);
  width: 0.9rem;
  height: 6px;
  border-radius: 3px;
  background: var(--ink);
}
.branch::after {
  content: '';
  position: absolute;
  left: 0.55rem;
  top: calc(var(--space-3) + 0.15rem);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--paper);
}
.branch h3 { font-size: var(--step-1); }
.branch p { margin: 0; }
.branch-jobs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.1rem;
  margin: 0.3rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: var(--step--1);
}
.branch-jobs li::before { content: '– '; color: var(--heat); }
.branch-note {
  margin-top: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-left: 3px solid var(--cool);
  background: var(--cool-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--step--1);
}

@media (min-width: 900px) {
  .branch { grid-template-columns: 15rem 1fr; }
  .branch h3 { grid-row: span 3; }
}

/* ---------- Process: the heating curve ---------- */
.curve { display: grid; gap: var(--space-3); }
.curve-chart {
  margin: 0;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--ink);
}
.curve-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
  counter-reset: step;
}
.curve-steps li {
  position: relative;
  padding-top: 2.8rem;
}
.curve-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 3px solid var(--step-color, var(--heat));
  font: 600 0.85rem/1 var(--font-display);
}
.curve-steps h3 { font-size: var(--step-0); margin-bottom: 0.4rem; letter-spacing: -0.03em; }
.curve-steps p { margin: 0; font-size: var(--step--1); color: var(--muted); }
.curve-steps .when {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--text);
}

@media (min-width: 700px) { .curve-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1240px) { .curve-steps { grid-template-columns: repeat(6, 1fr); gap: 1.25rem; } }

/* ---------- Maintenance: calendar strip + rules ---------- */
.calendar {
  margin: 0 0 var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}
.calendar-months {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
  font: 600 0.72rem/1 var(--font-display);
  text-align: center;
  color: var(--muted);
}
.calendar-months li { padding: 0.8rem 0; }
.calendar-rows { margin: 0; padding: 0.5rem 0; list-style: none; }
.calendar-rows li {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  padding: 0.45rem 0;
}
.calendar-bar {
  grid-column: var(--from) / var(--to);
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--bar-bg, var(--heat-soft));
  border: 2px solid var(--bar-line, var(--heat));
  font-size: var(--step--1);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calendar-bar.is-cool { --bar-bg: var(--cool-soft); --bar-line: var(--cool); }
.calendar-bar.is-air { --bar-bg: #d9ece6; --bar-line: var(--comfort); }

/* Below 760px the strip becomes a plain list: twelve columns are too narrow to read. */
@media (max-width: 759px) {
  .calendar-months { display: none; }
  .calendar-rows li { display: block; padding: 0.4rem 0.75rem; }
  .calendar-bar { display: block; white-space: normal; border-radius: var(--radius-sm); }
}

.rules {
  display: grid;
  gap: var(--space-3);
}
.rule {
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--paper-2);
}
.rule h3 { font-size: var(--step-0); margin-bottom: 0.6rem; letter-spacing: -0.03em; }
.rule p:last-child, .rule ul:last-child { margin-bottom: 0; }
.rule ul { padding-left: 1.1rem; }

.prices {
  margin: 0;
  display: grid;
  gap: 0;
}
.prices div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
}
.prices dt { color: var(--muted); }
.prices dd { margin: 0; font-weight: 600; white-space: nowrap; }
.fine { font-size: var(--step--1); color: var(--muted); }

@media (min-width: 640px) { .rules { grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); } }

/* ---------- Troubleshooting guide (FAQ as a diagnosis table) ---------- */
.guide { margin: 0; display: grid; gap: var(--space-2); }
.guide-row {
  display: grid;
  gap: 0.75rem 1.5rem;
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}
.guide-row h3 {
  font-size: var(--step-0);
  letter-spacing: -0.03em;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.guide-row h3 svg { flex: none; width: 28px; height: 28px; }
.guide-row dl { margin: 0; display: grid; gap: 0.75rem 1.5rem; }
.guide-row dt {
  font: 600 0.72rem/1.2 var(--font-display);
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.guide-row dd { margin: 0; }
.guide-row .is-call dt { color: var(--heat); }

@media (min-width: 900px) {
  .guide-row { grid-template-columns: 0.9fr 2fr; }
  .guide-row dl { grid-template-columns: 1fr 1fr; }
}

.alert {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--heat);
  color: var(--white);
}
.alert p { margin: 0; }
.alert svg { flex: none; }
.alert strong { font-family: var(--font-display); letter-spacing: -0.03em; }

/* ---------- Premiums and rules: rating plates ---------- */
.plates { display: grid; gap: var(--space-3); }
.plate {
  position: relative;
  padding: var(--space-3) var(--space-3) var(--space-3);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--white);
}
/* Four rivets, like the type plate on a boiler. */
.plate::before {
  content: '';
  position: absolute;
  inset: 8px;
  pointer-events: none;
  background:
    radial-gradient(circle, var(--line) 3px, transparent 3.5px) left top / 12px 12px no-repeat,
    radial-gradient(circle, var(--line) 3px, transparent 3.5px) right top / 12px 12px no-repeat,
    radial-gradient(circle, var(--line) 3px, transparent 3.5px) left bottom / 12px 12px no-repeat,
    radial-gradient(circle, var(--line) 3px, transparent 3.5px) right bottom / 12px 12px no-repeat;
}
.plate h3 {
  font-size: var(--step-0);
  letter-spacing: -0.03em;
  padding-bottom: 0.6rem;
  margin-bottom: 0.8rem;
  border-bottom: 2px solid var(--ink);
}
.plate p:last-child { margin-bottom: 0; }
.plate-tag {
  display: inline-block;
  margin-bottom: 0.6rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: var(--step--1);
  font-weight: 600;
  background: var(--cool-soft);
  color: var(--cool);
}

@media (min-width: 760px) { .plates { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Contact: area, hours and the comfort request ---------- */
.contact-grid { display: grid; gap: var(--space-4); }

.area h3, .hours h3 { font-size: var(--step-0); letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 var(--space-3);
  padding: 0;
  list-style: none;
}
.area-list li {
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: var(--step--1);
}
.area-list li.is-home { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.hours dl { margin: 0 0 var(--space-3); }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px dashed var(--line); }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-weight: 600; }
.direct a { font: 600 var(--step-1)/1.3 var(--font-display); letter-spacing: -0.03em; }
.direct p { margin-bottom: 0.4rem; }

@media (min-width: 1000px) { .contact-grid { grid-template-columns: 0.8fr 1.4fr; } }

/* The request form reads like a thermostat programming card. */
.request {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-radius: var(--radius);
  background: var(--white);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--paper-3);
}
.request h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.request > p { color: var(--muted); font-size: var(--step--1); }

.field { display: grid; gap: 0.35rem; margin-bottom: var(--space-3); }
.field-row { display: grid; gap: 0 var(--space-3); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field label, .field legend {
  font-weight: 600;
  font-size: var(--step-0);
}
.req { color: var(--heat); }
.opt { font-weight: 400; color: var(--muted); font-size: var(--step--1); }
.hint { font-size: var(--step--1); color: var(--muted); margin: 0; }

input, select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.85rem;
  border: 2px solid #8a8297;
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--text);
  font: 400 var(--step-0)/1.3 var(--font-body);
}
textarea { min-height: 8rem; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--cool); outline-offset: 1px; }
[aria-invalid="true"] { border-color: var(--heat); background: #fbefec; }

.choices {
  border: 0;
  margin: 0 0 var(--space-3);
  padding: 0;
  min-width: 0;
}
.choices legend { padding: 0; margin-bottom: 0.6rem; }
.choice-grid { display: grid; gap: 0.5rem; }
@media (min-width: 560px) { .choice-grid { grid-template-columns: 1fr 1fr; } }
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.55rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  cursor: pointer;
}
.choice:hover { border-color: var(--ink); }
.choice input {
  width: 22px;
  min-height: 22px;
  height: 22px;
  margin: 0;
  accent-color: var(--heat);
  flex: none;
}
.choice:has(input:checked) { border-color: var(--heat); background: var(--heat-soft); }
.choice:has(input:focus-visible) { outline: 3px solid var(--glow); outline-offset: 2px; }
.choices[aria-invalid="true"] .choice { border-color: var(--heat); }

.error { margin: 0; min-height: 0; color: var(--heat); font-weight: 600; font-size: var(--step--1); }
.error:empty { display: none; }

.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: grid; gap: var(--space-2); align-items: center; }
.form-foot .fine { margin: 0; }
@media (min-width: 640px) { .form-foot { grid-template-columns: auto 1fr; } }

.form-status {
  margin-top: var(--space-2);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
}
.form-status:empty { display: none; }
.form-status.is-success { background: #dcefe9; color: #12493d; }
.form-status.is-error { background: #fbe3df; color: #7c2117; }

/* ---------- Legal pages ---------- */
.doc { padding-block: var(--space-4) var(--space-5); }
.doc-head { max-width: 760px; margin-bottom: var(--space-4); }
.doc-head h1 { font-size: var(--step-3); margin-bottom: var(--space-2); }
.doc-head p { color: var(--muted); }
.doc-body { max-width: 760px; }
.doc-body h2 {
  font-size: var(--step-1);
  margin: var(--space-4) 0 var(--space-2);
  padding-top: var(--space-2);
  border-top: 2px solid var(--ink);
}
.doc-body h3 { font-size: var(--step-0); margin: var(--space-3) 0 0.5rem; letter-spacing: -0.03em; }
.doc-body ul, .doc-body ol { padding-left: 1.25rem; }
.doc-body li { margin-bottom: 0.4rem; }
.doc-body address { font-style: normal; }

.facts { margin: 0 0 var(--space-3); }
.facts div {
  display: grid;
  gap: 0.15rem 1.5rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--line);
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; }
@media (min-width: 640px) { .facts div { grid-template-columns: 14rem 1fr; } }

.table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-2) 0 var(--space-3);
  font-size: var(--step--1);
}
.table th, .table td {
  text-align: left;
  vertical-align: top;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
}
.table thead th { background: var(--ink); color: var(--on-ink); font-weight: 600; }
.table code { font-size: 0.95em; overflow-wrap: anywhere; }

/* Tables stack into label/value blocks on narrow screens: nothing scrolls sideways. */
@media (max-width: 719px) {
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 0.5rem 0; border-bottom: 2px solid var(--ink); }
  .table td { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.75rem; border-bottom: 0; padding: 0.35rem 0; }
  .table td::before { content: attr(data-label); font-weight: 600; color: var(--muted); }
}

.model-form {
  padding: var(--space-3);
  border: 2px dashed var(--ink);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.model-form p:last-child { margin-bottom: 0; }

.not-found { min-height: 70vh; display: grid; align-content: center; }
.not-found h1 { font-size: var(--step-3); margin-bottom: var(--space-2); }
.not-found .hero-actions { justify-content: flex-start; margin-top: var(--space-3); }
.not-found-gauge { width: 140px; margin-bottom: var(--space-3); }

/* ---------- Footer: the company's type plate ---------- */
.site-footer {
  padding-block: var(--space-4);
  background: var(--paper-2);
  border-top: 1px solid var(--line);
}
.typeplate {
  position: relative;
  display: grid;
  gap: var(--space-3);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--paper);
}
.typeplate::before {
  content: '';
  position: absolute;
  inset: 8px;
  pointer-events: none;
  background:
    radial-gradient(circle, var(--line) 3px, transparent 3.5px) left top / 12px 12px no-repeat,
    radial-gradient(circle, var(--line) 3px, transparent 3.5px) right top / 12px 12px no-repeat,
    radial-gradient(circle, var(--line) 3px, transparent 3.5px) left bottom / 12px 12px no-repeat,
    radial-gradient(circle, var(--line) 3px, transparent 3.5px) right bottom / 12px 12px no-repeat;
}
.typeplate-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 2px solid var(--ink);
}
.typeplate-head p { margin: 0; font: 600 var(--step-1)/1.2 var(--font-display); letter-spacing: -0.03em; }
.typeplate-head span { font-size: var(--step--1); color: var(--muted); }
.typeplate dl {
  display: grid;
  gap: 0.75rem 1.5rem;
  margin: 0;
  font-size: var(--step--1);
}
.typeplate dt { font: 600 0.68rem/1.2 var(--font-display); color: var(--muted); margin-bottom: 0.2rem; }
.typeplate dd { margin: 0; }
.typeplate dd a { color: var(--text); }
@media (min-width: 640px) { .typeplate dl { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .typeplate dl { grid-template-columns: repeat(4, 1fr); } }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
}
.footer-links a, .footer-links button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
}
.footer-links button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.footer-links a:hover, .footer-links button:hover { color: var(--heat); }

/* ---------- Consent banner and dialog ---------- */
.consent-banner {
  position: fixed;
  right: clamp(0.75rem, 2vw, 1.5rem);
  bottom: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 60;
  width: min(100% - 1.5rem, 30rem);
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-ink);
  box-shadow: 0 20px 50px -15px rgb(0 0 0 / 0.5);
  border-top: 5px solid var(--glow);
}
.consent-banner a, .consent-dialog a { color: var(--glow); }
.consent-banner a:hover, .consent-dialog a:hover { color: var(--white); }
.consent-title { font-size: var(--step-0); margin-bottom: 0.6rem; letter-spacing: -0.03em; }
.consent-text { font-size: var(--step--1); color: var(--on-ink-muted); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.consent-btn {
  flex: 1 1 8rem;
  min-height: 46px;
  padding: 0.55rem 1rem;
  border: 2px solid var(--on-ink);
  border-radius: 999px;
  background: transparent;
  color: var(--on-ink);
  font: 600 1rem/1.1 var(--font-body);
  cursor: pointer;
}
.consent-btn:hover { background: var(--on-ink); color: var(--ink); }
.consent-btn-save { background: var(--glow); border-color: var(--glow); color: var(--ink); }
.consent-btn-save:hover { background: var(--white); border-color: var(--white); }
.consent-link {
  min-height: 44px;
  padding: 0 0.25rem;
  border: 0;
  background: none;
  color: var(--on-ink);
  font: 500 1rem/1 var(--font-body);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}
.consent-link:hover { color: var(--glow); }

.consent-dialog {
  width: min(100% - 1.5rem, 36rem);
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-ink);
}
.consent-dialog::backdrop { background: rgb(30 27 38 / 0.6); }
.consent-dialog-inner { padding: 1.5rem; }
.consent-categories { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.consent-category { padding: 0.9rem 0; border-top: 1px solid var(--ink-3); }
.consent-category h3 { font-size: 0.95rem; letter-spacing: -0.03em; }
.consent-category p { margin: 0.4rem 0 0; font-size: var(--step--1); color: var(--on-ink-muted); }
.consent-category-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.consent-always { font-size: var(--step--1); color: var(--glow); font-weight: 600; }
.consent-switch { position: relative; display: inline-flex; width: 56px; height: 44px; align-items: center; flex: none; cursor: pointer; }
.consent-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.consent-switch-track {
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: var(--ink-3);
  border: 2px solid var(--on-ink-muted);
  position: relative;
  transition: background-color 0.2s;
}
.consent-switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--on-ink);
  transition: transform 0.2s var(--ease);
}
.consent-switch input:checked + .consent-switch-track { background: var(--glow); border-color: var(--glow); }
.consent-switch input:checked + .consent-switch-track::after { transform: translateX(24px); background: var(--ink); }
.consent-switch input:focus-visible + .consent-switch-track { outline: 3px solid var(--glow); outline-offset: 3px; }

/* ---------- Motion ---------- */
.room-art .flow { stroke-dasharray: 6 14; animation: flow 2.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -40; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Print ---------- */
@media print {
  body { padding-left: 0; background: #fff; }
  .site-header, .consent-banner, .consent-dialog, .skip-link, .footer-links button { display: none; }
  .section { padding-block: 1.5rem; }
}
