/* ============================================================
   Route 401 Auto Repair & Mobile Mechanic — Etobicoke
   Palette: desaturated 70s photo print
   ============================================================ */

:root {
  --bg:      #efe6d0;
  --bg-2:    #e6dabd;
  --surface: #f6efdd;
  --ink:     #3a2f1a;
  --ink-2:   #6a5c3c;
  --a:       #a67c00;   /* mustard */
  --b:       #6b7a3a;   /* avocado */
  --c:       #c04e1a;   /* burnt sienna */
  --rule:    #c9b98f;
  --shadow:  0 1px 0 rgba(58,47,26,.10), 0 12px 28px -18px rgba(58,47,26,.45);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --cond:  "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --spine: 3.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #1c1a14;
    --bg-2:    #23201a;
    --surface: #262218;
    --ink:     #ece2c9;
    --ink-2:   #b3a582;
    --a:       #d9a72e;
    --b:       #9aab5c;
    --c:       #e0703a;
    --rule:    #4a4231;
    --shadow:  0 1px 0 rgba(0,0,0,.4), 0 14px 30px -18px rgba(0,0,0,.8);
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.62;
  text-wrap: pretty;
  overflow-x: hidden;
}

/* --- grain overlay (background axis) --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: .07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
}
@media (prefers-color-scheme: dark) {
  body::before { mix-blend-mode: screen; opacity: .05; }
}

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

a { color: var(--c); text-underline-offset: .18em; }
a:hover { color: var(--a); }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.9rem); letter-spacing: -.015em; }
h3 { font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); }

p { margin: 0 0 1rem; }

.eyebrow {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--b);
  margin: 0 0 .75rem;
}

/* ============================================================
   Scroll progress bar (motion axis) — a strip under the topbar
   ============================================================ */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 60;
  background: color-mix(in srgb, var(--rule) 45%, transparent);
}
.progress__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--b), var(--a) 55%, var(--c));
  transform-origin: 0 50%;
  transform: scaleX(0);
  animation: fill linear both;
  animation-timeline: scroll(root block);
}
@keyframes fill { to { transform: scaleX(1); } }

/* ============================================================
   Topbar
   ============================================================ */
.topbar {
  position: sticky;
  top: 4px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .7rem var(--pad);
  padding-left: calc(var(--pad) + var(--spine));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--rule);
}

.topbar__brand {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.topbar__mark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  background: var(--ink);
  color: var(--bg);
  padding: .18rem .45rem;
  border-radius: 2px;
}
.topbar__name {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.topbar__nav { display: flex; gap: 1.35rem; }
.topbar__nav a {
  font-family: var(--cond);
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-2);
}
.topbar__nav a:hover { color: var(--c); }

.topbar__call {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  text-decoration: none;
  border-left: 1px solid var(--rule);
  padding-left: 1rem;
}
.topbar__call-label {
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--b);
}
.topbar__call-num {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .02em;
  color: var(--ink);
}
.topbar__call:hover .topbar__call-num { color: var(--c); }

/* ============================================================
   Vertical spine headline (typography axis)
   ============================================================ */
.spine {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  width: var(--spine);
  margin: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.spine__text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(.85rem, .6rem + .8vw, 1.15rem);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink-2);
  white-space: nowrap;
  border-left: 2px solid var(--c);
  padding-left: .6rem;
}

/* ============================================================
   Layout shell
   ============================================================ */
main {
  padding-left: calc(var(--pad) + var(--spine));
  padding-right: var(--pad);
  max-width: 1180px;
  margin-inline: auto;
}

.section { padding: clamp(3rem, 7vw, 6rem) 0; border-top: 1px solid var(--rule); }
.section__head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section__note { color: var(--ink-2); font-size: .95rem; margin-top: 1rem; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-top: none;
}

.hero__media {
  position: relative;
  border: 1px solid var(--rule);
  background: var(--bg-2);
  box-shadow: var(--shadow);
  padding: .6rem;
}
.hero__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(.82) contrast(1.04) sepia(.12);
}
.hero__media::after {
  content: "5 Canso Rd · Etobicoke";
  position: absolute;
  bottom: -.85rem;
  left: .6rem;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--c);
  color: #fff8ea;
  padding: .22rem .5rem;
}

