/* ============================================================
   Mobile Mechanic Hans Toronto
   Composition: warm earth editorial / broadsheet
   ============================================================ */

:root {
  --bg:        #f5efe4;
  --bg-deep:   #ece3d3;
  --surface:   #fbf7ef;
  --ink:       #2b1e14;
  --ink-soft:  #5b4a3c;
  --ink-faint: #8a7767;
  --accent:    #c25a37;
  --accent-dk: #a34526;
  --secondary: #6a7a4a;
  --rule:      #d8cbb6;
  --warm-light: rgba(226, 168, 96, 0.30);
  --glow-y: 18%;
  --shadow: 0 1px 2px rgba(43, 30, 20, 0.06), 0 12px 32px -18px rgba(43, 30, 20, 0.35);
  --maxw: 1180px;
  --pad: clamp(1.15rem, 4vw, 2.5rem);
  --radius: 3px;
}

html[data-theme="dark"] {
  --bg:        #17120d;
  --bg-deep:   #100c08;
  --surface:   #201913;
  --ink:       #f2e8da;
  --ink-soft:  #c9b8a4;
  --ink-faint: #93816f;
  --accent:    #e07a52;
  --accent-dk: #f0906c;
  --secondary: #9db06f;
  --rule:      #3a2e23;
  --warm-light: rgba(200, 120, 60, 0.20);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 34px -18px rgba(0, 0, 0, 0.8);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  font-optical-sizing: auto;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}

/* --- soft light source that drifts with scroll --- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 50% var(--glow-y), var(--warm-light) 0, transparent 58%),
    radial-gradient(circle at 88% calc(var(--glow-y) + 30%), rgba(106, 122, 74, 0.10) 0, transparent 45%);
  transition: background .6s linear;
}

header, main, footer { position: relative; z-index: 1; }

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dk); }

h1, h2, h3 {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .6em;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; }

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

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

.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 {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: .7rem 1.1rem; z-index: 99;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ============================================================
   HEADER
   ============================================================ */

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px) saturate(1.2);
  border-bottom: 1px solid var(--rule);
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding-block: .7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex: 0 0 40px;
  background: var(--accent);
  color: #fff8ef;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.3rem;
  border-radius: 50%;
  letter-spacing: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.brand-text em {
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.site-nav {
  display: flex;
  gap: 1.35rem;
  font-size: .88rem;
  letter-spacing: .02em;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-block: .55rem;
  border-bottom: 1.5px solid transparent;
  transition: color .2s, border-color .2s;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

.head-actions { display: flex; align-items: center; gap: .6rem; }

.theme-toggle {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 50%;
  cursor: pointer;
  color: var(--ink);
  transition: border-color .2s, background-color .2s;
}
.theme-toggle:hover { border-color: var(--accent); background: var(--surface); }
.tt-icon {
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset -4px -3px 0 0 var(--bg);
  transition: box-shadow .3s ease, transform .3s ease;
}
html[data-theme="dark"] .tt-icon {
  box-shadow: inset 0 0 0 0 var(--bg), 0 0 0 2px var(--accent);
  transform: scale(.82);
}

.call-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  padding: .5rem .95rem;
  background: var(--accent);
  color: #fff8ef;
  text-decoration: none;
  border-radius: var(--radius);
  line-height: 1.2;
  min-height: 44px;
  justify-content: center;
  transition: background-color .2s, transform .2s;
}
.call-btn:hover { background: var(--accent-dk); color: #fff8ef; transform: translateY(-1px); }
.call-label {
  font-size: .62rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  opacity: .85;
}
.call-num { font-weight: 600; font-size: .95rem; }

/* ============================================================
   HERO
   ============================================================ */

.hero { padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 5vw, 3.5rem); }

.eyebrow {
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--secondary);
  font-weight: 500;
  margin-bottom: 1.1rem;
}

.hero-h1 {
  font-size: clamp(2.4rem, 8.5vw, 5.6rem);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 1.4rem;
  max-width: 20ch;
  position: relative;
  font-variation-settings: 'wght' 300, 'opsz' 120;
  animation: weigh linear both;
  animation-timeline: scroll(root);
  animation-range: 0 40vh;
}

@keyframes weigh {
  from { font-variation-settings: 'wght' 220, 'opsz' 100; }
  to   { font-variation-settings: 'wght' 860, 'opsz' 144; }
}

.hero-h1 .default,
.hero-h1 .alt {
  display: block;
  transition: opacity .35s ease, transform .35s ease;
}
.hero-h1 .alt {
  position: absolute;
  inset: 0;
  opacity: 0;
  color: var(--accent);
  transform: translateY(6px);
  pointer-events: none;
}
.hero-h1:hover .default,
.hero-h1:focus-within .default { opacity: 0; transform: translateY(-6px); }
.hero-h1:hover .alt,
.hero-h1:focus-within .alt { opacity: 1; transform: translateY(0); }

