/* ============================================================
   MuhaBility Mobile Mechanic — Serekunda, The Gambia
   Composition: black + white + one colour per section,
   stacked headline, broken bento, drag band, patterned bg.
   ============================================================ */

:root {
  --ink: #0a0a0a;
  --paper: #f7f5f0;
  --red: #e10600;
  --blue: #003c8a;
  --yellow: #f4ff33;
  --line: rgba(10, 10, 10, 0.16);
  --line-inv: rgba(255, 255, 255, 0.22);
  --muted: rgba(10, 10, 10, 0.62);
  --muted-inv: rgba(255, 255, 255, 0.72);
  --pad: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1240px;
  --sans: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  /* patterned SVG tile — dot matrix */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20'><circle cx='2' cy='2' r='1.1' fill='%230a0a0a' fill-opacity='0.13'/></svg>");
  background-size: 20px 20px;
  -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.02em; margin: 0 0 0.6em; font-weight: 800; }
h2 { font-size: clamp(1.9rem, 1.2rem + 3.2vw, 3.4rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); }
p { margin: 0 0 1rem; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.visually-hidden {
  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: #fff; padding: 0.6rem 1rem; z-index: 99;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

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

/* ---------------- Top bar ---------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.7rem var(--pad);
  background: rgba(10, 10, 10, 0.94);
  color: #fff;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: #fff; margin-right: auto;
}
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  background: var(--red); color: #fff;
  font-family: var(--mono); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.02rem; letter-spacing: -0.01em; }
.brand-text em {
  font-style: normal; font-family: var(--mono);
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0.7;
}

.topnav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.topnav a {
  text-decoration: none; font-size: 0.86rem; padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}
.topnav a:hover { border-bottom-color: var(--yellow); }

.call-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  background: var(--yellow); color: var(--ink);
  text-decoration: none; font-weight: 700; font-size: 0.9rem;
  border: 2px solid var(--yellow);
}
.call-btn:hover { background: #fff; border-color: #fff; }
.call-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.25; } }

/* ---------------- Hero ---------------- */

.hero {
  padding: clamp(2.5rem, 6vw, 5rem) var(--pad) 0;
  max-width: var(--maxw);
  margin: 0 auto;
}

.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; }

h1.stack {
  font-size: clamp(2.6rem, 1rem + 9vw, 6.2rem);
  margin: 0 0 1.2rem;
  text-transform: uppercase;
}
h1.stack span { display: block; }
h1.stack span:nth-child(1) { margin-left: 0; }
h1.stack span:nth-child(2) { margin-left: 0.9em; color: var(--red); }
h1.stack span:nth-child(3) { margin-left: -0.35em; }

.lede { font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.22rem); max-width: 46ch; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.75rem 1.4rem;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  border: 2px solid var(--ink);
}
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--red); border-color: var(--red); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }

.hero-note {
  font-family: var(--mono); font-size: 0.78rem;
  letter-spacing: 0.04em; color: var(--muted); margin: 0;
}

.hero-figure img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border: 2px solid var(--ink);
  filter: grayscale(1) contrast(1.08);
}
.hero-figure figcaption {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em;
  color: var(--muted); padding-top: 0.5rem;
}

.stat-strip {
  list-style: none; margin: clamp(2rem, 5vw, 3.5rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
}
.stat-strip li {
  padding: 1.1rem 1rem 1.1rem 0;
  border-right: 1px solid var(--line);
}
.stat-strip li:last-child { border-right: 0; }
.stat-strip strong { display: block; font-size: 1.05rem; }
.stat-strip span {
  display: block; font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.04em; color: var(--muted); margin-top: 0.25rem;
}

/* ---------------- Section shell ---------------- */

section { padding: clamp(3rem, 7vw, 6rem) var(--pad); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-lede { color: inherit; opacity: 0.85; max-width: 58ch; }

/* ---------------- Services (red) ---------------- */

.services {
  background-color: var(--red);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20'><circle cx='2' cy='2' r='1.1' fill='%23ffffff' fill-opacity='0.16'/></svg>");
  background-size: 20px 20px;
  color: #fff;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.services .eyebrow { opacity: 0.85; }

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.9rem, 1.6vw, 1.4rem);
  max-width: var(--maxw);
  margin: 0 auto;
}

.card {
  grid-column: span 2;
  background: rgba(10, 10, 10, 0.16);
  border: 1px solid var(--line-inv);
  padding: clamp(1.1rem, 2vw, 1.6rem);
  display: flex; flex-direction: column;
}
.card-wide { grid-column: span 4; }
.card-tall { grid-row: span 2; }
.card-accent {
  grid-column: 4 / 7;
  background: var(--yellow);
  color: var(--ink);
  border-color: var(--ink);
}
.card-accent .card-num { color: rgba(10, 10, 10, 0.55); }

.card-num {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em;
  margin: 0 0 0.7rem; opacity: 0.8;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0; font-size: 0.96rem; }

.tags {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin: 1rem 0 0; padding: 0;
}
.tags li {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em;
  padding: 0.28rem 0.55rem;
  border: 1px solid currentColor;
  opacity: 0.9;
}

/* ---------------- Drag band ---------------- */

.band-section {
  background: var(--ink); color: #fff;
  border-bottom: 2px solid var(--ink);
  padding-left: 0; padding-right: 0;
}
.band-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 0 var(--pad);
  max-width: var(--maxw); margin: 0 auto clamp(1.2rem, 3vw, 2rem);
}
.band-head h2 { margin: 0; }
.band-hint {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em;
  color: var(--muted-inv); margin: 0;
}

