/* ==========================================================================
   ADP AUTOMOTIVE — DESIGN SYSTEM & ESTILO CONTÍNUO (SEM CAIXAS CINZAS)
   Paleta: Preto Profundo + Vermelho Medido (#FE0000)
   ========================================================================== */

:root {
  /* Família de tons da marca */
  --bg-deep: #080809;
  --red-accent: #FE0000;
  --red-bright: #FF2E2E;
  --red-soft: #FFA3A3;
  --text-primary: #F5F5F7;
  --text-muted: #A3A3AC;
  --wire-subtle: rgba(254, 0, 0, 0.18);
  --wire-active: rgba(254, 0, 0, 0.55);
  --glow-spot: rgba(254, 0, 0, 0.35);

  /* Tipografia */
  --font-stack: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Impact", "Arial Black", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --container-max: 1180px;
  --gutter: 20px;
}

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

html {
  font-family: var(--font-stack);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.55;
  scroll-behavior: smooth;
  overflow-x: hidden !important;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden !important;
  position: relative;
}

/* Container Central */
.site-container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   TIPOGRAFIA & MARCADORES HUD
   ========================================================================== */

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

.hud-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-stack);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red-soft);
  margin-bottom: 14px;
}

.hud-tag-num {
  color: var(--red-accent);
  font-weight: 700;
}

.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--red-accent);
  box-shadow: 0 0 8px var(--red-accent);
  display: inline-block;
  animation: pulseNode 2.5s ease-in-out infinite;
}

/* ==========================================================================
   HEADER / NAVEGAÇÃO SUPERIOR
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  padding-top: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--wire-subtle);
  background: rgba(8, 8, 9, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  line-height: 1;
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--red-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 3px;
}

.header-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-primary);
  padding: 8px 16px;
  border: 1px solid var(--wire-active);
  border-radius: 9999px;
  transition: all 0.25s ease;
  min-height: 48px;
}

.header-cta-link:hover {
  background: var(--glow-ambient);
  border-color: var(--red-accent);
  color: #ffffff;
}

/* ==========================================================================
   SHINY SWEEP GLOW — BOTÕES CANÔNICOS DE ALTO DESTAQUE
   ========================================================================== */

.btn-shiny {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 30px;
  font-family: var(--font-stack);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #ffffff;
  background: linear-gradient(135deg, #FE0000 0%, #B80000 50%, #700000 100%);
  border: none;
  border-radius: 9999px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 0 24px rgba(254, 0, 0, 0.45), 0 0 60px rgba(254, 0, 0, 0.2);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
  white-space: nowrap;
  min-height: 48px;
  cursor: pointer;
  z-index: 1;
}

.btn-shiny::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  padding: 1.5px;
  background: linear-gradient(90deg, #FE0000, #FF6B6B, #FE0000, #FFFFFF, #FE0000);
  background-size: 800% 800%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: shinyBorder 12s linear infinite;
  pointer-events: none;
}

.btn-shiny::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 80%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-22deg);
  animation: sweepGlow 4.5s ease-in-out infinite;
  pointer-events: none;
}

@media (max-width: 420px) {
  .btn-shiny, .btn-outline {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.8rem;
    white-space: normal;
    text-align: center;
  }
  .hero-actions, .final-cta-actions {
    width: 100%;
  }
  .header-cta-link span {
    display: none;
  }
  .header-cta-link {
    padding: 8px 12px;
  }
  .header-cta-link::after {
    content: 'Agendar';
  }
}

@keyframes shinyBorder {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes sweepGlow {
  0%, 30% { left: -150%; }
  70%, 100% { left: 180%; }
}

@media (hover: hover) and (pointer: fine) {
  .btn-shiny:hover {
    transform: scale(1.01);
    box-shadow: 0 0 36px rgba(254, 0, 0, 0.7), 0 0 85px rgba(254, 0, 0, 0.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-shiny::before { animation: none; background-position: 0% 50%; }
  .btn-shiny::after { animation: none; display: none; }
  .btn-shiny { transition: none; }
}

/* Botão Secundário Contido / Fio de Luz */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  font-family: var(--font-stack);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--wire-active);
  border-radius: 9999px;
  text-decoration: none;
  min-height: 48px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-outline:hover {
  background: var(--glow-ambient);
  border-color: var(--red-accent);
  color: #ffffff;
}

/* ==========================================================================
   SEÇÕES DA PÁGINA (FUNDO GLOBAL CONTÍNUO, SEM CAIXAS CINZAS)
   ========================================================================== */

section {
  position: relative;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Separador de Luz Suave */
.wire-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--wire-active), transparent);
  margin-top: 60px;
  margin-bottom: 60px;
  opacity: 0.75;
}

/* --------------------------------------------------------------------------
   HERO MONUMENTAL
   -------------------------------------------------------------------------- */

.hero-section {
  padding-top: 50px;
  padding-bottom: 70px;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  max-width: 840px;
}

.hero-title {
  font-size: clamp(2.4rem, 6.5vw, 4.6rem);
  font-weight: 900;
  line-height: 0.98;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-title span {
  color: var(--red-accent);
  display: inline;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 40px;
}

.hero-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--wire-subtle);
}

@media (min-width: 600px) {
  .hero-facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

.fact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fact-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-soft);
}

