/* =========================================================
   מוסך לב בשרון | v5 "כרטיס העבודה"
   The site is the garage's own job card: one blue printing ink,
   NCR paper sheets on a blue desk, a violet rubber stamp,
   pen ticks, and a highlighter on today's hours.
   ========================================================= */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: "Secular One";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/secularone-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Secular One";
  font-weight: 400;
  font-display: swap;
  src: url("fonts/secularone-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Heebo";
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/heebo-hebrew.woff2") format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo";
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/heebo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */
:root {
  /* the desk and the printing ink */
  --desk: #1b2f80;
  --desk-deep: #14236a;
  --print: #2340a8;
  --print-hover: #1a3290;
  --rule: rgb(35 64 168 / 0.3);
  --rule-strong: #2340a8;
  /* paper stocks (NCR triplicate) */
  --paper: #fffffd;
  --canary: #fbeba2;
  --pink: #f9d8de;
  /* typed / written ink */
  --ink: #17191e;
  --ink-2: #3d424b;
  --pen: #1f2a9c;
  --stamp: #4a2fb0;
  --marker: #ffe14d;
  --on-desk: #eef1fb;
  --on-desk-2: #b9c3ea;

  --font-display: "Secular One", "Heebo", sans-serif;
  --font-text: "Heebo", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --desk-gutter: 10px;
  --sheet-pad: 20px;
  --sheet-gap: 18px;
  --sheet-max: 1240px;

  --shadow-sheet:
    0 1px 0 rgb(0 0 0 / 0.14),
    0 16px 32px -18px rgb(0 0 0 / 0.45);


  /* z-index scale */
  --z-bar: 40;
  --z-callbar: 45;
  --z-skip: 60;

  color-scheme: light;
  accent-color: var(--print);
}
@media (min-width: 768px) {
  :root { --desk-gutter: 28px; --sheet-pad: 44px; --sheet-gap: 24px; }
}
@media (min-width: 1100px) {
  :root { --sheet-pad: 56px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--desk);
  scrollbar-color: var(--print) var(--desk-deep);
  scroll-padding-top: 84px;
  scroll-padding-bottom: 96px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--desk);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  caret-color: var(--pen);
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
address { font-style: normal; }
img, svg, iframe { display: block; max-width: 100%; }
h1, h2, h3 { text-wrap: balance; font-weight: 400; }
p { text-wrap: pretty; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }

::selection { background: var(--marker); color: var(--ink); }
:focus-visible { outline: 3px solid var(--stamp); outline-offset: 3px; }
.footer :focus-visible { outline-color: var(--marker); }
main:focus { outline: none; }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
[dir="ltr"] { unicode-bidi: isolate; white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

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

.skip-link {
  position: fixed;
  inset-inline-start: 12px;
  top: -100px;
  z-index: var(--z-skip);
  padding: 12px 18px;
  background: var(--marker);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Sheets on the desk ---------- */
.desk {
  isolation: isolate;
  display: grid;
  gap: var(--sheet-gap);
  padding-block: var(--desk-gutter) calc(var(--desk-gutter) + 8px);
}
.sheet {
  position: relative;
  width: min(100% - 2 * var(--desk-gutter), var(--sheet-max));
  margin-inline: auto;
  padding: var(--sheet-pad);
  background: var(--paper);
  box-shadow: var(--shadow-sheet);
  --sheet-bg: var(--paper);
}
.perf::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 9px;
  height: 10px;
  background: radial-gradient(circle, var(--desk) 3.4px, transparent 4px) center / 17px 10px repeat-x;
  pointer-events: none;
}
.sheet.perf { padding-block-start: calc(var(--sheet-pad) + 14px); }
.sheet--canary { background: var(--canary); --sheet-bg: var(--canary); --ink-2: #4a4020; }
.sheet--pink { background: var(--pink); --sheet-bg: var(--pink); --ink-2: #5a3942; }

/* Printed form elements */
.form-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.35rem + 2.3vw, 3.25rem);
  line-height: 1.1;
  color: var(--print);
}
.form-lead { margin-block-start: 12px; max-width: 58ch; color: var(--ink-2); font-size: 1.125rem; }
.label { font-size: 0.8125rem; font-weight: 500; line-height: 1.3; color: var(--print); }

.fields { display: grid; }
.field {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  align-items: baseline;
  gap: 12px;
  padding-block: 11px;
  border-bottom: 1px solid var(--rule);
}
.field:first-child { border-top: 1px solid var(--rule); }
.field dt, .field .label { font-size: 0.875rem; }
.field dd { font-weight: 500; }
.nw { white-space: nowrap; }
@media (max-width: 599px) {
  .field, .rating-fields .field { grid-template-columns: 5rem 1fr; gap: 10px; }
}

/* ---------- Buttons: printed boxes ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 22px;
  border: 2px solid var(--print);
  background: var(--paper);
  color: var(--print);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform 140ms var(--ease-out);
}
.btn:hover { background: #eef1fd; }
.btn:active { transform: translateY(2px); }
.btn .icon { width: 22px; height: 22px; }
.btn--solid { background: var(--print); color: var(--paper); }
.btn--solid:hover { background: var(--print-hover); }
.btn--big { min-height: 64px; padding: 0 28px; font-size: 1.1875rem; }
.btn--sm { min-height: 44px; padding: 0 14px; font-size: 0.9375rem; }
.btn--sm .icon { width: 18px; height: 18px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 479px) {
  .actions--stack .btn { flex: 1 1 100%; }
}

/* ---------- Brand stamp mark (provisional logo) ---------- */
.mark {
  display: inline-grid;
  place-items: center;
  flex: none;
  padding: 6px 10px 5px;
  border: 2px solid currentColor;
  outline: 1px solid currentColor;
  outline-offset: 2px;
  color: var(--print);
  font-family: var(--font-display);
  line-height: 1;
  text-align: center;
}
.mark-word { font-size: 1.25rem; }
.mark-sub { margin-block-start: 3px; font-family: var(--font-text); font-size: 0.625rem; font-weight: 700; letter-spacing: 0.04em; }

/* ---------- Checkboxes with a pen tick ---------- */
.tick {
  position: relative;
  display: inline-block;
  flex: none;
  width: 24px;
  height: 24px;
  border: 2px solid var(--print);
  background: var(--paper);
}
.tick svg {
  position: absolute;
  inset: 2px;
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  fill: none;
  stroke: var(--pen);
  stroke-width: 4.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tick path { stroke-dasharray: 34; stroke-dashoffset: 0; }
.motion .tick-group:not(.is-ticked) .tick path { stroke-dashoffset: 34; }
.motion .tick-group .tick path { transition: stroke-dashoffset 420ms var(--ease-out); }
.motion .tick-group.is-ticked li:nth-child(2) .tick path { transition-delay: 140ms; }
.motion .tick-group.is-ticked li:nth-child(3) .tick path { transition-delay: 280ms; }
.motion .tick-group.is-ticked li:nth-child(4) .tick path { transition-delay: 420ms; }

/* ---------- Printed photos: one-ink duotone ---------- */
.print {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--sheet-bg, var(--paper));
  border: 1px solid var(--rule);
}
.print img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.18) brightness(1.06);
  mix-blend-mode: multiply;
}
.print::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--print);
  mix-blend-mode: screen;
  pointer-events: none;
}
.print::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: radial-gradient(circle, rgb(255 255 255 / 0.22) 0.8px, transparent 1.25px);
  background-size: 4px 4px;
  pointer-events: none;
}
.print-tag {
  position: absolute;
  z-index: 4;
  top: 8px;
  inset-inline-start: 8px;
  padding: 2px 8px;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--print);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.5;
}
.caption { margin-block-start: 8px; font-size: 0.8125rem; color: var(--ink-2); }

