/* ============================================================
   FBS4-ECU.com — Auto Electronix Repair Ltd
   Same design system as ecu-repair.co.uk: "the precision bench"
   Light datasheet paper + dark phosphor scope panels.
   ============================================================ */

@font-face {
  font-family: 'Saira Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/saira-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Spline Sans Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url('fonts/spline-sans-mono-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  --paper: #f2f4f1;
  --paper-2: #e9ede8;
  --card: #fcfdfc;
  --ink: #131b16;
  --ink-soft: #3c4a42;
  --ink-faint: #6b7a71;
  --rule: #ccd6cf;
  --rule-soft: #dde4dd;

  --scope: #0b120e;
  --scope-2: #101a14;
  --scope-3: #16241b;
  --scope-line: #1f3327;
  --scope-text: #d7e4da;
  --scope-faint: #7d9486;

  --phos: #25d97c;
  --phos-bright: #4dffa1;
  --phos-deep: #0c7a45;
  --phos-ink: #0a6238;
  --amber: #e8a13c;

  --font-display: 'Saira Variable', 'Saira', system-ui, sans-serif;
  --font-mono: 'Spline Sans Mono Variable', 'Spline Sans Mono', ui-monospace, monospace;

  --max: 72rem;
  --radius: 4px;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 420;
  font-size: 1.0625rem;
  line-height: 1.65;
  background-image:
    linear-gradient(var(--rule-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  background-attachment: fixed;
  overflow-x: hidden;
}

::selection { background: var(--phos); color: #07130c; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 640;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }

a { color: var(--phos-ink); text-decoration-color: color-mix(in srgb, var(--phos-ink) 40%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--phos-deep); text-decoration-color: var(--phos-deep); }
img { max-width: 100%; height: auto; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-faint); }

section[id] { scroll-margin-top: 5rem; }

/* ---------- layout ---------- */

.container { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
main > section { padding: 3.5rem 0; }

.on-dark {
  background-color: var(--scope);
  color: var(--scope-text);
  background-image:
    linear-gradient(var(--scope-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--scope-line) 1px, transparent 1px);
  background-size: 40px 40px;
  position: relative;
}
.on-dark h1, .on-dark h2, .on-dark h3 { color: #f1f7f2; }
.on-dark p { color: var(--scope-text); }
.on-dark a { color: var(--phos); }
.on-dark a:hover { color: var(--phos-bright); }
.on-dark .muted { color: var(--scope-faint); }
.on-dark::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--phos) 30%, var(--phos) 70%, transparent);
  opacity: 0.7;
  pointer-events: none;
}

/* mono kicker label */
.kicker, .section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 560;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--phos-ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
}
.kicker::before, .section-label::before { content: ''; width: 1.6rem; height: 2px; background: var(--phos); flex-shrink: 0; }
.on-dark .kicker, .on-dark .section-label { color: var(--phos); }

.section-header { max-width: 44rem; margin: 0 0 1.8rem; }
.section-title { margin-bottom: 0.5em; }
.section-subtitle { color: var(--ink-faint); margin: 0; }
.on-dark .section-subtitle { color: var(--scope-faint); }

/* ---------- chips, price ---------- */

