/* ============================================================
   B.M Tech Solution — mobile mechanic, Serekunda
   Composition: desaturated 70s photo print · vertical spine H1
   · scroll progress strip · cafe menu-first cards · idle-bar
   visualizer · grain overlay
   ============================================================ */

:root {
  --bg:      #efe6d0;
  --bg-2:    #e6dabe;
  --panel:   #f6efdd;
  --ink:     #3a2f1a;
  --ink-2:   #6a5c3c;
  --a:       #a67c00;   /* mustard  */
  --b:       #6b7a3a;   /* avocado  */
  --c:       #c04e1a;   /* sienna   */
  --rule:    rgba(58, 47, 26, 0.22);
  --rule-2:  rgba(58, 47, 26, 0.10);
  --shadow:  0 1px 0 rgba(58,47,26,.10), 0 14px 34px -22px rgba(58,47,26,.55);
  --spine-w: 3.4rem;
  --pad:     clamp(1.15rem, 4vw, 3.25rem);
  --maxw:    1180px;
  --serif:   "Fraunces", Georgia, "Times New Roman", serif;
  --sans:    "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:     #1d1a13;
    --bg-2:   #262117;
    --panel:  #241f16;
    --ink:    #f0e6cf;
    --ink-2:  #bdb094;
    --a:      #d8a72c;
    --b:      #9aab5c;
    --c:      #e0703a;
    --rule:   rgba(240, 230, 207, 0.22);
    --rule-2: rgba(240, 230, 207, 0.10);
    --shadow: 0 1px 0 rgba(0,0,0,.4), 0 18px 40px -26px rgba(0,0,0,.9);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.62;
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--a); }
:focus-visible {
  outline: 3px solid var(--c);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- grain overlay ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
}
@media (prefers-color-scheme: dark) {
  body::before { mix-blend-mode: screen; opacity: 0.05; }
}

/* ---------- scroll progress strip ---------- */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 40;
  background: var(--rule-2);
}
.progress__fill {
  display: block;
  height: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--b), var(--a) 55%, var(--c));
}
@supports (animation-timeline: scroll()) {
  .progress__fill {
    animation: fill-progress linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes fill-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- vertical spine H1 ---------- */
.spine {
  position: fixed;
  left: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  z-index: 30;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-2);
  pointer-events: none;
  max-height: 74vh;
  overflow: hidden;
}
.spine__inner { display: block; white-space: nowrap; }
.spine::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1.4rem;
  width: 1px;
  height: 1.1rem;
  background: var(--rule);
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 2rem);
  padding: 0.7rem var(--pad) 0.7rem calc(var(--spine-w) + 0.4rem);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(9px) saturate(1.1);
  border-bottom: 1px solid var(--rule-2);
}
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.topbar__mark {
  display: grid;
  place-items: center;
  width: 2.1rem; height: 2.1rem;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.topbar__name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.topbar__nav { display: flex; gap: 1.15rem; }
.topbar__nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 0.83rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 0;
}
.topbar__nav a:hover { color: var(--c); }
.topbar__call {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: var(--a);
  color: #2b2109;
  border-color: var(--a);
  min-height: 44px;
  justify-content: center;
}
.topbar__call:hover { background: var(--c); border-color: var(--c); color: #fff4e8; }
.topbar__call-label { font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; }
.topbar__call-num { font-family: var(--mono); font-weight: 600; font-size: 0.92rem; }

/* ---------- shared ---------- */
main { padding-left: var(--spine-w); }
section { padding: clamp(2.6rem, 6vw, 5rem) var(--pad); }
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.35rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 1.1rem;
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--b);
  margin: 0 0 1rem;
}
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--a); } }

/* ---------- hero ---------- */
.hero { padding-top: clamp(2rem, 5vw, 3.6rem); }
.hero__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: clamp(1.6rem, 4vw, 3.2rem);
  grid-template-columns: 1fr;
  align-items: start;
}
.hero__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.5rem, 1.4rem + 6.4vw, 5.4rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  margin: 0 0 0.9rem;
  font-variation-settings: "opsz" 120, "SOFT" 40;
}
.hero__vibe {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  color: var(--ink-2);
  max-width: 34ch;
  margin: 0 0 1.4rem;
  text-wrap: pretty;
}

