/* ============================================================
   Retro truck trailer repair mobile 24/7 — Etobicoke
   Palette: bleached cream + oxblood + navy
   Type: Bricolage Grotesque (thin display / heavy body)
   ============================================================ */

:root {
  --bg: #f4ecdc;
  --bg-deep: #e8dcc4;
  --ink: #1a1b2e;
  --accent: #6b1f1a;
  --secondary: #1e2a4a;
  --muted: #5b5748;
  --rule: rgba(26, 27, 46, 0.16);
  --card: rgba(255, 253, 246, 0.62);

  --pad: clamp(1.25rem, 5vw, 5rem);
  --measure: 62ch;

  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14151f;
    --bg-deep: #0d0e16;
    --ink: #f0e8d8;
    --accent: #d98a72;
    --secondary: #9db0dd;
    --muted: #a49e8c;
    --rule: rgba(240, 232, 216, 0.18);
    --card: rgba(30, 32, 46, 0.6);
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  line-height: 1.62;
  letter-spacing: -0.005em;
  background:
    radial-gradient(ellipse 70% 55% at 8% 0%, rgba(107, 31, 26, 0.16) 0%, transparent 62%),
    radial-gradient(ellipse 65% 50% at 100% 22%, rgba(30, 42, 74, 0.18) 0%, transparent 58%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(107, 31, 26, 0.09) 0%, transparent 60%),
    linear-gradient(178deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
  text-wrap: pretty;
}

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

a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--secondary); }

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

h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.03em; }

h1 {
  font-weight: 200;
  font-size: clamp(2.9rem, 1.6rem + 7.2vw, 7.5rem);
  line-height: 0.94;
  font-variation-settings: "opsz" 96;
}

h2 {
  font-weight: 200;
  font-size: clamp(1.9rem, 1.2rem + 2.9vw, 3.4rem);
  line-height: 1.02;
  font-variation-settings: "opsz" 72;
}

h3 { font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; }

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

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.7rem var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.wordmark { display: flex; align-items: baseline; gap: 0.55rem; text-decoration: none; color: var(--ink); }
.wordmark-main { font-family: var(--font-display); font-weight: 200; font-size: 1.6rem; letter-spacing: -0.04em; }
.wordmark-sub {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.topbar-right { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }

.open-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--secondary);
}
.open-flag .dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(107, 31, 26, 0.5);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(107, 31, 26, 0.45); }
  70% { box-shadow: 0 0 0 0.6rem rgba(107, 31, 26, 0); }
  100% { box-shadow: 0 0 0 0 rgba(107, 31, 26, 0); }
}

.call-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.6rem 1.1rem;
  background: var(--accent);
  color: #fdf7ec;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color 0.25s ease, transform 0.25s ease;
}
.call-btn:hover { background: var(--secondary); color: #fdf7ec; transform: translateY(-1px); }

.call-btn--big { font-size: 1rem; padding: 0.95rem 1.7rem; }

.ghost-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.9rem 1.4rem;
  border: 1px solid var(--rule);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.ghost-btn:hover { border-color: var(--accent); color: var(--accent); }

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

.hero { padding-bottom: clamp(2rem, 5vw, 4rem); }

.hero-media { position: relative; overflow: hidden; }
.hero-media img {
  width: 100%;
  height: clamp(300px, 52vh, 620px);
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 27, 46, 0.32) 0%, rgba(26, 27, 46, 0.05) 45%, var(--bg) 100%);
  pointer-events: none;
}