.ref, .service-code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 560;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--ink-faint);
  background: var(--paper-2);
  text-transform: uppercase;
  white-space: nowrap;
}
.on-dark .ref { background: var(--scope-3); border-color: var(--scope-line); color: var(--scope-text); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn--solid { background: var(--phos-deep); color: #f2fff7; border-color: var(--phos-deep); }
.btn--solid:hover { background: var(--phos-ink); color: #fff; }
.btn--phos, .on-dark .btn--phos { background: var(--phos); color: #06130b; border-color: var(--phos); }
.btn--phos:hover, .on-dark .btn--phos:hover { background: var(--phos-bright); color: #06130b; border-color: var(--phos-bright); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink-soft); }
.btn--ghost:hover { border-color: var(--phos-deep); color: var(--phos-ink); }
.on-dark .btn--ghost { color: var(--scope-text); border-color: var(--scope-faint); }
.on-dark .btn--ghost:hover { color: var(--phos); border-color: var(--phos); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--scope-line);
  background-color: color-mix(in srgb, var(--scope) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-header::before { display: none; }
.bar { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; padding-top: 0.7rem; padding-bottom: 0.7rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; margin-right: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-weight: 680; letter-spacing: 0.06em; font-size: 1rem; color: #f1f7f2; }
.brand-text em { font-style: normal; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.14em; color: var(--phos); text-transform: uppercase; }
.site-nav { display: flex; gap: 0.2rem 1.1rem; flex-wrap: wrap; }
.site-nav a, .on-dark .site-nav a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 540;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--scope-text);
  padding: 0.3rem 0.1rem;
}
.on-dark .site-nav a:hover { color: var(--phos-bright); }
.call { padding: 0.55rem 1rem; font-size: 0.8rem; }

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

.hero { padding: 4rem 0 3.5rem; overflow: hidden; }
.hero-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.phos-text { color: var(--phos); }
.lede { font-size: 1.13rem; max-width: 38rem; margin-bottom: 1.4rem; }
.lede strong { color: #f1f7f2; font-weight: 600; }
.hero-codes { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.6rem; }
.proof { margin: 1.4rem 0 0; font-size: 0.78rem; letter-spacing: 0.06em; color: var(--scope-faint); display: flex; gap: 0.4rem 0.7rem; flex-wrap: wrap; }
.on-dark .proof { color: var(--scope-faint); }
.proof a { text-decoration: none; }
.proof a:hover { text-decoration: underline; }

.readout { position: relative; border: 1px solid var(--scope-line); background: var(--scope-2); border-radius: var(--radius); padding: 1.3rem 1.4rem; font-family: var(--font-mono); }
.readout::before, .readout::after,
.fid::before, .fid::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--phos-deep);
  border-style: solid;
  opacity: 0.85;
}
.readout::before, .fid::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.readout::after, .fid::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.readout::before, .readout::after { border-color: var(--phos); }
.readout-title { font-size: 0.68rem; letter-spacing: 0.2em; color: var(--phos); margin: 0 0 0.8rem; font-weight: 600; }
.on-dark .readout-title { color: var(--phos); }
.readout-title::after { content: '●'; margin-left: 0.5rem; animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.15; } }
.readout svg { width: 100%; height: 56px; margin-bottom: 0.9rem; display: block; }
.readout dl { margin: 0; display: grid; gap: 0.45rem; }
.readout dl div { display: flex; gap: 0.8rem; font-size: 0.75rem; letter-spacing: 0.04em; }
.readout dt { color: var(--scope-faint); min-width: 5.5rem; }
.readout dd { margin: 0; color: var(--scope-text); }
.readout .pass { color: var(--phos); font-weight: 640; }
.trace path { stroke-dasharray: 6 8; animation: trace-flow 1.6s linear infinite; }
@keyframes trace-flow { to { stroke-dashoffset: -28; } }
.hero-bottom { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 38px; pointer-events: none; }

/* ---------- reviews strip ---------- */

main > .reviews-banner { padding: 1.6rem 0; border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--card) 70%, transparent); }
.reviews-content { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2.5rem; flex-wrap: wrap; }
.reviews-stars { display: flex; align-items: center; gap: 1rem; }
.stars { color: var(--amber); letter-spacing: 3px; font-size: 1.2rem; }
.reviews-rating { display: flex; align-items: baseline; gap: 0.5rem; font-family: var(--font-mono); }
.rating-number { font-size: 1.7rem; font-weight: 640; color: var(--phos-ink); line-height: 1; }
.rating-text { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.reviews-count { color: var(--ink-soft); }
.reviews-link { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--ink-soft); border-radius: 3px; padding: 0.6rem 1.1rem; }
.reviews-link:hover { border-color: var(--phos-deep); color: var(--phos-ink); }
.google-icon { width: 18px; height: 18px; }

/* ---------- quick answer ---------- */

main > .quick-answer { padding-bottom: 1rem; }
.quick-answer-card { position: relative; background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--phos); border-radius: var(--radius); padding: 1.8rem 1.8rem 1.6rem; }
.quick-answer-card p { color: var(--ink-soft); max-width: 58rem; margin-bottom: 1.4rem; }
.quick-answer-card p strong { color: var(--ink); }