.hero__lede {
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(2.4rem, 1.4rem + 4.6vw, 4.6rem);
  line-height: .96;
  letter-spacing: -.03em;
  margin: 0 0 .75rem;
}
.hero__sub { color: var(--ink-2); max-width: 44ch; margin-bottom: 1.25rem; }

/* --- audio-visualizer bars (signature axis) --- */
.viz {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 46px;
  margin: 0 0 1.5rem;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
.viz__bar {
  flex: 1 1 0;
  min-width: 3px;
  height: 100%;
  background: var(--b);
  transform-origin: 50% 100%;
  transform: scaleY(.18);
  animation: pulse 1.5s ease-in-out infinite alternate;
}
.viz__bar:nth-child(3n)   { background: var(--a); }
.viz__bar:nth-child(4n+1) { background: var(--c); }
.viz__bar:nth-child(1)  { animation-delay: -.10s; animation-duration: 1.30s; }
.viz__bar:nth-child(2)  { animation-delay: -.55s; animation-duration: 1.75s; }
.viz__bar:nth-child(3)  { animation-delay: -.25s; animation-duration: 1.15s; }
.viz__bar:nth-child(4)  { animation-delay: -.80s; animation-duration: 1.60s; }
.viz__bar:nth-child(5)  { animation-delay: -.35s; animation-duration: 1.40s; }
.viz__bar:nth-child(6)  { animation-delay: -.05s; animation-duration: 1.85s; }
.viz__bar:nth-child(7)  { animation-delay: -.65s; animation-duration: 1.20s; }
.viz__bar:nth-child(8)  { animation-delay: -.45s; animation-duration: 1.55s; }
.viz__bar:nth-child(9)  { animation-delay: -.90s; animation-duration: 1.35s; }
.viz__bar:nth-child(10) { animation-delay: -.15s; animation-duration: 1.70s; }
.viz__bar:nth-child(11) { animation-delay: -.70s; animation-duration: 1.25s; }
.viz__bar:nth-child(12) { animation-delay: -.30s; animation-duration: 1.90s; }
.viz__bar:nth-child(13) { animation-delay: -.50s; animation-duration: 1.45s; }
.viz__bar:nth-child(14) { animation-delay: -.85s; animation-duration: 1.10s; }
.viz__bar:nth-child(15) { animation-delay: -.20s; animation-duration: 1.65s; }
.viz__bar:nth-child(16) { animation-delay: -.60s; animation-duration: 1.30s; }
.viz__bar:nth-child(17) { animation-delay: -.40s; animation-duration: 1.80s; }
.viz__bar:nth-child(18) { animation-delay: -.95s; animation-duration: 1.15s; }
.viz__bar:nth-child(19) { animation-delay: -.08s; animation-duration: 1.50s; }
.viz__bar:nth-child(20) { animation-delay: -.75s; animation-duration: 1.70s; }
.viz__bar:nth-child(21) { animation-delay: -.28s; animation-duration: 1.35s; }
.viz__bar:nth-child(22) { animation-delay: -.52s; animation-duration: 1.95s; }
.viz__bar:nth-child(23) { animation-delay: -.12s; animation-duration: 1.25s; }
.viz__bar:nth-child(24) { animation-delay: -.68s; animation-duration: 1.60s; }

@keyframes pulse {
  from { transform: scaleY(.14); }
  to   { transform: scaleY(1); }
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }

.btn {
  display: inline-block;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .78rem 1.35rem;
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  transition: transform .16s ease, background-color .16s ease, color .16s ease;
}
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--c); border-color: var(--c); color: #fff8ea; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); transform: translateY(-2px); }
.btn--small { font-size: .88rem; padding: .55rem 1rem; margin-top: .5rem; }

.hero__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .75rem;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hero__facts li { border: 1px solid var(--rule); padding: .3rem .55rem; }
.hero__facts strong { color: var(--c); }

/* ============================================================
   Service menu (layout axis — menu-first cards)
   ============================================================ */
.menu {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 3.5vw, 3rem);
}

.menu__group { break-inside: avoid; }

.menu__group h3 {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--ink);
  padding-bottom: .5rem;
  margin-bottom: .35rem;
}

.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .25rem 1rem;
  align-items: baseline;
  padding: .7rem 0;
  border-bottom: 1px dotted var(--rule);
}
.item__name {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
}
.item__name em {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: .85rem;
  line-height: 1.45;
  color: var(--ink-2);
  margin-top: .2rem;
  max-width: 46ch;
}
.item__price {
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--c);
  padding-top: .1rem;
}