.hero-copy {
  padding: clamp(1.5rem, 4vw, 3rem) var(--pad) 0;
  max-width: 78rem;
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-lede {
  max-width: var(--measure);
  margin-top: 1.5rem;
  font-size: clamp(1.02rem, 0.95rem + 0.5vw, 1.25rem);
  line-height: 1.55;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.9rem; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin: 2.6rem 0 0;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.hero-stats > div { background: transparent; padding: 1.1rem 1rem 1.1rem 0; }
.hero-stats dt {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.hero-stats dd { margin: 0.3rem 0 0; font-size: 1.05rem; }

/* ---------- Full-bleed bands ---------- */

.band { position: relative; margin: clamp(2.5rem, 6vw, 5rem) 0; }
.band img {
  width: 100%;
  height: clamp(260px, 46vh, 560px);
  object-fit: cover;
  filter: saturate(0.8) contrast(1.05);
}
.band--short img { height: clamp(220px, 36vh, 420px); }

.band-caption {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0.9rem var(--pad) 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- Section scaffolding ---------- */

.section-head {
  max-width: 78rem;
  margin-inline: auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--pad) 0;
}
.section-note { max-width: var(--measure); margin-top: 1.1rem; }

/* ---------- Services ---------- */

.service-grid {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0 var(--pad);
  max-width: 78rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.service {
  background: var(--card);
  padding: 1.5rem 1.4rem 1.7rem;
  transition: background-color 0.3s ease;
}
.service:hover { background: color-mix(in srgb, var(--bg) 92%, var(--accent)); }
.service h3 { color: var(--accent); margin-bottom: 0.6rem; }
.service p { font-size: 0.94rem; line-height: 1.55; color: var(--ink); }

/* ---------- Split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: clamp(3rem, 7vw, 6rem) 0;
}
.split-media img {
  width: 100%;
  height: clamp(280px, 50vh, 620px);
  object-fit: cover;
  filter: saturate(0.82);
}
.split-copy {
  padding: clamp(1.6rem, 4vw, 3rem) var(--pad);
  max-width: 46rem;
}
.split-copy h2 { margin-bottom: 1.3rem; }
.split-copy p { max-width: var(--measure); }

.pull {
  margin-top: 1.8rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.6rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* ---------- Half-width gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--rule);
  margin: clamp(2rem, 5vw, 4rem) 0;
}
.gallery > * { grid-column: 1 / -1; margin: 0; }
.gallery figure { background: var(--bg); }
.gallery img {
  width: 100%;
  height: clamp(240px, 42vh, 480px);
  object-fit: cover;
  filter: saturate(0.82);
}
.gallery figcaption {
  padding: 0.85rem var(--pad);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- Process ---------- */

.process { padding-bottom: clamp(1rem, 3vw, 2rem); }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 2.2rem 0 0;
  padding: 0 var(--pad);
  max-width: 78rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 1.8rem;
}
.steps li { border-top: 2px solid var(--accent); padding-top: 1rem; }
.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.steps h3 { margin-bottom: 0.45rem; }
.steps p { font-size: 0.93rem; line-height: 1.55; }

/* ---------- Clients ---------- */

.clients { padding-bottom: clamp(2rem, 5vw, 4rem); }

.client-list {
  list-style: none;
  margin: 2rem auto 0;
  padding: 0 var(--pad);
  max-width: 78rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 0.55rem 2rem;
}
.client-list li {
  padding: 0.6rem 0 0.6rem 1.4rem;
  position: relative;
  border-bottom: 1px solid var(--rule);
  font-size: 0.96rem;
}
.client-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.55rem;
  height: 2px;
  background: var(--accent);
}

.clients-note {
  max-width: var(--measure);
  margin: 2rem auto 0;
  padding: 0 var(--pad);
  font-size: 0.96rem;
  color: var(--muted);
}

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

.contact {
  margin-top: clamp(2rem, 5vw, 4rem);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
  background: var(--secondary);
  color: #f4ecdc;
}
.contact a { color: #f4ecdc; }
.contact a:hover { color: #e8b9a4; }

.contact-grid {
  max-width: 78rem;
  margin-inline: auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 2.4rem;
}
.contact-block h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); margin-bottom: 0.9rem; }
.contact-big { font-family: var(--font-display); font-weight: 200; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem); letter-spacing: -0.03em; line-height: 1.1; }
.contact-big a { text-decoration: none; border-bottom: 2px solid rgba(244, 236, 220, 0.4); }
.contact-big a:hover { border-bottom-color: #e8b9a4; }
.contact-sub { font-size: 0.88rem; font-weight: 400; color: rgba(244, 236, 220, 0.72); margin-top: 0.9rem; }
address { font-style: normal; font-size: 1rem; line-height: 1.7; }

.hours { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.hours th, .hours td { text-align: left; padding: 0.42rem 0; border-bottom: 1px solid rgba(244, 236, 220, 0.16); }
.hours th { font-weight: 700; color: rgba(244, 236, 220, 0.78); }
.hours td { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 400; text-align: right; }

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

.site-footer {
  padding: 2.2rem var(--pad) 4.5rem;
  text-align: center;
  border-top: 1px solid var(--rule);
}
.footer-line { font-size: 0.85rem; font-weight: 400; color: var(--muted); margin-bottom: 1.2rem; }

.claim-banner {
  display: inline-block;
  margin-bottom: 1.4rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  background: color-mix(in srgb, var(--bg) 70%, var(--rule));
  border: 1px solid var(--rule);
  border-radius: 2px;
  text-decoration: none;
}
.claim-banner:hover { color: var(--accent); border-color: var(--accent); }

.attribution { font-size: 0.7rem; font-weight: 400; opacity: 0.55; margin: 0; }
.attribution a { color: inherit; }

/* ---------- Wider screens ---------- */

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; align-items: center; }
  .split-media img { height: 100%; min-height: 520px; }
  .split-copy { padding: clamp(2rem, 4vw, 4rem); }
  .gallery > .half { grid-column: span 6; }
}

/* ---------- 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;
  }
  .call-btn:hover { transform: none; }
}