/* ---------- part-number table ---------- */

.compatibility-intro { max-width: 58rem; color: var(--ink-soft); margin-bottom: 1.5rem; }
.parts-table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); }
.parts-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 0.92rem; }
.parts-table th, .parts-table td { padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--rule-soft); border-right: 1px solid var(--rule-soft); text-align: left; vertical-align: top; line-height: 1.5; }
.parts-table th:last-child, .parts-table td:last-child { border-right: 0; }
.parts-table th { background: var(--paper-2); font-family: var(--font-mono); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid var(--rule); }
.parts-table td { color: var(--ink-soft); }
.parts-table tr:last-child td { border-bottom: 0; }
.part-number { font-family: var(--font-mono); font-size: 0.85rem; color: var(--phos-ink); font-weight: 640; white-space: nowrap; }
.compatibility-checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin-top: 1.4rem; counter-reset: chk; }
.compatibility-check { counter-increment: chk; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.1rem 1.2rem; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; }
.compatibility-check::before { content: '0' counter(chk); display: block; font-family: var(--font-mono); font-weight: 640; font-size: 0.78rem; letter-spacing: 0.1em; color: var(--phos-deep); margin-bottom: 0.4rem; }
.compatibility-check strong { display: block; color: var(--ink); margin-bottom: 0.2rem; }
.source-note { margin: 1.2rem 0 0; font-size: 0.88rem; color: var(--ink-faint); max-width: 58rem; }

/* ---------- service cards ---------- */

.services-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); counter-reset: svc; }
.service-card { counter-increment: svc; position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); display: flex; flex-direction: column; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.service-card:hover { border-color: var(--phos-deep); box-shadow: 0 8px 24px -12px rgba(12, 122, 69, 0.35); }
.service-content { padding: 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.service-content::before { content: 'FBS4-' counter(svc, decimal-leading-zero); align-self: flex-start; font-family: var(--font-mono); font-size: 0.7rem; font-weight: 560; letter-spacing: 0.08em; padding: 0.18rem 0.5rem; border: 1px solid var(--rule); border-radius: 3px; color: var(--ink-faint); background: var(--paper-2); margin-bottom: 0.8rem; }
.service-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 0.7rem; }
.service-title { font-size: 1.15rem; margin: 0; }
.service-price { font-family: var(--font-mono); font-weight: 640; color: var(--phos-ink); font-size: 1.05rem; white-space: nowrap; }
.service-desc { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 1rem; line-height: 1.6; }
.service-features { list-style: none; margin: 0 0 1.2rem; padding: 0; flex: 1; }
.service-features li { position: relative; padding-left: 1.1rem; font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 0.35rem; line-height: 1.5; }
.service-features li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; background: var(--phos); border-radius: 1px; }
.service-codes { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: auto; }
.service-image { border-bottom: 1px solid var(--rule); background: var(--scope); overflow: hidden; border-radius: 3px 3px 0 0; }
.service-product-photo { width: 100%; height: 100%; min-height: 220px; object-fit: cover; object-position: center 44%; display: block; }
.featured-service { border-color: var(--phos-deep); }
@media (min-width: 820px) {
  .featured-service { grid-column: 1 / -1; flex-direction: row; }
  .featured-service .service-image { flex: 0 0 38%; border-bottom: 0; border-right: 1px solid var(--rule); border-radius: 3px 0 0 3px; }
}

/* ---------- vehicles (dark panel) ---------- */

