/* ============================================================
   MuhaBility Mobile Mechanic — Banjul
   Palette: risograph two-ink (fluorescent pink + royal blue)
   on paper white, with deliberate misregister offset.
   ============================================================ */

:root {
  --bg: #f7f5ea;
  --paper: #fffdf5;
  --ink-a: #ff48b0;      /* fluorescent pink */
  --ink-b: #1f3fff;      /* royal blue */
  --ink: #14131a;
  --ink-soft: #4a4757;
  --rule: rgba(20, 19, 26, 0.16);
  --rule-strong: rgba(20, 19, 26, 0.32);
  --offset: 5px;

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

  --pad: clamp(1.25rem, 4vw, 4.5rem);
  --maxw: 1240px;
}

/* Dark mode: same two inks, printed on a dark press sheet. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14131a;
    --paper: #1c1b24;
    --ink-a: #ff5cbb;
    --ink-b: #6f86ff;
    --ink: #f4f1e6;
    --ink-soft: #b3aec4;
    --rule: rgba(244, 241, 230, 0.18);
    --rule-strong: rgba(244, 241, 230, 0.36);
  }
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 55% at 8% -5%, color-mix(in srgb, var(--ink-a) 26%, transparent) 0, transparent 62%),
    radial-gradient(ellipse 65% 50% at 100% 12%, color-mix(in srgb, var(--ink-b) 22%, transparent) 0, transparent 58%),
    radial-gradient(ellipse 90% 60% at 50% 108%, color-mix(in srgb, var(--ink-b) 14%, transparent) 0, transparent 65%);
  background-attachment: fixed;
  text-wrap: pretty;
}

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

a { color: inherit; }

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

.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;
  background: var(--ink); color: var(--bg);
  padding: 0.75rem 1rem; z-index: 50;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- shared type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 1.4rem + 5.2vw, 5.4rem); }
h2 { font-size: clamp(1.9rem, 1.2rem + 3.4vw, 3.6rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); line-height: 1.15; }

p { margin: 0 0 1rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-b);
  margin: 0 0 1rem;
}

.muted { color: var(--ink-soft); font-size: 0.92rem; }

/* The breathing width axis — the site's typographic heartbeat. */
@keyframes breathe {
  0%, 100% { font-variation-settings: "wdth" 78; }
  50%      { font-variation-settings: "wdth" 118; }
}

.breathe {
  font-variation-settings: "wdth" 88;
  animation: breathe 7s ease-in-out infinite;
}

/* Misregister: a pink ghost offset behind the headline. */
.ink-a {
  position: relative;
  color: var(--ink-b);
  display: inline-block;
}
.ink-a::before {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--ink-a);
  transform: translate(calc(var(--offset) * -1), calc(var(--offset) * -0.5));
  z-index: -1;
  pointer-events: none;
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.head-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.7rem var(--pad);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  margin-right: auto;
}

.mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  background: var(--ink-b);
  color: var(--paper);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  box-shadow: 3px 3px 0 var(--ink-a);
}

.mark-text {
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
}
.mark-text em {
  font-style: normal;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.head-nav {
  display: flex;
  gap: 1.1rem;
  font-size: 0.9rem;
  font-weight: 500;
}
.head-nav a {
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.head-nav a:hover { border-bottom-color: var(--ink-a); color: var(--ink-b); }

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.6rem 1.05rem;
  background: var(--ink-b);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  box-shadow: 3px 3px 0 var(--ink-a);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.call-btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink-a);
}
.call-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-a);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink-a) 30%, transparent);
}

/* ---------- ticker band ---------- */

.ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
  background: var(--ink);
  color: var(--bg);
}

.ticker-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  padding: 0.55rem 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: scroll 34s linear infinite;
}
.ticker-track span { white-space: nowrap; }
.ticker-track span::after {
  content: "◆";
  margin-left: 3rem;
  color: var(--ink-a);
}

@keyframes scroll {
  to { transform: translateX(-50%); }
}

/* ---------- hero ---------- */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad) clamp(1.5rem, 4vw, 3rem);
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: end;
}

.hero-copy .lede {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 2rem;
}

.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.98rem;
  border: 2px solid var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn-primary {
  background: var(--ink-a);
  color: #14131a;
  border-color: var(--ink-a);
  box-shadow: 4px 4px 0 var(--ink-b);
}
.btn-primary:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink-b); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}
.btn-ghost:hover { border-color: var(--ink-b); color: var(--ink-b); }

.hero-facts {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
}
.hero-facts dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-b);
}
.hero-facts dd { margin: 0.15rem 0 0; font-weight: 500; }

