/* ============================================================
   Big4's Mobile Repairs and Unlock — Brikama
   Risograph two-ink palette · full-bleed photo layout
   ============================================================ */

:root {
  --bg: #f7f5ea;
  --paper: #fffdf6;
  --ink-a: #ff48b0;
  --ink-b: #1f3fff;
  --ink: #14121c;
  --ink-soft: #4a4658;
  --line: rgba(20, 18, 28, 0.16);
  --shadow: 0 18px 40px -24px rgba(20, 18, 28, 0.45);
  --maxw: 1180px;
  --pad: clamp(1.15rem, 4vw, 3rem);
  --font-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #100f16;
    --paper: #191823;
    --ink-a: #ff5cbb;
    --ink-b: #6d86ff;
    --ink: #f4f1e8;
    --ink-soft: #b3aec4;
    --line: rgba(244, 241, 232, 0.18);
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
  }
}

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

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

body {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 55% at 8% -5%, color-mix(in srgb, var(--ink-a) 26%, transparent) 0, transparent 62%),
    radial-gradient(ellipse 65% 60% at 100% 12%, color-mix(in srgb, var(--ink-b) 22%, transparent) 0, transparent 58%),
    radial-gradient(ellipse 80% 50% at 50% 108%, color-mix(in srgb, var(--ink-b) 14%, transparent) 0, transparent 60%);
  background-attachment: fixed;
  text-wrap: pretty;
  overflow-x: hidden;
}

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

a { color: inherit; }

h1, h2, h3 { line-height: 1.05; margin: 0 0 0.6em; letter-spacing: -0.02em; }

h1 {
  font-size: clamp(2.5rem, 8.5vw, 5.6rem);
  font-weight: 800;
  font-variation-settings: "wdth" 100, "opsz" 48;
  text-transform: uppercase;
}

h2 {
  font-size: clamp(1.75rem, 4.6vw, 3rem);
  font-weight: 700;
  font-variation-settings: "wdth" 100, "opsz" 32;
}

h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 700; }

p { margin: 0 0 1.05em; }

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

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

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

/* ---------- breathing width axis ---------- */
@keyframes breathe {
  0%, 100% { font-variation-settings: "wdth" 78, "opsz" 48; }
  50%      { font-variation-settings: "wdth" 122, "opsz" 48; }
}
.breathe { animation: breathe 7s ease-in-out infinite; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.7rem var(--pad);
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; margin-right: auto;
}
.brand-mark {
  display: grid; place-items: center;
  width: 44px; height: 44px; flex: 0 0 44px;
  font-family: var(--font-mono); font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--paper);
  background: var(--ink-b);
  box-shadow: 3px 3px 0 var(--ink-a);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; }
.brand-text em {
  font-style: normal; font-family: var(--font-mono);
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-soft);
}
.head-nav { display: flex; gap: 1.15rem; }
.head-nav a {
  text-decoration: none; font-size: 0.92rem; font-weight: 600;
  padding: 0.55rem 0.15rem; border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.head-nav a:hover { border-bottom-color: var(--ink-a); }
.head-call {
  display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 44px; padding: 0.5rem 1rem;
  text-decoration: none; font-weight: 700; font-size: 0.92rem;
  color: var(--paper); background: var(--ink);
  border: 2px solid var(--ink);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.head-call:hover { background: var(--ink-b); border-color: var(--ink-b); box-shadow: 4px 4px 0 var(--ink-a); }
.head-call .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-a); flex: 0 0 8px;
}

