/* 100 MPH Details
   Palette: OKLCH only. Red is reserved for prices, the primary CTA,
   the speedometer needle and focus rings. */

:root {
  --bg: oklch(0.16 0.006 25);
  --raised: oklch(0.205 0.008 25);
  --raised-2: oklch(0.235 0.009 25);
  --line: oklch(0.30 0.01 30);
  --line-strong: oklch(0.42 0.01 40);
  --text: oklch(0.95 0.005 80);
  --muted: oklch(0.70 0.01 60);
  --red: oklch(0.64 0.21 27);
  --red-press: oklch(0.58 0.2 27);
  --on-red: oklch(0.16 0.006 25);

  --font-display: "Saira", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);   /* ease-out expo */
  --dur: 300ms;

  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max: 76rem;
  --header-h: 4.25rem;

  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open { overflow: hidden; }

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

a { color: inherit; }

p, li, dd { max-width: 70ch; }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 700; }

ul, ol { margin: 0; padding: 0; list-style: none; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.tnum, .price { font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; }

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

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus-visible { top: 1rem; }

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

/* ---------- Type ---------- */

.display, .hero-title, .section-title, .pkg-name, .split-name, .addons-title, .step-num, .price, .wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-stretch: 75%;
}

.eyebrow {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.005em;
  text-transform: uppercase;
}

.section-head { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-lede { margin: 1rem 0 0; color: var(--muted); font-size: 1.125rem; }

.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section-raised { background: var(--raised); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 0.375rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform 200ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--red); color: var(--on-red); }
.btn-primary:hover { background: var(--red-press); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); }

