/* ============================================================
   Home page - Electronic Repairs UK
   ============================================================ */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  padding-top: 5.75rem;
  padding-bottom: clamp(2rem, 1rem + 5vw, 4rem);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 42%; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, oklch(0.145 0.006 60 / 0.55) 42%, oklch(0.145 0.006 60 / 0.15) 72%, oklch(0.145 0.006 60 / 0.55) 100%),
    linear-gradient(to right, oklch(0.145 0.006 60 / 0.82) 0%, oklch(0.145 0.006 60 / 0.3) 55%, transparent 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-title { font-size: var(--fs-mega); margin-block: 0.8rem 1.2rem; text-shadow: 0 2px 40px oklch(0.1 0 0 / 0.6); }
.hero-lead { margin-bottom: 1.8rem; max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.hero-scope {
  margin-top: 2.2rem;
  max-width: 460px;
  background: oklch(0.16 0.008 60 / 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem 0.4rem;
  backdrop-filter: blur(6px);
}
.scope-label { font-size: 0.64rem; letter-spacing: 0.2em; color: var(--muted); display: inline-flex; align-items: center; gap: 0.5rem; }
.scope-canvas { width: 100%; height: 46px; }
.hero-authorised { margin-top: 1.4rem; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.02em; }
.hero-authorised b { color: var(--ink); font-weight: 600; }

.scroll-cue { position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 1.5px solid var(--line-strong); border-radius: 20px; display: none; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--amber); animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 60% { opacity: 1; transform: translateY(14px); } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- STATS ---------- */
.stats-band { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
.stats li { display: flex; flex-direction: column; gap: 0.3rem; }
.stat-num { font-size: clamp(2.6rem, 1.6rem + 4vw, 4rem); line-height: 0.9; color: var(--amber); }
.stat-num.stat-word { letter-spacing: 0.02em; }
.stat-label { font-size: 0.86rem; color: var(--muted); }

/* ---------- SERVICES ---------- */
.svc-grid { margin-top: 2.6rem; display: grid; gap: 1.1rem; }
.svc {
  position: relative; display: block; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
}
.svc:hover { transform: translateY(-4px); border-color: oklch(0.6 0.12 60 / 0.6); box-shadow: 0 18px 44px oklch(0.05 0 0 / 0.5), 0 0 34px oklch(0.66 0.185 46 / 0.12); }
.svc-img { overflow: hidden; aspect-ratio: 16/10; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out); }
.svc:hover .svc-img img { transform: scale(1.06); }
.svc-body { padding: 1.3rem 1.3rem 1.5rem; }
.svc-body h3 { font-size: var(--fs-h3); margin: 0 0 0.6rem; }
.svc-body p { color: var(--muted); font-size: 0.98rem; }
.svc-link { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1rem; font-weight: 700; font-size: 0.92rem; color: var(--amber); }
.svc-link svg { width: 1.1em; height: 1.1em; transition: transform 0.35s var(--ease-out); }
.svc:hover .svc-link svg { transform: translateX(5px); }
.svc--feature .svc-body h3 { font-size: clamp(1.8rem, 1.3rem + 2.4vw, 2.6rem); }

/* ---------- MARQUEE ---------- */
.brands { padding-bottom: clamp(2rem,1.5rem+3vw,3.5rem); }
.marquee { margin-top: 1.4rem; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 0; width: max-content; animation: marquee 46s linear infinite; }
.marquee-track span { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.6rem, 1.2rem + 2.4vw, 2.8rem); color: var(--faint); padding-inline: 0.7rem; white-space: nowrap; transition: color 0.3s; }
.marquee-track span.sep { color: var(--amber); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.visually-note { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ---------- PROCESS ---------- */
.process-inner { display: grid; gap: 2.6rem; }
.steps { margin-top: 2rem; display: flex; flex-direction: column; gap: 0; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; padding-block: 1.3rem; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.step-n { font-size: 1rem; color: var(--amber); font-weight: 600; padding-top: 0.15rem; letter-spacing: 0.05em; }
.steps h4 { font-size: 1.15rem; font-weight: 700; font-family: var(--font-body); margin-bottom: 0.3rem; }
.steps p { color: var(--muted); font-size: 0.96rem; }

.process-media { position: relative; border-radius: var(--radius); overflow: hidden; align-self: start; }
.process-media > img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; }
.restore-card {
  position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.9rem;
  background: oklch(0.15 0.008 60 / 0.82); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0.8rem 0.95rem;
}
.restore-card .scope-canvas { height: 40px; margin-block: 0.35rem; }
.restore-card p { font-size: 0.72rem; letter-spacing: 0.16em; color: var(--signal); text-transform: uppercase; }

/* ---------- TOURING ---------- */
.touring { position: relative; overflow: hidden; padding-block: clamp(4.5rem, 3rem + 8vw, 8rem); }
.touring-media { position: absolute; inset: 0; z-index: 0; }
.touring-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.touring-scrim { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 4%, oklch(0.145 0.006 60 / 0.6) 45%, oklch(0.145 0.006 60 / 0.72) 100%); }
.touring-inner { position: relative; z-index: 1; max-width: 640px; }
.touring-inner h2 { font-size: var(--fs-h2); margin-block: 0.7rem 1.1rem; }
.touring-inner .lead { max-width: 54ch; margin-bottom: 1.6rem; }

/* ---------- TESTIMONIALS ---------- */
.quotes { margin-top: 2.4rem; display: grid; gap: 1.1rem; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem; display: flex; flex-direction: column; gap: 1rem; }
.quote blockquote { font-size: 1.08rem; line-height: 1.5; color: var(--ink); }
.quote figcaption { margin-top: auto; display: flex; flex-direction: column; gap: 0.1rem; }
.quote figcaption b { font-weight: 700; }
.quote figcaption span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--signal); letter-spacing: 0.04em; }
.q-vu { display: flex; align-items: flex-end; gap: 4px; height: 26px; }
.q-vu i { width: 5px; background: linear-gradient(to top, var(--amber-hot), var(--amber)); border-radius: 2px; height: 40%; transform-origin: bottom; animation: vu 1.1s var(--ease-out) infinite alternate; }
.q-vu i:nth-child(1) { animation-delay: 0s; } .q-vu i:nth-child(2) { animation-delay: .18s; } .q-vu i:nth-child(3) { animation-delay: .05s; } .q-vu i:nth-child(4) { animation-delay: .27s; } .q-vu i:nth-child(5) { animation-delay: .12s; }
@keyframes vu { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }

/* ---------- FINAL CTA ---------- */
.cta-final { text-align: center; overflow: hidden; }
.cta-inner { position: relative; max-width: 720px; margin-inline: auto; }
.cta-inner h2 { font-size: var(--fs-h1); margin-bottom: 1rem; }
.cta-inner .lead { margin-inline: auto; margin-bottom: 1.8rem; }
.cta-inner .hero-cta { justify-content: center; }
.cta-scope { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); width: min(560px, 90%); height: 120px; opacity: 0.35; z-index: -1; }
.cta-emergency { margin-top: 1.6rem; font-size: 0.82rem; color: var(--muted); letter-spacing: 0.04em; }
.cta-emergency a { color: var(--amber); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .q-vu i { animation: none; height: 60%; }
  .scroll-cue span { animation: none; }
  .dot { animation: none; }
}

/* ============================================================
   Desktop / tablet
   ============================================================ */
@media (min-width: 620px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .scroll-cue { display: block; }
}

@media (min-width: 860px) {
  .hero { min-height: 100svh; }
  .hero-media img { object-position: 65% center; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; }
  .svc--feature .svc-img { aspect-ratio: auto; height: 100%; min-height: 360px; }
  .svc--feature .svc-body { padding: 2.4rem 2.4rem; display: flex; flex-direction: column; justify-content: center; }
  .process-inner { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; align-items: start; }
  .process-media { position: sticky; top: 6rem; }
  .quotes { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1080px) {
  .hero-inner { max-width: 60%; }
}
