/* ============================================================
   Abdullah's Phone Repair Services — Serekunda
   bleached cream + oxblood + navy · thin headlines / heavy body
   full-bleed photography · anchor-positioned scroll labels
   ============================================================ */

:root {
  --bg:        #f4ecdc;
  --bg-deep:   #eae0cb;
  --ink:       #1a1b2e;
  --ink-soft:  #4a4a5e;
  --accent:    #6b1f1a;
  --secondary: #1e2a4a;
  --rule:      #cbbfa6;

  --pad: clamp(1.25rem, 5vw, 5rem);
  --measure: 62ch;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #14151f;
    --bg-deep:   #1c1d2b;
    --ink:       #f0e8d8;
    --ink-soft:  #b3ab9c;
    --accent:    #d98a7e;
    --secondary: #9fb0d8;
    --rule:      #3a3b4d;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  font-variation-settings: "opsz" 14;
  text-wrap: pretty;
}

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

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--secondary); }

:focus-visible {
  outline: 3px solid var(--secondary);
  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;
}

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

.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 0.85rem var(--pad);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.wordmark-thin {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}
.wordmark-bold {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.head-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.head-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.5rem 0;
  transition: color 180ms ease;
}
.head-nav a:hover { color: var(--accent); }

.head-call {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  background: var(--secondary);
  color: var(--bg);
  text-decoration: none;
  border-radius: 2px;
  transition: background 180ms ease;
}
.head-call:hover { background: var(--accent); color: var(--bg); }
.head-call-label {
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
}
.head-call-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
}

/* ---------- shared section furniture ---------- */

section { padding-block: clamp(3.5rem, 9vw, 7rem); }

.section-head {
  max-width: var(--measure);
  padding-inline: var(--pad);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }

h1 {
  font-weight: 200;
  font-size: clamp(2.5rem, 1.4rem + 5.2vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
  font-variation-settings: "opsz" 120, "SOFT" 0;
}

h2 {
  font-weight: 200;
  font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--ink);
}

h3 {
  font-weight: 400;
  font-size: 1.1875rem;
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 0 0 0.6rem;
  color: var(--secondary);
}

.section-sub {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 700;
  max-width: 58ch;
}

.eyebrow {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent);
  margin: 0 0 1.25rem;
}

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

.hero { padding-block: 0; }

.hero .bleed { margin: 0; }
.hero .bleed img {
  height: clamp(46vh, 62vh, 78vh);
  object-fit: cover;
  object-position: center 45%;
}

.hero-copy {
  max-width: 74ch;
  padding: clamp(2rem, 5vw, 3.75rem) var(--pad) clamp(3rem, 7vw, 5rem);
}

.lede {
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 54ch;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: 2px;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--secondary); color: var(--bg); }
.btn-ghost {
  border: 1.5px solid var(--secondary);
  color: var(--secondary);
  background: transparent;
}
.btn-ghost:hover { background: var(--secondary); color: var(--bg); }

.hero-note {
  margin: 0;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

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

.services { background: var(--bg); }

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding-inline: var(--pad);
  border-top: 1px solid var(--rule);
}

.service {
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 0.5rem 2rem;
}

.service-num {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0;
}

.service p { margin: 0; max-width: 62ch; color: var(--ink); }

.service-price {
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary) !important;
  font-weight: 800;
}

@media (min-width: 46rem) {
  .service {
    grid-template-columns: 4rem minmax(0, 20rem) minmax(0, 1fr);
    align-items: start;
  }
  .service-num { grid-row: 1 / span 3; padding-top: 0.35rem; }
  .service h3 { margin-bottom: 0; }
  .service p { grid-column: 3; }
  .service-price { grid-column: 3; }
}

/* ---------- workshop gallery (full-bleed) ---------- */

.workshop { padding-bottom: clamp(3rem, 7vw, 5rem); }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.5rem, 1.5vw, 1rem) 0;
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.gallery > * { grid-column: 1 / -1; margin: 0; }
.gallery > .half { grid-column: 1 / -1; }

@media (min-width: 46rem) {
  .gallery > .half { grid-column: span 6; }
}

