/* ============================================================
   The Mobile Mechanic — Los Angeles
   Composition: black + white + one colour per section,
   stacked headline, broken bento, drag band, SVG tile bg.
   ============================================================ */

:root {
  --ink: #0a0a0a;
  --red: #e10600;
  --blue: #003c8a;
  --acid: #f4ff33;
  --paper: #f4f2ed;
  --white: #ffffff;

  --fg-on-ink: #f4f2ed;
  --fg-on-red: #ffffff;
  --fg-on-blue: #ffffff;
  --fg-on-acid: #0a0a0a;

  --pad: clamp(1.25rem, 4vw, 3.5rem);
  --maxw: 1180px;

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

  --tile: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'><path d='M0 0h22v22H0z' fill='none'/><circle cx='2' cy='2' r='1' fill='%23000000' fill-opacity='0.16'/></svg>");
  --tile-light: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'><path d='M0 0h22v22H0z' fill='none'/><circle cx='2' cy='2' r='1' fill='%23ffffff' fill-opacity='0.14'/></svg>");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image: var(--tile);
  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.02; letter-spacing: -0.025em; margin: 0 0 0.5em; font-weight: 800; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.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; z-index: 100;
  background: var(--acid); color: var(--ink); padding: 0.75rem 1rem;
  font-family: var(--mono); font-size: 0.8rem; text-decoration: none;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 3px;
}
.sec--acid :focus-visible { outline-color: var(--ink); }

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

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  padding: 0.6rem var(--pad);
  background: rgba(10, 10, 10, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--red);
  color: var(--fg-on-ink);
}
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; flex: none;
  background: var(--red); color: #fff;
  font-family: var(--mono); font-weight: 700; font-size: 0.85rem;
  letter-spacing: -0.05em;
}
.brand-text { display: flex; flex-direction: column; font-weight: 800; font-size: 0.95rem; letter-spacing: -0.02em; }
.brand-text em {
  font-style: normal; font-family: var(--mono); font-weight: 400;
  font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0.62;
}
.topnav { display: none; gap: 1.35rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.topnav a { text-decoration: none; opacity: 0.78; padding: 0.5rem 0; }
.topnav a:hover { opacity: 1; color: var(--acid); }

.callbtn {
  display: flex; flex-direction: column; align-items: flex-end;
  text-decoration: none; padding: 0.45rem 0.85rem;
  background: var(--acid); color: var(--ink);
  min-height: 44px; justify-content: center;
  transition: background 160ms ease, color 160ms ease;
}
.callbtn:hover { background: #fff; }
.callbtn-label { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.7; }
.callbtn-num { font-weight: 800; font-size: 0.9rem; letter-spacing: -0.02em; }

/* ---------- section shell ---------- */
.sec {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem);
  color: var(--fg-on-ink);
  background-color: var(--ink);
  background-image: var(--tile-light);
  background-size: 22px 22px;
}
.sec--ink  { background-color: var(--ink);  color: var(--fg-on-ink); }
.sec--red  { background-color: var(--red);  color: var(--fg-on-red); }
.sec--blue { background-color: var(--blue); color: var(--fg-on-blue); }
.sec--acid { background-color: var(--acid); color: var(--fg-on-acid); background-image: var(--tile); }

.kicker {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.18em;
  text-transform: uppercase; margin: 0 0 0.9rem; opacity: 0.72;
}
.sec-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.sec-head h2, .sec h2 { font-size: clamp(2rem, 1.2rem + 4.2vw, 4rem); }
.sec-sub { font-size: 1.05rem; opacity: 0.86; margin: 0; }
.note {
  margin-top: 2rem; font-family: var(--mono); font-size: 0.78rem;
  line-height: 1.7; opacity: 0.8; max-width: 46rem;
}
.note--tight { margin-top: 1.25rem; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 7rem); }
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; margin: 0 0 1.4rem;
  border: 1px solid rgba(244, 242, 237, 0.28); padding: 0.4rem 0.7rem;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.stack { font-size: clamp(2.6rem, 1.1rem + 8.4vw, 6.2rem); margin-bottom: 1.2rem; }