/* ---------- Rubber stamp (raster impression: images/stamp.png) ---------- */
.stamp {
  position: absolute;
  z-index: 3;
  width: clamp(230px, 20vw, 300px);
  height: auto;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.motion .stamp { opacity: 0; }
.motion .stamp.is-pressed { animation: stamp-press 520ms var(--ease-out) 150ms both; }
@keyframes stamp-press {
  0% { opacity: 0; transform: scale(1.4); }
  60% { opacity: 1; transform: scale(0.97); }
  100% { opacity: 1; transform: scale(1); }
}

/* ---------- Navigation printed on the card + sticky compact bar ---------- */
.sheet-nav { display: none; }
@media (min-width: 900px) {
  .sheet-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-block-end: 22px;
    padding-block-end: 14px;
    border-bottom: 1px solid var(--rule);
    font-size: 0.9375rem;
  }
  .sheet-nav ul { display: flex; gap: 28px; }
  .sheet-nav a { color: var(--ink-2); font-weight: 500; text-decoration: none; }
  .sheet-nav a:hover { color: var(--print); text-decoration: underline; }
  .sheet-nav-phone { display: inline-flex; align-items: center; gap: 8px; color: var(--print) !important; font-weight: 700 !important; }
  .sheet-nav-phone .icon { width: 18px; height: 18px; }
}

