/* ============================================================
   Best Bee Mobile Mechanics — Brampton, ON
   Composition: four-colour section rotation · stacked headline
   · broken bento · scroll-driven line reveal · drag band
   ============================================================ */

:root {
  --ink: #0a0a0a;
  --red: #e10600;
  --blue: #003c8a;
  --yellow: #f4ff33;

  --bg: var(--ink);
  --fg: #f5f5f2;
  --muted: rgba(245, 245, 242, 0.66);
  --rule: rgba(245, 245, 242, 0.18);
  --panel: rgba(255, 255, 255, 0.05);
  --panel-solid: #141414;
  --accent: var(--yellow);

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

  --pad: clamp(1.15rem, 4vw, 3.5rem);
  --gap: clamp(0.9rem, 2vw, 1.6rem);
  --maxw: 1180px;
  --radius: 3px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.62;
  color: var(--fg);
  background-color: var(--bg);
  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='2' cy='2' r='1' fill='%23ffffff' fill-opacity='0.055'/><path d='M11 20.5 L12.2 17.8 L14.9 16.6 L12.2 15.4 L11 12.7 L9.8 15.4 L7.1 16.6 L9.8 17.8 Z' fill='%23ffffff' fill-opacity='0.03'/></svg>");
  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0 0 0.5em; line-height: 0.98; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0 0 1em; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
blockquote { margin: 0; }
table { border-collapse: collapse; width: 100%; }

.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(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

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

/* ============================================================
   CALL STRIP + MASTHEAD
   ============================================================ */
.call-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: baseline;
  justify-content: center;
  padding: 0.5rem var(--pad);
  background: var(--yellow);
  color: #0a0a0a;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.call-strip__num { font-weight: 600; letter-spacing: 0.02em; }
.call-strip:hover .call-strip__num { text-decoration: underline; text-underline-offset: 3px; }

.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 {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 62px;
  padding-block: 0.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-right: auto;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  background: var(--yellow);
  color: #0a0a0a;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.04em;
  border-radius: var(--radius);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-size: 1.02rem; font-weight: 800; letter-spacing: -0.02em; }
.brand__text em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav { display: none; gap: 1.35rem; }
.nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--yellow); }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 1.05rem;
  cursor: pointer;
}
.theme-toggle:hover { background: var(--panel); }

@media (min-width: 860px) {
  .nav { display: flex; }
}

/* ============================================================
   SECTION SHELL — four-colour rotation
   ============================================================ */
