/* =====================================================================
   Headlight restoration site — styles
   Mobile-first. Theme tokens live in :root; change colours there.
   ===================================================================== */

:root {
  --bg-dark: #0b0f14;
  --bg-dark-2: #111823;
  --surface: #ffffff;
  --surface-2: #f4f6f9;
  --border: #e3e8ee;
  --text: #0f1520;
  --text-on-dark: #f5f7fa;
  --muted: #5d6877;
  --muted-on-dark: #9aa6b5;
  --accent: #2f8cff;
  --accent-strong: #1c6fe0;
  --amber: #f5b12b;
  --whatsapp: #25d366;
  --whatsapp-strong: #1ebe5b;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(10, 20, 40, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 20, 40, 0.18);
  --gutter: 16px;
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 0.95rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-on-dark); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.8em 1.3em; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-size: 1rem; line-height: 1;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.btn--lg { padding: 1em 1.6em; font-size: 1.05rem; }
.btn--sm { padding: 0.6em 1em; font-size: 0.9rem; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(47, 140, 255, 0.35); }
.btn--primary:hover { background: var(--accent-strong); }
.btn--whatsapp { background: var(--whatsapp); color: #06301a; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3); }
.btn--whatsapp:hover { background: var(--whatsapp-strong); }
.btn--ghost { background: transparent; color: var(--text-on-dark); border-color: rgba(255,255,255,0.25); }
.btn--ghost:hover { border-color: rgba(255,255,255,0.6); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.5rem 0; }
.cta-row--center { justify-content: center; }
.cta-row--stack { flex-direction: column; margin-bottom: 0; }
.cta-row--stack .btn { width: 100%; white-space: normal; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 1rem;
}
.eyebrow--dark { color: var(--accent-strong); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--whatsapp); box-shadow: 0 0 0 4px rgba(37,211,102,0.25); }
.grad { background: linear-gradient(90deg, #7fc0ff, #2f8cff 45%, #f5b12b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted-on-dark); max-width: 36rem; }
.lead strong { color: var(--text-on-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 20, 0.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--text-on-dark); border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -0.01em; min-width: 0; }
.brand__mark { width: 36px; height: 36px; border-radius: 9px; }
.brand__name { font-size: clamp(0.82rem, 3.4vw, 1.02rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { display: none; }
.nav a { text-decoration: none; font-weight: 600; font-size: 0.95rem; opacity: 0.85; white-space: nowrap; }
.nav a:hover { opacity: 1; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px; background: transparent; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav.is-open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; left: 0; right: 0; top: 66px;
    background: var(--bg-dark); padding: 12px var(--gutter) 20px; border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-lg);
  }
  .nav.is-open a { padding: 12px 8px; border-radius: 10px; }
  .nav.is-open a:hover { background: rgba(255,255,255,0.06); }
  .nav.is-open .nav__cta { margin-top: 8px; justify-content: center; }
}
@media (min-width: 900px) {
  .nav { display: flex; align-items: center; gap: 26px; }
  .nav-toggle { display: none; }
}
@media (min-width: 900px) and (max-width: 1120px) {
  .nav { gap: 14px; }
  .nav a { font-size: 0.88rem; }
  .nav .btn--sm { padding: 0.55em 0.85em; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(47,140,255,0.28), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(245,177,43,0.18), transparent 60%),
    linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  color: var(--text-on-dark);
  padding: 56px 0 64px;
}
.hero__inner { display: grid; gap: 40px; align-items: center; }
.hero__points { list-style: none; display: grid; gap: 8px; color: var(--muted-on-dark); font-size: 0.95rem; }
.hero__points li { padding-left: 26px; position: relative; }
.hero__points li::before {
  content: ""; position: absolute; left: 0; top: 0.35em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--whatsapp); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14-3.5-3.5 1.4-1.4 2.1 2.1 4.9-4.9 1.4 1.4-6.3 6.3Z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14-3.5-3.5 1.4-1.4 2.1 2.1 4.9-4.9 1.4 1.4-6.3 6.3Z'/></svg>") center/contain no-repeat;
}
.hero__visual { position: relative; }
.hero__slider { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.08); }
.hero__hint { text-align: center; color: var(--muted-on-dark); font-size: 0.85rem; margin: 10px 0 0; }

