/* ============================================================
   Mobile Truck Repair Brampton
   Composition: risograph two-ink misregister / variable-width
   breathing type / marquee band / full-bleed photography /
   layered gradient depth / restrained signature.
   ============================================================ */

:root {
  --bg: #f7f5ea;
  --paper: #fffdf4;
  --ink-a: #ff48b0;
  --ink-b: #1f3fff;
  --ink: #14131c;
  --ink-soft: #4a4757;
  --rule: rgba(20, 19, 28, 0.16);
  --rule-strong: rgba(20, 19, 28, 0.32);
  --a-soft: rgba(255, 72, 176, 0.16);
  --b-soft: rgba(31, 63, 255, 0.13);
  --shadow: 0 1px 0 rgba(20, 19, 28, 0.08);
  --offset: 5px;
  --pad: clamp(1.15rem, 4vw, 3.5rem);
  --maxw: 1180px;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

html[data-theme="dark"] {
  --bg: #0d0c14;
  --paper: #16141f;
  --ink-a: #ff5cbb;
  --ink-b: #6f86ff;
  --ink: #f3f0e6;
  --ink-soft: #b3aec2;
  --rule: rgba(243, 240, 230, 0.18);
  --rule-strong: rgba(243, 240, 230, 0.34);
  --a-soft: rgba(255, 92, 187, 0.2);
  --b-soft: rgba(111, 134, 255, 0.18);
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.5);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 55% at 8% 0%, var(--a-soft) 0%, transparent 62%),
    radial-gradient(ellipse 65% 60% at 100% 42%, var(--b-soft) 0%, transparent 58%),
    radial-gradient(ellipse 80% 50% at 50% 100%, var(--a-soft) 0%, transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; }

h1, h2, h3 { line-height: 1.02; margin: 0; letter-spacing: -0.02em; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.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;
}

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

/* ---------- breathing variable-width headings ---------- */

@keyframes breathe {
  0%, 100% { font-variation-settings: "wdth" 78; }
  50%      { font-variation-settings: "wdth" 122; }
}

.hero__title,
.section__title,
.closer__title {
  font-weight: 800;
  font-variation-settings: "wdth" 88;
  animation: breathe 7s ease-in-out infinite;
}

.section__title { animation-duration: 9s; }
.closer__title  { animation-duration: 8s; }

/* ---------- top call strip ---------- */

.call-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  padding: 0.6rem var(--pad);
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.86rem;
  min-height: 44px;
  border-bottom: 3px solid var(--ink-a);
}
.call-strip__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--ink-a);
  box-shadow: 0 0 0 0 var(--ink-a);
  animation: pulse 2.4s ease-out infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 72, 176, 0.7); }
  70%  { box-shadow: 0 0 0 10px rgba(255, 72, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 72, 176, 0); }
}
.call-strip__label { text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.72rem; opacity: 0.75; }
.call-strip__num { font-family: var(--mono); font-weight: 700; font-size: 0.95rem; }
.call-strip__hint { margin-left: auto; font-size: 0.72rem; opacity: 0.7; }
.call-strip:hover .call-strip__num { color: var(--ink-a); }

