/* ============================================================
   On The Fly Mobile Mechanic Services — Chicago
   Composition: risograph two-ink misregister · variable-width
   breathing type · marquee heartbeat · full-bleed photography
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --bg: #f7f5ea;
  --paper: #fdfcf6;
  --ink-a: #ff48b0;      /* fluorescent pink */
  --ink-b: #1f3fff;      /* royal blue */
  --ink-a-soft: rgba(255, 72, 176, 0.16);
  --ink-b-soft: rgba(31, 63, 255, 0.14);
  --text: #14121c;
  --muted: #56536b;
  --rule: rgba(20, 18, 28, 0.16);
  --shadow: 0 18px 40px -24px rgba(20, 18, 28, 0.45);
  --maxw: 1180px;
  --gut: clamp(1.15rem, 4vw, 3.25rem);
  --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-body: "Fraunces", Georgia, "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #100f16;
    --paper: #191823;
    --ink-a: #ff6cc1;
    --ink-b: #6f86ff;
    --ink-a-soft: rgba(255, 108, 193, 0.18);
    --ink-b-soft: rgba(111, 134, 255, 0.18);
    --text: #f4f2ea;
    --muted: #a9a5bd;
    --rule: rgba(244, 242, 234, 0.18);
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
  }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.125rem);
  line-height: 1.62;
  text-wrap: pretty;
  background:
    radial-gradient(ellipse 70% 55% at 8% 0%, var(--ink-a-soft) 0%, transparent 62%),
    radial-gradient(ellipse 65% 50% at 96% 22%, var(--ink-b-soft) 0%, transparent 58%),
    radial-gradient(ellipse 90% 60% at 50% 108%, var(--ink-a-soft) 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  overflow-x: hidden;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}
.eyebrow b { color: var(--ink-b); font-weight: 700; }

/* ---------- skip-free header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem var(--gut);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--ink-b);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink-a);
}
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.topbar-call {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  background: var(--ink-a);
  color: #14121c;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink-b);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.topbar-call:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink-b); }
@media (max-width: 560px) {
  .brand span.brand-text { display: none; }
}

/* ---------- marquee heartbeat ---------- */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--rule);
  background: var(--ink-b);
  color: #fff;
  padding-block: 0.55rem;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: scroll 34s linear infinite;
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-track span::after { content: " ◆"; color: var(--ink-a); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; }
.hero-media { position: relative; }
.hero-media img {
  height: clamp(320px, 62vh, 640px);
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,18,28,0.05) 0%, rgba(20,18,28,0.72) 100%);
}
.hero-copy {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0 var(--gut) clamp(1.5rem, 5vw, 3.25rem);
  color: #fff;
  max-width: 62rem;
}
.hero-copy h1 {
  font-size: clamp(2.3rem, 8.5vw, 5.4rem);
  margin-bottom: 0.35em;
  text-shadow: 0 2px 26px rgba(0,0,0,0.4);
}
.hero-copy h1 em {
  font-style: normal;
  color: var(--ink-a);
  display: inline-block;
}
.hero-sub {
  font-size: clamp(1rem, 2.4vw, 1.22rem);
  max-width: 40rem;
  margin-bottom: 1.4rem;
  color: rgba(255,255,255,0.92);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary {
  background: var(--ink-a);
  color: #14121c;
  box-shadow: 4px 4px 0 var(--ink-b);
}
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink-b); }
.btn-ghost {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.55);
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); }

/* ---------- breathing variable-width headings ---------- */
.breathe {
  font-variation-settings: "wdth" 100;
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { font-variation-settings: "wdth" 78; }
  50%      { font-variation-settings: "wdth" 122; }
}

/* ---------- risograph misregister ---------- */
.riso {
  position: relative;
  display: inline-block;
  isolation: isolate;
}
.riso::before,
.riso::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.riso::before { color: var(--ink-a); transform: translate(3px, -3px); }
.riso::after  { color: var(--ink-b); transform: translate(-3px, 3px); }

/* ---------- generic section rhythm ---------- */
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section-head { max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.9rem, 5.4vw, 3.4rem); }
.section-head p { color: var(--muted); margin-bottom: 0; }