@media (min-width: 900px) {
  .hero { padding: 88px 0 96px; }
  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}

/* ---------- Before / after slider ---------- */
.ba {
  --pos: 50%;
  position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #000;
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
}
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff;
  transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,0.25);
}
.ba__handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; border-radius: 50%;
  background: #fff; transform: translate(-50%, -50%); box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%230b0f14' d='M8 6 2 12l6 6v-4h8v4l6-6-6-6v4H8z'/></svg>");
  background-size: 24px; background-repeat: no-repeat; background-position: center;
}
.ba__label {
  position: absolute; top: 12px; padding: 5px 10px; border-radius: 8px; font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; pointer-events: none; color: #fff;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
}
.ba__label--before { left: 12px; }
.ba__label--after { right: 12px; }
.ba__range {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize;
  -webkit-appearance: none; appearance: none; background: transparent;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 100%; }
.ba__range::-moz-range-thumb { width: 44px; height: 100%; border: 0; }
.ba__range:focus-visible ~ .ba__handle { outline: 3px solid var(--amber); }

/* ---------- Trust bar ---------- */
.trust { background: var(--surface); border-bottom: 1px solid var(--border); }
.trust__inner { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding-block: 22px; }
.trust__item { display: flex; align-items: center; gap: 12px; }
.trust__item .icon { width: 30px; height: 30px; color: var(--accent); }
.trust__item strong { display: block; font-size: 0.95rem; }
.trust__item > div > span { display: block; color: var(--muted); font-size: 0.82rem; }
@media (max-width: 379px) { .trust__inner { grid-template-columns: 1fr; gap: 14px; } }
@media (min-width: 720px) { .trust__inner { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--tint { background: var(--surface-2); }
.section--dark { background: linear-gradient(180deg, var(--bg-dark-2), var(--bg-dark)); color: var(--text-on-dark); }
.section--dark .section__sub, .section--dark .muted { color: var(--muted-on-dark); }
.section__head { max-width: 40rem; margin-bottom: 36px; }
.section__sub { font-size: 1.08rem; color: var(--muted); }
@media (min-width: 900px) { .section { padding: 96px 0; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 22px; }
.gallery__item { overflow: hidden; }
.gallery__item .ba { border-radius: var(--radius) var(--radius) 0 0; }
.gallery__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.gallery__caption { margin: 0; font-weight: 600; font-size: 0.95rem; }
.gallery__expand {
  display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 12px; font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; color: var(--text);
}
.gallery__expand:hover { background: #e9eef5; }
@media (min-width: 720px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Quote tool ---------- */
.from { font-style: normal; font-weight: 600; font-size: 0.55em; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.75; margin-right: 0.35em; vertical-align: 0.2em; }
.quote { display: grid; gap: 36px; align-items: start; }
.quote > * { min-width: 0; }
.quote__list { list-style: none; display: grid; gap: 10px; margin: 20px 0; max-width: 24rem; }
.quote__list li {
  display: flex; justify-content: space-between; align-items: center; padding: 14px 18px;
  border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-sm); background: rgba(255,255,255,0.04);
}
.quote__list span { font-size: 1.35rem; font-weight: 800; color: var(--amber); }
.quote__form { padding: 24px; color: var(--text); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field--hidden { display: none; }
.field label, .field legend { font-weight: 700; font-size: 0.9rem; }
.field select, .field input[type="text"] {
  width: 100%; font: inherit; font-size: 1rem; padding: 13px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text);
}
.field select:focus, .field input:focus { outline: 3px solid rgba(47,140,255,0.35); border-color: var(--accent); }
.field select:disabled { background: var(--surface-2); color: var(--muted); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented__opt { position: relative; }
.segmented__opt input { position: absolute; opacity: 0; inset: 0; }
.segmented__opt span {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); font-weight: 700; cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.segmented__opt em { font-style: normal; font-weight: 600; color: var(--muted); font-size: 0.85rem; }
.segmented__opt input:checked + span { border-color: var(--accent); background: rgba(47,140,255,0.08); }
.segmented__opt input:focus-visible + span { outline: 3px solid rgba(47,140,255,0.35); }
.quote__result {
  background: var(--bg-dark); color: var(--text-on-dark); border-radius: var(--radius-sm); padding: 18px 20px;
  display: grid; gap: 4px;
}
.quote__price { display: flex; justify-content: space-between; align-items: baseline; }
.quote__label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-on-dark); font-weight: 700; }
.quote__amount { font-size: 2.2rem; font-weight: 800; color: var(--amber); letter-spacing: -0.02em; }
.quote__car { margin: 0; color: var(--muted-on-dark); font-size: 0.92rem; }
@media (min-width: 900px) {
  .quote { grid-template-columns: 1fr 1fr; gap: 56px; }
  .quote__form { padding: 32px; }
}

/* ---------- Steps ---------- */
.steps { list-style: none; display: grid; gap: 18px; counter-reset: step; }
.step { padding: 26px 24px; position: relative; }
.step__num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 14px;
}
.step p { margin: 0; color: var(--muted); font-size: 0.97rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Why ---------- */
.why { display: grid; gap: 36px; align-items: center; }
.checks { list-style: none; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--amber); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2 1 21h22L12 2zm1 14h-2v2h2v-2zm0-7h-2v5h2V9z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2 1 21h22L12 2zm1 14h-2v2h2v-2zm0-7h-2v5h2V9z'/></svg>") center/contain no-repeat;
}
.why__compare { padding: 26px 24px; }
.compare { display: grid; gap: 14px; }
.compare__col { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 18px; display: grid; gap: 4px; }
.compare__col--us { border-color: var(--accent); background: rgba(47,140,255,0.06); }
.compare__label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.compare__price { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.02em; }
.compare__col--us .compare__price { color: var(--accent-strong); }
.compare__note { font-size: 0.88rem; color: var(--muted); }
@media (min-width: 900px) { .why { grid-template-columns: 1.1fr 0.9fr; gap: 64px; } }

/* ---------- Areas ---------- */
.areas { display: grid; gap: 28px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 0.92rem; font-weight: 600; }
@media (min-width: 720px) { .areas { grid-template-columns: 1fr 1fr; } }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 20px; }
.faq__item summary {
  cursor: pointer; font-weight: 700; padding: 18px 32px 18px 0; list-style: none; position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--accent); line-height: 1;
}
.faq__item[open] summary::after { content: "–"; }
.faq__item p { margin: 0 0 18px; color: var(--muted); }