.vehicles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr)); gap: 0.7rem; }
.vehicle-badge { display: flex; align-items: baseline; gap: 0.7rem; background: var(--scope-2); border: 1px solid var(--scope-line); border-radius: var(--radius); padding: 0.75rem 0.9rem; }
.vehicle-code { font-family: var(--font-mono); font-weight: 640; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--phos); }
.vehicle-name { font-size: 0.9rem; color: var(--scope-text); }

/* ---------- credentials ---------- */

.credentials-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); counter-reset: cred; }
.credential { counter-increment: cred; border: 1px solid var(--rule); background: var(--card); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.credential::before { content: '0' counter(cred); font-family: var(--font-mono); font-weight: 640; font-size: 0.78rem; letter-spacing: 0.1em; color: var(--phos-deep); display: block; margin-bottom: 0.4rem; }
.credential h4 { font-size: 1.05rem; margin: 0 0 0.3rem; }
.credential p { color: var(--ink-soft); font-size: 0.93rem; line-height: 1.5; margin: 0; }

/* ---------- FAQ ---------- */

.faq { max-width: 52rem; }
.faq details { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--card); margin-bottom: 0.6rem; }
.faq summary { cursor: pointer; list-style: none; padding: 0.95rem 1.2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; margin: 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--font-mono); font-weight: 600; color: var(--phos-deep); flex-shrink: 0; }
.faq details[open] summary::after { content: '\2212'; }
.faq details[open] summary { border-bottom: 1px dashed var(--rule); }
.faq details > p { padding: 0.9rem 1.2rem 1.1rem; margin: 0; color: var(--ink-soft); }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.contact-methods, .opening-hours { position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.4rem 1.3rem; margin-bottom: 1.1rem; }
.contact-method { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px dashed var(--rule); }
.contact-method > div { display: contents; }
.contact-method:last-child { border-bottom: 0; }
.method-label, .hours-day { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.method-value, .hours-time { font-weight: 600; text-align: right; }
.method-value a { text-decoration: none; }
.method-value a:hover { text-decoration: underline; }
.opening-hours { padding-top: 1.1rem; }
.hours-title { font-size: 1rem; margin-bottom: 0.3rem; }
.hours-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.6rem 0; border-bottom: 1px dashed var(--rule); }
.hours-row:last-child { border-bottom: 0; }