.hero-lede {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 1.8rem;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1rem 1.3rem;
  flex-wrap: wrap;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: .85rem 1.6rem;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: .01em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color .2s, transform .2s;
}
.btn-primary:hover { background: var(--accent); color: #fff8ef; transform: translateY(-2px); }

.hero-note { font-size: .88rem; color: var(--ink-faint); }

.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-figure figcaption {
  margin-top: .7rem;
  font-size: .82rem;
  color: var(--ink-faint);
  font-style: italic;
}

/* ============================================================
   BROADSHEET COLUMNS
   ============================================================ */

.broadsheet { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.section-h {
  font-size: clamp(1.7rem, 4.2vw, 2.7rem);
  font-weight: 500;
  margin-bottom: .5rem;
  column-span: all;
}
.section-h::after {
  content: "";
  display: block;
  width: 62px;
  height: 3px;
  background: var(--accent);
  margin-top: .7rem;
}

.section-sub {
  color: var(--ink-soft);
  max-width: 64ch;
  margin-bottom: 2.2rem;
}

.columns {
  column-count: 3;
  column-gap: 3rem;
  column-rule: 1px solid var(--rule);
  font-size: 1.02rem;
  color: var(--ink-soft);
}
.columns p { margin: 0 0 1.05em; break-inside: avoid-column; }
.columns p:first-of-type { margin-top: 0; }

.dropcap::first-letter {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  float: left;
  font-size: 3.6em;
  line-height: .82;
  padding: .06em .1em 0 0;
  color: var(--accent);
}

/* ============================================================
   SERVICES
   ============================================================ */

.services {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--bg-deep);
  border-block: 1px solid var(--rule);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.6rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.3rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, border-color .25s ease;
}
.service-card:hover { transform: translateY(-3px); border-color: var(--accent); }

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 1.1rem;
}

.service-card h3 {
  font-size: 1.24rem;
  font-weight: 600;
  margin-bottom: .5rem;
}
.service-card p {
  font-size: .95rem;
  color: var(--ink-soft);
  margin-bottom: .8rem;
}
.service-card .price {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: .8rem;
  border-top: 1px solid var(--rule);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--secondary);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.how { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem 2.2rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 2.6rem;
  border-top: 2px solid var(--ink);
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: .55rem;
  left: 0;
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .04em;
}
.steps h3 { font-size: 1.16rem; font-weight: 600; margin-bottom: .4rem; }
.steps p { font-size: .95rem; color: var(--ink-soft); margin: 0; }

/* ============================================================
   SERVICE AREA
   ============================================================ */

.area {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--bg-deep);
  border-block: 1px solid var(--rule);
}

.area-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.area-cols h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: .7rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--rule);
}
.area-cols ul { list-style: none; margin: 0; padding: 0; }
.area-cols li {
  font-size: .93rem;
  color: var(--ink-soft);
  padding: .3rem 0 .3rem 1.1rem;
  position: relative;
}
.area-cols li::before {
  content: "";
  position: absolute;
  left: 0; top: .95em;
  width: 6px; height: 1.5px;
  background: var(--secondary);
}

.area-note {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  font-size: .93rem;
  color: var(--ink-faint);
  max-width: 68ch;
}

/* ============================================================
   VISIT
   ============================================================ */

.visit { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.visit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.visit-block h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: .8rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--rule);
}

.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { padding: .42rem 0; text-align: left; font-weight: 400; }
.hours th { color: var(--ink-soft); }
.hours td { text-align: right; color: var(--secondary); font-weight: 600; font-size: .88rem; }
.hours tr + tr th, .hours tr + tr td { border-top: 1px solid var(--rule); }

.addr {
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  margin-bottom: 1rem;
}

.visit-note { font-size: .9rem; color: var(--ink-faint); }
.inline-link { font-weight: 600; }

.big-phone {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--accent);
  text-decoration: none;
  margin-bottom: .8rem;
}
.big-phone:hover { color: var(--accent-dk); text-decoration: underline; }

/* ============================================================
   FOOTER
   ============================================================ */

.site-foot {
  background: var(--ink);
  color: var(--bg);
  padding-block: 2.6rem 2rem;
  margin-top: 1rem;
}
html[data-theme="dark"] .site-foot { background: #0b0805; }

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.foot-brand strong {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 600;
  display: block;
  margin-bottom: .5rem;
}
.foot-brand p { font-size: .9rem; opacity: .82; margin: 0 0 .35rem; }
.foot-brand a { color: var(--bg); }
.foot-fine { font-size: .82rem !important; opacity: .6 !important; max-width: 46ch; }

.foot-claim {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
}

.claim-banner {
  display: inline-block;
  font-size: .78rem;
  line-height: 1.4;
  padding: .45rem .8rem;
  background: rgba(245, 239, 228, 0.08);
  border: 1px solid rgba(245, 239, 228, 0.22);
  border-radius: var(--radius);
  color: rgba(245, 239, 228, 0.78);
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.claim-banner:hover {
  background: rgba(245, 239, 228, 0.16);
  color: #fff;
}

.attribution {
  position: static;
  font-size: .72rem;
  opacity: .55;
  margin: 0;
  font-family: 'DM Sans', sans-serif;
}
.attribution a { color: inherit; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1000px) {
  .columns { column-count: 2; }
}

@media (max-width: 860px) {
  .site-nav { order: 3; width: 100%; gap: 1.1rem; overflow-x: auto; }
  .head-inner { padding-block: .6rem; }
}

@media (max-width: 680px) {
  .columns { column-count: 1; column-rule: none; }
  .hero-h1 { max-width: none; }
  .hero-h1 .alt { position: static; display: none; }
  .hero-h1:hover .default { opacity: 1; transform: none; }
  .call-btn { padding: .5rem .7rem; }
  .call-label { display: none; }
  .foot-inner { flex-direction: column; }
}

/* ============================================================
   MOTION PREFERENCES
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero-h1 { animation: none; font-variation-settings: 'wght' 500, 'opsz' 120; }
  body::before { transition: none; }
  .service-card:hover, .btn-primary:hover, .call-btn:hover { transform: none; }
}