/* ---------- Final CTA ---------- */
.cta-final__inner { text-align: center; max-width: 42rem; }
.cta-final .section__sub { margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: var(--text-on-dark); padding: 48px 0 24px; }
.site-footer__inner { display: grid; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.site-footer p { margin: 0 0 6px; font-size: 0.95rem; }
.site-footer a { text-decoration: none; opacity: 0.9; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }
.site-footer .muted { color: var(--muted-on-dark); }
.site-footer__legal { padding-top: 18px; }
@media (min-width: 720px) { .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* ---------- Sticky mobile bar ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 15, 20, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.sticky-bar .btn { width: 100%; }
body { padding-bottom: 76px; }
@media (min-width: 900px) {
  .sticky-bar { display: none; }
  body { padding-bottom: 0; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(96vw, 1100px); width: 100%;
  margin: auto; overflow: visible;
}
.lightbox::backdrop { background: rgba(5, 8, 12, 0.85); backdrop-filter: blur(6px); }
.lightbox__slider { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.lightbox__caption { color: #fff; text-align: center; margin: 14px 0 0; font-weight: 600; }
.lightbox__close {
  position: absolute; top: -14px; right: -6px; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: var(--text); font-size: 1.6rem; line-height: 1; cursor: pointer; z-index: 2;
  box-shadow: var(--shadow);
}
@media (max-width: 720px) { .lightbox__close { top: -52px; right: 0; } }