.band {
  overflow: hidden;
  cursor: grab;
  padding: 0 var(--pad);
  -webkit-user-select: none; user-select: none;
  touch-action: pan-y;
}
.band.is-dragging { cursor: grabbing; }
.band:focus-visible { outline: 3px solid var(--yellow); outline-offset: -3px; }

.band-track {
  display: flex; gap: clamp(0.8rem, 1.6vw, 1.4rem);
  width: max-content;
  will-change: transform;
}

.band-item {
  margin: 0;
  width: clamp(230px, 30vw, 340px);
  flex: 0 0 auto;
}
.band-item img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border: 1px solid var(--line-inv);
  filter: grayscale(1) contrast(1.05);
  pointer-events: none;
}
.band-item figcaption {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em;
  color: var(--muted-inv); padding-top: 0.6rem;
}

/* ---------------- How it works (blue) ---------------- */

.how {
  background-color: var(--blue);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20'><circle cx='2' cy='2' r='1.1' fill='%23ffffff' fill-opacity='0.14'/></svg>");
  background-size: 20px 20px;
  color: #fff;
  border-bottom: 2px solid var(--ink);
}

.how-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  max-width: var(--maxw); margin: 0 auto;
}
.how-copy { grid-column: 1 / 4; }
.steps {
  grid-column: 3 / 7;
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1rem;
}
.steps li {
  border-top: 1px solid var(--line-inv);
  padding-top: 1rem;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1rem;
}
.step-num {
  font-family: var(--mono); font-size: 0.8rem; font-weight: 700;
  color: var(--yellow);
  grid-row: span 2;
  padding-top: 0.2rem;
}
.steps h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.steps p { margin: 0; font-size: 0.94rem; color: var(--muted-inv); }

/* ---------------- Area ---------------- */

