/* ============================================================
   Muhammad Mobile's and Electronic — Serekunda
   Composition: warm paper + hand-drawn ink / scribble annotations
   / hyper-still / magazine folio / drag band / diagonal stripe
   ============================================================ */

:root {
  --bg: #f8f2e2;
  --bg-2: #f1e8d2;
  --paper: #fffaf0;
  --ink: #0a0a0a;
  --ink-soft: #3a352c;
  --ink-mute: #6b6355;
  --rule: #0a0a0a;
  --accent: #e8b21c;
  --accent-ink: #7a5600;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 1180px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14120e;
    --bg-2: #1c1913;
    --paper: #1f1b14;
    --ink: #f4ecda;
    --ink-soft: #ddd3bd;
    --ink-mute: #a89d86;
    --rule: #f4ecda;
    --accent: #d9a316;
    --accent-ink: #f2c65a;
  }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(15deg,
      transparent 0 38%,
      color-mix(in srgb, var(--accent) 26%, transparent) 38% 62%,
      transparent 62% 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

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

a { color: inherit; }

h1, h2, h3 { font-family: var(--serif); font-weight: 900; line-height: 1.05; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }

p { margin: 0 0 1.05em; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg); padding: .6rem 1rem; z-index: 99;
}
.skip:focus { left: .5rem; top: .5rem; }

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

/* ---------- hand-drawn ink: scribble underline ---------- */
.scribble {
  background: transparent;
  color: inherit;
  position: relative;
  white-space: nowrap;
}
.scribble::after {
  content: "";
  position: absolute;
  left: -2%; right: -2%;
  bottom: -0.28em;
  height: 0.42em;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9 C 30 3, 52 12, 78 7 S 128 2, 152 9 S 184 12, 198 6' fill='none' stroke='%23e8b21c' stroke-width='3.4' stroke-linecap='round'/%3E%3Cpath d='M6 12 C 40 7, 66 13, 96 9 S 150 5, 194 10' fill='none' stroke='%230a0a0a' stroke-width='1.4' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  .scribble::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M2 9 C 30 3, 52 12, 78 7 S 128 2, 152 9 S 184 12, 198 6' fill='none' stroke='%23d9a316' stroke-width='3.4' stroke-linecap='round'/%3E%3Cpath d='M6 12 C 40 7, 66 13, 96 9 S 150 5, 194 10' fill='none' stroke='%23f4ecda' stroke-width='1.4' stroke-linecap='round' opacity='.5'/%3E%3C/svg%3E");
  }
}

/* ---------- masthead ---------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(9px);
  border-bottom: 2px solid var(--rule);
}
.masthead-inner {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding-block: 0.7rem;
}
.wordmark { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.wordmark-main { font-family: var(--serif); font-weight: 900; font-size: 1.15rem; letter-spacing: -0.02em; }
.wordmark-sub {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-mute); margin-top: 0.28rem;
}
.nav { display: flex; gap: 1.1rem; margin-left: auto; flex-wrap: wrap; }
.nav a {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; padding: 0.55rem 0.15rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--accent); }

.call-pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  text-decoration: none;
  background: var(--ink); color: var(--bg);
  padding: 0.62rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  min-height: 44px;
}
.call-label { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.75; }
.call-number { font-family: var(--serif); font-weight: 900; font-size: 1rem; }

/* ---------- folio strip ---------- */
.folio {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute);
  border-top: 2px solid var(--rule);
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 35%, transparent);
  padding: 0.6rem 0;
  margin: 0 0 clamp(1.6rem, 4vw, 3rem);
}
.folio-sm { margin-bottom: 1.1rem; }
.folio-sep { opacity: 0.4; }

/* ---------- hero ---------- */
.hero { padding-top: clamp(1.6rem, 4vw, 3rem); padding-bottom: clamp(2.4rem, 6vw, 5rem); }
.hero-grid {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3.2rem);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
}

h1 { font-size: clamp(2.1rem, 1.1rem + 5.2vw, 4.1rem); margin-bottom: 1rem; }
h1 em { font-style: italic; font-weight: 400; }

.byline {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-mute);
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center;
  padding-bottom: 1.1rem; margin-bottom: 1.3rem;
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 30%, transparent);
}
.byline-dot { opacity: 0.5; }

.lede { font-size: 1.06em; color: var(--ink-soft); }
.dropcap {
  float: left;
  font-family: var(--serif); font-weight: 900;
  font-size: 3.9em; line-height: 0.78;
  padding: 0.06em 0.12em 0 0;
  color: var(--ink);
}

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