.btn-sm { min-height: 2.75rem; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.btn-xl { min-height: 4rem; padding: 1rem 2.5rem; font-size: 1.1875rem; }
.btn-block { width: 100%; }

.btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.btn[aria-disabled="true"]:active { transform: none; }

/* ---------- Wordmark ---------- */

.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 44px;
  justify-content: center;
  text-decoration: none;
  line-height: 1;
}
.logo-img { display: block; height: 52px; width: auto; }
.site-footer .logo-img { height: 64px; }
@media (max-width: 359px) { .site-header .logo-img { height: 44px; } }
.wm-line { font-size: 1.75rem; letter-spacing: -0.01em; line-height: 0.9; }
.wm-100 { color: var(--text); }
.wm-mph { color: var(--red); margin-left: 0.06em; }
.wm-details {
  margin-top: 0.2rem;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 600;
  font-size: 0.625rem;
  letter-spacing: 0.42em;
  color: var(--text);
  padding-left: 0.1em;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header.is-solid,
.site-header.is-static {
  background: var(--bg);
  border-bottom-color: var(--line);
}
body.menu-open .site-header { background: var(--bg); }

/* The hero sits under the transparent header */
.hero { margin-top: calc(-1 * (var(--header-h) + env(safe-area-inset-top, 0px))); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: var(--max);
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site-nav { margin-left: auto; }
.nav-links { display: flex; gap: 0.25rem; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.875rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.nav-links a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 0.375rem;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.menu-bars { position: relative; display: block; width: 18px; height: 10px; margin: auto; }
.menu-bars span {
  position: absolute; left: 0;
  width: 100%; height: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), top var(--dur) var(--ease);
}
.menu-bars span:first-child { top: 0; }
.menu-bars span:last-child { top: 8px; }
.menu-toggle[aria-expanded="true"] .menu-bars span:first-child { top: 4px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-bars span:last-child { top: 4px; transform: rotate(-45deg); }

@media (max-width: 899px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-actions { margin-left: auto; }
  .site-nav { margin: 0; }
  .nav-links {
    position: fixed;
    left: 0; right: 0;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    bottom: 0;
    flex-direction: column;
    gap: 0;
    padding: 1.5rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
    background: var(--bg);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
  }
  .nav-links.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s;
  }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links a {
    width: 100%;
    min-height: 3.75rem;
    padding: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 800;
    font-stretch: 75%;
    font-size: 2rem;
    text-transform: uppercase;
    color: var(--text);
  }
}

@media (max-width: 359px) {
  .header-actions .btn-sm { padding-inline: 0.75rem; font-size: 0.875rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 2.5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
  /* A single work light from the upper right, nothing more */
  background:
    radial-gradient(60rem 40rem at 85% 10%, oklch(0.22 0.01 40 / 0.9), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero-title {
  font-size: clamp(3rem, 8.4vw, 7.25rem);
  line-height: 0.88;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero-title span { display: block; color: var(--muted); }

.hero-sub {
  margin: 1.75rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--text);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.hero-note { margin: 1.25rem 0 0; font-size: 0.9375rem; color: var(--muted); }

.hero-gauge { justify-self: end; width: 100%; max-width: 30rem; }

.gauge { width: 100%; height: auto; overflow: visible; }
.gauge-arc { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-linecap: round; }
.tick { stroke: var(--muted); stroke-width: 1.5; stroke-linecap: round; }
.tick-major { stroke: var(--text); stroke-width: 2.5; }
.gauge-num {
  fill: var(--muted);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.gauge-needle {
  fill: var(--red);
  transform-box: view-box;
  transform-origin: 200px 200px;
  transform: rotate(120deg);
}
/* With JS and motion allowed, start at 0 so there is no flash at 100 before the sweep */
@media (prefers-reduced-motion: no-preference) {
  .js .gauge-needle { transform: rotate(-120deg); }
}
.gauge-hub { fill: var(--bg); stroke: var(--text); stroke-width: 3; }
.gauge-readout {
  fill: var(--text);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-stretch: 75%;
  font-size: 46px;
  font-variant-numeric: tabular-nums;
}
.gauge-unit {
  fill: var(--muted);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3em;
}

@media (max-width: 767px) {
  .hero { align-items: flex-start; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-gauge { justify-self: center; max-width: 20rem; }
  .hero-ctas .btn { flex: 1 1 12rem; }
}

/* ---------- How it works ---------- */

#how .section-title { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  counter-reset: none;
}
.step { border-top: 1px solid var(--line-strong); padding-top: 1.25rem; }
.step-num {
  display: block;
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.step p { margin: 1rem 0 0; font-size: 1.125rem; max-width: 26ch; }

@media (max-width: 767px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    align-items: baseline;
    padding-block: 1.25rem;
  }
  .step-num { font-size: 2.5rem; }
  .step p { margin: 0; max-width: none; }
}

/* ---------- Packages ---------- */

.packages { border-bottom: 1px solid var(--line); }

.pkg {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2rem, 4.5vw, 3.25rem);
  border-top: 1px solid var(--line);
}

.pkg-name {
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
  line-height: 0.95;
  text-transform: uppercase;
}
.pkg-tag { margin: 0.75rem 0 0; color: var(--muted); }
.pkg-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1.25rem;
  margin: 1.25rem 0 0;
}
.pkg-time { color: var(--muted); font-size: 0.9375rem; }

.price {
  color: var(--red);
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.price .plus { font-size: 0.6em; vertical-align: 0.5em; margin-left: 0.04em; }
.price-sm {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-size: 1rem;
  letter-spacing: 0;
}
.price-sm .plus { font-size: 1em; vertical-align: baseline; margin: 0; }

.pkg-includes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  align-content: start;
}
.pkg-plus {
  grid-column: 1 / -1;
  margin: 0;
  font-weight: 600;
  color: var(--text);
}
.list-title {
  margin-bottom: 0.625rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.pkg-list li, .split-list li {
  position: relative;
  padding: 0.3125rem 0 0.3125rem 1.125rem;
  font-size: 0.9875rem;
  line-height: 1.45;
}
.pkg-list li::before, .split-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.95em;
  width: 0.5rem; height: 1px;
  background: var(--muted);
}

/* Deep Clean: heavier row */
.pkg-heavy { border-top: 2px solid var(--red); }
.pkg-heavy .pkg-name { font-size: clamp(2.125rem, 4.4vw, 3.5rem); }
.pkg-heavy .price { font-size: clamp(3.5rem, 7vw, 5.5rem); }
.pkg-heavy .pkg-includes { padding-top: 0.25rem; }

.pkg-toggle {
  display: none;
  align-items: center;
  gap: 0.625rem;
  min-height: 44px;
  margin-top: 1rem;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.375rem;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}
.pkg-toggle::after {
  content: "";
  width: 0.5rem; height: 0.5rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.pkg-toggle[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }

@media (max-width: 767px) {
  .pkg { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pkg-includes { grid-template-columns: minmax(0, 1fr); margin-top: 1.5rem; }
  .js .pkg-toggle { display: inline-flex; }
  .js .pkg-includes { display: none; }
  .js .pkg.is-open .pkg-includes { display: grid; }
}

/* ---------- Interior / Exterior split ---------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.split-col { padding-block: clamp(2rem, 4vw, 3rem); }
.split-col:first-child { padding-right: clamp(1.5rem, 4vw, 3.5rem); border-right: 1px solid var(--line); }
.split-col:last-child { padding-left: clamp(1.5rem, 4vw, 3.5rem); }
.split-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
}
.split-name { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1; text-transform: uppercase; }
.split-head .price { font-size: clamp(2rem, 3.5vw, 2.75rem); }

@media (max-width: 767px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split-col:first-child { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .split-col:last-child { padding-left: 0; }
}

.addons {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1rem clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(2rem, 4vw, 2.75rem);
  border-bottom: 1px solid var(--line);
}
.addons-title { font-size: clamp(1.75rem, 3vw, 2.25rem); line-height: 1; text-transform: uppercase; }
.addon-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; margin: 0; }
.addon dt { font-weight: 700; }
.addon dd { margin: 0.25rem 0 0; }
.addon-note { display: block; margin-top: 0.25rem; color: var(--muted); font-size: 0.9375rem; }

@media (max-width: 767px) {
  .addons, .addon-list { grid-template-columns: minmax(0, 1fr); }
}

.price-note { margin: 1.5rem 0 0; color: var(--muted); font-size: 0.9375rem; }

/* ---------- Quote builder ---------- */

.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.q-step {
  margin: 0 0 2.25rem;
  padding: 0;
  border: 0;
  min-width: 0;
}
.q-step legend {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0;
  margin-bottom: 0.875rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.q-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-stretch: 75%;
  font-size: 1.5rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.q-optional { font-weight: 500; color: var(--muted); font-size: 1rem; }
.q-hint { margin: -0.375rem 0 0.875rem; color: var(--muted); font-size: 0.9375rem; }
.q-addon-note { margin: 0.75rem 0 0; min-height: 1.5em; }

.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
.opts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opts-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.opt { position: relative; display: block; cursor: pointer; }
.opt input {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.opt-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  height: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg);
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.opt-label { font-weight: 600; line-height: 1.25; }
.opt-dot {
  position: relative;
  width: 1.125rem; height: 1.125rem;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color 200ms var(--ease);
}
.opt-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--text);
  transform: scale(0);
  transition: transform 200ms var(--ease);
}
.opt-check .opt-dot { border-radius: 0.25rem; }
.opt-check .opt-dot::after { border-radius: 1px; }

.opt:hover .opt-box { border-color: var(--line-strong); }
.opt input:checked + .opt-box { border-color: var(--text); background: var(--raised-2); }
.opt input:checked + .opt-box .opt-dot { border-color: var(--text); }
.opt input:checked + .opt-box .opt-dot::after { transform: scale(1); }
.opt input:focus-visible + .opt-box { outline: 2px solid var(--red); outline-offset: 2px; }
.opt input:disabled { cursor: not-allowed; }
.opt input:disabled + .opt-box { opacity: 0.4; }
.opt:has(input:disabled) { cursor: not-allowed; }
.opt:has(input:disabled):hover .opt-box { border-color: var(--line); }

.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.875rem; }
.field label { display: block; margin-bottom: 0.375rem; font-size: 0.9375rem; font-weight: 600; }
.field input {
  width: 100%;
  min-height: 3rem;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid var(--line);
  border-radius: 0.375rem;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem; /* 16px keeps iOS from zooming */
  transition: border-color 200ms var(--ease);
}
.field input::placeholder { color: var(--muted); opacity: 0.8; }
.field input:hover { border-color: var(--line-strong); }
.field input:focus-visible { border-color: var(--text); outline: 2px solid var(--red); outline-offset: 2px; }

.quote-summary {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--bg);
}
@media (min-width: 900px) {
  .quote-summary { position: sticky; top: calc(var(--header-h) + 1.5rem); }
}

.summary-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.estimate { margin: 0.5rem 0 0; }
.estimate-value {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.estimate-value.is-set { color: var(--red); }
.estimate-note { margin: 0.375rem 0 0; color: var(--muted); font-size: 0.9375rem; }

.msg-preview {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.msg-text {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.quote-actions { display: grid; gap: 0.625rem; margin-top: 1.5rem; }
.quote-status { min-height: 1.5em; margin: 0.75rem 0 0; font-size: 0.9375rem; font-weight: 600; }
.desk-number { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.9375rem; }
.desk-number .tnum { color: var(--text); font-weight: 700; }

@media (max-width: 899px) {
  .quote-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) {
  .opts, .opts-2, .opts-3, .fields { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Our work ---------- */

.ba-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1.25rem; }

.ba {
  position: relative;
  aspect-ratio: 4 / 3;
  max-width: 100%;
  overflow: hidden;
  border-radius: 0.375rem;
  background: var(--raised);
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  cursor: ew-resize;
  --pos: 50%;
}
.ba img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 44px;
  margin-left: -22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: ew-resize;
}
.ba-handle::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 2px; margin-left: -1px;
  background: var(--text);
}
.ba-grip {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--text);
  display: flex; align-items: center; justify-content: center;
  gap: 4px;
}
.ba-grip::before, .ba-grip::after {
  content: "";
  width: 0; height: 0;
  border-block: 5px solid transparent;
}
.ba-grip::before { border-right: 6px solid var(--text); }
.ba-grip::after { border-left: 6px solid var(--text); }
.ba-label {
  position: absolute;
  bottom: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba-label-before { left: 0.75rem; }
.ba-label-after { right: 0.75rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: clamp(7rem, 14vw, 12rem);
  grid-auto-flow: dense;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.gallery-item {
  grid-column: span 2;
  grid-row: span 1;
  padding: 0;
  border: 0;
  border-radius: 0.375rem;
  overflow: hidden;
  background: var(--raised);
  cursor: zoom-in;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.gallery-item:hover img { transform: scale(1.02); }
.gallery-item:nth-child(5n + 1) { grid-column: span 4; grid-row: span 2; }
.gallery-item:nth-child(5n + 2) { grid-row: span 2; }
.gallery-item:nth-child(5n + 4) { grid-column: span 3; }
.gallery-item:nth-child(5n + 5) { grid-column: span 3; }

@media (max-width: 599px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 9rem; }
  .gallery-item,
  .gallery-item:nth-child(5n + 2),
  .gallery-item:nth-child(5n + 4),
  .gallery-item:nth-child(5n + 5) { grid-column: span 1; grid-row: span 1; }
  .gallery-item:nth-child(3n + 1) { grid-column: span 2; grid-row: span 2; }
}

.lightbox {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: calc(1rem + env(safe-area-inset-top, 0px)) 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  border: 0;
  background: oklch(0.12 0.005 25 / 0.96);
  color: var(--text);
}
.lightbox::backdrop { background: oklch(0.12 0.005 25 / 0.96); }
.lb-frame { display: flex; flex-direction: column; height: 100%; gap: 1rem; }
.lb-img { flex: 1 1 auto; min-height: 0; width: 100%; object-fit: contain; }
.lb-controls { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.5rem; }
.lb-btn {
  min-width: 44px; min-height: 44px;
  padding: 0 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.375rem;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.lb-count { min-width: 4rem; text-align: center; color: var(--muted); }

/* ---------- Service area ---------- */

.section-area { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: clamp(3.5rem, 8vw, 6rem); }
.area-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem clamp(1.5rem, 4vw, 4rem); align-items: baseline; }
.area-text { margin: 0; font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.5; }
.area-text a { text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
@media (max-width: 767px) { .area-inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- FAQ ---------- */

.faq-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem clamp(1.5rem, 4vw, 4rem); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
  padding: 0.75rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 0.625rem; height: 0.625rem;
  margin-right: 0.25rem;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-3px) rotate(45deg);
  transition: transform var(--dur) var(--ease);
}
.faq[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq p { margin: 0 0 1.25rem; color: var(--muted); }
.faq p a { color: var(--text); text-underline-offset: 0.2em; }
/* Inline text links: grow the tap area to 44px tall without moving the text */
.faq p a, .area-text a, .legal-body a { padding-block: 0.7rem; }
@media (max-width: 767px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Contact ---------- */

.section-contact { text-align: left; }
.contact-inner { display: flex; flex-direction: column; align-items: flex-start; }
.contact-title { font-size: clamp(2.75rem, 8vw, 6rem); margin-bottom: 2rem; }
.contact-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}
.contact-links a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  min-height: 5rem;
  padding: 1rem 1rem 1rem 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.cl-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.cl-value { font-size: 1.125rem; font-weight: 600; overflow-wrap: anywhere; transition: color var(--dur) var(--ease); }
.contact-links a:hover .cl-value { text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
.contact-line {
  margin: 2.5rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-stretch: 75%;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 28ch;
}
@media (max-width: 767px) {
  .contact-links { grid-template-columns: minmax(0, 1fr); }
  .btn-xl { width: 100%; }
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-top: 3rem;
  padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px)); /* room for the floating button */
}
.footer-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem 2rem;
}
.site-footer-legal { padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px)); }
.footer-tag { margin: 0; color: var(--muted); font-size: 0.9375rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-size: 0.9375rem;
  text-underline-offset: 0.2em;
}
.footer-copy { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 0.875rem; }
@media (max-width: 767px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Floating button ---------- */

.float-bar {
  position: fixed;
  z-index: 40;
  left: max(1rem, env(safe-area-inset-left, 0px));
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  gap: 0.5rem;
  max-width: calc(100vw - 2rem);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s;
}
.float-bar.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s linear var(--dur);
}
body.menu-open .float-bar { visibility: hidden; opacity: 0; }

.float-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 3rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  background: var(--red);
  color: var(--on-red);
  font-weight: 700;
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 20px oklch(0.1 0.005 25 / 0.5);
  transition: background-color var(--dur) var(--ease), transform 200ms var(--ease);
}
.float-cta:active { transform: translateY(1px); }
.float-cta:hover { background: var(--red-press); }

/* Off-white so it stands apart from the red booking button */
.float-quote {
  gap: 0.5rem;
  background: var(--text);
  color: var(--bg);
  border: 2px solid var(--text);
}
.float-quote::after {
  content: "";
  width: 0.45rem; height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.float-quote:hover { background: oklch(0.88 0.005 80); border-color: oklch(0.88 0.005 80); }

/* ---------- Legal pages ---------- */

.legal { padding-block: clamp(3rem, 8vw, 6rem); }
.legal-title { font-size: clamp(2.5rem, 7vw, 5rem); line-height: 0.95; text-transform: uppercase; }
.legal-updated { margin: 1rem 0 0; color: var(--muted); }
.legal-body { margin-top: clamp(2rem, 5vw, 3.5rem); max-width: 70ch; }
.legal-body h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin: 0 0 1rem; color: var(--text); }
.legal-body ul { margin: 0 0 1rem; }
.legal-body li { position: relative; padding: 0.25rem 0 0.25rem 1.25rem; }
.legal-body li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.05em;
  width: 0.5rem; height: 1px;
  background: var(--muted);
}
.legal-body a { text-underline-offset: 0.2em; }

/* ---------- Reduced motion ---------- */

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