/* ========================================================================
   Cabeçalho
   ======================================================================== */

.cabecalho {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(28, 31, 36, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.cabecalho__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.cabecalho__logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cabecalho__logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: 230px;
  object-fit: contain;
}

.cabecalho__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.cabecalho__nav a {
  color: #C9CDD4;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.cabecalho__nav a:hover { color: #fff; }
.cabecalho__nav .btn {
  padding: 12px 16px;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.cabecalho__toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .cabecalho__inner { min-height: 70px; }
  .cabecalho__logo { height: 50px; max-width: 220px; }
  .cabecalho__nav {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: var(--asfalto);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-140%);
    transition: transform 0.25s ease;
  }
  .cabecalho__nav.aberto { transform: translateY(0); }
  .cabecalho__toggle { display: block; }
}

/* ========================================================================
   Hero
   ======================================================================== */

.hero {
  background:
    linear-gradient(90deg, rgba(20,23,28,0.95) 0%, rgba(20,23,28,0.80) 38%, rgba(20,23,28,0.45) 62%, rgba(20,23,28,0.72) 100%),
    url("../img/hero-bg.jpg") 66% 30% / 165% auto no-repeat,
    var(--asfalto);
  color: var(--texto-claro);
  padding: 150px 0 80px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 860px) {
  .hero {
    background:
      linear-gradient(180deg, rgba(20,23,28,0.92) 0%, rgba(20,23,28,0.88) 60%, rgba(20,23,28,0.95) 100%),
      url("../img/hero-bg.jpg") center / cover no-repeat,
      var(--asfalto);
  }
}

/* Faixa de sinalização (linhas tracejadas de rodovia) no topo do hero */
.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--ambar) 0px, var(--ambar) 40px,
    transparent 40px, transparent 70px
  );
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.hero__rotulo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ambar);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero__rotulo::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sucesso);
  box-shadow: 0 0 0 4px rgba(47,177,112,0.25);
}

.hero__titulo {
  font-size: clamp(36px, 5.2vw, 60px);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero__titulo span { color: var(--sinal); }

.hero__texto {
  font-size: 18px;
  color: #B7BCC5;
  max-width: 480px;
  margin-bottom: 32px;
}

.hero__stats {
  display: flex;
  gap: 36px;
  margin-top: 40px;
}
.hero__stat-num {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 800;
  color: #fff;
}
.hero__stat-label {
  font-size: 13px;
  color: var(--texto-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ----- Ticket de cotação rápida ----- */

.ticket {
  background: var(--gelo);
  color: var(--texto-escuro);
  border-radius: var(--raio);
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.ticket__topo {
  background: var(--sinal);
  color: #fff;
  padding: 20px 28px;
  border-radius: var(--raio) var(--raio) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ticket__topo-titulo {
  font-family: var(--f-display);
  font-size: 22px;
  text-transform: uppercase;
  font-weight: 800;
}
.ticket__topo-selo {
  font-family: var(--f-mono);
  font-size: 11px;
  background: rgba(255,255,255,0.18);
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

/* Perfuração estilo canhoto de ticket */
.ticket__perfuracao {
  position: relative;
  height: 0;
  border-top: 2px dashed rgba(28,31,36,0.2);
  margin: 0 20px;
}
.ticket__perfuracao::before,
.ticket__perfuracao::after {
  content: "";
  position: absolute;
  top: -10px;
  width: 20px; height: 20px;
  background: var(--asfalto);
  border-radius: 50%;
}
.ticket__perfuracao::before { left: -30px; }
.ticket__perfuracao::after { right: -30px; }

.ticket__corpo { padding: 28px; }

.campo { margin-bottom: 16px; }
.campo label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--texto-muted);
  margin-bottom: 6px;
}
.campo input,
.campo select {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid var(--gelo-2);
  border-radius: var(--raio-pequeno);
  font-family: var(--f-corpo);
  font-size: 15px;
  background: #fff;
  color: var(--texto-escuro);
  transition: border-color 0.15s ease;
}
.campo input:focus,
.campo select:focus { border-color: var(--sinal); outline: none; }

.campo--placa input {
  font-family: var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
}

.campo__linha {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ticket__rodape {
  padding: 4px 28px 28px;
}

.ticket__aviso {
  font-size: 12px;
  color: var(--texto-muted);
  margin-top: 12px;
  text-align: center;
  line-height: 1.5;
}
.ticket__aviso strong { color: var(--texto-escuro); }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 60px; }
}

@media (max-width: 480px) {
  .campo__linha { grid-template-columns: 1fr; }
  .ticket__corpo { padding: 22px; }
}