/* ---------- masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.masthead__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.7rem var(--pad);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand__mark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.5rem;
  background: var(--ink-a);
  color: #fff;
  transform: translate(-2px, -2px);
  box-shadow: 2px 2px 0 var(--ink-b);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-weight: 800; font-size: 0.98rem; letter-spacing: -0.01em; }
.brand__text em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-soft);
}
.nav { display: flex; gap: 1.1rem; margin-left: auto; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.55rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav a:hover { border-bottom-color: var(--ink-a); color: var(--ink-b); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  background: transparent;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover { background: var(--a-soft); border-color: var(--ink-a); }
.theme-toggle__icon {
  width: 13px; height: 13px; border-radius: 50%;
  background: linear-gradient(90deg, var(--ink-a) 50%, var(--ink-b) 50%);
  border: 1px solid var(--rule-strong);
}

/* ---------- hero ---------- */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.2rem, 6vw, 4.5rem) var(--pad) clamp(1.5rem, 4vw, 3rem);
  display: grid;
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 0.95fr; }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.hero__title {
  font-size: clamp(2.6rem, 9vw, 5.2rem);
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.hero__title span { display: block; }
.hero__title .ink-a { color: var(--ink-a); }
.hero__title .ink-b { color: var(--ink-b); }

.hero__lede {
  font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 1.8rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.2rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-decoration: none;
  border: 2px solid var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn--primary {
  background: var(--ink-a);
  color: #fff;
  border-color: var(--ink-a);
  box-shadow: var(--offset) var(--offset) 0 var(--ink-b);
}
.btn--primary:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink-b); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--b-soft); transform: translate(-2px, -2px); box-shadow: var(--offset) var(--offset) 0 var(--ink-a); }
.btn--big { font-size: 1rem; padding: 1.05rem 2rem; }

.hero__facts {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}
.hero__facts div { display: grid; gap: 0.15rem; }
.hero__facts dt {
  font-family: var(--mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink-b);
}
.hero__facts dd { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

.hero__media { margin: 0; position: relative; }
.hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink-a);
}
.hero__media figcaption {
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

/* ---------- marquee band ---------- */

.marquee {
  overflow: hidden;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--ink-b);
  color: #fff;
  padding: 0.7rem 0;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: scroll 42s linear infinite;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.marquee__track span[aria-hidden] { color: var(--ink-a); }
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- generic section ---------- */

.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.8rem, 7vw, 5.5rem) var(--pad);
}
.section__head { max-width: 62ch; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section__title {
  font-size: clamp(1.9rem, 5.2vw, 3.4rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section__lede { color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- services ---------- */

.services {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.service {
  display: grid;
  gap: 0.4rem 1.6rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
@media (min-width: 760px) {
  .service { grid-template-columns: 4rem 1fr 1.1fr; align-items: start; }
  .service__num { grid-row: 1 / 3; }
  .service h3 { grid-column: 2; }
  .service p { grid-column: 2; }
  .service__meta { grid-column: 3; grid-row: 1 / 3; align-self: start; }
}
.service__num {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-a);
  padding-top: 0.35rem;
}
.service h3 {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 800;
  text-transform: uppercase;
}
.service p { color: var(--ink-soft); font-size: 0.95rem; }
.service__meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-b);
  margin: 0;
}
.service:hover h3 { color: var(--ink-b); }

/* ---------- full-bleed photography ---------- */

.bleed { margin: 0; }
.bleed__figure { margin: 0; position: relative; }
.bleed__figure img {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: cover;
  display: block;
}
.bleed__cap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem var(--pad) 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.bleed__cap strong {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink-a);
  margin-bottom: 0.35rem;
}
.bleed--split { display: grid; gap: 0; }
@media (min-width: 820px) {
  .bleed--split { grid-template-columns: 1fr 1fr; }
  .bleed--split .bleed__figure img { height: 100%; min-height: 380px; }
  .bleed--split .bleed__cap { padding-left: 1.6rem; padding-right: 1.6rem; }
}

/* ---------- steps ---------- */

.steps {
  display: grid;
  gap: 1.2rem;
}
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  padding: 1.5rem 1.3rem;
  position: relative;
  box-shadow: var(--shadow);
}
.step::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--ink-a);
  transform: translate(4px, 4px);
  pointer-events: none;
  opacity: 0.55;
}
.step__num {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.78rem;
  color: #fff;
  background: var(--ink-b);
  padding: 0.2rem 0.5rem;
  margin-bottom: 0.9rem;
}
.step h3 { font-size: 1.1rem; text-transform: uppercase; margin-bottom: 0.6rem; }
.step p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- fleet ---------- */