.area { max-width: var(--maxw); margin: 0 auto; }
.area-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.area-copy { grid-column: 1 / 5; }
.area-card {
  grid-column: 4 / 7;
  background: var(--ink); color: #fff;
  padding: clamp(1.3rem, 2.4vw, 2rem);
  border: 2px solid var(--ink);
}
.area-card h3 { margin-top: 0; }
.area-addr { font-size: 1.02rem; }
.area-phone { margin: 1.2rem 0 0.6rem; }
.area-phone a {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 800; text-decoration: none; letter-spacing: -0.02em;
  border-bottom: 3px solid var(--yellow);
}
.area-phone a:hover { color: var(--yellow); }
.area-hours-mini {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em;
  color: var(--muted-inv); margin-bottom: 1.4rem;
}
.area-card .btn-solid { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.area-card .btn-solid:hover { background: #fff; border-color: #fff; }

.area-list {
  list-style: none; padding: 0; margin: 1.4rem 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem 1.2rem;
}
.area-list li {
  font-size: 0.94rem;
  padding-left: 1.1rem;
  position: relative;
}
.area-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; background: var(--red);
}
.area-note { font-size: 0.92rem; color: var(--muted); }

/* ---------------- Hours (yellow) ---------------- */

.hours {
  background-color: var(--yellow);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20'><circle cx='2' cy='2' r='1.1' fill='%230a0a0a' fill-opacity='0.14'/></svg>");
  background-size: 20px 20px;
  color: var(--ink);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.hours-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  max-width: var(--maxw); margin: 0 auto;
  align-items: start;
}
.hours-copy { grid-column: 1 / 4; }

.hours-table {
  grid-column: 4 / 7;
  width: 100%; border-collapse: collapse;
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid var(--ink);
}
.hours-table th, .hours-table td {
  text-align: left; padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.hours-table th { font-weight: 700; }
.hours-table td { font-family: var(--mono); font-size: 0.82rem; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table .closed td { color: var(--red); font-weight: 700; }

/* ---------------- Reviews ---------------- */

.reviews { max-width: var(--maxw); margin: 0 auto; }
.reviews-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: start;
}
.review-main { grid-column: 1 / 5; }
.review-side {
  grid-column: 5 / 7;
  border-left: 2px solid var(--ink);
  padding-left: clamp(1rem, 2vw, 1.6rem);
}
blockquote { margin: 0; }
blockquote p {
  font-size: clamp(1.15rem, 1rem + 1.1vw, 1.75rem);
  font-weight: 600; line-height: 1.35; letter-spacing: -0.01em;
}
blockquote footer { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 1.2rem; }
.stars { color: var(--red); letter-spacing: 0.15em; font-size: 1rem; }
blockquote cite {
  font-style: normal; font-family: var(--mono);
  font-size: 0.72rem; letter-spacing: 0.05em; color: var(--muted);
}
.rating-big {
  font-size: clamp(3rem, 2rem + 4vw, 4.5rem);
  font-weight: 800; line-height: 1; margin: 0 0 0.4rem;
}
.rating-label {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.05em;
  color: var(--muted); margin-bottom: 1rem;
}
.rating-note { font-size: 0.92rem; color: var(--muted); }

/* ---------------- Contact ---------------- */

.contact {
  background: var(--ink); color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20'><circle cx='2' cy='2' r='1.1' fill='%23ffffff' fill-opacity='0.12'/></svg>");
  background-size: 20px 20px;
}
.contact-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  max-width: var(--maxw); margin: 0 auto;
  align-items: start;
}
.contact-copy { grid-column: 1 / 4; }
.contact-copy p { color: var(--muted-inv); }
.phone-huge {
  display: inline-block;
  font-size: clamp(2rem, 1.2rem + 4vw, 3.6rem);
  font-weight: 800; letter-spacing: -0.03em;
  text-decoration: none; color: var(--yellow);
  border-bottom: 4px solid var(--red);
  margin: 0.6rem 0 0.8rem;
}
.phone-huge:hover { color: #fff; }
.contact-sub {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.05em;
  color: var(--muted-inv);
}

.contact-details {
  grid-column: 4 / 7;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}
.detail h3 {
  font-size: 0.72rem; font-family: var(--mono); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 0.5rem;
}
.detail p { margin: 0; font-size: 0.94rem; color: var(--muted-inv); }
.detail a { color: #fff; }

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--ink); color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding: 2rem var(--pad) 3.5rem;
  text-align: center;
}
.footer-inner { max-width: var(--maxw); margin: 0 auto 1.4rem; }
.footer-brand { font-weight: 700; margin: 0 0 0.3rem; }
.footer-line {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.04em;
  color: var(--muted-inv); margin: 0;
}
.footer-line a { color: var(--yellow); }

.claim-banner {
  display: inline-block;
  font-size: 0.76rem;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  margin-bottom: 1rem;
}
.claim-banner:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.attribution {
  font-size: 0.7rem; opacity: 0.55; margin: 0;
  font-family: var(--mono);
}
.attribution a { color: inherit; }

/* ---------------- Motion: fade + rise on scroll enter ---------------- */

@keyframes fadeRise {
  from { opacity: 0; translate: 0 12px; }
  to   { opacity: 1; translate: 0 0; }
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero-copy, .hero-figure, .stat-strip li,
    .section-head, .card, .band-head, .band-item,
    .how-copy, .steps li, .area-copy, .area-card,
    .hours-copy, .hours-table, .review-main, .review-side,
    .contact-copy, .contact-details {
      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, .hero-figure,
  .how-copy, .steps,
  .area-copy, .area-card,
  .hours-copy, .hours-table,
  .review-main, .review-side,
  .contact-copy, .contact-details { grid-column: 1 / -1; }

  .review-side { border-left: 0; border-top: 2px solid var(--ink); padding-left: 0; padding-top: 1.2rem; }

  .card, .card-wide, .card-accent { grid-column: span 3; }
  .card-tall { grid-row: auto; }

  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip li:nth-child(2) { border-right: 0; }
  .stat-strip li:nth-child(1), .stat-strip li:nth-child(2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .topnav { display: none; }
  .brand-text em { display: none; }
  .card, .card-wide, .card-accent { grid-column: 1 / -1; }
  .area-list { grid-template-columns: 1fr; }
  .contact-details { grid-template-columns: 1fr; }
  h1.stack span:nth-child(2) { margin-left: 0.4em; }
  h1.stack span:nth-child(3) { margin-left: 0; }
  .band-item { width: 74vw; }
}

@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;
  }
  .call-dot { animation: none; }
}