.bar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-bar);
  background: var(--paper);
  border-bottom: 2px solid var(--print);
  box-shadow: 0 10px 24px -18px rgb(0 0 0 / 0.4);
  transform: translateY(-110%);
  transition: transform 360ms var(--ease-out);
}
.bar.is-shown { transform: none; }
.bar-inner {
  width: min(100% - 2 * var(--desk-gutter), var(--sheet-max));
  margin-inline: auto;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.bar .brand { display: inline-flex; align-items: center; gap: 12px; margin-inline-end: auto; text-decoration: none; color: var(--print); }
.logo { display: block; height: auto; flex: none; }
.logo--bar { width: 76px; }
.logo--mast { width: clamp(110px, 12vw, 170px); }
.bar .mark-word { font-size: 1rem; }
.bar .mark-sub { display: none; }
.bar .brand-name { font-family: var(--font-display); font-size: 1.25rem; line-height: 1; }

/* ---------- Hero sheet: the job card ---------- */
.hero-sheet { padding-block-start: max(24px, calc(var(--sheet-pad) * 0.75)); }
/* the canary copy peeking out beneath the original */
.hero-sheet::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10px -6px -10px 6px;
  background: var(--canary);
  box-shadow: var(--shadow-sheet);
}

.masthead {
  display: grid;
  gap: 14px;
  padding-block-end: 20px;
  border-bottom: 2px solid var(--rule-strong);
}
.mast-brand { display: flex; align-items: center; gap: 16px; }
@media (max-width: 599px) {
  .masthead .logo { display: none; }
}
.masthead h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.5rem + 4.4vw, 5.5rem);
  line-height: 0.95;
  color: var(--print);
  letter-spacing: -0.01em;
}
.mast-sub { margin-block-start: 8px; color: var(--print); font-size: 0.9375rem; font-weight: 500; }
.mast-doc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.doc-title { font-family: var(--font-display); font-size: 1.125rem; color: var(--print); }
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1.5px solid var(--print);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--print);
}
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rule); flex: none; }
.status.is-open { background: var(--print); color: var(--paper); }
.status.is-open::before { background: var(--marker); }
.status:empty { display: none; }