/* idle-bar visualizer */
.viz {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 46px;
  margin: 0 0 0.5rem;
  max-width: 420px;
}
.viz__bar {
  flex: 1 1 0;
  min-width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--a), var(--c));
  transform-origin: 50% 100%;
  transform: scaleY(0.22);
  animation: idle 1.5s ease-in-out infinite alternate;
}
.viz__bar:nth-child(3n)   { background: linear-gradient(180deg, var(--b), var(--a)); }
.viz__bar:nth-child(4n+1) { background: linear-gradient(180deg, var(--c), var(--a)); }
.viz__bar:nth-child(1)  { animation-duration: 1.10s; animation-delay: -0.05s; }
.viz__bar:nth-child(2)  { animation-duration: 1.42s; animation-delay: -0.31s; }
.viz__bar:nth-child(3)  { animation-duration: 0.92s; animation-delay: -0.62s; }
.viz__bar:nth-child(4)  { animation-duration: 1.66s; animation-delay: -0.18s; }
.viz__bar:nth-child(5)  { animation-duration: 1.24s; animation-delay: -0.77s; }
.viz__bar:nth-child(6)  { animation-duration: 1.05s; animation-delay: -0.44s; }
.viz__bar:nth-child(7)  { animation-duration: 1.78s; animation-delay: -0.09s; }
.viz__bar:nth-child(8)  { animation-duration: 1.16s; animation-delay: -0.53s; }
.viz__bar:nth-child(9)  { animation-duration: 1.36s; animation-delay: -0.88s; }
.viz__bar:nth-child(10) { animation-duration: 0.98s; animation-delay: -0.26s; }
.viz__bar:nth-child(11) { animation-duration: 1.58s; animation-delay: -0.71s; }
.viz__bar:nth-child(12) { animation-duration: 1.12s; animation-delay: -0.37s; }
.viz__bar:nth-child(13) { animation-duration: 1.48s; animation-delay: -0.14s; }
.viz__bar:nth-child(14) { animation-duration: 0.88s; animation-delay: -0.66s; }
.viz__bar:nth-child(15) { animation-duration: 1.72s; animation-delay: -0.42s; }
.viz__bar:nth-child(16) { animation-duration: 1.20s; animation-delay: -0.03s; }
.viz__bar:nth-child(17) { animation-duration: 1.02s; animation-delay: -0.58s; }
.viz__bar:nth-child(18) { animation-duration: 1.54s; animation-delay: -0.22s; }
.viz__bar:nth-child(19) { animation-duration: 1.30s; animation-delay: -0.80s; }
.viz__bar:nth-child(20) { animation-duration: 0.96s; animation-delay: -0.35s; }
.viz__bar:nth-child(21) { animation-duration: 1.62s; animation-delay: -0.11s; }
.viz__bar:nth-child(22) { animation-duration: 1.14s; animation-delay: -0.49s; }
.viz__bar:nth-child(23) { animation-duration: 1.44s; animation-delay: -0.92s; }
.viz__bar:nth-child(24) { animation-duration: 1.00s; animation-delay: -0.29s; }
.viz__bar:nth-child(25) { animation-duration: 1.68s; animation-delay: -0.63s; }
.viz__bar:nth-child(26) { animation-duration: 1.22s; animation-delay: -0.07s; }
.viz__bar:nth-child(27) { animation-duration: 1.08s; animation-delay: -0.55s; }
.viz__bar:nth-child(28) { animation-duration: 1.50s; animation-delay: -0.19s; }
@keyframes idle {
  0%   { transform: scaleY(0.16); }
  35%  { transform: scaleY(0.72); }
  60%  { transform: scaleY(0.34); }
  100% { transform: scaleY(0.95); }
}
.viz__caption {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 1.6rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.6rem; }
.btn {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
  padding: 0.6rem 1.15rem;
  text-decoration: none;
  border: 1px solid var(--ink);
  font-family: var(--sans);
}
.btn--primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn--primary:hover { background: var(--c); border-color: var(--c); color: #fff6ec; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--bg-2); color: var(--ink); }
.btn__small { font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.75; }
.btn__big { font-family: var(--mono); font-weight: 600; font-size: 1.12rem; letter-spacing: 0.01em; }

.hero__facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--ink-2);
  border-top: 1px solid var(--rule-2);
  padding-top: 1.1rem;
}
.hero__facts strong { color: var(--ink); font-weight: 600; }

.hero__figure { margin: 0; }
.hero__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.04) sepia(0.14);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}
.hero__figure figcaption,
.story__figure figcaption,
.callout__gallery figcaption {
  font-size: 0.8rem;
  color: var(--ink-2);
  margin-top: 0.6rem;
  max-width: 46ch;
  border-left: 2px solid var(--a);
  padding-left: 0.7rem;
}

/* ---------- story ---------- */
.story { background: var(--bg-2); border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); }
.story__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
  grid-template-columns: 1fr;
}
.story__text p { margin: 0 0 1rem; max-width: 62ch; text-wrap: pretty; }
.story__text p:last-child { margin-bottom: 0; }
.story__figure { margin: 0; }
.story__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.05) sepia(0.16);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}

