/*
 * Estilo das páginas de conteúdo (/ar-do-carro-nao-gela, /recarga-de-gas, ...).
 *
 * CSS próprio, servido de public/, em vez do bundle da SPA: essas páginas são
 * HTML estático e precisam renderizar sem JavaScript — é justamente isso que
 * as torna legíveis pelos crawlers de IA. Puxar o CSS do build traria o hash
 * do Vite no nome do arquivo, que muda a cada build e quebraria o link.
 *
 * As variáveis repetem os valores de src/index.css de propósito (mesma
 * identidade visual, arquivos independentes). Ao mudar a paleta lá, atualizar
 * aqui também.
 */

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

:root {
  --blue: #063689;
  --blue-dark: #041f4f;
  --blue-light: #0d59d6;
  --bg: #ffffff;
  --bg-alt: #f2f5fa;
  --text: #1a1a1a;
  --text-mid: #444444;
  --white: #ffffff;
  --border: rgba(6, 54, 137, 0.12);
  --whatsapp: #25d366;
  --font-title: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

/* ===== TOPO ===== */

.topo {
  background: var(--blue-dark);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.topo__logo img {
  height: 38px;
  width: auto;
  display: block;
}

.topo__tel {
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.topo__tel:hover {
  text-decoration: underline;
}

/* ===== LAYOUT ===== */

.container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px;
}

.artigo {
  padding: 40px 0 56px;
}

.migalhas {
  font-size: 0.85rem;
  color: var(--text-mid);
  margin-bottom: 24px;
}

.migalhas a {
  color: var(--blue);
  text-decoration: none;
}

.migalhas a:hover {
  text-decoration: underline;
}

/* ===== TIPOGRAFIA ===== */

.artigo h1 {
  font-family: var(--font-title);
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-dark);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.artigo__resumo {
  font-size: 1.1rem;
  color: var(--text-mid);
  padding: 18px 20px;
  background: var(--bg-alt);
  border-left: 4px solid var(--blue);
  border-radius: 4px;
  margin-bottom: 32px;
}

.artigo h2 {
  font-family: var(--font-title);
  font-size: clamp(1.3rem, 4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--blue-dark);
  margin: 40px 0 14px;
}

.artigo h3 {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--blue);
  margin: 28px 0 10px;
}

.artigo p {
  margin-bottom: 16px;
}

.artigo ul, .artigo ol {
  margin: 0 0 20px 22px;
}

.artigo li {
  margin-bottom: 10px;
}

.artigo strong {
  color: var(--text);
  font-weight: 600;
}

.artigo a {
  color: var(--blue);
}

/* ===== TABELA ===== */

.tabela-wrap {
  overflow-x: auto;
  margin-bottom: 24px;
}

.artigo table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 420px;
}

.artigo th, .artigo td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.artigo th {
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.artigo tbody tr:nth-child(even) {
  background: var(--bg-alt);
}

/* ===== AVISO ===== */

.aviso {
  padding: 16px 20px;
  background: #fff8e6;
  border-left: 4px solid #e0a800;
  border-radius: 4px;
  margin: 24px 0;
  font-size: 0.97rem;
}

/* ===== CTA ===== */

.cta {
  margin: 44px 0 8px;
  padding: 28px 24px;
  background: var(--blue-dark);
  border-radius: 8px;
  text-align: center;
  color: var(--white);
}

.cta h2 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  color: var(--white);
  margin: 0 0 10px;
  text-transform: uppercase;
}

.cta p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
  font-size: 0.97rem;
}

.btn-zap {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--whatsapp);
  color: var(--white);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.03em;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  text-transform: uppercase;
}

.btn-zap:hover {
  filter: brightness(1.08);
}

.btn-zap svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.cta__dados {
  margin-top: 18px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* ===== OUTRAS PÁGINAS ===== */

.relacionados {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.relacionados h2 {
  font-size: 1.2rem;
  margin: 0 0 14px;
}

.relacionados ul {
  list-style: none;
  margin: 0;
}

.relacionados li {
  margin-bottom: 9px;
}

.relacionados a {
  color: var(--blue);
  font-weight: 500;
  text-decoration: none;
}

.relacionados a:hover {
  text-decoration: underline;
}

/* ===== RODAPÉ ===== */

.rodape {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 28px 0;
  margin-top: 48px;
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.7;
}

.rodape a {
  color: var(--white);
}

/* ===== BOTÃO FLUTUANTE ===== */

.zap-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 54px;
  height: 54px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 20;
}

.zap-float svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}

@media (max-width: 600px) {
  .artigo { padding: 28px 0 40px; }
  .topo__tel { font-size: 0.92rem; }
  .topo__logo img { height: 32px; }
}
