:root {
  --bg: #F5F6F8;
  --card: #FFFFFF;
  --text: #1A1A1A;
  --muted: #6B7280;
  --accent: #0A2540;
  --border: #E4E7EB;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.site {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.site .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo { font-weight: 800; font-size: 20px; letter-spacing: -0.5px; text-decoration: none; }
nav.main a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  margin-left: 26px;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 12px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--accent) 0%, #0d3054 100%);
  color: #fff;
  padding: 90px 0 70px;
  text-align: center;
}
.hero h1 { font-size: 42px; margin: 0 0 16px; font-weight: 900; letter-spacing: -1px; }
.hero p { font-size: 17px; opacity: 0.85; max-width: 560px; margin: 0 auto 30px; }

/* Diferenciais */
.diferenciais { padding: 70px 0; }
.diferenciais h2, .estoque h2, .sobre h2, .contato h2 { text-align: center; font-size: 30px; margin: 0 0 40px; }
.grid-diferenciais {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.diferencial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px;
}
.diferencial-card h3 { margin: 0 0 8px; font-size: 16px; }
.diferencial-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Estoque */
.estoque { padding: 20px 0 70px; }
.grid-veiculos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.veiculo-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  transition: transform .15s ease;
}
.veiculo-card:hover { transform: translateY(-3px); }
.veiculo-card .foto { width: 100%; height: 180px; object-fit: contain; background: #E4E7EB; }
.veiculo-card .info { padding: 16px 18px; }
.veiculo-card h3 { margin: 0 0 6px; font-size: 16px; }
.veiculo-card .specs { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.veiculo-card .preco { font-size: 19px; font-weight: 800; color: var(--accent); }
.premium-tag {
  display: inline-block; background: var(--accent); color: #fff; font-size: 11px;
  font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-bottom: 8px;
}
.vazio { text-align: center; color: var(--muted); padding: 40px 0; }

/* Sobre */
.sobre { background: var(--card); padding: 70px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sobre .conteudo { max-width: 720px; margin: 0 auto; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* Contato */
.contato { padding: 70px 0; text-align: center; }
.contato p { color: var(--muted); margin-bottom: 24px; }

/* Footer */
footer.site {
  background: var(--accent);
  color: rgba(255,255,255,0.85);
  padding: 30px 0;
  font-size: 13px;
  text-align: center;
}

/* WhatsApp flutuante */
.whatsapp-flutuante {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 20;
}

/* Página de detalhe */
.detalhe { padding: 40px 0 70px; }
.detalhe .voltar { display: inline-block; margin-bottom: 20px; color: var(--muted); text-decoration: none; font-size: 14px; }
.detalhe-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.galeria-principal { width: 100%; height: 360px; object-fit: contain; border-radius: 10px; background: #E4E7EB; margin-bottom: 12px; }
.galeria-miniaturas { display: flex; gap: 8px; flex-wrap: wrap; }
.galeria-miniaturas img { width: 76px; height: 56px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; }
.galeria-miniaturas img.ativa { border-color: var(--accent); }
.painel-detalhe { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 26px; }
.painel-detalhe .preco { font-size: 28px; font-weight: 900; color: var(--accent); margin-bottom: 18px; }
.specs-list { list-style: none; padding: 0; margin: 0 0 22px; font-size: 14px; }
.specs-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.specs-list li span:first-child { color: var(--muted); }
.opcionais-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.opcionais-tags span { background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 5px 12px; font-size: 12px; }

@media (max-width: 900px) {
  .detalhe-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  nav.main { display: none; }
  .hero h1 { font-size: 30px; }
}
