/* ============================================================
   AM Mobile Mechanic — mobile mechanic, Vaughan / Brampton
   Palette: black + white + one colour per section
   ============================================================ */

:root {
  --bg-section-1: #0a0a0a;
  --bg-section-2: #e10600;
  --bg-section-3: #003c8a;
  --bg-section-4: #f4ff33;

  --ink-on-dark: #f6f6f4;
  --ink-on-light: #0a0a0a;
  --muted-on-dark: rgba(246, 246, 244, 0.68);
  --muted-on-light: rgba(10, 10, 10, 0.66);

  --line-dark: rgba(246, 246, 244, 0.16);
  --line-light: rgba(10, 10, 10, 0.16);

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

  --pad-x: clamp(1.15rem, 4vw, 3.5rem);
  --maxw: 1240px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.6;
  color: var(--ink-on-dark);
  background-color: var(--bg-section-1);
  /* patterned SVG tile — dot matrix, ties the whole page together */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'><circle cx='1.5' cy='1.5' r='1.1' fill='%23ffffff' fill-opacity='0.055'/><circle cx='12.5' cy='12.5' r='1.1' fill='%23ffffff' fill-opacity='0.03'/></svg>");
  background-size: 22px 22px;
  text-wrap: pretty;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; margin: 0; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--bg-section-4);
  outline-offset: 3px;
  border-radius: 2px;
}
.sec-yellow :focus-visible { outline-color: var(--bg-section-1); }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-section-4);
  color: var(--ink-on-light);
  padding: 0.6rem 1rem;
  z-index: 100;
  font-weight: 600;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

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

/* ---------------- header ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.7rem var(--pad-x);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  background: var(--bg-section-2);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; }
.brand-text em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted-on-dark);
}
.topnav { display: flex; gap: 1.35rem; }
.topnav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--muted-on-dark);
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}
.topnav a:hover { color: var(--ink-on-dark); border-bottom-color: var(--bg-section-2); }

.callbtn {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  background: var(--bg-section-4);
  color: var(--ink-on-light);
  padding: 0.5rem 0.9rem;
  min-height: 44px;
  justify-content: center;
  line-height: 1.15;
}
.callbtn-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.7;
}
.callbtn-num { font-weight: 800; font-size: 0.95rem; letter-spacing: -0.01em; }

/* ---------------- section shells ---------------- */
.sec {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem);
  border-bottom: 1px solid var(--line-dark);
}
.sec-dark { background-color: var(--bg-section-1); color: var(--ink-on-dark); }
.sec-red { background-color: var(--bg-section-2); color: #fff; }
.sec-blue { background-color: var(--bg-section-3); color: #fff; }
.sec-yellow { background-color: var(--bg-section-4); color: var(--ink-on-light); }

.sec-red, .sec-blue, .sec-yellow {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'><circle cx='1.5' cy='1.5' r='1.1' fill='%23000000' fill-opacity='0.07'/><circle cx='12.5' cy='12.5' r='1.1' fill='%23000000' fill-opacity='0.04'/></svg>");
  background-size: 22px 22px;
}

.sec-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin: 0 0 0.9rem;
  opacity: 0.75;
}
.sec-head h2 { font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.4rem); }
.sec-sub { margin-top: 1rem; max-width: 56ch; opacity: 0.86; }

