/* ============================================================
   AUTO FREIOS VICENTE MACHADO — DESIGN SYSTEM v2 (dark premium)
   Derivado do logo: disco de freio + pinça amarela + AFV
   ============================================================ */

/* ---- Tokens ---- */
:root {
  /* Cores de marca (do logo) */
  --amarelo: #f6c945;        /* pinça de freio — cor primária de ação */
  --amarelo-escuro: #d9a92a;
  --turquesa: #6fd6cf;       /* fundo do logo original — cor de apoio */

  /* Neutros (grafite do cubo do disco) */
  --bg: #0c0e10;
  --bg-elevado: #14171b;
  --bg-card: #15191e;
  --borda: #242b33;
  --borda-hover: #3a4450;

  /* Texto */
  --texto: #eef1f4;
  --texto-suave: #9aa6b2;
  --texto-invertido: #15181c;

  /* Outros */
  --verde-whats: #22c55e;
  --verde-whats-escuro: #16a34a;

  /* Tipografia */
  --fonte-titulo: "Sora", -apple-system, "Segoe UI", sans-serif;
  --fonte-texto: "Inter", -apple-system, "Segoe UI", sans-serif;

  /* Geometria */
  --raio: 14px;
  --raio-pill: 999px;
  --sombra: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* ---- Fontes auto-hospedadas ---- */
@font-face { font-family: "Sora"; font-weight: 600; font-display: swap; src: url("../fonts/sora-600.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 700; font-display: swap; src: url("../fonts/sora-700.woff2") format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 800; font-display: swap; src: url("../fonts/sora-800.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("../fonts/inter-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-600.woff2") format("woff2"); }

/* ---- Base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fonte-texto);
  color: var(--texto);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--turquesa); }
h1, h2, h3, h4 { font-family: var(--fonte-titulo); letter-spacing: -0.015em; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

/* ---- Barra de topo ---- */
.topbar {
  background: #08090b;
  border-bottom: 1px solid var(--borda);
  color: var(--texto-suave);
  font-size: 0.8rem;
  padding: 0.45rem 0;
}
.topbar .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; }
.topbar a { color: var(--amarelo); text-decoration: none; font-weight: 600; }
.topbar .tb-compact { display: none; }

/* ---- Cabeçalho ---- */
header.site-header {
  background: rgba(12, 14, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--borda);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.8rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.logo { text-decoration: none; color: var(--texto); display: flex; align-items: center; gap: 0.7rem; }
.logo svg.logo-mark { display: block; flex-shrink: 0; }
.logo-text { line-height: 1.3; }
.logo-text strong {
  display: block;
  font-family: var(--fonte-titulo);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.logo-text strong em { font-style: normal; color: var(--amarelo); }
.logo-text span {
  font-size: 0.7rem;
  color: var(--texto-suave);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
}

nav.main-nav ul { list-style: none; display: flex; gap: 1.5rem; flex-wrap: wrap; }
nav.main-nav a {
  text-decoration: none;
  color: var(--texto-suave);
  font-weight: 500;
  font-size: 0.92rem;
  transition: color 0.2s;
}
nav.main-nav a:hover, nav.main-nav a[aria-current="page"] { color: var(--texto); }
nav.main-nav a.nav-avaliacoes { color: var(--amarelo); font-weight: 700; }
nav.main-nav a.nav-avaliacoes:hover { color: var(--amarelo-escuro); }
nav.main-nav a[aria-current="page"] { border-bottom: 2px solid var(--amarelo); padding-bottom: 2px; }

/* ---- Botões ---- */
.btn {
  display: inline-block;
  background: var(--amarelo);
  color: var(--texto-invertido) !important;
  text-decoration: none;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--raio-pill);
  transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
  box-shadow: 0 0 0 rgba(246, 201, 69, 0);
}
.btn:hover {
  background: var(--amarelo-escuro);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(246, 201, 69, 0.25);
}
.btn-whatsapp { background: var(--verde-whats); color: #052e12 !important; }
.btn-whatsapp:hover { background: var(--verde-whats-escuro); box-shadow: 0 6px 24px rgba(34, 197, 94, 0.25); }
.btn-outline {
  background: transparent;
  color: var(--texto) !important;
  border: 1px solid var(--borda-hover);
}
.btn-outline:hover { background: var(--bg-elevado); box-shadow: none; }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 5rem;
  background:
    radial-gradient(ellipse 60% 50% at 85% 10%, rgba(246, 201, 69, 0.13), transparent 60%),
    radial-gradient(ellipse 50% 60% at 5% 90%, rgba(111, 214, 207, 0.08), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--borda);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.25rem;
  max-width: 760px;
}
.hero h1 .destaque { color: var(--amarelo); }
.hero p.lead {
  font-size: 1.1rem;
  color: var(--texto-suave);
  max-width: 620px;
  margin-bottom: 2rem;
}
.hero .cta-row { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.hero .selo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(246, 201, 69, 0.08);
  border: 1px solid rgba(246, 201, 69, 0.35);
  color: var(--amarelo);
  border-radius: var(--raio-pill);
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

/* ---- Seções ---- */
section { padding: 4.5rem 0; }
section.alt { background: var(--bg-elevado); border-top: 1px solid var(--borda); border-bottom: 1px solid var(--borda); }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: 0.6rem; }
.section-sub { color: var(--texto-suave); margin-bottom: 2.25rem; max-width: 640px; }

/* ---- Cards ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.1rem; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 1.6rem;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: var(--borda-hover); transform: translateY(-2px); }
.card h3 { margin-bottom: 0.5rem; font-size: 1.05rem; font-weight: 700; }
.card h3 a { color: inherit; }
.card p { font-size: 0.92rem; color: var(--texto-suave); margin-bottom: 0.9rem; }
.card a.saiba { font-weight: 600; font-size: 0.9rem; text-decoration: none; color: var(--amarelo); }
.card a.saiba:hover { color: var(--amarelo-escuro); }
.card .icone {
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(246, 201, 69, 0.09);
  border: 1px solid rgba(246, 201, 69, 0.25);
  color: var(--amarelo);
}
.card .icone svg { width: 24px; height: 24px; }

/* ---- Diferenciais ---- */
.diferenciais { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }
.diferencial {
  background: var(--bg-card);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 1.5rem;
}
.diferencial h3 { font-size: 0.98rem; margin-bottom: 0.35rem; }
.diferencial p { font-size: 0.88rem; color: var(--texto-suave); }
.diferencial .num {
  font-family: var(--fonte-titulo);
  font-size: 2rem;
  font-weight: 800;
  color: var(--amarelo);
  display: block;
  margin-bottom: 0.35rem;
}
.diferencial .num.num-ic svg { width: 30px; height: 30px; margin: 0.35rem 0; }

/* ---- FAQ ---- */
details.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 1.1rem 1.4rem;
  margin-bottom: 0.7rem;
  transition: border-color 0.2s;
}
details.faq-item:hover { border-color: var(--borda-hover); }
details.faq-item[open] { border-color: rgba(246, 201, 69, 0.4); }
details.faq-item summary { font-family: var(--fonte-titulo); font-weight: 600; font-size: 0.98rem; cursor: pointer; }
details.faq-item p { margin-top: 0.7rem; color: var(--texto-suave); font-size: 0.95rem; }

/* ---- Sinais de alerta ---- */
.sinais { list-style: none; }
.sinais li {
  padding: 0.7rem 0 0.7rem 2.1rem;
  position: relative;
  border-bottom: 1px solid var(--borda);
  color: var(--texto);
}
.sinais li::before { content: "⚠"; position: absolute; left: 0; color: var(--amarelo); }

/* ---- Avaliações do Google ---- */
#avaliacoes[hidden] { display: none; }
.avaliacoes-topo { display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.nota-badge {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--bg-card);
  border: 1px solid rgba(246, 201, 69, 0.35);
  border-radius: var(--raio);
  padding: 1rem 1.4rem;
}
.nota-valor { font-family: var(--fonte-titulo); font-size: 2.6rem; font-weight: 800; color: var(--amarelo); line-height: 1; }
.nota-estrelas { display: block; color: var(--amarelo); font-size: 1.05rem; letter-spacing: 0.12em; }
.nota-total { font-size: 0.83rem; color: var(--texto-suave); text-decoration: none; }
.nota-total:hover { color: var(--texto); }
.carrossel {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--borda-hover) transparent;
}
.avaliacao-card {
  flex: 0 0 320px;
  max-width: 82vw;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.avaliacao-texto {
  font-size: 0.93rem;
  color: var(--texto-suave);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.avaliacao-card footer strong { display: block; font-family: var(--fonte-titulo); font-size: 0.9rem; }
.avaliacao-card footer span { color: var(--amarelo); font-size: 0.8rem; }
.carrossel-rodape { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.carrossel-botoes { display: flex; gap: 0.5rem; }
.carrossel-botoes button {
  background: var(--bg-card);
  border: 1px solid var(--borda-hover);
  color: var(--texto);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.05rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.carrossel-botoes button:hover { border-color: var(--amarelo); color: var(--amarelo); }

.nota-badge-grande .nota-valor { font-size: 3.4rem; }
.nota-badge-grande .nota-estrelas { font-size: 1.3rem; }
.carrossel-vazio { color: var(--texto-suave); font-size: 0.95rem; padding: 1rem 0; }

/* ---- Galeria de fotos (Google) ---- */
#fotos[hidden] { display: none; }
.galeria {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--borda-hover) transparent;
}
.galeria-item {
  flex: 0 0 300px;
  max-width: 78vw;
  scroll-snap-align: start;
  margin: 0;
}
.galeria-item img {
  width: 100%;
  height: 215px;
  object-fit: cover;
  border-radius: var(--raio);
  border: 1px solid var(--borda);
  display: block;
}
.galeria-item figcaption { font-size: 0.75rem; color: var(--texto-suave); margin-top: 0.4rem; }

/* ---- Contato ---- */
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contato-info p { margin-bottom: 0.95rem; color: var(--texto-suave); }
.contato-info strong { display: block; color: var(--texto); font-family: var(--fonte-titulo); font-size: 0.92rem; }
.contato-info strong svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 0.4rem; color: var(--amarelo); }
.contato-info a { color: var(--turquesa); }
.mapa iframe {
  width: 100%;
  height: 320px;
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  filter: grayscale(0.2) contrast(1.05);
}
.mapa p a { color: var(--turquesa); }

/* ---- Cabeçalho de páginas internas ---- */
.page-header {
  position: relative;
  padding: 3.25rem 0;
  background:
    radial-gradient(ellipse 50% 80% at 90% 0%, rgba(246, 201, 69, 0.1), transparent 60%),
    var(--bg-elevado);
  border-bottom: 1px solid var(--borda);
}
.page-header h1 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); font-weight: 800; max-width: 800px; }
.page-header .breadcrumb { font-size: 0.82rem; color: var(--texto-suave); margin-bottom: 0.6rem; }
.page-header .breadcrumb a { color: var(--texto-suave); text-decoration: none; }
.page-header .breadcrumb a:hover { color: var(--texto); }