.stack span { display: block; }
.stack span:nth-child(2) { margin-left: 0.9em; color: var(--acid); }
.stack span:nth-child(3) { margin-left: -0.06em; }

.lede { font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.2rem); max-width: 34rem; opacity: 0.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 2.25rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.85rem 1.4rem;
  font-family: var(--mono); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--hot { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.btn--hot:hover { background: #fff; border-color: #fff; }
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn--ghost:hover { background: currentColor; }
.btn--ghost:hover { color: var(--ink); }
.btn--full { width: 100%; }

.facts { display: grid; gap: 1rem; margin: 0; padding-top: 1.5rem; border-top: 1px solid rgba(244, 242, 237, 0.18); }
.facts dt { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.6; margin-bottom: 0.2rem; }
.facts dd { margin: 0; font-weight: 600; font-size: 0.95rem; }

.hero-shot { margin: 0; }
.hero-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 2px solid rgba(244, 242, 237, 0.22); }
.hero-shot figcaption {
  font-family: var(--mono); font-size: 0.7rem; line-height: 1.6;
  opacity: 0.66; margin-top: 0.75rem; max-width: 30rem;
}

/* ---------- broken bento ---------- */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.card {
  background: var(--red);
  padding: clamp(1.25rem, 3vw, 1.9rem);
  display: flex; flex-direction: column;
}
.card-num {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em;
  opacity: 0.7; margin: 0 0 0.9rem;
}
.card h3 { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); margin-bottom: 0.6rem; }
.card p { font-size: 0.95rem; opacity: 0.94; margin-bottom: 0.9rem; }
.card p:last-child { margin-bottom: 0; }
.price {
  margin-top: auto; padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em;
  opacity: 1 !important;
}
.card--blank { display: none; }

/* ---------- drag band ---------- */
.band {
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  padding-block: 0.5rem 1.5rem;
  user-select: none;
  -webkit-user-select: none;
}
.band.is-dragging { cursor: grabbing; }
.band-inner {
  display: flex; gap: 1rem;
  padding-inline: var(--pad);
  width: max-content;
  will-change: transform;
}
.band-item {
  margin: 0; flex: none;
  width: min(78vw, 420px);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.band-item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  pointer-events: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}
.band-item figcaption {
  padding: 0.9rem 1rem 1.1rem;
  font-size: 0.86rem; line-height: 1.55; opacity: 0.9;
}
.band-item figcaption strong {
  display: block; font-family: var(--mono); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.35rem;
  color: var(--acid);
}
.band-hint {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.2em;
  text-transform: uppercase; opacity: 0.6;
  padding-inline: var(--pad); margin: 0;
}

/* ---------- why ---------- */
.why-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.why-copy p { max-width: 38rem; }
.why-list { display: grid; gap: 1px; background: rgba(10, 10, 10, 0.22); border: 1px solid rgba(10, 10, 10, 0.22); }
.why-list li {
  background: var(--acid);
  padding: 1.1rem 1.25rem;
  font-size: 0.95rem;
}
.why-k {
  display: block;
  font-family: var(--mono); font-weight: 700; font-size: 1.05rem;
  letter-spacing: -0.02em; margin-bottom: 0.3rem;
}

/* ---------- service area ---------- */
.area-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.area-copy p { max-width: 38rem; }
.hoods {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin: 1.5rem 0 0; max-width: 42rem;
}
.hoods li {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.04em;
  border: 1px solid rgba(244, 242, 237, 0.3);
  padding: 0.35rem 0.6rem;
}
.addr-card {
  background: rgba(244, 242, 237, 0.06);
  border: 2px solid rgba(244, 242, 237, 0.28);
  padding: clamp(1.25rem, 3vw, 1.9rem);
  display: grid; gap: 0.75rem;
}
.addr-label {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.16em;
  text-transform: uppercase; opacity: 0.62; margin: 0;
}
.addr-line { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 0.5rem; }
.addr-foot { font-family: var(--mono); font-size: 0.68rem; line-height: 1.6; opacity: 0.66; margin: 0.4rem 0 0; }

