/* =========================================================================
   514FreinsMobile Inc. - demo
   Archetype: la fiche d'inspection. Flush-left Muller-Brockmann scaffold,
   two weights of one family, hairlines not shadows, 2px radius, no gradients.
   ========================================================================= */

/* ---- tokens ------------------------------------------------------------ */
:root {
  /* Müller-Brockmann grid scaffold */
  --cols: 12;
  --gutter: 24px;
  --bl: 8px;                 /* 8px baseline */
  --maxw: 1240px;
  --pad: 20px;

  /* palette (sampled from his brand, RESEARCH.md s.4) */
  --paper: #F4F4F2;
  --ink: #0B0B0C;
  --ink-2: #4A4A4E;          /* secondary text */
  --bay: #141416;
  --bay-edge: #2A2A2E;
  --frein: #A80808;          /* brake path + the only CTA colour */
  --frein-ink: #F6EEEE;
  --diag: #1840B0;           /* diagnostic door + a-domicile tile only */
  --diag-wash: #ECF0FB;
  --rule: #C9C9C4;
  --field: #FFFFFF;
  --field-line: #B7B7B2;

  --radius: 2px;

  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}

/* dark toggle (explicit) */
:root[data-theme="dark"] {
  --paper: #111113;
  --ink: #F4F4F2;
  --ink-2: #B4B4B8;
  --rule: #343438;
  --field: #1B1B1E;
  --field-line: #3A3A3E;
  --diag-wash: #15213B;
  --frein-ink: #FBEAEA;
  color-scheme: dark;
}

/* House rule for end-client pages: LIGHT is the default regardless of the
   system preference. Dark is opt-in via the toggle ([data-theme="dark"]). */

/* ---- reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--frein); outline-offset: 2px; }
/* programmatic focus targets (step headings, success panel) take focus for
   screen readers but should not paint a ring */