.hero-body { display: grid; gap: 28px; padding-block: 24px; }
.hero-statement {
  font-size: clamp(1.375rem, 1.05rem + 1.3vw, 2.125rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.hero-statement .names { color: var(--print); }
.hero-copy .fields { margin-block-start: 22px; }
.hero-copy .actions { margin-block-start: 24px; }

.hero-photo { position: relative; }
.hero-photo .print { aspect-ratio: 16 / 9; }
@media (min-width: 900px) {
  .hero-photo .print { aspect-ratio: 16 / 11; }
}
.hero-photo .stamp { top: -24px; inset-inline-end: 4px; }
/* Phones: the stamp is pressed on the paper under the photo, clear of the dark halftone, beside the caption */
@media (max-width: 599px) {
  .hero-photo { display: flex; flex-direction: column; }
  .hero-photo .caption { order: 2; }
  .hero-photo .stamp { order: 3; position: relative; top: auto; inset: auto; width: 200px; margin-block-start: 6px; margin-inline-start: auto; }
}

.worktypes {
  display: grid;
  gap: 14px;
  padding-block-start: 22px;
  border-top: 2px solid var(--rule-strong);
}
.worktypes-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
@media (max-width: 419px) {
  .worktypes-list { grid-template-columns: 1fr; gap: 12px; }
}
.worktypes li { display: flex; align-items: center; gap: 12px; font-weight: 700; line-height: 1.35; }
.worktypes a { text-decoration: none; }
.worktypes a:hover { text-decoration: underline; }

@media (min-width: 900px) {
  .masthead { grid-template-columns: 1fr auto; align-items: end; }
  .mast-doc { flex-direction: column; align-items: flex-end; }
  .hero-body { grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: 36px 44px; }
  .hero-photo .stamp { top: -70px; inset-inline-end: -40px; }
  .worktypes { grid-template-columns: auto 1fr; align-items: center; gap: 32px; }
  .worktypes-list { grid-template-columns: repeat(4, auto); justify-content: space-between; }
}

/* ---------- Brothers (canary copy) ---------- */
.brothers-grid { display: grid; gap: 32px; }
.brothers-copy .form-lead { color: var(--ink); }
.brothers-copy .fields { margin-block-start: 24px; }
.brothers-copy .actions { margin-block-start: 24px; }

.video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.video-frame { position: relative; aspect-ratio: 16 / 9; border: 1px solid var(--rule); background: var(--sheet-bg); }
.video-el { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--ink); }
.video-frame.is-playing .video-play { display: none; }
.video-play { border: 0; cursor: pointer; }
.video .print { position: absolute; inset: 0; border: 0; }
.video-play {
  position: absolute;
  z-index: 4;
  inset-block-end: 16px;
  inset-inline-start: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px 0 14px;
  background: var(--print);
  color: var(--paper);
  font-weight: 700;
}
.video-play .icon { width: 20px; height: 20px; }
.video:hover .video-play { background: var(--print-hover); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (min-width: 900px) {
  .brothers-grid { grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
}

/* ---------- Work list (services) ---------- */
.worklist { margin-block-start: 32px; }
.work-head, .work-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px 16px;
  align-items: start;
}
.work-head { display: none; }
.work-row { padding-block: 22px; border-top: 1px solid var(--rule); }
.work-row:last-child { border-bottom: 2px solid var(--rule-strong); }
.work-row .tick { margin-block-start: 5px; }
.work-name { font-family: var(--font-display); font-size: 1.625rem; line-height: 1.15; color: var(--ink); }
.work-desc { grid-column: 2; color: var(--ink-2); max-width: 46ch; }
.work-row .print { grid-column: 2; aspect-ratio: 16 / 9; margin-block-start: 8px; }
.work-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-block-start: 24px; }
.work-foot p { font-weight: 500; }

@media (min-width: 640px) {
  .work-head, .work-row { grid-template-columns: 30px 1.3fr 1fr 160px; gap: 20px; align-items: center; }
  .work-name { font-size: 1.5rem; }
  .work-head { display: grid; padding-block: 10px; border-top: 2px solid var(--rule-strong); }
  .work-head span:first-child { visibility: hidden; }
  .work-row .tick { margin: 0; }
  .work-desc { grid-column: auto; }
  .work-row .print { grid-column: auto; margin: 0; aspect-ratio: 3 / 2; }
}
@media (min-width: 900px) {
  .work-head, .work-row { grid-template-columns: 36px 1.1fr 1.6fr 220px; gap: 24px; }
  .work-name { font-size: 2rem; }
}

/* ---------- Reviews (pink copy) ---------- */
.reviews-grid { display: grid; gap: 32px; margin-block-start: 28px; }
.rating-fields .field { grid-template-columns: 8rem 1fr; }
.rating-value { font-family: var(--font-display); font-size: 1.875rem; line-height: 1; color: var(--print); }
.rating-stars { display: inline-flex; gap: 2px; margin-inline-start: 8px; vertical-align: -2px; color: var(--stamp); }
.rating-stars .icon { width: 18px; height: 18px; }
.themes-label { margin-block-end: 4px; }
.themes { display: grid; gap: 16px; margin-block-start: 14px; }
.themes li { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.3; }
.reviews-copy .actions { margin-block-start: 28px; }

@media (min-width: 900px) {
  .reviews-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
}

/* ---------- When & where ---------- */
.visit-grid { display: grid; gap: 32px; margin-block-start: 32px; }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 13px 12px; text-align: start; border-bottom: 1px solid var(--rule); }
.hours thead th { padding-block: 8px; border-bottom: 2px solid var(--rule-strong); font-size: 0.8125rem; font-weight: 500; color: var(--print); }
.hours tbody th { font-weight: 500; }
.hours td { font-weight: 700; }
.hours tr.is-today th, .hours tr.is-today td {
  background: linear-gradient(transparent 14%, var(--marker) 14%, var(--marker) 88%, transparent 88%);
}
.hours tr.is-today th::after { content: " (היום)"; font-weight: 400; color: var(--ink-2); }

