/* ==========================================================
   LTSC — ECU Remapping page
   Palette pulled from the real LTSC ECU Remaps logo:
   black/charcoal base, chrome/silver, brand red accent.
   Display face: Rajdhani (matches the logo's bold
   industrial lettering). Body: Inter. Data/labels: JetBrains Mono.
   ========================================================== */

:root {
  --bg: #0B0C0E;
  --panel: #161719;
  --panel-alt: #1C1E21;
  --border: #2B2D31;
  --text: #EDEEF0;
  --text-muted: #9A9DA4;
  --accent: #E31E24;        /* LTSC brand red */
  --accent-dim: #7A1013;
  --silver: #C7CCD1;
  --warn-bg: #241414;
  --warn-border: #5E1F1F;
  --warn-icon: #E8A23D;

  --font-display: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 10px;
  --container: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 16px;
  color: #fff;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; margin-bottom: 8px; text-transform: none; }

.accent-text { color: var(--accent); }

p { color: var(--text-muted); margin: 0 0 16px; }

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent);
  margin: 0 0 10px;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(11,12,14,0.92);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
}
.logo img { height: 56px; width: auto; display: block; }
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}
.main-nav a:hover,
.main-nav a.active { color: var(--accent); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 18px 24px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(227,30,36,0.25);
}
.btn-primary:hover { transform: translateY(-1px); background: #FF3B41; }
.btn-ghost {
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 60px 0 40px; position: relative; overflow: visible; }
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(227,30,36,0.15) 0%, rgba(227,30,36,0.04) 30%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-lede { font-size: 1.05rem; max-width: 48ch; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 14px; }
.hero-note { font-size: 0.85rem; color: var(--text-muted); font-family: var(--font-mono); }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: visible;
}
.hero-visual::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(227,30,36,0.18) 0%, rgba(227,30,36,0.04) 30%, transparent 55%);
  pointer-events: none;
  z-index: -1;
}
.logo-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}
.logo-showcase img {
  width: 100%;
  max-width: 800px;
  height: auto;
  filter: drop-shadow(0 0 40px rgba(227,30,36,0.5)) drop-shadow(0 0 80px rgba(227,30,36,0.25));
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--panel); }
.section-lede { max-width: 62ch; }
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ---------- Timeline (process) ---------- */
.timeline {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  border-left: 2px solid var(--border);
}
.timeline li {
  display: flex;
  gap: 22px;
  padding: 0 0 34px 26px;
  position: relative;
}
.timeline li:last-child { padding-bottom: 0; }
.tl-num {
  position: absolute;
  left: -19px;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px var(--bg);
}
.tl-body h3 { color: #fff; margin-bottom: 4px; }
.tl-body p { margin-bottom: 0; max-width: 56ch; }

/* ---------- Brand / coverage badges ---------- */
.brand-groups { margin-top: 30px; display: flex; flex-direction: column; gap: 30px; }
.brand-group h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--silver);
  font-size: 1rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge-row span {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

/* Tooltip for badges (appears on hover and focus) */
.badge-row span {
  position: relative;
  cursor: pointer;
}
.badge-row span:hover,
.badge-row span:focus {
  background: #23262c;
  border-color: #3b404a;
  color: #ffffff;
  transform: translateY(-1px);
}
.badge-row span:focus { outline: 2px solid rgba(227,30,36,0.25); outline-offset: 3px; }
.badge-row span[data-tooltip]:hover::after,
.badge-row span[data-tooltip]:focus::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  background: var(--panel);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.45;
  width: min(90vw, 420px);
  white-space: normal;
  max-width: 420px;
  text-align: left;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0,0,0,0.6);
  z-index: 60;
}
.badge-row span[data-tooltip]:hover::before,
.badge-row span[data-tooltip]:focus::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 2px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--panel);
  z-index: 61;
}
.badge-row-mono span { font-family: var(--font-mono); font-weight: 500; font-size: 0.8rem; }
.badge-more { color: var(--accent) !important; border-color: var(--accent-dim) !important; }
.coverage-note { font-size: 0.82rem; margin-top: 10px; margin-bottom: 0; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid var(--border);
  position: relative;
  color: var(--text);
}
.checklist li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Compliance band ---------- */
.compliance-band { padding: 0 0 64px; }
.compliance-inner {
  display: flex;
  gap: 20px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius);
  padding: 28px 30px;
}
.compliance-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--warn-icon);
  color: #241B14;
  font-family: var(--font-display);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.compliance-inner p { margin-bottom: 0; }

/* ---------- Final CTA ---------- */
.cta-final { background: var(--panel); text-align: center; }
.cta-final-inner { max-width: 640px; margin: 0 auto; }
.cta-final p { margin-bottom: 26px; }
.contact-strip {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- Service Areas ---------- */
.area-group { margin-top: 30px; }
.area-group h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--silver);
  font-size: 1rem;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.service-area-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(227,30,36,0.18);
  border: 1px solid rgba(227,30,36,0.45);
  color: #ffd7d8;
  font-size: 0.78em;
  letter-spacing: 0.06em;
  vertical-align: middle;
}
.area-subtitle {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.area-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.area-col { display: flex; flex-direction: column; gap: 10px; }
.area-col h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--silver);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0;
}
.area-note {
  display: flex;
  gap: 16px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 32px;
}
.area-note-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--warn-icon);
  color: #241B14;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.area-note p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .area-columns { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0 50px;
  text-align: center;
}
.site-footer p { font-size: 0.85rem; margin-bottom: 6px; }
.footer-disclaimer { font-size: 0.72rem; opacity: 0.7; max-width: 60ch; margin: 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .two-col { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ---------- Focus states ---------- */
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