.gallery img {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: cover;
}

.gallery > .bleed img { height: clamp(38vh, 58vh, 70vh); }
.gallery > .half img { height: clamp(30vh, 42vh, 52vh); }

.gallery figcaption {
  padding: 0.75rem var(--pad) 0;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
}

/* ---------- story ---------- */

.story { background: var(--bg-deep); }

.story-inner {
  max-width: 68ch;
  padding-inline: var(--pad);
}
.story-inner p {
  margin: 0 0 1.25rem;
  color: var(--ink);
}
.story-inner h2 { margin-bottom: 1.5rem; }

.story-sign {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 1.125rem;
  color: var(--accent) !important;
  margin-top: 2rem !important;
}

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

.visit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
  padding-inline: var(--pad);
}

@media (min-width: 52rem) {
  .visit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.visit-block { border-top: 2px solid var(--secondary); padding-top: 1.25rem; }

.big-link {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.big-link a { color: var(--accent); text-decoration: none; }
.big-link a:hover { color: var(--secondary); text-decoration: underline; }

.visit-address {
  margin: 0 0 0.9rem;
  font-weight: 700;
  line-height: 1.5;
}

.visit-note {
  margin: 0 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  max-width: 46ch;
}

.map-link { font-weight: 800; }

.hours {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}
.hours th, .hours td {
  text-align: left;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 700;
}
.hours th { color: var(--ink); width: 45%; }
.hours td { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hours .closed td { color: var(--accent); font-weight: 800; }

.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
}
.checklist li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
}
.checklist li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

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

.closing {
  background: var(--secondary);
  color: var(--bg);
  text-align: center;
  padding-inline: var(--pad);
}
@media (prefers-color-scheme: dark) {
  .closing { background: #232a44; }
}

.closing-line {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: clamp(1.5rem, 1.1rem + 2.2vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 30ch;
  margin: 0 auto 1.25rem;
  text-wrap: balance;
}
.closing-sub {
  margin: 0 0 2rem;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.8;
}
.closing-call a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.75rem 1.75rem;
  background: var(--accent);
  color: #f4ecdc;
  font-weight: 800;
  text-decoration: none;
  border-radius: 2px;
  transition: background 180ms ease;
}
.closing-call a:hover { background: #f4ecdc; color: #6b1f1a; }

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

.site-foot {
  background: var(--bg-deep);
  border-top: 1px solid var(--rule);
  padding: clamp(2rem, 5vw, 3rem) var(--pad);
}
.foot-inner { max-width: 68ch; }
.foot-name {
  font-family: var(--font-display);
  font-weight: 200;
  font-size: 1.375rem;
  margin: 0 0 0.5rem;
}
.foot-meta {
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.claim-wrap { margin: 1.5rem 0 1rem; }
.claim-banner {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.75rem;
  background: color-mix(in srgb, var(--rule) 45%, transparent);
  border: 1px solid var(--rule);
  border-radius: 2px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 180ms ease, border-color 180ms ease;
}
.claim-banner:hover { color: var(--accent); border-color: var(--accent); }

.attribution {
  margin: 0;
  font-size: 0.75rem;
}
.attribution a { color: var(--ink-soft); }
.attribution a:hover { color: var(--accent); }

/* ---------- anchor-positioned scroll labels ---------- */

@supports (anchor-name: --x) {
  @media (min-width: 68rem) {
    .section-head h2 { anchor-name: --heading; }

    .section-head::after {
      content: "§";
      position: absolute;
      position-anchor: --heading;
      position-area: right span-block;
      margin-left: 1.5rem;
      font-family: var(--font-display);
      font-weight: 200;
      font-size: 1.25rem;
      color: var(--accent);
      opacity: 0.55;
      animation: label-drift linear both;
      animation-timeline: view();
      animation-range: entry 10% exit 90%;
    }
    .section-head { position: relative; }
  }
}

@keyframes label-drift {
  from { translate: 0 -0.75rem; opacity: 0.15; }
  to   { translate: 0  0.75rem; opacity: 0.55; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .section-head::after { animation: none; opacity: 0.55; translate: none; }
}