/* ---------- menu (services) ---------- */
.menu { max-width: var(--maxw); margin: 0 auto; }
.menu__head { max-width: 66ch; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.menu__note { color: var(--ink-2); font-size: 0.94rem; margin: 0; }
.menu__cols { display: grid; gap: clamp(1.8rem, 4vw, 2.8rem); grid-template-columns: 1fr; }
.menu__group h3 {
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ink);
}
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1rem;
  padding: 0.62rem 0;
  border-bottom: 1px dotted var(--rule);
  align-items: baseline;
}
.item__name { font-weight: 500; }
.item__name em {
  display: block;
  font-style: normal;
  font-size: 0.83rem;
  color: var(--ink-2);
  line-height: 1.45;
  margin-top: 0.15rem;
  max-width: 44ch;
}
.item__price {
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--c);
  white-space: nowrap;
}
@media (prefers-color-scheme: dark) { .item__price { color: var(--a); } }
.menu__foot {
  margin: clamp(1.8rem, 4vw, 2.6rem) 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.86rem;
  color: var(--ink-2);
  max-width: 70ch;
}

/* ---------- callout ---------- */
.callout { background: var(--bg-2); border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); }
.callout > h2, .steps, .callout__gallery { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  background: var(--panel);
  border: 1px solid var(--rule-2);
  border-left: 3px solid var(--b);
}
.steps__n {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c);
  padding-top: 0.2rem;
}
.steps h3 { font-family: var(--serif); font-size: 1.05rem; margin: 0 0 0.3rem; font-weight: 600; }
.steps p { margin: 0; font-size: 0.9rem; color: var(--ink-2); max-width: 60ch; }

.callout__gallery { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
.callout__gallery figure { margin: 0; }
.callout__gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.05) sepia(0.15);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
}

/* ---------- footer cards ---------- */
.cards {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}
.card {
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: clamp(1.2rem, 3vw, 1.8rem);
  box-shadow: var(--shadow);
}
.card__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ink);
}
.card__note { font-size: 0.85rem; color: var(--ink-2); margin: 1rem 0 0; }
.card__lead { font-size: 0.92rem; color: var(--ink-2); margin: 0 0 1.1rem; }
.card__link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c);
  min-height: 44px;
  line-height: 44px;
}
.hours { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.hours th, .hours td { text-align: left; padding: 0.42rem 0; border-bottom: 1px dotted var(--rule); font-weight: 400; }
.hours th { color: var(--ink-2); font-weight: 500; }
.hours td { text-align: right; font-family: var(--mono); font-size: 0.84rem; }
.hours .closed { color: var(--ink-2); opacity: 0.75; }
.hours .is-open th, .hours .is-open td { color: var(--ink); font-weight: 600; }
.hours .is-open td { color: var(--b); }
@media (prefers-color-scheme: dark) { .hours .is-open td { color: var(--a); } }
.addr { font-style: normal; font-size: 0.98rem; line-height: 1.75; }
.phone {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  min-height: 62px;
  padding: 0.7rem 1.1rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  border: 1px solid var(--ink);
}
.phone:hover { background: var(--c); border-color: var(--c); color: #fff6ec; }
.phone__label { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.8; }
.phone__num { font-family: var(--mono); font-weight: 600; font-size: 1.5rem; letter-spacing: 0.01em; }

/* ---------- closing ---------- */
.closing { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.closing blockquote { margin: 0 auto; max-width: 46ch; }
.closing blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 1rem + 1.3vw, 1.85rem);
  line-height: 1.35;
  margin: 0 0 0.9rem;
  text-wrap: balance;
}
.closing cite {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.closing__line {
  margin: 2rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--ink-2);
}

/* ---------- site footer ---------- */
.site-foot {
  padding: 1.6rem var(--pad) 2.4rem calc(var(--spine-w) + 0.4rem);
  border-top: 1px solid var(--rule-2);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-start;
}
.claim-banner {
  display: inline-block;
  font-size: 0.76rem;
  color: var(--ink-2);
  background: var(--rule-2);
  border: 1px solid var(--rule-2);
  padding: 0.4rem 0.7rem;
  text-decoration: none;
  border-radius: 2px;
}
.claim-banner:hover { color: var(--c); border-color: var(--rule); }
.attribution {
  position: static;
  margin: 0;
  font-size: 0.7rem;
  opacity: 0.55;
  font-family: var(--mono);
  letter-spacing: 0.06em;
}
.attribution a { color: inherit; }

/* ---------- responsive ---------- */
@media (min-width: 720px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
  .story__grid { grid-template-columns: 1.15fr 0.85fr; }
  .menu__cols { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .callout__gallery { grid-template-columns: repeat(3, 1fr); }
  .cards { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1080px) {
  .menu__cols { grid-template-columns: repeat(2, 1fr); column-gap: 3.4rem; }
}

@media (max-width: 719px) {
  .topbar__nav { display: none; }
  .spine { font-size: 0.58rem; letter-spacing: 0.26em; max-height: 58vh; }
  .hero__figure { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .viz__bar { animation: none; transform: scaleY(0.45); }
  .progress__fill { animation: none; transform: scaleX(0); }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