.fleet { display: grid; gap: 1.2rem; }
@media (min-width: 700px) { .fleet { grid-template-columns: repeat(2, 1fr); } }
.fleet__card {
  border-top: 3px solid var(--ink-a);
  padding-top: 1.1rem;
}
.fleet__card:nth-child(even) { border-top-color: var(--ink-b); }
.fleet__card h3 { font-size: 1.15rem; text-transform: uppercase; margin-bottom: 0.6rem; }
.fleet__card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- service area ---------- */

.area {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.area li {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 700px) {
  .area li { grid-template-columns: 15rem 1fr; gap: 1.5rem; align-items: baseline; }
}
.area strong {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-b);
}
.area span { color: var(--ink-soft); font-size: 0.94rem; }

/* ---------- visit / hours ---------- */

.visit { display: grid; gap: 2.5rem; }
@media (min-width: 820px) { .visit { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.visit__col h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--ink);
}
.hours { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.hours th, .hours td { text-align: left; padding: 0.5rem 0; border-bottom: 1px solid var(--rule); }
.hours th { font-weight: 600; }
.hours td { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-a); text-align: right; }
.visit__note { margin-top: 1rem; font-size: 0.88rem; color: var(--ink-soft); }
.address { font-style: normal; font-size: 1rem; line-height: 1.7; margin-bottom: 1rem; }
.address strong { display: block; font-weight: 800; }
.visit__phone { margin-top: 1.4rem; display: grid; gap: 0.2rem; }
.visit__phone a {
  font-family: var(--mono);
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  font-weight: 700;
  text-decoration: none;
  color: var(--ink-b);
  border-bottom: 3px solid var(--ink-a);
  align-self: start;
  padding-bottom: 0.1rem;
}
.visit__phone a:hover { color: var(--ink-a); border-bottom-color: var(--ink-b); }
.visit__phone span {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.visit__map { margin-top: 1.2rem; }
.visit__map a { font-size: 0.9rem; color: var(--ink-b); }

/* ---------- closer ---------- */

.closer {
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) var(--pad);
  border-top: 2px solid var(--ink);
  background: var(--a-soft);
}
.closer__title {
  font-size: clamp(2.1rem, 7vw, 4.2rem);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.closer__lede { max-width: 52ch; margin: 0 auto 2rem; color: var(--ink-soft); }
.closer__meta {
  margin-top: 1.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}

/* ---------- footer ---------- */

.footer {
  border-top: 2px solid var(--ink);
  background: var(--paper);
  padding: clamp(2.2rem, 5vw, 3.5rem) var(--pad) 5rem;
}
.footer__inner { max-width: var(--maxw); margin: 0 auto; }
.footer__brand { display: flex; flex-direction: column; gap: 0.2rem; margin-bottom: 2rem; }
.footer__brand strong { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; }
.footer__brand span {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.footer__cols { display: grid; gap: 1.8rem; margin-bottom: 2.2rem; }
@media (min-width: 700px) { .footer__cols { grid-template-columns: repeat(3, 1fr); } }
.footer__cols h3 {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--ink-a);
  margin-bottom: 0.7rem;
}
.footer__cols p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.35rem; }
.footer__cols a { color: var(--ink-b); text-decoration: none; }
.footer__cols a:hover { text-decoration: underline; }

.claim-banner-wrap { margin: 0 0 0.9rem; }
.claim-banner {
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.5rem 0.8rem;
  background: var(--b-soft);
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.claim-banner:hover { background: var(--ink-b); color: #fff; }

.attribution {
  position: static;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  opacity: 0.6;
}
.attribution a { color: inherit; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__title,
  .section__title,
  .closer__title {
    animation: none;
    font-variation-settings: "wdth" 92;
  }
  .marquee__track { animation: none; }
  .call-strip__dot { animation: none; }
  .btn { transition: none; }
  .btn--primary:hover,
  .btn--ghost:hover { transform: none; }
}