[tabindex="-1"]:focus { outline: none; }
:root[data-theme="dark"] :focus-visible,
.bay :focus-visible { outline-color: #FF5A5A; }

/* ---- type -------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.01em;
}
h1.sheet-headline {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.005em;
  font-size: 56px;
}
h2.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.96;
  letter-spacing: 0.01em;
  font-size: 34px;
}
.field-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.lead { font-size: 19px; color: var(--ink-2); max-width: 54ch; }

/* ---- layout ------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
section { padding-block: calc(var(--bl) * 7); }
.rule-top { border-top: 1px solid var(--rule); }

/* ---- nav --------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: var(--maxw); margin-inline: auto;
  padding: 10px var(--pad);
  display: flex; align-items: center; gap: 16px;
}
.brand { display: inline-flex; align-items: center; }
.brand-box {
  background: var(--ink); color: var(--paper);
  padding: 6px 10px 5px; border-radius: var(--radius);
  display: inline-flex; flex-direction: column; line-height: 1;
}
:root[data-theme="dark"] .brand-box { background: #000; color: #F8F8F8; }
.brand-name {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 19px; letter-spacing: 0.02em;
}
.brand-name b { color: #fff; }
.brand-sub {
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #C9C9C4; margin-top: 2px; font-weight: 600;
}
.nav-links { display: none; gap: 22px; margin-left: auto; }
.nav-links a {
  font-weight: 600; font-size: 15px; color: var(--ink-2);
  padding-block: 4px; border-bottom: 2px solid transparent;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.nav-links a:hover { color: var(--ink); border-bottom-color: var(--frein); }
.nav-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-links + .nav-tools { margin-left: 24px; }
.icon-btn {
  width: 38px; height: 38px; border: 1px solid var(--rule);
  border-radius: var(--radius); display: inline-flex; align-items: center;
  justify-content: center; font-weight: 600; font-size: 13px;
  letter-spacing: .04em; color: var(--ink);
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn[aria-pressed] .sun { display: none; }
.lang-btn { width: auto; padding-inline: 10px; }
.lang-btn .on { color: var(--ink); } .lang-btn .off { color: var(--ink-2); }
.btn-phone {
  background: var(--frein); color: var(--frein-ink);
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: .02em; font-size: 16px;
  padding: 9px 14px; border-radius: var(--radius); white-space: nowrap;
  display: inline-flex; align-items: center; min-height: 44px;
  transition: background .15s var(--ease);
}
.btn-phone:hover { background: #8d0606; }
.btn-phone .lbl { display: none; }

/* ---- buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: .02em; font-size: 18px;
  padding: 14px 22px; border-radius: var(--radius);
  border: 1px solid transparent; transition: background .15s var(--ease), border-color .15s var(--ease);
}
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #26262a; }
:root[data-theme="dark"] .btn-ink { background: #F4F4F2; color: #111113; }
:root[data-theme="dark"] .btn-ink:hover { background: #d9d9d6; }
.btn-ink[disabled] { opacity: .4; cursor: not-allowed; }
.btn-line {
  background: transparent; color: var(--ink); border-color: var(--field-line);
}
.btn-line:hover { border-color: var(--ink); }
.btn-wide { width: 100%; }

/* =========================================================================
   HERO — the sheet + the bay
   ========================================================================= */
.hero { padding-top: 0; }
.hero-grid { display: flex; flex-direction: column; }

/* bay (dark 3D panel) */
.bay {
  position: relative;
  background: var(--bay);
  border-bottom: 1px solid var(--bay-edge);
  height: 46vh; min-height: 300px;
  overflow: hidden;
}
.bay-stage { position: absolute; inset: 0; }
.bay-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center; background: var(--bay);
}
.bay canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; touch-action: none; }
.bay-caption {
  position: absolute; left: 0; right: 0; bottom: 10px; text-align: center;
  color: #CFCFD3; font-size: 14px; font-weight: 600; letter-spacing: .01em;
  pointer-events: none; padding-inline: 16px;
}
.bay-hint {
  position: absolute; top: 12px; left: 12px;
  color: #9A9AA0; font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; pointer-events: none;
}
/* wheel pin labels projected from the 3D scene */
.pin {
  position: absolute; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 12px; letter-spacing: .04em; color: #E7E7EA;
  pointer-events: none; white-space: nowrap; opacity: 0;
  transition: opacity .2s var(--ease);
  text-shadow: 0 1px 2px rgba(0,0,0,.9);
}
.pin.faint { color: #7E7E86; font-weight: 600; }
.pin.on { color: #FF4D4D; }
.pin.show { opacity: 1; }
.bay-badge {
  position: absolute; top: 12px; right: 12px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: #9A9AA0; font-weight: 600; pointer-events: none;
}

/* sheet (the wizard) */
.sheet {
  background: var(--paper);
  padding: calc(var(--bl) * 3) var(--pad) calc(var(--bl) * 4);
}
.sheet-head { display: flex; flex-direction: column; gap: 6px; margin-bottom: calc(var(--bl) * 2); }
.sheet-headline { max-width: 12ch; }
.vehicle-recap { font-size: 15px; color: var(--ink-2); font-weight: 600; min-height: 20px; }

/* progress */
.progress { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.progress-track { display: flex; gap: 5px; flex: 1; }
.progress-seg {
  height: 4px; flex: 1; background: var(--rule); border-radius: var(--radius);
  transition: background .3s var(--ease);
}
.progress-seg.done { background: var(--ink); }
.progress-seg.active { background: var(--frein); }
.progress-label { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }

/* steps */
.steps { position: relative; }
.step { display: none; }
.step.active { display: block; animation: stepIn .32s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .step.active { animation: none; } }
.step-num {
  font-family: var(--font-display); font-weight: 800; font-size: 34px;
  line-height: 1; color: var(--ink); margin-right: 10px;
}
.step-title { display: flex; align-items: baseline; gap: 4px; margin-bottom: calc(var(--bl) * 2); }
.step-title h2 {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 30px; line-height: 1; letter-spacing: .01em;
}

/* vehicle fields */
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.col-span { grid-column: 1 / -1; }
.field select, .field input {
  background: var(--field); border: 1px solid var(--field-line);
  border-radius: var(--radius); padding: 12px 12px; font-size: 17px; width: 100%;
  transition: border-color .15s var(--ease);
  appearance: none;
}
.field select:focus, .field input:focus { border-color: var(--ink); }
.field.optional .field-label::after { content: " (facultatif)"; color: var(--field-line); font-weight: 600; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}

/* wheel 2x2 */
.wheel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wheel-btn {
  border: 1px solid var(--field-line); background: var(--field);
  border-radius: var(--radius); padding: 18px 14px; text-align: center;
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 19px; letter-spacing: .02em; color: var(--ink);
  transition: border-color .15s var(--ease), background .12s var(--ease), color .12s var(--ease);
}
.wheel-btn:hover { border-color: var(--ink); }
.wheel-btn[aria-pressed="true"] {
  background: var(--frein); color: var(--frein-ink); border-color: var(--frein);
}
.wheel-all { margin-top: 12px; }
.wheel-all .wheel-btn { width: 100%; font-size: 18px; }

/* doors */
.doors { display: flex; flex-direction: column; gap: 14px; }
.door {
  border: 1px solid var(--field-line); background: var(--field);
  border-left-width: 4px; border-radius: var(--radius);
  padding: 16px 16px; text-align: left; width: 100%;
  transition: border-color .15s var(--ease), background .12s var(--ease);
}
.door:hover { border-color: var(--ink); }
.door .door-t { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 22px; line-height: 1; }
.door .door-d { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.door.red { border-left-color: var(--frein); }
.door.red[aria-pressed="true"] { border-color: var(--frein); background: #fbf1f1; }
:root[data-theme="dark"] .door.red[aria-pressed="true"] { background: #241314; }
.door.blue { border-left-color: var(--diag); }
.door.blue[aria-pressed="true"] { border-color: var(--diag); background: var(--diag-wash); }
.diag-notice {
  display: none; margin-top: 12px; padding: 12px 14px;
  border: 1px solid var(--diag); border-radius: var(--radius);
  background: var(--diag-wash); color: var(--diag); font-size: 14px; line-height: 1.5;
}
:root[data-theme="dark"] .diag-notice { color: #9DB4F0; }
.diag-notice.show { display: block; }

/* chip rows (parts / symptoms) */
.sub-block { display: none; margin-top: 16px; }
.sub-block.show { display: block; animation: stepIn .28s var(--ease); }
.chip-set { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.chip {
  border: 1px solid var(--field-line); background: var(--field);
  border-radius: var(--radius); padding: 9px 14px; font-weight: 600; font-size: 15px;
  transition: border-color .15s var(--ease), background .12s var(--ease), color .12s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
:root[data-theme="dark"] .chip[aria-pressed="true"] { background: #F4F4F2; color: #111113; }

/* location tiles */
.loc-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.loc {
  border: 1px solid var(--field-line); background: var(--field);
  border-radius: var(--radius); padding: 16px; text-align: left; width: 100%;
  border-left-width: 4px; border-left-color: var(--field-line);
  transition: border-color .15s var(--ease), background .12s var(--ease);
}
.loc:hover { border-color: var(--ink); }
.loc .loc-t { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 21px; line-height: 1; }
.loc .loc-d { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.loc.ink[aria-pressed="true"] { border-color: var(--ink); background: #efefec; }
:root[data-theme="dark"] .loc.ink[aria-pressed="true"] { background: #1d1d20; }
.loc.blue { border-left-color: var(--diag); }
.loc.blue[aria-pressed="true"] { border-color: var(--diag); background: var(--diag-wash); }
.postal { display: none; margin-top: 14px; }
.postal.show { display: block; }
.postal-row { display: flex; gap: 10px; align-items: stretch; }
.postal-row input {
  flex: 1; background: var(--field); border: 1px solid var(--field-line);
  border-radius: var(--radius); padding: 12px; font-size: 17px; text-transform: uppercase;
}
.postal-msg { margin-top: 10px; font-size: 14px; font-weight: 600; min-height: 20px; }
.postal-msg.ok { color: #1a7a3a; } .postal-msg.no { color: var(--frein); }
:root[data-theme="dark"] .postal-msg.ok { color: #5bd98a; }
.moment-set { margin-top: 16px; }

/* summary sheet (step 5) */
.summary {
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--field); padding: 16px 16px;
}
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; }
.summary dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; align-self: baseline; padding-top: 3px; }
.summary dd { font-weight: 600; }
.summary .sum-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius); text-transform: uppercase; letter-spacing: .04em; }
.summary .sum-badge.red { background: var(--frein); color: var(--frein-ink); }
.summary .sum-badge.blue { background: var(--diag); color: #EAF0FF; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.pref-set { display: flex; gap: 10px; margin-top: 4px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--frein); flex-shrink: 0; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* sheet nav */
.sheet-nav { display: flex; gap: 12px; margin-top: calc(var(--bl) * 3); }
.sheet-nav .btn-back { flex: 0 0 auto; }
.sheet-nav .btn-next { flex: 1; }

/* success */
.success { display: none; }
.success.show { display: block; animation: stepIn .4s var(--ease); }
.success-mark {
  font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: 1;
  color: var(--frein);
}
.sms-preview {
  margin-top: 18px; border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--field); padding: 16px;
}
.sms-head { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; margin-bottom: 8px; }
.sms-body { font-size: 15px; line-height: 1.6; white-space: pre-line; }

/* =========================================================================
   SERVICES (travaux)
   ========================================================================= */
.services { display: grid; grid-template-columns: 1fr; gap: 2px; margin-top: calc(var(--bl) * 3); }
.svc {
  display: grid; grid-template-columns: 1fr; gap: 4px;
  padding: calc(var(--bl) * 2) 0; border-top: 1px solid var(--rule);
}
.svc:last-child { border-bottom: 1px solid var(--rule); }
.svc dt { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 24px; line-height: 1; }
.svc dd { font-size: 16px; color: var(--ink-2); max-width: 60ch; }
.svc.lead-svc dt { font-size: 30px; }
.svc .svc-tags { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 6px; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.svc .svc-tags span { padding-left: 14px; position: relative; }
.svc .svc-tags span::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--frein); border-radius: var(--radius); }

/* =========================================================================
   ZONE
   ========================================================================= */
.zone-grid { display: grid; grid-template-columns: 1fr; gap: calc(var(--bl) * 3); margin-top: calc(var(--bl) * 3); }
.nap-line { font-size: 17px; line-height: 1.7; }
.nap-line strong { font-weight: 600; }
.hours-table { margin-top: 16px; border-collapse: collapse; width: 100%; max-width: 360px; }
.hours-table th, .hours-table td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.hours-table th { font-weight: 600; color: var(--ink-2); }
.hours-table td { font-weight: 600; text-align: right; }
.zone-map {
  position: relative; background: var(--field);
  border: 1px solid var(--rule); border-radius: var(--radius);
  aspect-ratio: 4 / 3; overflow: hidden;
}
.zone-map svg { width: 100%; height: 100%; }
.zone-list { margin-top: 14px; font-size: 15px; color: var(--ink-2); }
.zone-list b { color: var(--ink); font-weight: 600; }

/* =========================================================================
   VIDEOS
   ========================================================================= */
.video-strip {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 14px; margin-top: calc(var(--bl) * 3);
  scrollbar-width: thin;
}
.vid {
  scroll-snap-align: start; flex: 0 0 auto; width: 190px;
}
.vid-frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius);
  overflow: hidden; background: var(--bay); border: 1px solid var(--rule);
}
.vid-frame img { width: 100%; height: 100%; object-fit: cover; }
.vid-play {
  position: absolute; left: 12px; bottom: 12px; width: 34px; height: 34px;
  border-radius: var(--radius); background: rgba(10,10,12,.72); display: grid; place-items: center;
}
.vid-play::before { content: ""; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.vid-meta { margin-top: 8px; }
.vid-count { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1; }
.vid-label { font-size: 13px; color: var(--ink-2); font-weight: 600; margin-top: 2px; }

/* =========================================================================
   AVIS
   ========================================================================= */
.rating-line {
  display: flex; align-items: baseline; gap: 12px; margin-top: calc(var(--bl) * 2);
  flex-wrap: wrap;
}
.rating-num { font-family: var(--font-display); font-weight: 800; font-size: 56px; line-height: 1; }
.rating-stars { color: var(--frein); font-size: 22px; letter-spacing: 2px; }
.rating-meta { font-size: 15px; color: var(--ink-2); font-weight: 600; }
.review-themes { margin-top: calc(var(--bl) * 3); display: grid; grid-template-columns: 1fr; gap: 0; }
.rev {
  padding: calc(var(--bl) * 2) 0; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: 1fr; gap: 4px;
}
.rev:last-child { border-bottom: 1px solid var(--rule); }
.rev q { font-size: 18px; font-style: normal; line-height: 1.5; }
.rev q::before { content: "\00AB\00A0"; } .rev q::after { content: "\00A0\00BB"; }
.rev .rev-theme { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.rev-note { margin-top: 16px; font-size: 13px; color: var(--ink-2); }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq { margin-top: calc(var(--bl) * 3); }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: calc(var(--bl) * 2) 40px calc(var(--bl) * 2) 0;
  position: relative; font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  font-size: 21px; line-height: 1.1; letter-spacing: .01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: calc(var(--bl) * 2 + 4px);
  width: 14px; height: 14px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .faq-a { padding: 0 0 calc(var(--bl) * 2); font-size: 16px; color: var(--ink-2); max-width: 66ch; }
.faq .faq-a a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-foot { background: var(--ink); color: #D6D6D8; padding-block: calc(var(--bl) * 6); margin-top: calc(var(--bl) * 4); }
:root[data-theme="dark"] .site-foot { background: #000; }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: calc(var(--bl) * 4); }
.foot-col h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 16px; letter-spacing: .06em; color: #fff; margin-bottom: 10px; }
.foot-col p, .foot-col a { font-size: 15px; line-height: 1.7; color: #B8B8BC; }
.foot-col a:hover { color: #fff; }
.foot-social a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 20px; font-weight: 600; }
.foot-bottom { border-top: 1px solid #2A2A2E; margin-top: calc(var(--bl) * 4); padding-top: calc(var(--bl) * 2); display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; font-size: 13px; color: #8A8A90; }
.foot-bottom a { color: #8A8A90; text-decoration: underline; text-underline-offset: 2px; }
.foot-bottom a:hover { color: #fff; }
.demo-note { font-size: 12px; color: #5C5C61; max-width: 60ch; margin-top: 8px; }
.site-foot .demo-note { color: #8E8E94; }

/* skip link */
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 100; border-radius: var(--radius); }
.skip:focus { left: 10px; top: 10px; }

/* visually hidden */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* =========================================================================
   RESPONSIVE  (mobile-first above; widen here)
   ========================================================================= */
/* compact nav for narrow phones so the tool cluster never overflows 375px,
   while keeping 44px tap targets */
@media (max-width: 600px) {
  .nav-inner { padding: 7px 14px; gap: 8px; }
  .brand-box { padding: 5px 9px 4px; }
  .brand-name { font-size: 15px; }
  .brand-sub { font-size: 7.5px; letter-spacing: .1em; }
  .nav-tools { gap: 7px; }
  .icon-btn { width: 40px; height: 44px; font-size: 12px; }
  .lang-btn { width: auto; padding-inline: 8px; }
  .btn-phone { font-size: 14px; padding: 10px 11px; }
}
@media (max-width: 360px) {
  .brand-name { font-size: 13px; }
  .btn-phone { font-size: 13px; padding: 10px 9px; }
  .nav-tools { gap: 5px; }
}

@media (min-width: 620px) {
  :root { --pad: 32px; }
  .loc-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .svc { grid-template-columns: 240px 1fr; align-items: start; gap: 24px; }
  .svc.lead-svc { grid-template-columns: 240px 1fr; }
  h1.sheet-headline { font-size: 72px; }
}

@media (min-width: 980px) {
  :root { --pad: 40px; }
  .nav-links { display: flex; }
  .btn-phone .lbl { display: inline; }
  .hero-grid {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    min-height: calc(100vh - 60px); align-items: stretch;
  }
  .bay { height: auto; min-height: 0; order: 2; border-bottom: none; border-left: 1px solid var(--bay-edge); }
  .sheet { order: 1; padding: calc(var(--bl) * 5) calc(var(--bl) * 5) calc(var(--bl) * 5); display: flex; flex-direction: column; justify-content: center; }
  h1.sheet-headline { font-size: 96px; }
  .fields { grid-template-columns: 1fr 1fr 1fr; }
  .zone-grid { grid-template-columns: 1fr 1fr; gap: calc(var(--bl) * 5); align-items: start; }
  .review-themes { grid-template-columns: 1fr; }
  .vid { width: 220px; }
  section { padding-block: calc(var(--bl) * 10); }
}

@media (min-width: 1200px) {
  .review-themes { gap: 0; }
}

/* reduced-motion: kill all transitions/animation */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