/* ---------------- hero ---------------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(3.5rem, 8vw, 6rem); }
.hero-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: end;
}
.hero-copy { grid-column: 1 / 5; }
.hero-figure { grid-column: 4 / 7; margin: 0; }

.stacked {
  font-size: clamp(2.4rem, 1.1rem + 7.2vw, 5.6rem);
  margin-bottom: 1.5rem;
}
.stacked span { display: block; }
.stacked span:nth-child(1) { margin-left: 0; }
.stacked span:nth-child(2) { margin-left: 0.9em; color: var(--bg-section-4); }
.stacked span:nth-child(3) { margin-left: -0.35em; font-size: 0.72em; opacity: 0.9; }

.lede { max-width: 46ch; color: var(--muted-on-dark); font-size: 1.05rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}
.btn-solid { background: var(--bg-section-2); color: #fff; }
.btn-solid:hover { transform: translateY(-2px); background: #ff1a10; }
.btn-ghost { border-color: var(--line-dark); color: var(--ink-on-dark); }
.btn-ghost:hover { border-color: var(--ink-on-dark); transform: translateY(-2px); }

.hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-on-dark);
}
.hero-facts b { color: var(--bg-section-4); font-weight: 600; }

.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.08);
}
.hero-figure figcaption {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-top: 0.7rem;
}

/* ---------------- bento (broken anti-grid) ---------------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.card {
  grid-column: span 2;
  background: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 1.4rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
}
.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  margin-bottom: 1.1rem;
  filter: grayscale(100%) contrast(1.06);
}
.card h3 { font-size: 1.22rem; margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; opacity: 0.94; }
.card .meta {
  margin-top: auto;
  padding-top: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.78;
}
/* intentional misalignments — one breaks out, one leaves a gap */
.card-wide { grid-column: 1 / 4; }
.card-tall { grid-column: 4 / 7; }
.card-accent {
  grid-column: 2 / 6;
  background: rgba(0, 0, 0, 0.34);
  border-color: rgba(255, 255, 255, 0.5);
  margin-top: 1.5rem;
}

/* ---------------- drag band ---------------- */
.band-sec { padding-bottom: clamp(3.5rem, 8vw, 7rem); }
.band {
  overflow: hidden;
  cursor: grab;
  padding-inline: var(--pad-x);
  margin-top: 0.5rem;
  touch-action: pan-y;
}
.band.is-dragging { cursor: grabbing; }
.band.is-dragging .band-item img { filter: grayscale(0%) contrast(1); }
.band-track {
  display: flex;
  gap: 1.1rem;
  width: max-content;
  will-change: transform;
}
.band-item {
  margin: 0;
  width: clamp(230px, 30vw, 340px);
  flex: none;
  user-select: none;
}
.band-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  pointer-events: none;
  filter: grayscale(100%) contrast(1.08);
  transition: filter 220ms ease;
}
.band-item figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-top: 0.7rem;
  font-size: 0.9rem;
}
.band-item figcaption b { font-weight: 600; }
.band-item figcaption span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.72;
}
.band-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-top: 1.2rem;
  padding-inline: var(--pad-x);
}

/* ---------------- steps ---------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.steps li {
  grid-column: span 3;
  border-top: 2px solid var(--bg-section-2);
  padding-top: 1.1rem;
}
.steps li:nth-child(2) { margin-top: 2.25rem; }
.steps li:nth-child(4) { margin-top: 2.25rem; }
.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--bg-section-4);
  margin-bottom: 0.5rem;
}
.steps h3 { font-size: 1.2rem; margin-bottom: 0.55rem; }
.steps p { font-size: 0.95rem; color: var(--muted-on-dark); }

/* ---------------- service area ---------------- */
.area-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.area-col { grid-column: 1 / 4; }
.area-note { grid-column: 4 / 7; margin-top: 2.5rem; }
.area-col h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.pill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pill-list li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border: 1.5px solid var(--ink-on-light);
  padding: 0.42rem 0.7rem;
}
.area-note p { font-size: 0.95rem; }