.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.75rem 1.35rem;
  font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none;
  border: 2px solid var(--ink);
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); color: #0a0a0a; border-color: #0a0a0a; }
.btn-ghost { background: transparent; color: var(--ink); border-width: 1px; }
.btn-ghost:hover { border-width: 2px; background: color-mix(in srgb, var(--accent) 30%, transparent); }

.hero-note {
  font-family: var(--mono); font-size: 0.72rem; line-height: 1.7;
  color: var(--ink-mute); max-width: 46ch;
  border-left: 2px solid var(--accent); padding-left: 0.85rem;
}

figure { margin: 0; }
.hero-figure img, .wide-figure img, .side-figure img {
  border: 2px solid var(--rule);
  filter: saturate(0.92) contrast(1.03);
}
.hero-figure figcaption, .wide-figure figcaption, .side-figure figcaption {
  font-family: var(--mono); font-size: 0.68rem; line-height: 1.65;
  color: var(--ink-mute); margin-top: 0.7rem;
  display: flex; gap: 0.6rem; align-items: baseline;
}
.fig-num {
  font-weight: 600; color: var(--ink);
  border: 1px solid var(--rule); padding: 0.05rem 0.35rem;
  white-space: nowrap; flex: none;
}

/* ---------- signature: drag band ---------- */
.band-section {
  padding-block: clamp(2.2rem, 5vw, 4rem);
  border-top: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 70%, transparent);
}
.band-heading { font-size: clamp(1.5rem, 1rem + 2.4vw, 2.5rem); margin-bottom: 0.5rem; }
.band-hint {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 1.6rem;
}

.band {
  overflow: hidden;
  cursor: grab;
  padding-block: 0.4rem 1rem;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.band.is-dragging { cursor: grabbing; }
.band:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 4px; }

.band-track {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter);
  width: max-content;
}
.band-card {
  flex: none;
  width: min(78vw, 320px);
  background: var(--paper);
  border: 2px solid var(--rule);
  padding: 1.2rem 1.2rem 1.35rem;
  display: flex; flex-direction: column;
}
.band-card:nth-child(even) { border-width: 1px; }
.band-num {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em;
  color: var(--accent-ink); margin-bottom: 0.6rem;
}
.band-card h3 { font-size: 1.22rem; margin-bottom: 0.55rem; }
.band-card p { font-size: 0.92rem; color: var(--ink-soft); }
.band-meta {
  margin-top: auto; padding-top: 0.8rem;
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-mute);
  border-top: 1px solid color-mix(in srgb, var(--rule) 30%, transparent);
}

/* ---------- sections ---------- */
.services, .how, .about, .visit, .reviews {
  padding-block: clamp(2.6rem, 6vw, 5rem);
}
.section-head { max-width: 62ch; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.section-head h2 { font-size: clamp(1.6rem, 1.05rem + 2.6vw, 2.7rem); margin-bottom: 0.7rem; }
.section-intro { color: var(--ink-soft); }

.columns {
  display: grid; gap: clamp(1.4rem, 3vw, 2.4rem);
  grid-template-columns: 1fr;
}
@media (min-width: 780px) { .columns { grid-template-columns: repeat(3, 1fr); } }

.col {
  border-top: 2px solid var(--rule);
  padding-top: 1.1rem;
}
.col h3 { font-size: 1.25rem; margin-bottom: 0.85rem; }
.tick { list-style: none; margin: 0 0 1rem; padding: 0; }
.tick li {
  font-size: 0.93rem; padding: 0.34rem 0 0.34rem 1.35rem;
  position: relative; border-bottom: 1px solid color-mix(in srgb, var(--rule) 18%, transparent);
}
.tick li::before {
  content: "";
  position: absolute; left: 0; top: 0.85em;
  width: 0.62rem; height: 0.62rem;
  background-repeat: no-repeat; background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 9 C 4 11, 5 13, 6 13 S 10 6, 14 2' fill='none' stroke='%230a0a0a' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  .tick li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 9 C 4 11, 5 13, 6 13 S 10 6, 14 2' fill='none' stroke='%23f4ecda' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E");
  }
}
.col-note {
  font-family: var(--mono); font-size: 0.7rem; line-height: 1.7;
  color: var(--ink-mute); margin: 0;
}

