/* ==========================================================================
   Liverpool Airbag Solutions — Stylesheet
   ========================================================================== */

:root {
  --racing-red: #E31E24;
  --racing-red-dark: #B7151A;
  --jet-black: #101010;
  --steel: #33383D;
  --steel-light: #565D64;
  --paper: #F6F5F1;
  --white: #FFFFFF;
  --amber: #F5A623;
  --line: rgba(16, 16, 16, 0.12);

  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;

  --max: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--jet-black);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.15rem; }

p { color: var(--steel); max-width: 62ch; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--racing-red);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--racing-red);
  display: inline-block;
  border-radius: 1px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 15px 26px;
  border: 2px solid var(--jet-black);
  border-radius: 3px;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--racing-red);
  color: var(--white);
  border-color: var(--racing-red);
}
.btn-primary:hover { background: var(--jet-black); border-color: var(--jet-black); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--jet-black);
}
.btn-ghost:hover { background: var(--jet-black); color: var(--white); transform: translateY(-2px); }

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-ghost-light:hover { background: var(--white); color: var(--jet-black); transform: translateY(-2px); }

/* ---------- Header ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 3px solid var(--jet-black);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 46px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.nav-links a { text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { border-color: var(--racing-red); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: var(--jet-black);
  color: var(--white);
  position: relative;
  overflow: hidden;
  border-bottom: 6px solid var(--racing-red);
}

.hero .wrap {
  padding-top: 84px;
  padding-bottom: 84px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { color: var(--white); }
.hero h1 span { color: var(--racing-red); }
.hero p.lead { color: #C9CDD1; font-size: 1.08rem; margin-top: 20px; max-width: 46ch; }
.hero .btn-row { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }

.trust-strip {
  margin-top: 44px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #9AA0A6;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
}
.trust-strip strong { color: var(--white); }

/* ---------- Diagnostic terminal (signature element) ---------- */
.scanner {
  background: #0A0A0A;
  border: 1px solid #2A2E33;
  border-radius: 6px;
  overflow: hidden;
  font-family: var(--font-mono);
  box-shadow: 0 30px 80px rgba(227,30,36,0.15);
}

.scanner-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #17181B;
  padding: 10px 16px;
  border-bottom: 1px solid #2A2E33;
  font-size: 0.72rem;
  color: #8B9096;
  letter-spacing: 0.05em;
}
.scanner-dots { display: flex; gap: 6px; }
.scanner-dots span { width: 9px; height: 9px; border-radius: 50%; background: #3A3F44; }

.scanner-body { padding: 22px 20px; min-height: 230px; font-size: 0.86rem; }
.scanner-line { display: flex; gap: 10px; margin-bottom: 10px; opacity: 0; animation: appear 0.4s forwards; }
.scanner-line .tag { color: var(--amber); flex-shrink: 0; }
.scanner-line .val { color: #C9CDD1; }
.scanner-line.ok .val { color: #3DDC84; }
.scanner-line.fault .val { color: var(--racing-red); }

@keyframes appear { to { opacity: 1; } }

.scanner-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--racing-red);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.tight { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 50px; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }

.bg-paper { background: var(--paper); }
.bg-black { background: var(--jet-black); color: var(--white); }
.bg-black h2, .bg-black h3 { color: var(--white); }
.bg-black p { color: #B7BCC1; }

/* ---------- Services grid ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 26px;
  position: relative;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--racing-red); transform: translateY(-3px); }

.card .code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--racing-red);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 14px;
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.94rem; margin-top: 0; }

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--line);
}
.step { position: relative; padding-right: 20px; }
.step-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--jet-black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  margin-bottom: 18px;
}
.step:nth-child(1) .step-num { background: var(--racing-red); }
.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { font-size: 0.9rem; }

/* ---------- Stats ---------- */
.stats { display: flex; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { flex: 1; padding: 34px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .num { font-family: var(--font-display); font-size: 2.3rem; color: var(--racing-red); }
.stat .label { font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; color: var(--steel-light); letter-spacing: 0.04em; margin-top: 6px; }

/* ---------- Alert / warning notice box ---------- */
.notice {
  background: #FFF7E8;
  border: 1px solid var(--amber);
  border-radius: 4px;
  padding: 22px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.notice .icon {
  font-family: var(--font-mono);
  font-weight: 700;
  background: var(--amber);
  color: var(--jet-black);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notice p { color: var(--steel); font-size: 0.94rem; margin: 0; }
.notice strong { color: var(--jet-black); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--racing-red);
  color: var(--white);
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.85); margin: 18px auto 30px; }
.cta-band .btn-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.02rem;
  text-transform: none;
  letter-spacing: 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.5rem; color: var(--racing-red); font-family: var(--font-mono); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin-top: 14px; }

/* ---------- Contact / footer ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}
.contact-block h3 { font-size: 0.85rem; letter-spacing: 0.06em; color: var(--racing-red); margin-bottom: 14px; }
.contact-block p, .contact-block a { font-size: 0.95rem; text-decoration: none; display: block; margin-bottom: 6px; }
.contact-block a:hover { color: var(--racing-red); }

footer.site {
  background: var(--jet-black);
  color: #B7BCC1;
  padding: 70px 0 30px;
}
footer.site .brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }
footer.site .brand-row img { height: 40px; }
footer.site .foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 50px;
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Coverage list ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 20px;
  color: var(--steel);
}

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(16,16,16,0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(16,16,16,0.34);
}
.whatsapp-float svg { width: 30px; height: 30px; }

@media (max-width: 560px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .whatsapp-float svg { width: 27px; height: 27px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 50px; padding-bottom: 50px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .process::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { flex-wrap: wrap; }
  .stat { flex: 1 1 50%; border-bottom: 1px solid var(--line); }
  .nav-links { display: none; }
  section { padding: 60px 0; }
}

@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
  .nav-phone span.full { display: none; }
  .btn { padding: 13px 20px; font-size: 0.85rem; }
}