.contact-form-container { position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.8rem; align-self: start; }
.form-title { margin-bottom: 1.2rem; }
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 0.35rem; }
.form-input { width: 100%; font-family: var(--font-display); font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--rule); border-radius: 3px; padding: 0.7rem 0.85rem; }
.form-input::placeholder { color: #9aa79f; }
.form-input:focus { outline: 2px solid var(--phos); outline-offset: -1px; border-color: var(--phos-deep); }
textarea.form-input { min-height: 110px; resize: vertical; }
.form-submit { width: 100%; }
.form-message { margin-top: 1rem; padding: 0.8rem 1rem; border-radius: 3px; font-size: 0.9rem; display: none; }
.form-message.success { display: block; background: #e6f6ec; border: 1px solid var(--phos-deep); color: var(--phos-ink); }
.form-message.error { display: block; background: #fbeceb; border: 1px solid #b3392f; color: #8f2a22; }

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

.site-footer { padding: 3rem 0 1.5rem; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 2rem 2.5rem; }
.foot-brand { font-family: var(--font-mono); font-weight: 640; letter-spacing: 0.12em; color: var(--phos); font-size: 0.85rem; margin-bottom: 0.7rem; }
.on-dark .foot-brand, .on-dark .head { color: var(--phos); }
.head { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 0.7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 0.45rem; font-size: 0.95rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.small { font-size: 0.82rem; }
.legal { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--scope-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--scope-faint); }
.ok { color: var(--phos); }

/* ---------- WhatsApp float + cookie banner ---------- */

.whatsapp-float { position: fixed; bottom: 20px; right: 20px; width: 54px; height: 54px; background: var(--phos); color: #06130b; border: 1px solid var(--phos-deep); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px -6px rgba(12, 122, 69, 0.6); z-index: 40; transition: background 0.15s ease, transform 0.15s ease; }
.whatsapp-float:hover { background: var(--phos-bright); color: #06130b; transform: translateY(-2px); }
.whatsapp-float svg { width: 28px; height: 28px; }

.cookie-banner { position: fixed; left: 1rem; bottom: 1rem; width: min(26rem, calc(100vw - 2rem)); background: var(--scope); color: var(--scope-text); border: 1px solid var(--scope-line); border-top: 2px solid var(--phos); border-radius: var(--radius); padding: 1rem 1.1rem; z-index: 60; display: none; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.5); }
.cookie-banner.show { display: block; }
.cookie-text h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--phos); margin-bottom: 0.4rem; }
.cookie-text p { font-size: 0.85rem; line-height: 1.5; color: var(--scope-text); margin-bottom: 0.8rem; }
.cookie-text a { color: var(--phos); }
.cookie-buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-btn { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.55rem 0.9rem; border-radius: 3px; cursor: pointer; border: 1px solid var(--scope-faint); background: transparent; color: var(--scope-text); }
.cookie-accept { background: var(--phos); border-color: var(--phos); color: #06130b; }
.cookie-accept:hover { background: var(--phos-bright); }
.cookie-decline:hover { border-color: var(--phos); color: var(--phos); }

/* ---------- legal pages (privacy, terms) ---------- */

.legal-page > .container { max-width: 52rem; padding-top: 2.5rem; padding-bottom: 3rem; }
.legal-page > .container .back-link { display: inline-block; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; margin-bottom: 1.4rem; }
.legal-page > .container .back-link:hover { text-decoration: underline; }
.legal-page > .container > header { margin-bottom: 1.8rem; padding-bottom: 1.2rem; border-bottom: 1px solid var(--rule); }
.legal-page > .container .subtitle { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); margin: 0; }
.legal-page > .container > section { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.5rem 1.6rem; margin-bottom: 1.1rem; }
.legal-page > .container > section h2 { font-size: 1.35rem; padding-bottom: 0.4em; border-bottom: 1px solid var(--rule); }
.legal-page > .container > section h3 { font-size: 1.08rem; margin-top: 1.4em; }
.legal-page > .container > section p, .legal-page > .container li, .legal-page > .container td { color: var(--ink-soft); }
.legal-page > .container strong { color: var(--ink); }
.legal-page > .container ul, .legal-page > .container ol { padding-left: 1.4rem; margin: 0 0 1.1em; }
.legal-page > .container li { margin-bottom: 0.4em; }
.legal-page > .container .highlight-box { border-left: 3px solid var(--phos); background: var(--paper-2); padding: 0.9rem 1.1rem; border-radius: 0 3px 3px 0; margin: 1rem 0; }
.legal-page > .container .highlight-box p:last-child, .legal-page > .container .contact-info p:last-child { margin-bottom: 0; }
.legal-page > .container .contact-info { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin-top: 1.4rem; }
.legal-page > .container table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1rem 0; }
.legal-page > .container th, .legal-page > .container td { border: 1px solid var(--rule); padding: 0.5em 0.8em; text-align: left; vertical-align: top; }
.legal-page > .container th { background: var(--paper-2); font-family: var(--font-mono); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.legal-page > .container > footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--ink-faint); }

/* ---------- small screens ---------- */

