/* 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(32px, 6vw, 80px) 0 clamp(36px, 6vw, 72px); }
.hero__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

h1 {
  font: 700 clamp(40px, 4.5vw, 62px)/1.04 var(--display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.lead { margin-top: 22px; max-width: 32em; 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; }

/* The photo, with the two numbers a Sub-Zero holds laid over its lower corner. */
.hero__media { position: relative; padding-bottom: 56px; }
.hero__photo {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 20px; background: var(--line);
}
.readout {
  position: absolute; left: clamp(-28px, -2vw, -12px); bottom: 0; width: min(340px, 82%);
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 20px 16px;
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.35);
}
.readout__nums { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.readout__item { display: flex; flex-direction: column; gap: 6px; }
.readout__item + .readout__item { border-left: 1px solid var(--line); padding-left: 16px; }
.readout__num {
  font: 700 52px/0.95 var(--display);
  letter-spacing: -0.05em; font-variant-numeric: tabular-nums; color: var(--accent);
}
.readout__unit { font-size: 0.36em; font-weight: 600; letter-spacing: 0; margin-left: 0.12em; vertical-align: 0.9em; color: var(--muted); }
.readout__label { font-size: 14px; font-weight: 600; }
.readout figcaption { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* ------------------------------------------------------------------ facts */

.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.facts__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts__in > div { padding: 22px 20px 22px 0; }
.facts__in > div + div { border-left: 1px solid var(--line); padding-left: 20px; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin-top: 4px; font: 650 18px/1.3 var(--display); letter-spacing: -0.01em; }

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

h2 { font: 700 clamp(26px, 2.8vw, 34px)/1.12 var(--display); letter-spacing: -0.025em; }
h3 { margin: 0; font: 650 18px/1.25 var(--display); letter-spacing: -0.01em; }

.repair { padding: clamp(44px, 6vw, 80px) 0; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin-top: 28px; }
.card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; background: var(--line); }
.card h3 { margin-top: 16px; }
.card p { margin-top: 6px; color: var(--muted); font-size: 16px; line-height: 1.45; }

.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(44px, 6vw, 80px) 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); }
.list--check li { color: var(--muted); }
.list--check strong { color: var(--ink); font-weight: 650; }

.visit { padding: clamp(44px, 6vw, 80px) 0; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: 28px; }
.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 h3 { margin-top: 12px; }
.steps p { margin-top: 6px; color: var(--muted); }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 64px); }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 12px 0; cursor: pointer; list-style: none;
  font: 650 18px/1.3 var(--display); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform 0.18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details p { padding: 0 32px 18px 0; color: var(--muted); max-width: 40em; }
.faq a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }

/* ----------------------------------------------------------------- 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: 1000px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__in > div { padding: 18px 16px 18px 0; }
  .facts__in > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .facts__in > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

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

@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%; }
  .cards { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .faq details p { padding-right: 0; }

  .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, .faq summary::after { transition: none; }
}