/* ---------- marquee ---------- */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--bg);
  padding: 0.55rem 0;
}
.marquee-track {
  display: flex; align-items: center; gap: 2.5rem;
  width: max-content;
  animation: scroll 42s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.16em;
  white-space: nowrap;
}
.marquee-track .sep { color: var(--ink-a); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- hero ---------- */
.hero { position: relative; }
.hero-media { position: relative; overflow: hidden; }
.hero-media img {
  width: 100%; height: clamp(280px, 52vw, 620px);
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, color-mix(in srgb, var(--bg) 92%, transparent) 0%, transparent 55%);
  pointer-events: none;
}
.hero-copy {
  max-width: var(--maxw);
  margin: -3.5rem auto 0;
  padding: 0 var(--pad) clamp(2rem, 5vw, 4rem);
  position: relative;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--ink-soft); margin-bottom: 0.9rem;
}
.hero h1 { margin-bottom: 0.5em; }
.hero h1 span { display: block; }
.ink-a { color: var(--ink-a); }
.ink-b { color: var(--ink-b); }
.lede {
  max-width: 60ch; font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--ink-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.6rem 0 2.2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0.75rem 1.5rem;
  font-weight: 700; font-size: 0.98rem; text-decoration: none;
  border: 2px solid var(--ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn-primary { background: var(--ink-a); color: #14121c; }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink-b); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink-b); border-color: var(--ink-b); color: var(--paper); }

.hero-facts {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 0; padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero-facts dt {
  font-family: var(--font-mono); font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.16em; color: var(--ink-soft);
  margin-bottom: 0.25rem;
}
.hero-facts dd { margin: 0; font-weight: 600; }

/* ---------- bands ---------- */
.band { padding: clamp(2.75rem, 7vw, 5.5rem) 0; }
.band-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.band-intro .band-inner { max-width: 900px; }
.band-intro h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
.band-intro p { font-size: clamp(1.02rem, 1.5vw, 1.15rem); color: var(--ink-soft); }

.band-services { background: color-mix(in srgb, var(--paper) 72%, transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lede { max-width: 62ch; color: var(--ink-soft); margin-bottom: 2.5rem; }

/* ---------- gallery (full bleed) ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0; }
.gallery figure { margin: 0; position: relative; overflow: hidden; }
.gallery .full { grid-column: 1 / -1; }
.gallery .half { grid-column: span 6; }
.gallery img {
  width: 100%; height: clamp(260px, 44vw, 560px);
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery .half img { height: clamp(280px, 46vw, 620px); }
.gallery figure:hover img { transform: scale(1.02); }
.gallery figcaption {
  position: absolute; left: 0; bottom: 0;
  padding: 0.6rem 1rem;
  font-family: var(--font-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  background: var(--ink); color: var(--bg);
  max-width: 90%;
}

/* ---------- services ---------- */
.service-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.service-list li {
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
  display: grid; gap: 0.35rem 2rem;
  grid-template-columns: minmax(0, 1fr);
}
.service-list li:last-child { border-bottom: 1px solid var(--line); }
.service-list h3 { margin: 0; }
.service-list p { margin: 0; color: var(--ink-soft); max-width: 68ch; }
.service-list .price {
  font-family: var(--font-mono); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-b); font-weight: 600;
}
@media (min-width: 760px) {
  .service-list li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: start; }
  .service-list li h3 { grid-column: 1; }
  .service-list li p:not(.price) { grid-column: 2; grid-row: 1 / span 2; }
  .service-list li .price { grid-column: 1; }
}

/* ---------- why ---------- */
.split { display: grid; gap: clamp(1.75rem, 4vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 880px) { .split { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.why-card {
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink-a);
  padding: clamp(1.4rem, 3vw, 2rem);
}
.why-card h3 { margin-top: 0; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.ticks li { padding-left: 1.6rem; position: relative; }
.ticks li::before {
  content: "◆"; position: absolute; left: 0; top: 0;
  color: var(--ink-b); font-size: 0.8rem;
}

/* ---------- visit ---------- */
.band-visit { background: color-mix(in srgb, var(--paper) 72%, transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.visit-grid { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); grid-template-columns: 1fr; }
@media (min-width: 820px) { .visit-grid { grid-template-columns: repeat(3, 1fr); } }
.visit-block h3 {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--ink-soft);
  padding-bottom: 0.6rem; border-bottom: 2px solid var(--ink-a);
  margin-bottom: 1rem;
}
.muted { color: var(--ink-soft); font-size: 0.94rem; }
.inline-link { color: var(--ink-b); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.inline-link:hover { color: var(--ink-a); }

.hours { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours th, .hours td { text-align: left; padding: 0.45rem 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.hours th { font-weight: 600; }
.hours td { text-align: right; font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-soft); }

.big-call { margin: 0 0 0.75rem; }
.big-call a {
  font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800;
  text-decoration: none; letter-spacing: -0.02em;
  color: var(--ink-b);
  border-bottom: 4px solid var(--ink-a);
}
.big-call a:hover { color: var(--ink-a); border-bottom-color: var(--ink-b); }

/* ---------- faq ---------- */
.faq { display: grid; gap: 0; max-width: 860px; }
.faq details { border-top: 1px solid var(--line); padding: 0.35rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 0.9rem 0; font-weight: 700;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-a); font-family: var(--font-mono); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-soft); margin: 0 0 1rem; max-width: 68ch; }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 3.25rem) var(--pad) 1.75rem;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}
.foot-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem;
  justify-content: space-between; align-items: flex-start;
}
.foot-brand { display: grid; gap: 0.5rem; }
.foot-brand p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }
.foot-brand strong { color: var(--ink); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.foot-nav a { font-size: 0.92rem; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.foot-nav a:hover { border-bottom-color: var(--ink-a); }

.claim-wrap { max-width: var(--maxw); margin: 2.25rem auto 0.75rem; }
.claim-banner {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 0.45rem 0.8rem;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.claim-banner:hover { color: var(--ink-b); border-color: var(--ink-b); }

.attribution {
  max-width: var(--maxw); margin: 0 auto;
  font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: 0.06em;
}
.attribution a { color: var(--ink-soft); text-decoration: none; }
.attribution a:hover { color: var(--ink-b); text-decoration: underline; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .breathe { animation: none; font-variation-settings: "wdth" 100, "opsz" 48; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
  .gallery img, .btn, .head-call { transition: none; }
  .gallery figure:hover img { transform: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 700px) {
  .head-inner { gap: 0.6rem; }
  .head-nav { order: 3; width: 100%; justify-content: space-between; }
  .head-call { padding: 0.5rem 0.8rem; font-size: 0.86rem; }
  .gallery .half { grid-column: 1 / -1; }
  .gallery img, .gallery .half img { height: clamp(230px, 60vw, 380px); }
  .hero-copy { margin-top: -2rem; }
  .gallery figcaption { font-size: 0.66rem; }
}