.menu__foot {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: 1.1rem 1.25rem;
  background: var(--bg-2);
  border-left: 4px solid var(--a);
  font-size: .92rem;
  color: var(--ink-2);
  max-width: 78ch;
}

/* ============================================================
   Split section — driveway is the shop
   ============================================================ */
.section--split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}
.split__text h2 { margin-bottom: 1.25rem; }
.split__text p { color: var(--ink-2); max-width: 58ch; }

.checklist {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.checklist li {
  position: relative;
  padding-left: 1.6rem;
  font-size: .95rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .7rem;
  height: .7rem;
  background: var(--b);
  clip-path: polygon(0 45%, 38% 100%, 100% 0, 88% 0, 38% 78%);
}

.split__media {
  display: grid;
  gap: .75rem;
  grid-template-columns: 1fr 1fr;
}
.split__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--rule);
  filter: saturate(.8) contrast(1.05) sepia(.14);
}
.split__media img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}

/* ============================================================
   Footer cards
   ============================================================ */
.footer-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--b);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}
.card--call { border-top-color: var(--c); }
.card h3 {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.card__note { font-size: .88rem; color: var(--ink-2); margin-bottom: .85rem; }
.card__note--tight { margin-bottom: 0; }

.hours { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hours th, .hours td { text-align: left; padding: .38rem 0; font-weight: 400; }
.hours th { font-family: var(--cond); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.hours td { font-family: var(--mono); font-size: .78rem; text-align: right; white-space: nowrap; }
.hours tr { border-bottom: 1px dotted var(--rule); }
.hours tr:last-child { border-bottom: none; }
.hours__closed td { color: var(--c); }

.addr {
  font-style: normal;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 1rem;
}

.phone {
  display: block;
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  letter-spacing: .01em;
  text-decoration: none;
  color: var(--c);
  margin: .25rem 0 1rem;
  border-bottom: 2px solid var(--a);
  padding-bottom: .2rem;
  width: fit-content;
}
.phone:hover { color: var(--a); }

/* ============================================================
   Closing
   ============================================================ */
.closing {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.closing blockquote {
  margin: 0 auto clamp(1.75rem, 3vw, 2.5rem);
  max-width: 46ch;
}
.closing blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.25rem, 1rem + 1.4vw, 1.85rem);
  line-height: 1.35;
  letter-spacing: -.01em;
  color: var(--ink);
}
.closing blockquote footer {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--b);
  margin-top: .85rem;
}

/* ============================================================
   Site footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg-2);
  padding: 1.75rem var(--pad) 2.25rem;
  padding-left: calc(var(--pad) + var(--spine));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  text-align: center;
}
.site-footer__line {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--ink-2);
  margin: 0;
}
.site-footer__line a { color: var(--ink-2); }

.claim-banner {
  display: inline-block;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--rule) 30%, transparent);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: .4rem .85rem;
  transition: background-color .16s ease, color .16s ease;
}
.claim-banner:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.attribution {
  margin: 0;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .06em;
  opacity: .55;
}
.attribution a { color: inherit; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .section--split { grid-template-columns: 1fr; }
  .footer-cards { grid-template-columns: 1fr 1fr; }
  .card--call { grid-column: 1 / -1; }
}

@media (max-width: 780px) {
  :root { --spine: 0rem; }
  .spine { display: none; }
  .topbar { padding-left: var(--pad); }
  main { padding-left: var(--pad); }
  .site-footer { padding-left: var(--pad); }
  .topbar__nav { display: none; }
  .menu { grid-template-columns: 1fr; }
  .footer-cards { grid-template-columns: 1fr; }
  .card--call { grid-column: auto; }
  .hero__lede { font-size: clamp(2.2rem, 1.2rem + 8vw, 3.4rem); }
}

@media (max-width: 460px) {
  .topbar__name { display: none; }
  .item { grid-template-columns: 1fr; }
  .item__price { padding-top: 0; }
  .split__media { grid-template-columns: 1fr; }
  .split__media img:first-child { grid-column: auto; }
}

/* ============================================================
   Reduced motion — every animation gets a static fallback
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .viz__bar { animation: none; transform: scaleY(.55); }
  .progress__fill { animation: none; transform: scaleX(1); }
  .btn { transition: none; }
  .btn:hover { transform: none; }
  .claim-banner { transition: none; }
}