.address-big { margin-block-start: 28px; font-family: var(--font-display); font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); line-height: 1.1; color: var(--ink); }
.address-sub { color: var(--ink-2); }
.visit-copy .actions { margin-block-start: 22px; }
@media (max-width: 599px) {
  .visit-copy .actions .btn { flex: 1 1 0; padding-inline: 10px; }
}

.map { position: relative; min-height: 340px; border: 2px solid var(--print); background: #e7eaf5; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }
.map::after { content: ""; position: absolute; inset: 0; background: var(--print); mix-blend-mode: screen; opacity: 0.3; pointer-events: none; }

@media (min-width: 900px) {
  .visit-grid { grid-template-columns: 1fr 1.15fr; gap: 56px; }
  .map { min-height: 100%; }
}

/* ---------- Tear-off stub ---------- */
.stub { text-align: center; }
.stub-scissors { position: absolute; top: 2px; inset-inline-start: 18px; z-index: 1; width: 26px; height: 26px; padding: 2px; background: var(--paper); color: var(--print); }
.stub-scissors .icon { width: 22px; height: 22px; }
.stub-title {
  position: absolute;
  top: 3px;
  inset-inline: 0;
  width: max-content;
  margin-inline: auto;
  padding-inline: 12px;
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--print);
}
.stub-phone {
  display: inline-block;
  margin-block-start: 6px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 1rem + 9vw, 7.5rem);
  line-height: 1;
  color: var(--print);
  text-decoration: none;
}
.stub-phone:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.stub-meta { margin-block-start: 12px; color: var(--ink-2); }
.stub .actions { justify-content: center; margin-block-start: 24px; }