/* ---------- how it works ---------- */
.steps {
  list-style: none; margin: 0 0 clamp(2rem, 5vw, 3.4rem); padding: 0;
  display: grid; gap: clamp(1.2rem, 3vw, 2rem);
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 780px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { border-top: 2px solid var(--rule); padding-top: 1rem; }
.step-num {
  display: inline-block;
  font-family: var(--serif); font-weight: 900; font-size: 1.9rem;
  line-height: 1; margin-bottom: 0.5rem;
  color: var(--accent-ink);
}
.steps h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.steps p { font-size: 0.94rem; color: var(--ink-soft); margin: 0; }

.wide-figure { max-width: 900px; }

/* ---------- about ---------- */
.about-grid { display: grid; gap: clamp(1.8rem, 4vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 940px) { .about-grid { grid-template-columns: 1.25fr 0.75fr; align-items: start; } }
.about-copy h2 { font-size: clamp(1.6rem, 1.05rem + 2.6vw, 2.6rem); margin-bottom: 1.1rem; }
.dropcap-para { font-size: 1.05em; }
.pull-quote {
  font-family: var(--serif); font-style: italic; font-size: 1.28rem; line-height: 1.4;
  border-left: 3px solid var(--accent); padding-left: 1.1rem; margin-top: 1.8rem;
  color: var(--ink);
}

.about-side { display: grid; gap: 1.6rem; }
.facts { border: 2px solid var(--rule); background: var(--paper); padding: 1.2rem 1.25rem; }
.facts h3 { font-size: 1.05rem; margin-bottom: 0.8rem; }
.facts dl { margin: 0; display: grid; grid-template-columns: 1fr; gap: 0.55rem; }
.facts dt {
  font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-mute);
}
.facts dd { margin: 0.1rem 0 0; font-size: 0.92rem; }

/* ---------- visit ---------- */
.visit-grid { display: grid; gap: clamp(1.2rem, 3vw, 1.8rem); grid-template-columns: 1fr; }
@media (min-width: 820px) { .visit-grid { grid-template-columns: repeat(3, 1fr); } }
.visit-card {
  border: 2px solid var(--rule); background: var(--paper);
  padding: 1.3rem 1.3rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.7rem;
}
.visit-card h3 { font-size: 1.15rem; }
.visit-card p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }
.visit-card--call { background: color-mix(in srgb, var(--accent) 22%, var(--paper)); }
.big-phone {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 2.6rem);
  text-decoration: none; line-height: 1;
  border-bottom: 3px solid var(--ink);
  align-self: flex-start;
}
.big-phone:hover { border-bottom-color: var(--accent-ink); }
.visit-card .btn-primary, .visit-card .btn-ghost { align-self: flex-start; margin-top: auto; }

.hours { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.hours th, .hours td { text-align: left; padding: 0.42rem 0; border-bottom: 1px solid color-mix(in srgb, var(--rule) 20%, transparent); }
.hours th { font-weight: 600; }
.hours td { font-family: var(--mono); font-size: 0.78rem; color: var(--ink-soft); }
.hours .closed td { color: var(--accent-ink); font-weight: 600; }

address { font-style: normal; font-size: 0.94rem; line-height: 1.7; }
.wayfinding { font-family: var(--mono); font-size: 0.7rem; line-height: 1.75; color: var(--ink-mute); }

/* ---------- reviews ---------- */
.reviews { border-top: 2px solid var(--rule); }
.columns--quotes blockquote {
  margin: 0; border-top: 2px solid var(--rule); padding-top: 1rem;
}
.columns--quotes blockquote p { font-family: var(--serif); font-size: 1.06rem; line-height: 1.5; }
.columns--quotes cite {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-mute); font-style: normal;
}

/* ---------- footer ---------- */
.site-footer {
  border-top: 2px solid var(--rule);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  padding-block: clamp(1.8rem, 4vw, 2.8rem);
}
.footer-grid {
  display: grid; gap: 1.2rem; grid-template-columns: 1fr;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid color-mix(in srgb, var(--rule) 25%, transparent);
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr; } }
.footer-mark { font-family: var(--serif); font-weight: 900; font-size: 1.1rem; margin: 0 0 0.35rem; }
.footer-line { font-size: 0.88rem; color: var(--ink-soft); margin: 0 0 0.3rem; }
.footer-line a { text-decoration: none; border-bottom: 2px solid var(--accent); }

.claim-row { margin: 1.2rem 0 0.9rem; }
.claim-banner {
  display: inline-block;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--rule) 30%, transparent);
  padding: 0.5rem 0.75rem;
  min-height: 44px; line-height: 1.5;
}
.claim-banner:hover { background: color-mix(in srgb, var(--accent) 32%, transparent); }

.attribution {
  position: static;
  margin: 0;
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em;
  opacity: 0.6;
}
.attribution a { color: inherit; }

/* ---------- hyper-stillness ---------- */
* { animation: none !important; transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