/* ---------------- hours + contact ---------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.hours-card { grid-column: 1 / 4; }
.contact-card {
  grid-column: 4 / 7;
  margin-top: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line-dark);
  padding: clamp(1.3rem, 2.5vw, 2rem);
}
.hours-card h3, .contact-card h3 { font-size: 1.15rem; margin-bottom: 1.1rem; }
.hours { margin: 0; }
.hours > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.hours dt { font-weight: 600; font-size: 0.95rem; }
.hours dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted-on-dark);
}
.hours .closed dd { color: var(--bg-section-2); }
.hours-note {
  margin-top: 1.1rem;
  font-size: 0.88rem;
  color: var(--muted-on-dark);
}
.contact-lead { font-size: 0.95rem; color: var(--muted-on-dark); }
.big-phone {
  display: block;
  font-size: clamp(1.6rem, 1rem + 2.6vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--bg-section-4);
  margin: 0.4rem 0 1.4rem;
  word-break: break-word;
}
.big-phone:hover { text-decoration: underline; }
.addr {
  font-style: normal;
  font-size: 0.95rem;
  line-height: 1.7;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-dark);
}
.addr-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-on-dark);
  margin-bottom: 0.35rem;
}
.contact-note {
  font-size: 0.86rem;
  color: var(--muted-on-dark);
  margin: 1.1rem 0 1.4rem;
}

/* ---------------- quotes ---------------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.quotes blockquote {
  grid-column: span 2;
  margin: 0;
  border-top: 2px solid rgba(255, 255, 255, 0.55);
  padding-top: 1.2rem;
}
.quotes blockquote:nth-child(2) { margin-top: 2rem; }
.quotes p { font-size: 0.98rem; }
.quotes cite {
  display: block;
  margin-top: 0.9rem;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  opacity: 0.8;
}

/* ---------------- footer ---------------- */
.site-footer {
  background: var(--bg-section-1);
  color: var(--ink-on-dark);
  padding-block: clamp(2.5rem, 5vw, 4rem) 4.5rem;
  border-top: 1px solid var(--line-dark);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer-brand strong { font-size: 1.05rem; }
.footer-brand p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted-on-dark);
  max-width: 44ch;
}
.footer-brand a { color: var(--bg-section-4); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--muted-on-dark);
  padding: 0.4rem 0;
}
.footer-nav a:hover { color: var(--ink-on-dark); }

.claim-wrap { margin-top: 2.5rem; }
.claim-banner {
  display: inline-block;
  font-size: 0.8rem;
  padding: 0.5rem 0.8rem;
  background: rgba(246, 246, 244, 0.07);
  border: 1px solid var(--line-dark);
  color: var(--muted-on-dark);
  text-decoration: none;
}
.claim-banner:hover { color: var(--ink-on-dark); border-color: var(--muted-on-dark); }

.attribution {
  position: fixed;
  bottom: 0.5rem;
  right: 0.75rem;
  margin: 0;
  font-size: 0.7rem;
  opacity: 0.5;
  font-family: var(--font-mono);
  z-index: 30;
}
.attribution a { color: var(--ink-on-dark); }

/* ---------------- motion: gentle fade + rise on scroll enter ---------------- */
@keyframes fadeRise {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}
@supports (animation-timeline: view()) {
  .sec, .card, .steps li, .quotes blockquote {
    animation: fadeRise 420ms cubic-bezier(.2, .7, .1, 1) both;
    animation-timeline: view();
    animation-range: entry 0% cover 25%;
  }
}

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .hero-copy { grid-column: 1 / 7; }
  .hero-figure { grid-column: 1 / 7; margin-top: 1.5rem; }
  .card, .card-wide, .card-tall, .card-accent { grid-column: 1 / 7; margin-top: 0; }
  .steps li, .steps li:nth-child(2), .steps li:nth-child(4) { grid-column: 1 / 7; margin-top: 0; }
  .area-col, .area-note { grid-column: 1 / 7; margin-top: 0; }
  .hours-card, .contact-card { grid-column: 1 / 7; margin-top: 0; }
  .quotes blockquote, .quotes blockquote:nth-child(2) { grid-column: 1 / 7; margin-top: 0; }
}

@media (max-width: 720px) {
  .topnav { display: none; }
  .topbar { gap: 0.6rem; }
  .callbtn { padding: 0.45rem 0.7rem; }
  .callbtn-num { font-size: 0.85rem; }
  .stacked span:nth-child(2) { margin-left: 0.5em; }
  .stacked span:nth-child(3) { margin-left: 0; }
  .band { padding-inline: var(--pad-x); }
}

@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;
  }
  .sec, .card, .steps li, .quotes blockquote { opacity: 1 !important; translate: none !important; }
  .btn:hover { transform: none; }
}