/* ---------- hours ---------- */
.hours-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.hours-copy p { max-width: 34rem; }
.hours-callout {
  border-left: 4px solid rgba(255, 255, 255, 0.6);
  padding-left: 1rem; font-size: 0.95rem; opacity: 0.95;
}
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td {
  text-align: left; padding: 0.85rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.95rem;
}
.hours-table th { font-weight: 600; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.82; }
.hours-table td { font-weight: 800; letter-spacing: -0.01em; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.contact-grid p { max-width: 34rem; }
.contact-lines { display: grid; gap: 1px; background: rgba(255, 255, 255, 0.28); border: 1px solid rgba(255, 255, 255, 0.28); }
.contact-line {
  background: var(--blue);
  display: flex; flex-direction: column; gap: 0.3rem;
  padding: 1.1rem 1.25rem; text-decoration: none;
  transition: background 160ms ease;
}
a.contact-line:hover { background: #0050b8; }
.contact-k { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.68; }
.contact-v { font-weight: 800; font-size: clamp(1.05rem, 0.95rem + 0.6vw, 1.35rem); letter-spacing: -0.02em; }

/* ---------- footer ---------- */
.site-foot {
  background: var(--ink); color: var(--fg-on-ink);
  background-image: var(--tile-light); background-size: 22px 22px;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 2px solid var(--red);
}
.foot-inner { display: grid; gap: 0.9rem; justify-items: start; }
.foot-brand { font-weight: 700; font-size: 0.95rem; margin: 0; }
.foot-brand a { color: var(--acid); }
.foot-small { font-family: var(--mono); font-size: 0.7rem; line-height: 1.7; opacity: 0.6; margin: 0; max-width: 40rem; }
.claim-banner {
  display: inline-block;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.02em;
  color: var(--fg-on-ink); text-decoration: none;
  background: rgba(244, 242, 237, 0.08);
  border: 1px solid rgba(244, 242, 237, 0.22);
  padding: 0.5rem 0.8rem;
  transition: background 160ms ease;
}
.claim-banner:hover { background: rgba(244, 242, 237, 0.16); text-decoration: underline; }
.attribution {
  position: static; margin: 0;
  font-family: var(--mono); font-size: 0.68rem; opacity: 0.45;
}
.attribution a { color: inherit; }

/* ---------- scroll motion ---------- */
@keyframes fadeRise {
  from { opacity: 0; translate: 0 14px; }
  to   { opacity: 1; translate: 0 0; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .sec-head, .card, .band-item, .why-list li, .addr-card,
    .hours-table, .contact-line, .hero-copy > *, .hero-shot {
      animation: fadeRise 420ms cubic-bezier(.2, .7, .1, 1) both;
      animation-timeline: view();
      animation-range: entry 0% cover 26%;
    }
  }
}

/* ---------- wider screens ---------- */
@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .why-list { grid-template-columns: repeat(2, 1fr); }
  .contact-lines { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; }
}

@media (min-width: 960px) {
  .topnav { display: flex; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; }
  .hero-shot { margin-top: 3.5rem; }
  .why-grid { grid-template-columns: 1.1fr 0.9fr; }
  .area-grid { grid-template-columns: 1.25fr 0.75fr; }
  .hours-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }

  /* broken bento: 6 columns, irregular spans, one empty cell */
  .bento { grid-template-columns: repeat(6, 1fr); }
  .card { grid-column: span 2; }
  .card--wide { grid-column: 1 / 4; }
  .card--tall { grid-column: 4 / 7; grid-row: span 2; }
  .card--offset { grid-column: 2 / 5; }
  .card--blank { display: block; grid-column: span 1; background: transparent; }
  .bento > .card:nth-of-type(8) { grid-column: 1 / 4; }
  .bento > .card:nth-of-type(10) { grid-column: 4 / 7; }
}

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