/* ============================================================
   FIX IT MECHANICAL CAR REPAIR AND SERVICE — Banjul, The Gambia
   Composition: warm paper + hand-drawn ink / scribble annotations
   / hyper-stillness / magazine folios / drag-to-scroll band /
   full-bleed colour blocks per section.
   ============================================================ */

:root {
  --paper:      #f8f2e2;
  --paper-deep: #efe6cf;
  --ink:        #0a0a0a;
  --ink-soft:   #3a352c;
  --rust:       #b8401f;
  --rust-deep:  #8f2f14;
  --ochre:      #e0a32b;
  --ochre-soft: #f0d79a;
  --teal:       #14524f;
  --teal-soft:  #cfe0da;
  --rule:       rgba(10, 10, 10, 0.22);

  --maxw: 1180px;
  --gut: clamp(1.1rem, 4vw, 3.5rem);

  --sans: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.075rem);
  line-height: 1.62;
  font-variation-settings: "wdth" 100;
  overflow-x: hidden;
}

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

a { color: inherit; }

/* ---------- hyper-stillness: no motion anywhere ---------- */
*,
*::before,
*::after {
  animation: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- focus ---------- */
:focus-visible {
  outline: 3px solid var(--rust);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- typography primitives ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: pretty;
}

h1 { font-size: clamp(2.5rem, 1.6rem + 5.2vw, 5.4rem); }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.2rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); }

p { margin: 0 0 1.1em; text-wrap: pretty; }

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem); line-height: 1.5; }

/* ---------- hand-drawn scribble annotation ---------- */
mark.scribble {
  background: none;
  color: inherit;
  padding: 0 0.06em;
  position: relative;
  white-space: nowrap;
}
mark.scribble::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.18em;
  height: 0.42em;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'><path d='M2 9 C 34 3, 62 12, 96 7 S 158 2, 198 8' fill='none' stroke='%23b8401f' stroke-width='3.4' stroke-linecap='round'/></svg>");
}
mark.scribble--ochre::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'><path d='M3 8 C 40 13, 70 2, 104 8 S 162 13, 197 6' fill='none' stroke='%23e0a32b' stroke-width='3.6' stroke-linecap='round'/></svg>");
}
mark.scribble--teal::after {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'><path d='M2 7 C 30 12, 66 3, 100 9 S 160 4, 198 9' fill='none' stroke='%2314524f' stroke-width='3.4' stroke-linecap='round'/></svg>");
}

/* circled word — hand-drawn ring */
.circled { position: relative; display: inline-block; padding: 0 0.18em; }
.circled::before {
  content: "";
  position: absolute;
  inset: -0.22em -0.34em -0.26em;
  border: 2px solid var(--rust);
  border-radius: 48% 52% 44% 56% / 58% 42% 58% 42%;
  transform: rotate(-1.4deg);
  pointer-events: none;
}

/* ---------- folio strip ---------- */
.folio {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.85rem var(--gut);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.folio__left { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; }
.folio b { font-weight: 700; color: var(--ink); }

/* ---------- masthead ---------- */
.masthead {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 2.6rem) var(--gut) clamp(1rem, 3vw, 1.8rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  align-items: flex-end;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; }
.brand__mark {
  width: 54px; height: 54px;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 50% 46% 52% 48% / 48% 52% 46% 54%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.35rem;
  background: var(--ochre);
}
.brand__name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.brand__sub {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.masthead__call {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.6rem 1.15rem;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.masthead__call:hover { background: var(--rust); border-color: var(--rust); }

/* ---------- section shell ---------- */
.section {
  padding: clamp(3.2rem, 8vw, 7rem) 0;
  background: var(--section-color, var(--paper));
  color: var(--section-ink, var(--ink));
}
.section__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut);
}
.section__tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  margin-bottom: 1.1rem;
  opacity: 0.85;
}