/* ---- Conteúdo de artigos ---- */
article.conteudo { max-width: 760px; }
article.conteudo h2 { margin: 2.25rem 0 0.8rem; font-size: 1.35rem; font-weight: 700; }
article.conteudo h3 { margin: 1.5rem 0 0.5rem; font-size: 1.05rem; }
article.conteudo p, article.conteudo li { color: var(--texto-suave); margin-bottom: 0.8rem; }
article.conteudo strong { color: var(--texto); }
article.conteudo ul, article.conteudo ol { padding-left: 1.4rem; }

/* ---- Caixa de CTA ---- */
.cta-box {
  background: linear-gradient(135deg, var(--amarelo) 0%, var(--amarelo-escuro) 100%);
  color: var(--texto-invertido);
  border-radius: var(--raio);
  padding: 2.5rem 2rem;
  margin: 2.75rem 0;
  text-align: center;
  box-shadow: var(--sombra);
}
.cta-box h2 { color: var(--texto-invertido) !important; margin: 0 0 0.5rem !important; font-weight: 800; }
.cta-box p { color: rgba(21, 24, 28, 0.75) !important; margin-bottom: 1.4rem !important; font-weight: 500; }
.cta-box .btn { background: var(--texto-invertido); color: var(--amarelo) !important; }
.cta-box .btn:hover { background: #000; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3); }

/* ---- Rodapé ---- */
footer.site-footer {
  background: #08090b;
  border-top: 1px solid var(--borda);
  color: var(--texto-suave);
  padding: 3.5rem 0 1.5rem;
  font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; margin-bottom: 2.25rem; }
footer h4 { color: var(--texto); margin-bottom: 0.85rem; font-size: 0.95rem; }
footer a { color: var(--texto-suave); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--amarelo); }
footer ul { list-style: none; }
footer li { margin-bottom: 0.45rem; }
.footer-bottom { border-top: 1px solid var(--borda); padding-top: 1.4rem; text-align: center; color: #5d6873; font-size: 0.78rem; }

/* ---- WhatsApp flutuante ---- */
.whats-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--verde-whats);
  color: #052e12;
  border-radius: var(--raio-pill);
  padding: 0.85rem 1.3rem;
  text-decoration: none;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 100;
  transition: transform 0.15s;
}
.whats-float svg { width: 19px; height: 19px; }
.whats-float:hover { background: var(--verde-whats-escuro); transform: translateY(-2px); }

/* ---- Responsivo ---- */
@media (max-width: 700px) {
  .topbar .tb-end, .topbar .tb-horas { display: none; }
  .topbar .tb-compact { display: block; width: 100%; text-align: center; white-space: nowrap; }
  .hero { padding: 3.5rem 0 3rem; }
  .contato-grid { grid-template-columns: 1fr; }
  nav.main-nav ul { gap: 0.9rem; font-size: 0.88rem; }
  .header-inner > .btn { display: none; }
}