/* ---------- full-bleed gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.5rem, 1.6vw, 1.1rem);
}
.gallery > * { grid-column: 1 / -1; }
.gallery > .half { grid-column: 1 / -1; }
@media (min-width: 720px) {
  .gallery > .half { grid-column: span 6; }
}
.gallery figure { margin: 0; position: relative; overflow: hidden; }
.gallery figure img {
  height: clamp(240px, 46vw, 560px);
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.gallery figure:hover img { transform: scale(1.025); }
.gallery figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 0.85rem 1.1rem;
  background: var(--ink-b);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  max-width: 90%;
}
.gallery .half figcaption { background: var(--ink-a); color: #14121c; }

/* ---------- services ---------- */
.services {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.service {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}
@media (min-width: 760px) {
  .service { grid-template-columns: 3.5rem 1.15fr 1.6fr; align-items: baseline; }
}
.service .num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--ink-a);
}
.service h3 {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  margin: 0;
}
.service p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- two-column band ---------- */
.band {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 880px) {
  .band { grid-template-columns: 1.05fr 0.95fr; }
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.25rem; }

/* ---------- hours ---------- */
.hours { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.86rem; }
.hours th, .hours td { text-align: left; padding: 0.6rem 0; border-bottom: 1px dashed var(--rule); }
.hours th { font-weight: 400; color: var(--muted); letter-spacing: 0.06em; }
.hours td { text-align: right; font-weight: 700; color: var(--ink-b); }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.open-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-b);
  margin-bottom: 0.9rem;
}
.open-flag::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--ink-a);
  box-shadow: 0 0 0 4px var(--ink-a-soft);
}

/* ---------- reviews ---------- */
.reviews { display: grid; gap: 1rem; }
@media (min-width: 780px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--ink-a);
  padding: 1.25rem 1.35rem;
}
.review blockquote { margin: 0 0 0.85rem; font-size: 1rem; }
.review cite {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.stars { color: var(--ink-a); letter-spacing: 0.15em; font-size: 0.85rem; display: block; margin-bottom: 0.6rem; }

/* ---------- coverage list ---------- */
.coverage { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.coverage li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--muted);
  background: var(--paper);
}

/* ---------- contact ---------- */
.contact {
  background: var(--ink-b);
  color: #fff;
  padding-block: clamp(3rem, 8vw, 5.5rem);
}
.contact a { color: #fff; }
.contact .eyebrow { color: rgba(255,255,255,0.7); }
.contact .eyebrow b { color: var(--ink-a); }
.contact-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 880px) { .contact-grid { grid-template-columns: 1.2fr 1fr; } }
.contact h2 { font-size: clamp(2rem, 6vw, 3.6rem); }
.phone-big {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 6vw, 2.9rem);
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink-a);
  border-bottom: 4px solid var(--ink-a);
  padding-bottom: 0.08em;
  margin-bottom: 1rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.phone-big:hover { color: #fff; border-color: #fff; }
.contact-list { font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.9; }
.contact-list dt {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 1.1rem;
}
.contact-list dd { margin: 0.15rem 0 0; }
.contact-note {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.78);
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 1rem;
  margin-top: 1.5rem;
}

/* ---------- footer ---------- */
.footer {
  padding-block: clamp(2rem, 5vw, 3rem);
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: flex-end;
}
.footer strong { color: var(--text); font-family: var(--font-display); }
.claim-banner {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--muted);
  background: var(--ink-b-soft);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.45rem 0.75rem;
  margin-bottom: 0.85rem;
  transition: color 0.2s ease, background 0.2s ease;
}
.claim-banner:hover { color: var(--text); background: var(--ink-a-soft); }
.attribution { margin: 0; }
.attribution a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- reveal on scroll (progressive) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 8% cover 26%;
    }
    @keyframes rise {
      from { opacity: 0; transform: translateY(22px); }
      to   { opacity: 1; transform: none; }
    }
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .marquee-track { animation: none; }
  .breathe { font-variation-settings: "wdth" 100; }
  .gallery figure:hover img { transform: none; }
}