/* ---------- hero ---------- */
.hero { background: var(--paper); }
.hero__grid {
  display: grid;
  gap: clamp(1.6rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  align-items: end;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; }
}
.hero h1 { margin-bottom: 0.35em; }
.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 1.2rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule);
}
.hero__figure { position: relative; }
.hero__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 3px;
  filter: saturate(0.92) contrast(1.04);
}
.hero__caption {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

/* drop cap */
.dropcap::first-letter {
  font-family: var(--serif);
  font-weight: 700;
  float: left;
  font-size: 4.1em;
  line-height: 0.78;
  padding: 0.06em 0.1em 0 0;
  color: var(--rust);
}

/* three-column body on wide screens */
.body-3col { column-count: 1; column-gap: 2.4rem; }
@media (min-width: 820px) {
  .body-3col { column-count: 3; column-rule: 1px solid var(--rule); }
}

/* ---------- quick facts strip ---------- */
.facts {
  display: grid;
  gap: 1px;
  background: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 3px;
  grid-template-columns: 1fr;
  margin-top: clamp(2rem, 5vw, 3.2rem);
}
@media (min-width: 700px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts__cell { background: var(--paper); padding: 1.3rem 1.4rem; }
.facts__cell dt {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.45rem;
}
.facts__cell dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
}
.facts__cell dd a { text-decoration-color: var(--rust); text-decoration-thickness: 2px; }

/* ---------- services ---------- */
.services { background: var(--teal); color: var(--paper); }
.services .section__tag { color: var(--ochre-soft); border-color: var(--ochre-soft); }
.services h2 { color: var(--paper); }

.svc-grid {
  display: grid;
  gap: 1px;
  background: rgba(248, 242, 226, 0.28);
  border: 1px solid rgba(248, 242, 226, 0.28);
  grid-template-columns: 1fr;
  margin-top: 2rem;
}
@media (min-width: 720px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .svc-grid { grid-template-columns: repeat(3, 1fr); } }

.svc {
  background: var(--teal);
  padding: 1.5rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.svc__no {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  color: var(--ochre);
}
.svc h3 { color: var(--paper); margin-bottom: 0.15em; }
.svc p { color: rgba(248, 242, 226, 0.82); font-size: 0.94rem; margin: 0; }
.svc__meta {
  margin-top: auto;
  padding-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ochre-soft);
}

/* ---------- drag band (signature) ---------- */
.band-section { background: var(--ochre); color: var(--ink); }
.band-section .section__tag { color: var(--ink); border-color: var(--ink); }

.band {
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  margin-top: 2rem;
  padding-bottom: 0.6rem;
  touch-action: pan-x pan-y;
  user-select: none;
  -webkit-user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.band::-webkit-scrollbar { display: none; }
.band.is-dragging { cursor: grabbing; }
.band__track {
  display: flex;
  gap: 1.1rem;
  width: max-content;
  padding: 0 0 var(--gut);
}
.band__item {
  width: min(78vw, 340px);
  flex: 0 0 auto;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 3px;
  overflow: hidden;
}
.band__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  pointer-events: none;
  border-bottom: 2px solid var(--ink);
  filter: saturate(0.9) contrast(1.05);
}
.band__body { padding: 1rem 1.1rem 1.2rem; }
.band__body h3 { font-size: 1.12rem; margin-bottom: 0.3em; }
.band__body p { font-size: 0.9rem; margin: 0; color: var(--ink-soft); }
.band__hint {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}

/* ---------- process ---------- */
.process { background: var(--paper-deep); }
.steps {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.4rem);
  grid-template-columns: 1fr;
  margin-top: 2.2rem;
  counter-reset: step;
}
@media (min-width: 780px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { border-top: 2px solid var(--ink); padding-top: 1rem; }
.step__no {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--rust);
  display: block;
  margin-bottom: 0.6rem;
}
.step h3 { margin-bottom: 0.35em; }
.step p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* ---------- notes / quotes ---------- */
.notes { background: var(--paper); }
.quote-grid {
  display: grid;
  gap: clamp(1.4rem, 3vw, 2.2rem);
  grid-template-columns: 1fr;
  margin-top: 2rem;
}
@media (min-width: 820px) { .quote-grid { grid-template-columns: repeat(2, 1fr); } }
.quote {
  border: 2px solid var(--ink);
  border-radius: 3px;
  padding: 1.5rem 1.5rem 1.3rem;
  background: var(--paper-deep);
}
.quote blockquote {
  margin: 0 0 0.9rem;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.4;
}
.quote cite {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------- visit / hours ---------- */
.visit { background: var(--rust); color: var(--paper); }
.visit .section__tag { color: var(--paper); border-color: var(--paper); }
.visit h2, .visit h3 { color: var(--paper); }
.visit__grid {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3rem);
  grid-template-columns: 1fr;
  margin-top: 1.6rem;
}
@media (min-width: 860px) { .visit__grid { grid-template-columns: 1fr 1fr; } }

.hours { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(248,242,226,0.4); }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid rgba(248,242,226,0.4);
  font-size: 0.96rem;
}
.hours li span:first-child { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.hours li.is-closed span:last-child { color: var(--ochre-soft); }

.visit__block { margin-bottom: 1.6rem; }
.visit__block:last-child { margin-bottom: 0; }
.visit__block .mono { display: block; margin-bottom: 0.4rem; color: var(--ochre-soft); }
.visit__block p { margin: 0 0 0.5rem; }
.visit__block a { text-decoration-color: var(--ochre-soft); text-decoration-thickness: 2px; }
.visit__phone {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  min-height: 44px;
}
.visit__phone:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.site-foot {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(2.4rem, 6vw, 4rem) 0 1.6rem;
}
.site-foot__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut);
}
.site-foot__top {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1fr;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid rgba(248,242,226,0.25);
}
@media (min-width: 760px) { .site-foot__top { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-foot h3 { color: var(--paper); font-size: 1.05rem; margin-bottom: 0.5em; }
.site-foot p, .site-foot li { color: rgba(248,242,226,0.78); font-size: 0.92rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 0.4rem; }
.site-foot a { text-decoration-color: var(--ochre); text-decoration-thickness: 2px; }

.claim-banner {
  display: inline-block;
  margin-top: 1.4rem;
  padding: 0.5rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(248,242,226,0.72);
  background: rgba(248,242,226,0.08);
  border: 1px dashed rgba(248,242,226,0.35);
  border-radius: 3px;
  text-decoration: none;
}
.claim-banner:hover { color: var(--paper); background: rgba(248,242,226,0.16); }

.attribution {
  position: static;
  max-width: var(--maxw);
  margin: 1.1rem auto 0;
  padding: 0 var(--gut);
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}
.attribution a { color: inherit; }