/* ---------- Footer on the desk ---------- */
.footer {
  width: min(100% - 2 * var(--desk-gutter), var(--sheet-max));
  margin-inline: auto;
  padding-block: 28px 36px;
  color: var(--on-desk-2);
  font-size: 0.9375rem;
}
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 28px; }
.footer a { color: var(--on-desk); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer a[aria-current="page"] { text-decoration: underline; }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer nav a { display: inline-block; padding-block: 4px; }

/* ---------- Mobile call bar ---------- */
.callbar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--z-callbar);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 8px;
  padding: 10px max(10px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  background: var(--paper);
  border-top: 2px solid var(--print);
  box-shadow: 0 -10px 24px -18px rgb(0 0 0 / 0.4);
  transition: transform 360ms var(--ease-out);
}
.callbar .btn { min-height: 52px; padding: 0 12px; }
.callbar.is-hidden { transform: translateY(110%); }
@media (max-width: 767px) {
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (min-width: 768px) {
  .callbar { display: none; }
}

/* ---------- Legal pages ---------- */
.page-legal .desk { padding-block-start: calc(62px + var(--desk-gutter)); }
.legal-head { display: grid; gap: 18px; padding-block-end: 22px; border-bottom: 2px solid var(--rule-strong); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.9375rem; color: var(--ink-2); }
.crumbs a { color: var(--print); }
.legal-title { font-family: var(--font-display); font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem); line-height: 1; color: var(--print); }
.legal-updated { margin-block-start: 6px; color: var(--ink-2); }

.legal-layout { display: grid; gap: 28px; padding-block-start: 28px; }
.toc { border: 2px solid var(--print); padding: 16px 18px; align-self: start; }
.toc .label { display: block; margin-block-end: 6px; }
.toc a { display: block; padding-block: 6px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--rule); }
.toc li:last-child a { border-bottom: 0; }
.toc a:hover { color: var(--print); text-decoration: underline; }

.prose { max-width: 70ch; line-height: 1.85; }
.prose section + section { margin-block-start: 40px; padding-block-start: 32px; border-top: 1px solid var(--rule); }
.prose h2 { font-family: var(--font-display); font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); line-height: 1.2; color: var(--print); margin-block-end: 12px; }
.prose p + p { margin-block-start: 12px; }
.prose ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.prose li { position: relative; padding-inline-start: 26px; }
.prose li::before { content: ""; position: absolute; inset-inline-start: 2px; top: 0.55em; width: 12px; height: 12px; border: 2px solid var(--print); }
.prose a { color: var(--print); }
.prose strong { font-weight: 700; }
.legal-contact { margin-block: 16px; }

/* A field the business must fill in before launch */
mark.fill {
  padding: 0 6px;
  background: linear-gradient(transparent 12%, var(--marker) 12%, var(--marker) 90%, transparent 90%);
  color: var(--ink);
  font-weight: 700;
}

@media (min-width: 900px) {
  .legal-head { grid-template-columns: 1fr auto; align-items: end; }
  .legal-layout { grid-template-columns: 260px 1fr; gap: 56px; padding-block-start: 40px; }
  .toc { position: sticky; top: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .bar, .callbar, .btn { transition: none; }
}

/* ---------- Blueprint sketches (one blue ink on graph paper) ---------- */
.sketch {
  color: var(--print);
  background-color: var(--sheet-bg, var(--paper));
  background-image:
    linear-gradient(rgb(35 64 168 / 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgb(35 64 168 / 0.09) 1px, transparent 1px);
  background-size: 12px 12px;
  border: 1px solid var(--rule);
}
.sketch svg { width: 100%; height: 100%; }
.work-row .sketch { grid-column: 2; aspect-ratio: 16 / 10; margin-block-start: 8px; padding: 10px; }
@media (min-width: 640px) {
  .work-row .sketch { grid-column: auto; margin: 0; aspect-ratio: 3 / 2; }
}
.services-head { display: grid; gap: 20px; }
.sketch--car { aspect-ratio: 480 / 210; padding: 12px 16px; max-width: 460px; }
@media (min-width: 900px) {
  .services-head { grid-template-columns: 1fr 440px; align-items: end; gap: 48px; }
}

/* The third-party accessibility widget pins its button to the bottom-left corner:
   keep that corner free in the mobile call bar so the two never overlap. */
@media (max-width: 767px) {
  .callbar { padding-inline-end: calc(76px + env(safe-area-inset-left)); }
}
@media (max-width: 767px) {
  .callbar { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
}
@media (max-width: 459px) {
  .callbar .num { display: none; }
}