.sec {
  position: relative;
  padding-block: clamp(3.25rem, 8vw, 6.5rem);
  border-bottom: 1px solid var(--rule);
}
.sec--ink    { --bg: var(--ink);    --fg: #f5f5f2; --muted: rgba(245,245,242,0.66); --rule: rgba(245,245,242,0.18); --panel: rgba(255,255,255,0.05); --panel-solid: #161616; --accent: var(--yellow); }
.sec--red    { --bg: var(--red);    --fg: #fff6f5; --muted: rgba(255,246,245,0.76); --rule: rgba(255,255,255,0.26); --panel: rgba(0,0,0,0.16); --panel-solid: #b30500; --accent: var(--yellow); }
.sec--blue   { --bg: var(--blue);   --fg: #f2f6ff; --muted: rgba(242,246,255,0.74); --rule: rgba(255,255,255,0.24); --panel: rgba(0,0,0,0.18); --panel-solid: #00306e; --accent: var(--yellow); }
.sec--yellow { --bg: var(--yellow); --fg: #0a0a0a; --muted: rgba(10,10,10,0.68); --rule: rgba(10,10,10,0.22); --panel: rgba(255,255,255,0.5); --panel-solid: #e8f52a; --accent: var(--red); }

.sec, .band-sec {
  background-color: var(--bg);
  color: var(--fg);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

/* ---------- stacked headline breaking baseline ---------- */
.stack {
  font-size: clamp(2.6rem, 11vw, 6.4rem);
  margin-bottom: 1.6rem;
  text-wrap: balance;
}
.stack span { display: block; }
.stack span:nth-child(2) { margin-left: 0.42em; }
.stack span:nth-child(3) { margin-left: -0.16em; }
.stack span:nth-child(4) { margin-left: 0.7em; }

.stack--sm { font-size: clamp(2rem, 7.5vw, 4.1rem); }
.stack--sm span:nth-child(2) { margin-left: 0.55em; }
.stack--sm span:nth-child(3) { margin-left: -0.12em; }

@media (min-width: 720px) {
  .stack span:nth-child(2) { margin-left: 1.6em; }
  .stack span:nth-child(3) { margin-left: -0.5em; }
  .stack--sm span:nth-child(2) { margin-left: 1.1em; }
  .stack--sm span:nth-child(3) { margin-left: -0.35em; }
}

.lede { font-size: 1.06rem; max-width: 62ch; }
.lede--wide { max-width: 74ch; margin-bottom: 2.2rem; }

/* ============================================================
   BROKEN BENTO
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: 1.4rem;
}
.cell {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
}
.cell--empty { display: none; }

.cell--shot { padding: 0; overflow: hidden; }
.cell--shot img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; }
.cell--shot figcaption {
  padding: 0.7rem 1rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}

.cell--stat { display: flex; flex-direction: column; justify-content: center; }
.stat__num {
  font-size: clamp(2.6rem, 9vw, 4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 0 0 0.35rem;
  color: var(--accent);
}
.stat__label { margin: 0; font-size: 0.92rem; color: var(--muted); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.6rem 0 0; }
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
}
.btn--hot { background: var(--yellow); color: #0a0a0a; }
.btn--hot:hover { background: #fff; }
.btn--ghost { border-color: var(--rule); color: var(--fg); }
.btn--ghost:hover { background: var(--panel); }

/* service cards */
.card h3 { font-size: 1.22rem; margin-bottom: 0.45rem; }
.card p { font-size: 0.95rem; margin-bottom: 0.7rem; }
.card__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
  padding-top: 0.7rem;
  border-top: 1px solid var(--rule);
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
  margin-top: 1.6rem;
}
.step {
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--panel);
}
.step__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.step h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.94rem; margin: 0; color: var(--muted); }

.cell--note h3, .cell--list h3, .cell--addr h3, .cell--pay h3 { font-size: 1.15rem; }
.cell--note p { font-size: 0.95rem; margin: 0; }

/* ticks */
.ticks { display: grid; gap: 0.55rem; }
.ticks li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 0.62rem; height: 0.62rem;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* hours */
.hours th, .hours td {
  text-align: left;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.98rem;
}
.hours th { font-weight: 600; }
.hours td { text-align: right; font-family: var(--font-mono); font-size: 0.86rem; letter-spacing: 0.02em; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours__note { margin: 1.1rem 0 0; font-size: 0.92rem; color: var(--muted); }

.cell--quote { display: flex; flex-direction: column; justify-content: space-between; gap: 1.2rem; }
.cell--quote blockquote p { font-size: 1.08rem; font-weight: 600; line-height: 1.45; }
.cell--quote footer {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.rating { margin: 0; font-size: 0.9rem; color: var(--muted); }
.rating__num { font-weight: 800; font-size: 1.5rem; color: var(--accent); margin-right: 0.35rem; }

/* contact */
.phone-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.phone-big {
  display: inline-block;
  font-size: clamp(1.9rem, 8vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  line-height: 1.05;
  word-break: break-word;
}
.phone-big:hover { text-decoration: underline; text-underline-offset: 6px; }
.phone-note { margin: 0.9rem 0 0; font-size: 0.92rem; color: var(--muted); max-width: 46ch; }
.cell--addr address { font-style: normal; font-size: 1rem; line-height: 1.7; }
.addr-note { margin: 0.9rem 0 0; font-size: 0.9rem; color: var(--muted); }
.cell--pay .ticks li { font-size: 0.93rem; }

/* ============================================================
   DRAG BAND (signature)
   ============================================================ */
.band-sec {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-bottom: 1px solid var(--rule);
}
.band-sec__head { margin-bottom: 1.8rem; }
.band-hint {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.band {
  overflow: hidden;
  cursor: grab;
  padding-inline: var(--pad);
  -webkit-user-select: none;
  user-select: none;
  touch-action: pan-y;
}
.band.is-dragging { cursor: grabbing; }
.band__track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  will-change: transform;
}
.band__item {
  width: min(78vw, 380px);
  flex: 0 0 auto;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
}
.band__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  pointer-events: none;
}
.band__cap {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}
.band__cap strong {
  display: block;
  color: var(--fg);
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  background: var(--ink);
  color: #f5f5f2;
  border-top: 1px solid rgba(245,245,242,0.18);
}
.footer__inner { display: grid; gap: 0.9rem; justify-items: start; }
.footer__brand { font-weight: 800; font-size: 1.05rem; margin: 0; letter-spacing: -0.02em; }
.footer__meta { margin: 0; font-size: 0.9rem; color: rgba(245,245,242,0.62); max-width: 60ch; }
.claim-banner {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  text-decoration: none;
  color: rgba(245,245,242,0.82);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(245,245,242,0.2);
  border-radius: var(--radius);
}
.claim-banner:hover { background: rgba(255,255,255,0.12); color: #fff; }
.muted { margin: 0; font-size: 0.78rem; }
.muted a { color: rgba(245,245,242,0.5); text-decoration: none; }
.muted a:hover { color: rgba(245,245,242,0.85); text-decoration: underline; }

/* ============================================================
   MOTION — staggered line reveal, CSS scroll-driven
   ============================================================ */
@keyframes riseIn {
  from { opacity: 0; translate: 0 22px; }
  to   { opacity: 1; translate: 0 0; }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .sec .kicker,
    .sec .stack span,
    .sec .lede,
    .sec .cell,
    .sec .step,
    .band-sec__head > * {
      animation: riseIn linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 38%;
    }
    .sec .stack span:nth-child(1) { animation-range: entry 0% cover 30%; }
    .sec .stack span:nth-child(2) { animation-range: entry 4% cover 34%; }
    .sec .stack span:nth-child(3) { animation-range: entry 8% cover 38%; }
    .sec .stack span:nth-child(4) { animation-range: entry 12% cover 42%; }
    .sec .cell:nth-child(2n) { animation-range: entry 6% cover 42%; }
    .sec .cell:nth-child(3n) { animation-range: entry 10% cover 46%; }
    .sec .step:nth-child(2) { animation-range: entry 5% cover 42%; }
    .sec .step:nth-child(3) { animation-range: entry 9% cover 46%; }
    .sec .step:nth-child(4) { animation-range: entry 13% cover 50%; }
  }
}

/* ============================================================
   LIGHT THEME
   ============================================================ */
html[data-theme="light"] {
  --ink: #f7f6f2;
  --red: #cf0500;
  --blue: #003c8a;
  --yellow: #eefb1f;
}
html[data-theme="light"] body {
  background-color: #f7f6f2;
  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='2' cy='2' r='1' fill='%23000000' fill-opacity='0.07'/><path d='M11 20.5 L12.2 17.8 L14.9 16.6 L12.2 15.4 L11 12.7 L9.8 15.4 L7.1 16.6 L9.8 17.8 Z' fill='%23000000' fill-opacity='0.04'/></svg>");
}
html[data-theme="light"] .sec--ink {
  --bg: #f7f6f2; --fg: #0a0a0a;
  --muted: rgba(10,10,10,0.66);
  --rule: rgba(10,10,10,0.2);
  --panel: rgba(255,255,255,0.72);
  --panel-solid: #ffffff;
  --accent: #cf0500;
}
html[data-theme="light"] .sec--red    { --bg: #cf0500; --fg: #fff6f5; --muted: rgba(255,246,245,0.8); --rule: rgba(255,255,255,0.3); --panel: rgba(0,0,0,0.16); --accent: #eefb1f; }
html[data-theme="light"] .sec--blue   { --bg: #003c8a; --fg: #f2f6ff; --muted: rgba(242,246,255,0.78); --rule: rgba(255,255,255,0.28); --panel: rgba(0,0,0,0.18); --accent: #eefb1f; }
html[data-theme="light"] .sec--yellow { --bg: #eefb1f; --fg: #0a0a0a; --muted: rgba(10,10,10,0.7); --rule: rgba(10,10,10,0.24); --panel: rgba(255,255,255,0.55); --accent: #cf0500; }
html[data-theme="light"] .band-sec    { --bg: #f7f6f2; --fg: #0a0a0a; --muted: rgba(10,10,10,0.66); --rule: rgba(10,10,10,0.2); --panel: rgba(255,255,255,0.72); --accent: #cf0500; }
html[data-theme="light"] .masthead {
  background: color-mix(in srgb, #f7f6f2 88%, transparent);
  border-bottom-color: rgba(10,10,10,0.16);
}
html[data-theme="light"] .footer {
  background: #0a0a0a;
  color: #f5f5f2;
}
html[data-theme="light"] .brand__mark { background: #0a0a0a; color: #eefb1f; }
html[data-theme="light"] .btn--hot { background: #0a0a0a; color: #eefb1f; }
html[data-theme="light"] .btn--hot:hover { background: #cf0500; color: #fff; }

/* ============================================================
   WIDER SCREENS — broken bento, intentional misalignment
   ============================================================ */
@media (min-width: 760px) {
  .bento { grid-template-columns: repeat(6, 1fr); }

  /* hero: lede breaks wide, shot drops a row, stat hangs off the edge */
  .bento--hero .cell--lede { grid-column: 1 / 5; }
  .bento--hero .cell--shot { grid-column: 4 / 7; grid-row: 1 / 3; margin-top: 2.6rem; }
  .bento--hero .cell--stat { grid-column: 1 / 4; grid-row: 2 / 3; margin-top: -1.2rem; }

  /* services: irregular spans, one blank cell left open */
  .bento--services .card:nth-child(1) { grid-column: 1 / 4; }
  .bento--services .card:nth-child(2) { grid-column: 4 / 7; margin-top: 1.8rem; }
  .bento--services .card:nth-child(3) { grid-column: 2 / 5; }
  .bento--services .card:nth-child(4) { grid-column: 5 / 7; margin-top: 2.4rem; }
  .bento--services .card:nth-child(5) { grid-column: 1 / 3; }
  .bento--services .card:nth-child(6) { grid-column: 3 / 6; margin-top: -1.4rem; }
  .bento--services .card:nth-child(7) { grid-column: 6 / 7; grid-row: span 2; margin-top: 1rem; }
  .bento--services .card:nth-child(8) { grid-column: 1 / 4; }
  .bento--services .cell--empty { display: block; grid-column: 4 / 6; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { margin-top: 2rem; }
  .step:nth-child(4) { margin-top: 2rem; }

  .bento--how .cell--shot-tall { grid-column: 1 / 4; }
  .bento--how .cell--note { grid-column: 4 / 7; margin-top: 3rem; }

  .bento--area .cell--lede { grid-column: 1 / 4; }
  .bento--area .cell--list { grid-column: 4 / 7; margin-top: 2.2rem; }
  .bento--area .cell--shot { grid-column: 2 / 6; margin-top: 1.4rem; }

  .bento--hours .cell--hours { grid-column: 1 / 4; }
  .bento--hours .cell--quote { grid-column: 4 / 7; margin-top: 2.8rem; }

  .bento--contact .cell--phone { grid-column: 1 / 5; }
  .bento--contact .cell--addr { grid-column: 5 / 7; margin-top: 2.2rem; }
  .bento--contact .cell--pay { grid-column: 2 / 5; margin-top: -0.8rem; }
}

@media (min-width: 1080px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step:nth-child(2) { margin-top: 2.4rem; }
  .step:nth-child(3) { margin-top: 0.6rem; }
  .step:nth-child(4) { margin-top: 3rem; }
  .band__item { width: 420px; }
}

/* ============================================================
   VIEW TRANSITIONS
   ============================================================ */
@view-transition { navigation: auto; }

/* ============================================================
   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;
  }
}
