/* subzerolocal.com: one page, system fonts, no dependencies. Tokens first; dark mode redefines them only. */
:root {
  --paper: #f4f3ee;
  --surface: #fbfaf7;
  --ink: #12171a;
  --muted: #55616a;
  --line: #d8d6cc;
  --accent: #0f4c5c;
  --on-accent: #ffffff;
  --on-ink: #f4f3ee;
  --focus: #b4530a;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 10px;
  --control: 48px; /* one height for every button: a comfortable touch target */
  --dock: 72px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1214;
    --surface: #151b1e;
    --ink: #eceae3;
    --muted: #9aa5ac;
    --line: #2a3237;
    --accent: #7cc4d6;
    --on-accent: #0b1417;
    --on-ink: #0e1214;
    --focus: #f0a35c;
  }
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

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

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

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 20;
  padding: 10px 14px; border-radius: var(--radius);
  background: var(--ink); color: var(--on-ink); text-decoration: none;
}
.skip:focus { top: 10px; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--control); padding: 0 22px;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font: 600 16px/1 var(--font); letter-spacing: 0.005em; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--call { background: var(--ink); color: var(--on-ink); }
.btn--book { background: var(--accent); color: var(--on-accent); }
@media (hover: hover) {
  .btn--call:hover { background: color-mix(in srgb, var(--ink) 86%, var(--paper)); }
  .btn--book:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
}

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

.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.brand { display: flex; flex-direction: column; gap: 2px; text-decoration: none; min-width: 0; }
.brand__name { font: 650 17px/1.2 var(--display); letter-spacing: -0.01em; white-space: nowrap; }
.brand__what { font-size: 13px; line-height: 1.2; color: var(--muted); }

.top__actions { display: flex; align-items: center; gap: 20px; }
.phone { font: 600 17px/1 var(--font); font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
@media (hover: hover) { .phone:hover { text-decoration: underline; text-underline-offset: 4px; } }
.top .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }

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

.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(40px, 7vw, 88px); }
.hero__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: center; }

h1 {
  font: 700 clamp(40px, 6.4vw, 76px)/1.02 var(--display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lead { margin-top: 22px; max-width: 34em; font-size: clamp(18px, 1.6vw, 20px); line-height: 1.5; color: var(--muted); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.facts { display: grid; gap: 0; margin-top: 36px; border-top: 1px solid var(--line); max-width: 34em; }
.facts > div { display: flex; gap: 16px; justify-content: space-between; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 600; text-align: right; }

.readout {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(24px, 3.4vw, 40px);
}
.readout__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; }
.readout__row + .readout__row { padding-top: 18px; border-top: 1px solid var(--line); }
.readout__num {
  font: 700 clamp(64px, 9vw, 112px)/0.95 var(--display);
  letter-spacing: -0.05em; font-variant-numeric: tabular-nums; color: var(--accent);
}
.readout__unit { font-size: 0.32em; font-weight: 600; letter-spacing: 0; margin-left: 0.14em; vertical-align: 0.95em; color: var(--muted); }
.readout__label { font-weight: 600; text-align: right; }
.readout figcaption { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; color: var(--muted); }

/* --------------------------------------------------------------- sections */

h2 { font: 700 clamp(24px, 2.6vw, 30px)/1.15 var(--display); letter-spacing: -0.02em; }

.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(40px, 6vw, 72px) 0; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 80px); }

.list { margin-top: 20px; border-top: 1px solid var(--line); }
.list li { padding: 13px 0; border-bottom: 1px solid var(--line); }

.visit { padding: clamp(40px, 6vw, 72px) 0; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: 24px; }
.steps li { border-top: 2px solid var(--ink); padding-top: 16px; }
.steps__n { display: block; font: 700 15px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--accent); }
.steps p { margin-top: 10px; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

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

.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 15px; color: var(--muted); }
.foot__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 64px); }
.foot__name { font-weight: 650; color: var(--ink); }
.foot a { text-decoration: none; font-variant-numeric: tabular-nums; }
@media (hover: hover) { .foot a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.foot__note { max-width: 46em; line-height: 1.5; }

/* ------------------------------------------------------------ phone layout */

.dock { display: none; }

@media (max-width: 820px) {
  .hero__in, .cols, .foot__in { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  body { padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom)); }
  .top__in { min-height: 60px; }
  .top .btn { display: none; } /* the dock below carries the two actions */
  .hero__actions .btn, .visit__actions .btn { flex: 1 1 100%; }
  .facts > div { flex-direction: column; gap: 2px; }
  .facts dd { text-align: left; }

  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    transition: transform 0.22s ease, visibility 0.22s;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 10px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--paper) 90%, transparent);
    -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
    border-top: 1px solid var(--line);
  }
}

/* While the hero's own two buttons are on screen the dock would only repeat them (see the script in index.html). */
@media (max-width: 640px) {
  .dock.is-away { transform: translateY(100%); visibility: hidden; }
}

/* A narrow phone: the name stays on one line; the number is in the hero's button and in the dock. */
@media (max-width: 480px) {
  .top .phone { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dock { transition: none; }
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