.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--rule);
  box-shadow: var(--offset) var(--offset) 0 var(--ink-a), calc(var(--offset) * -1) calc(var(--offset) * -1) 0 var(--ink-b);
}

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 1fr; }
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- bands ---------- */

.band {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad);
}
.band-inner { max-width: 62ch; }
.band-lede {
  font-size: clamp(1.02rem, 0.98rem + 0.4vw, 1.18rem);
  color: var(--ink-soft);
}

/* ---------- full-bleed gallery ---------- */

.gallery { margin: 0; }
.gallery figure { margin: 0; position: relative; }
.gallery img { width: 100%; height: auto; display: block; }
.gallery figcaption {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem var(--pad) 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.gallery .full img { aspect-ratio: 16 / 9; object-fit: cover; }

.gallery-split {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
.gallery-split .half img { aspect-ratio: 4 / 3; object-fit: cover; }
.gallery-split figcaption { padding-inline: var(--pad); }

@media (min-width: 760px) {
  .gallery-split { grid-template-columns: 1fr 1fr; }
}

/* ---------- services ---------- */

.services {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad);
}

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-lede { color: var(--ink-soft); font-size: 1.05rem; }

.service-grid {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 700px) { .service-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .service-grid { grid-template-columns: repeat(4, 1fr); } }

.service {
  background: var(--paper);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  transition: background-color 0.2s ease;
}
.service:hover { background: color-mix(in srgb, var(--ink-a) 10%, var(--paper)); }
.service-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--ink-a);
  margin: 0 0 0.9rem;
}
.service h3 { margin-bottom: 0.5rem; }
.service p { margin: 0; font-size: 0.94rem; color: var(--ink-soft); }

/* ---------- how it works ---------- */

.how {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad);
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.steps li {
  counter-increment: step;
  padding-top: 1.4rem;
  border-top: 3px solid var(--ink-b);
}
.steps li::before {
  content: "Step " counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-a);
  margin-bottom: 0.7rem;
}
.steps p { color: var(--ink-soft); font-size: 0.96rem; margin: 0; }

/* ---------- area ---------- */

.area {
  border-block: 1px solid var(--rule);
  background: color-mix(in srgb, var(--ink-b) 7%, transparent);
}
.area-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad);
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
}
@media (min-width: 900px) { .area-inner { grid-template-columns: 1fr 1fr; } }
.area-copy p { color: var(--ink-soft); }
.area-figure { margin: 0; }
.area-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--rule);
  box-shadow: calc(var(--offset) * -1) var(--offset) 0 var(--ink-b);
}

/* ---------- visit ---------- */

.visit {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad);
}

.visit-grid {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 820px) { .visit-grid { grid-template-columns: repeat(3, 1fr); } }

.visit-card {
  background: var(--paper);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.visit-card h3 { margin-bottom: 0.9rem; }
.visit-card address { font-style: normal; font-weight: 500; margin-bottom: 0.9rem; }

.visit-phone { background: var(--ink); color: var(--bg); }
.visit-phone h3 { color: var(--bg); }
.visit-phone .muted { color: color-mix(in srgb, var(--bg) 72%, transparent); }
.big-phone {
  display: inline-block;
  font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--ink-a);
  margin-bottom: 0.8rem;
  border-bottom: 3px solid transparent;
  transition: border-color 0.18s ease;
}
.big-phone:hover { border-bottom-color: var(--ink-a); }

.text-link {
  display: inline-block;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink-b);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  padding-top: 0.4rem;
}

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
.hours th, .hours td {
  text-align: left;
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 500;
}
.hours td { text-align: right; font-family: var(--font-mono); font-size: 0.84rem; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours .closed td { color: var(--ink-a); font-weight: 600; }

/* ---------- closing ---------- */

.closing {
  border-top: 1px solid var(--rule);
  background: color-mix(in srgb, var(--ink-a) 12%, transparent);
}
.closing-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) var(--pad);
  text-align: center;
}
.closing-inner p {
  max-width: 54ch;
  margin: 0 auto 1.8rem;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.foot-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) var(--pad);
}
.foot-name { font-weight: 700; font-size: 1.1rem; margin: 0 0 0.4rem; }
.foot-meta { font-size: 0.9rem; color: var(--ink-soft); margin: 0 0 0.3rem; }
.foot-meta a { color: var(--ink-b); }

.claim-banner {
  display: inline-block;
  margin: 1.4rem 0 1.2rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  border: 1px solid var(--rule);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.claim-banner:hover { color: var(--ink-b); border-color: var(--ink-b); }

.attribution { margin: 0; }
.attribution a { color: var(--ink-soft); text-underline-offset: 3px; }

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .breathe { animation: none; font-variation-settings: "wdth" 92; }
  .ticker-track { animation: none; }
  .ticker { overflow-x: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
