:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --ink: #142033;
  --muted: #5b677a;
  --brand: #0b5cab;
  --brand-dark: #084781;
  --accent: #0f8a5f;
  --line: #d7e0ec;
  --danger: #b42318;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 32, 51, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
body.has-mobile-bar { padding-bottom: 72px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

.skip-link {
  position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: .5rem 1rem; z-index: 1000;
}
.skip-link:focus { left: .5rem; top: .5rem; }

.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.container-narrow { width: min(760px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-row {
  display: flex; align-items: center; gap: 1rem; min-height: 72px;
}
.logo img { width: 150px; height: auto; max-height: 84px; object-fit: contain; }
.footer-brand img { width: 120px; height: auto; max-height: 67px; object-fit: contain; }
.menu-toggle {
  margin-left: auto; border: 1px solid var(--line); background: #fff;
  border-radius: 999px; padding: .45rem .9rem; font-weight: 600; cursor: pointer;
}
.main-nav { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.main-nav a { text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 600; }
.main-nav a.is-active, .main-nav a:hover { color: var(--brand); }
.header-actions { display: none; align-items: center; gap: .6rem; }
.header-phone { text-decoration: none; font-weight: 700; color: var(--ink); white-space: nowrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border-radius: 999px; padding: .7rem 1.15rem; font-weight: 700; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font: inherit;
}
.btn-sm { padding: .45rem .85rem; font-size: .9rem; }
.btn-lg { padding: .85rem 1.35rem; width: 100%; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
/* Verde WA mais escuro — contraste WCAG AA com texto branco (~auditorias 2026-11-16) */
.btn-whatsapp { background: #0e7a3d; color: #fff; }
.btn-whatsapp:hover { background: #0b6432; color: #fff; }
.btn-whatsapp svg { flex-shrink: 0; }
.btn-ghost { gap: .45rem; }
.btn-ghost, .btn-light {
  background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.45);
}
.btn-light { background: #fff; color: var(--brand); border-color: #fff; }
.btn-light:hover { color: var(--brand-dark); }

.hero {
  position: relative; min-height: 420px; display: grid; align-items: end;
  color: #fff; overflow: hidden;
  /* Só cor de fallback — banner vem do <img> (evita download duplicado / LCP) */
  background-color: #0b5cab;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,28,56,.35), rgba(8,28,56,.82));
}
.hero-inner { position: relative; padding: 3.5rem 0 2.5rem; }
.eyebrow {
  display: inline-block; margin: 0 0 .75rem;
  padding: .3rem .7rem; border-radius: 999px;
  background: rgba(255,255,255,.14); font-size: .85rem; font-weight: 600;
}
.hero h1 { margin: 0 0 .75rem; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.15; max-width: 18ch; }
.hero .lead { margin: 0 0 1.25rem; max-width: 42ch; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.page-hero {
  background: linear-gradient(135deg, #0b5cab, #084781);
  color: #fff; padding: 2rem 0 1.5rem;
}
.page-hero h1 { margin: .4rem 0 .5rem; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.page-lead { margin: 0; max-width: 60ch; color: rgba(255,255,255,.92); }

.breadcrumb { margin: 0 0 .5rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; font-size: .85rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .35rem; opacity: .7; }
.breadcrumb a { color: #fff; }

.section { padding: 2.5rem 0; }
.section-alt { background: #eaf1f9; }
.section-head { margin-bottom: 1.25rem; }
.section-head h2 { margin: 0 0 .35rem; font-size: 1.45rem; }
.section-head p { margin: 0; color: var(--muted); }

.trust-grid {
  display: grid; gap: .8rem;
  grid-template-columns: 1fr;
}
.trust-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.1rem; box-shadow: var(--shadow);
}
.trust-item strong { display: block; margin-bottom: .2rem; }
.trust-item span { color: var(--muted); font-size: .92rem; }

.card-grid {
  display: grid; gap: .9rem;
  grid-template-columns: 1fr;
}
.card-link {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow);
}
.card-link h3 { margin: 0 0 .35rem; color: var(--brand); font-size: 1.05rem; }
.card-link p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-link:hover { border-color: #9bb8d9; }

.steps { margin: 0; padding-left: 1.2rem; }
.steps li { margin-bottom: .7rem; }
.mt { margin-top: 1rem; }

.cta-band {
  background: linear-gradient(135deg, #0f8a5f, #0b5cab);
  color: #fff; padding: 1.8rem 0;
}
.cta-band-inner {
  display: flex; flex-direction: column; gap: 1rem;
}
.cta-band h2 { margin: 0 0 .35rem; font-size: 1.35rem; }
.cta-band p { margin: 0; color: rgba(255,255,255,.92); }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: .55rem; }

.prose h2, .prose h3 { line-height: 1.25; }
.prose p, .prose li { color: #243247; }
.list-links { padding-left: 1.1rem; }
.list-links li { margin-bottom: .45rem; }

.table-responsive {
  overflow-x: auto; margin: 1rem 0; background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
}
.table-responsive table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.table-responsive th, .table-responsive td {
  border-bottom: 1px solid var(--line); padding: .45rem .55rem; text-align: left; white-space: nowrap;
}
.aviso-tabela {
  font-size: .9rem; color: var(--muted);
  background: #fff7e8; border: 1px solid #f0d9a5; border-radius: 10px; padding: .8rem 1rem;
}

.section-faq { background: #eef3f9; }
.faq-list details {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: .85rem 1rem; margin-bottom: .55rem;
}
.faq-list summary { cursor: pointer; font-weight: 700; }
.faq-a { margin-top: .65rem; color: #243247; }

.form-cotacao {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem; box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: .8rem; grid-template-columns: 1fr; }
.form-grid.radios { margin: .8rem 0; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .8rem; }
.field label, .field legend { font-weight: 600; font-size: .92rem; }
.field input, .field textarea, .field select {
  border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; font: inherit;
}
.radio-box { border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; }
.radio-box label { margin-right: .9rem; font-weight: 500; }
.form-honeypot {
  position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden;
}
.form-note { font-size: .85rem; color: var(--muted); }

/* Matriz rede Einstein + Compare com */
.rede-matriz { margin: 1rem 0 1.5rem; }
.rede-aviso { font-size: .9rem; color: var(--muted); margin: 0 0 .5rem; }
.rede-meta { font-size: .85rem; color: var(--muted); margin: 0 0 1rem; }
.rede-table { width: 100%; border-collapse: collapse; font-size: .9rem; background: #fff; }
.rede-table caption {
  caption-side: top; text-align: left; font-weight: 700; margin-bottom: .55rem; color: var(--ink);
}
.rede-table th, .rede-table td {
  border: 1px solid var(--line); padding: .55rem .65rem; vertical-align: top; text-align: left;
}
.rede-table thead th { background: #eef3f9; }
.rede-badge {
  display: inline-block; border-radius: 999px; padding: .2rem .55rem;
  font-size: .75rem; font-weight: 700; white-space: nowrap;
}
.rede-badge--tipico { background: #e6f6ec; color: #0e7a3d; }
.rede-badge--improvavel { background: #fdecec; color: #9b1c1c; }
.rede-badge--confirmar { background: #fff6e5; color: #8a5b00; }
.rede-nao-list { margin: .5rem 0 0; padding-left: 1.1rem; }
.rede-nao-list li { margin-bottom: .45rem; color: var(--muted); }
.tabela-bloco { margin: 0 0 1.25rem; }
.tabela-bloco figcaption {
  margin: 0 0 .55rem; font-size: .9rem; color: var(--ink); font-weight: 600;
  display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
}
.compare-ops {
  margin: 1.75rem 0 0; padding: 1.1rem 1.15rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.compare-ops h2 { margin: 0 0 .65rem; font-size: 1.15rem; }
.compare-ops-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .5rem .75rem;
}
.compare-ops-list a {
  display: inline-block; padding: .4rem .75rem; border-radius: 999px;
  border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem;
  background: #eef3f9; color: var(--brand);
}
.compare-ops-list a:hover { border-color: var(--brand); color: var(--brand-dark); background: #fff; }
.compare-ops-more { margin: .85rem 0 0; font-size: .9rem; }

/* Sobre a Carmel (home, acima do rodapé) — RFC D21 */
.section-about { background: linear-gradient(180deg, #f7f9fc 0%, var(--bg) 100%); }
.about-intro { margin-bottom: 1.75rem; }
.about-intro .rating { margin-top: .85rem; }
.rating {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: .45rem .8rem;
  text-decoration: none; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem .9rem .45rem .65rem; box-shadow: var(--shadow); max-width: 100%;
}
.rating:hover { border-color: var(--brand); color: var(--ink); }
.rating__stars { color: #e6a700; letter-spacing: .06em; font-size: .95rem; line-height: 1; }
.rating__score { font-weight: 700; font-size: 1rem; }
.rating__meta { font-size: .875rem; color: var(--muted); }
.rating__link { font-size: .8rem; font-weight: 700; color: var(--brand); }
.rating:hover .rating__link { color: var(--brand-dark); }
.about-split { display: grid; gap: 1.5rem; align-items: center; }
/* Mobile-first: foto antes do texto (prova visual cedo) */
.about-media { margin: 0; order: 1; }
.about-copy { order: 2; }
.about-copy h3 { margin: 0 0 .75rem; font-size: 1.25rem; color: var(--ink); }
.about-copy p { margin: 0 0 .9rem; color: var(--muted); }
.about-copy p:last-child { margin-bottom: 0; }
.about-media img {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.about-media figcaption { margin-top: .55rem; font-size: .85rem; color: var(--muted); }

/* Rodapé claro — mesmo logo claro do topo (RFC D20) */
.site-footer {
  background: #eef3f9; color: var(--ink);
  /* padding-top alinhado ao ritmo das sections / header (peça única) */
  padding: 2.5rem 0 5.5rem;
  border-top: 1px solid var(--line);
}
.site-footer a { color: var(--brand); }
.footer-top { display: grid; gap: 1.5rem; }
.footer-brand p { color: var(--muted); }
.footer-brand-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin: .85rem 0 0; }
/* Padrão CTAs em .footer-brand (RFC D18) */
.footer-brand .btn-whatsapp { background: #0e7a3d; color: #fff; }
.footer-brand .btn-whatsapp:hover { background: #0b6432; color: #fff; }
.footer-brand .btn-primary { background: var(--brand-dark); color: #fff; }
.footer-brand .btn-primary:hover { background: #06345f; color: #fff; }
.footer-contact { display: flex; flex-wrap: wrap; gap: .9rem 1.15rem; margin: .6rem 0; }
.contact-link {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--ink); text-decoration: none; font-size: .92rem;
  padding: .25rem .55rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
/* Hover / teclado: outline brand — mesmo critério dos ícones sociais */
.contact-link:hover,
.contact-link:focus-visible {
  color: var(--brand-dark);
  background: #fff;
  border-color: var(--brand);
  outline: none;
}
.footer-links { display: grid; gap: 1rem; }
.footer-col h2 { margin: 0 0 .6rem; font-size: 1rem; color: var(--ink); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: .35rem; font-size: .88rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: none; color: var(--brand-dark); }
.footer-bottom {
  margin-top: 1.5rem;
  padding: .85rem .9rem;
  font-size: .85rem;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.footer-cnpj { margin: 0 0 .65rem; color: var(--ink); }
.footer-cnpj-link { color: inherit; text-decoration: none; }
.footer-cnpj-link:hover { color: var(--brand); text-decoration: underline; }
.footer-credito { margin: .5rem 0 0; font-size: .85rem; color: var(--muted, #667); }
.footer-credito-link { color: inherit; text-decoration: underline; }
.footer-credito-link:hover { color: var(--brand); }
.footer-addresses { list-style: none; margin: 0 0 1rem; padding: 0; color: var(--muted); font-size: .88rem; }
.footer-addresses li { margin-bottom: .4rem; }
.social { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin: 0 0 .85rem; }
.social-icon {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff; color: var(--brand); text-decoration: none;
  border: 1.5px solid var(--line);
  transition: border-color .15s ease, color .15s ease;
}
/* Hover / teclado: outline brand (sem fill sólido) */
.social-icon:hover,
.social-icon:focus-visible {
  background: #fff; color: var(--brand-dark);
  border-color: var(--brand);
  outline: none;
}
.legal { margin: 0; color: var(--muted); }
.legal-llms { margin-left: .5rem; color: var(--brand); text-decoration: underline; }
.legal-llms:hover { color: var(--brand-dark); }

.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
  padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
}
.whatsapp-float {
  position: fixed; right: 1rem; bottom: 5rem; z-index: 55;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: #0e7a3d; color: #fff; text-decoration: none;
  box-shadow: 0 4px 14px rgba(14, 122, 61, .35);
}
.whatsapp-float:hover { background: #0b6432; color: #fff; }

/* Exit-intent (D23) */
body.exit-intent-open { overflow: hidden; }
.exit-intent {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center;
  padding: 1rem;
}
.exit-intent[hidden] { display: none !important; }
.exit-intent-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, .48);
}
.exit-intent-dialog {
  position: relative; z-index: 1;
  width: min(100%, 440px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .28);
  overflow: hidden;
}
.exit-intent-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: .75rem;
  padding: .85rem 1rem .85rem 1.15rem;
  background: #f5c518;
  color: #1a1a1a;
}
.exit-intent-head h2 {
  margin: 0; font-size: 1.15rem; font-weight: 800;
  font-family: var(--font-display, inherit);
  line-height: 1.2;
}
.exit-intent-close {
  appearance: none; border: 0; background: transparent;
  width: 2rem; height: 2rem; border-radius: 6px;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  color: #1a1a1a;
}
.exit-intent-close:hover,
.exit-intent-close:focus-visible {
  background: rgba(0, 0, 0, .08);
  outline: none;
}
.exit-intent-body {
  padding: 1.15rem 1.25rem 1rem;
  color: #374151;
  font-size: .98rem;
  line-height: 1.55;
}
.exit-intent-body p { margin: 0 0 .85rem; }
.exit-intent-body p:last-child { margin-bottom: 0; }
.exit-intent-body strong { color: #111827; }
.exit-intent-actions {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid #e5e7eb;
  margin-top: .25rem;
  padding-top: 1rem;
}
.exit-intent-cta {
  width: 100%;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: .02em;
  font-weight: 800;
  border-radius: 999px;
  padding: .85rem 1.1rem;
}

@media (min-width: 760px) {
  .menu-toggle { display: none; }
  .main-nav { display: block; margin-left: 1rem; flex: 1; }
  .header-actions { display: flex; margin-left: auto; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .cta-band-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  /* Desktop: texto à esquerda, foto à direita */
  .about-split { grid-template-columns: 1.05fr .95fr; gap: 2rem; }
  .about-copy { order: 1; }
  .about-media { order: 2; }
  .footer-top { grid-template-columns: 1.1fr 2fr; }
  .footer-links { grid-template-columns: 1fr 1fr 1fr; }
  .footer-bottom { padding: 1.1rem 1.15rem; }
  .mobile-bar { display: none; }
  body.has-mobile-bar { padding-bottom: 0; }
  .site-footer { padding-bottom: 2.5rem; }
  .whatsapp-float { bottom: 1.25rem; }
}

body.nav-open .main-nav {
  display: block; position: absolute; left: 0; right: 0; top: 72px;
  background: #fff; border-bottom: 1px solid var(--line); padding: 1rem;
}
body.nav-open .main-nav ul { flex-direction: column; }