@media (max-width: 760px) {
  .bar { row-gap: 0.55rem; }
  .site-nav { order: 3; width: 100%; justify-content: space-between; gap: 0.2rem 0.6rem; }
  .site-nav a, .on-dark .site-nav a { font-size: 0.7rem; letter-spacing: 0.06em; }
  .brand-text strong { font-size: 0.9rem; }
  .call { padding: 0.45rem 0.7rem; font-size: 0.72rem; }
  section[id] { scroll-margin-top: 6.5rem; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  main > section { padding: 2.5rem 0; }
  .hero { padding: 2.6rem 0 3rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .quick-answer-card { padding: 1.3rem 1.2rem; }
  .reviews-content { justify-content: flex-start; }
  .contact-method, .hours-row { flex-direction: column; gap: 0.1rem; }
  .method-value, .hours-time { text-align: left; }
  .cookie-banner { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; width: auto; }
  .whatsapp-float { bottom: 14px; right: 14px; width: 50px; height: 50px; }
}
@media (max-width: 480px) {
  .site-nav a, .on-dark .site-nav a { font-size: 0.64rem; letter-spacing: 0.03em; }
}
@media (max-width: 400px) {
  .call { font-size: 0.66rem; padding: 0.4rem 0.55rem; gap: 0.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .trace path, .readout-title::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- on film (video of a remote job) ---------- */

.film-grid { display: grid; gap: 1.4rem; align-items: start; }
@media (min-width: 900px) { .film-grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.8rem; } }
.film-frame { position: relative; margin: 0; background: var(--scope-2); border: 1px solid var(--scope-line); border-radius: var(--radius); padding: 0.55rem 0.55rem 0; }
.film-frame.fid::before, .film-frame.fid::after { border-color: var(--phos); }
.film-shot { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; background: var(--scope); }
.film-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(0.92) contrast(1.04); transition: transform 0.5s ease, filter 0.3s ease; }
.film-shot::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(11, 18, 14, 0.45), transparent 32%, transparent 60%, rgba(11, 18, 14, 0.6)), repeating-linear-gradient(0deg, rgba(37, 217, 124, 0.05) 0 1px, transparent 1px 4px); }
.film-tag { position: absolute; top: 0.7rem; left: 0.75rem; z-index: 2; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.18em; color: var(--phos); background: rgba(11, 18, 14, 0.78); border: 1px solid var(--scope-line); border-radius: 3px; padding: 0.22rem 0.5rem; }
.film-tag::before { content: '●'; margin-right: 0.45rem; animation: blink 1.4s steps(1) infinite; }
.film-play { position: absolute; inset: 0; z-index: 2; width: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: #06130b; }
.film-play svg { box-sizing: content-box; padding: 1.15rem; border-radius: 50%; background: var(--phos); box-shadow: 0 0 0 8px rgba(37, 217, 124, 0.18), 0 0 34px rgba(37, 217, 124, 0.45); transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; }
.film-play:hover svg, .film-play:focus-visible svg { background: var(--phos-bright); transform: scale(1.07); box-shadow: 0 0 0 11px rgba(37, 217, 124, 0.2), 0 0 44px rgba(77, 255, 161, 0.55); }
.film-play:focus-visible { outline: 2px solid var(--phos-bright); outline-offset: -4px; }
.film-shot:hover img { transform: scale(1.025); filter: saturate(1) contrast(1.04); }
.film-shot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; background: #000; }
.film-shot.is-playing::after, .film-shot.is-playing .film-tag, .film-shot.is-playing .film-play { display: none; }
.film-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.3rem 1rem; padding: 0.7rem 0.3rem 0.75rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--scope-faint); }
.film-cap a { color: var(--phos); text-decoration: none; white-space: nowrap; }
.film-cap a:hover { color: var(--phos-bright); text-decoration: underline; }
.film-readout dt { min-width: 4.6rem; flex-shrink: 0; }
.film-more { margin: 1.1rem 0 0; padding-top: 0.9rem; border-top: 1px solid var(--scope-line); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.film-more a { color: var(--phos); text-decoration: none; }
.film-more a::after { content: ' →'; }
.film-more a:hover { color: var(--phos-bright); text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .film-tag::before { animation: none; }
  .film-shot img, .film-play svg { transition: none; }
}
.film-buy { margin-top: 1.4rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--phos); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.film-buy > div { flex: 1 1 24rem; }
.film-buy-title { font-weight: 640; font-size: 1.1rem; color: var(--ink); margin: 0 0 0.3rem; }
.film-buy-text { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }
@media (max-width: 640px) { .film-buy .btn { flex: 1 1 100%; justify-content: center; text-align: center; } }