.fact-val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   BLOCO 02 — O QUE A ADP AUTOMOTIVE FAZ (MECÂNICA + ELETRÔNICA)
   -------------------------------------------------------------------------- */

.section-head {
  max-width: 760px;
  margin-bottom: 50px;
}

.section-title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 800px) {
  .pillars-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pillar-col {
  position: relative;
  padding: 30px 24px;
  border-left: 2px solid var(--red-accent);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, transparent 100%);
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--red-accent);
  line-height: 1;
  margin-bottom: 8px;
}

.pillar-title {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.pillar-desc {
  color: var(--text-muted);
  font-size: 0.94rem;
  margin-bottom: 18px;
}

.pillar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pillar-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.pillar-list svg {
  width: 16px;
  height: 16px;
  color: var(--red-accent);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   BLOCO 03 — NACIONAIS E IMPORTADOS
   -------------------------------------------------------------------------- */

.fleet-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-top: 20px;
}

@media (min-width: 768px) {
  .fleet-strip {
    grid-template-columns: 1fr 1fr;
  }
}

.fleet-item {
  border-top: 1px solid var(--wire-active);
  padding-top: 24px;
}

.fleet-tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-soft);
  margin-bottom: 8px;
}

.fleet-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.fleet-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   BLOCO 04 — LUZ PROGRESSIVA (TRILHO DO SCROLL 01 · 02 · 03)
   -------------------------------------------------------------------------- */

.rail-section {
  position: relative;
}

.rail-container {
  position: relative;
  display: flex;
  gap: 28px;
  margin-top: 40px;
}

.trilho-luz-progressiva {
  position: relative;
  width: 4px;
  background: rgba(254, 0, 0, 0.15);
  border-radius: 4px;
  flex-shrink: 0;
}

.rail-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--rail-progress, 0%);
  background: linear-gradient(180deg, var(--red-bright) 0%, var(--red-accent) 100%);
  box-shadow: 0 0 16px var(--red-accent), 0 0 30px var(--red-bright);
  border-radius: 4px;
  transition: height 0.1s linear;
}

.rail-node-pulse {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--red-accent);
  box-shadow: 0 0 14px var(--red-bright), 0 0 28px var(--red-accent);
}

.rail-steps {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
}

.rail-step {
  opacity: 0.45;
  transform: translateY(15px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  position: relative;
}

.rail-step.is-active {
  opacity: 1;
  transform: translateY(0);
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--red-accent);
  line-height: 1;
  margin-bottom: 6px;
}

.step-title {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 640px;
}

@keyframes pulseNode {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.75; }
}

/* --------------------------------------------------------------------------
   BLOCO 05 — SELETOR INTERATIVO DE DIAGNÓSTICO (PREENCHEDOR DO DIRECT)
   -------------------------------------------------------------------------- */

.selector-box {
  margin-top: 40px;
  border: 1px solid var(--wire-active);
  padding: 32px 24px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.015);
  position: relative;
}

.selector-head {
  margin-bottom: 24px;
}

.selector-title {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.selector-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.field-label {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--red-soft);
  margin-bottom: 12px;
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--wire-subtle);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 48px;
}

.chip-btn:hover {
  border-color: var(--wire-active);
}

.chip-btn.is-selected {
  background: var(--red-accent);
  color: #ffffff;
  border-color: var(--red-accent);
  box-shadow: 0 0 16px rgba(254, 0, 0, 0.4);
}

.field-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--wire-subtle);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.95rem;
  font-family: inherit;
  margin-bottom: 24px;
  transition: border-color 0.25s ease;
  min-height: 48px;
}

.field-input:focus {
  outline: none;
  border-color: var(--red-accent);
}

.selector-submit-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.selector-note {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   BLOCO 06 — ENDEREÇO & ROTA (CAMPINAS/SP · JARDIM EULINA)
   -------------------------------------------------------------------------- */

.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
  border-top: 1px solid var(--wire-subtle);
  padding-top: 40px;
}

@media (min-width: 768px) {
  .location-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.address-highlight {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: #ffffff;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.address-detail {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* --------------------------------------------------------------------------
   BLOCO 07 — CTA FINAL MONUMENTAL
   -------------------------------------------------------------------------- */

.final-cta-section {
  text-align: center;
  padding-top: 90px;
  padding-bottom: 100px;
}

.final-cta-content {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta-title {
  font-size: clamp(2.2rem, 5.5vw, 4.2rem);
  line-height: 1;
  margin-bottom: 20px;
}

.final-cta-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 34px;
}

.final-cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   FOOTER TÉCNICO
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--wire-subtle);
  padding-top: 40px;
  padding-bottom: 40px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.footer-social-link {
  color: var(--red-soft);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
}

.footer-social-link:hover {
  color: #ffffff;
}

.footer-legal {
  font-size: 0.72rem;
  color: #73737c;
}

/* ==========================================================================
   SCROLL REVEAL & ACESSIBILIDADE
   ========================================================================== */

.reveal-item {
  opacity: 1;
  transform: translateY(0);
}

.js-loaded .reveal-item {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-loaded .reveal-item.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-loaded .reveal-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .rail-fill {
    transition: none !important;
  }
  .rail-step {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
