/* ==========================================================================
   KAE Services — style.css
   Paleta: laranja de marca (#FF9900) + grafite técnico + branco
   Tipografia: Space Grotesk (títulos, geométrica/técnica) + Inter (corpo)
             + JetBrains Mono (dados técnicos: categorias de cabo, specs)
   ========================================================================== */


/* Fontes carregadas via <link> no header.php (mais rápido que @import) */


:root {
  /* Altura da topbar fixa — valor de fallback (sem JS); o header.php mede a
     altura real e sobrescreve essa variável, porque a topbar quebra linha de
     jeitos diferentes conforme a largura da tela. */
  --topbar-h: 2.8em;

  /* Cor de marca — não alterar (identidade KAE) */
  --brand: #FF9900;
  --brand-dark: #A15400;
  --brand-ink-on-brand: #1A1D23;

  /* Neutros */
  --ink: #1A1D23;         /* texto principal — grafite, não preto puro */
  --ink-soft: #4B5259;    /* texto secundário */
  --line: #E3E1DC;        /* bordas / divisores */
  --surface: #FFFFFF;
  --surface-soft: #FAF9F7;
  --surface-dark: #1A1D23;
  --on-dark: #EDEBE6;
  --on-dark-soft: #A7ACB3;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 6px;
  --container: 1080px;
  --container-wide: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--surface-soft);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin-top: 2em; }

p { margin: 0 0 1.1em; color: var(--ink-soft); }

a {
  color: var(--brand-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
a:hover { border-bottom-color: currentColor; }
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Ícones ---------- */
.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  margin-right: .3em;
  flex-shrink: 0;
}
.topbar a { display: inline-flex; align-items: center; }
.footer-col a { display: inline-flex; align-items: center; }
.footer-col p svg.icon { margin-right: .5em; }
.icon-line { display: inline-flex; align-items: center; }

ul { padding-left: 1.2em; color: var(--ink-soft); }
li { margin-bottom: .4em; }

strong { color: var(--ink); font-weight: 600; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--surface-dark);
  color: var(--on-dark-soft);
  font-size: .82rem;
  padding: .5em 1.25em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  row-gap: .3em;
  gap: 1.25em;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}
.topbar a { color: var(--on-dark-soft); border: none; }
.topbar a:hover { color: var(--brand); }
body { padding-top: var(--topbar-h); }

.topbar-links { display: flex; flex-wrap: wrap; row-gap: .3em; gap: 1.25em; }

/* Logo branca: some por padrão (largura zero) e só aparece na topbar fixa
   quando a logo principal (.branding) sai de vista atrás dela ao rolar —
   ver o toggle da classe .is-scrolled no script do header.php. No mobile
   (≤560px) o <picture> no header.php troca pra versão compacta (só "KAE"). */
.topbar-logo {
  display: flex;
  align-items: center;
  overflow: hidden;
  flex: 0 1 auto;
  min-width: 0;   /* sem isso, item flex não encolhe abaixo do tamanho da imagem */
  max-width: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-3px);
  /* opacidade some só no fim (delay .15s), pra largura encolher visível
     primeiro — reforça a sensação de recolher da direita pra esquerda,
     em vez de um fade parelho por cima do encolhimento. */
  transition: max-width .3s ease, opacity .15s ease .15s, transform .3s ease, visibility 0s .3s;
}
.topbar-logo img { height: 14px; width: auto; display: block; }
.topbar.is-scrolled .topbar-logo {
  max-width: 150px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: max-width .3s ease, opacity .25s ease, transform .25s ease, visibility 0s;
}

/* ---------- Header / branding ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }

.branding {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 1.2em 1.25em .8em;
}
.branding .logo {
  display: inline-block;
  border: none;
  line-height: 0;
}
.branding .logo img {
  height: 44px;
  width: 420px;
  max-width: 100%;
  aspect-ratio: 420 / 44;
  object-fit: contain;
  display: block;
}

.tagline { font-size: .88rem; color: var(--ink-soft); margin: .6em 0; white-space: nowrap; }
.tagline a {
  color: var(--brand-dark);
  font-weight: 600;
  border-bottom: 1px solid rgba(161, 84, 0, .4);
  transition: color .2s ease, border-bottom-color .2s ease;
}
.tagline a:hover {
  color: #78350f;
  border-bottom-color: #78350f;
}

/* ---------- Nav — trilha de circuito como underline ---------- */
.subnav {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 1.25em;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .3em 1.5em;
}
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.6em;
  padding: 0;
  margin: 0;
}
.main-nav a {
  display: inline-block;
  padding: .85em 0;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft);
  border: none;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after { transform: scaleX(1); }

/* ---------- Imagem de topo full-width ---------- */
.page-hero-img {
  margin: 0;
  width: 100%;
  height: 420px;
  overflow: hidden;
  background: var(--surface-dark);
}
@media (max-width: 640px) {
  .page-hero-img { height: 220px; }
}
.page-hero-img picture,
.page-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  max-width: var(--container);
  margin: 1.4em auto 0;
  padding: 0 1.25em;
  font-size: .82rem;
  font-family: var(--font-mono);
  color: var(--ink-soft);
}
.breadcrumb a { color: var(--ink-soft); border: none; }
.breadcrumb a:hover { color: var(--brand-dark); }
.breadcrumb span { color: var(--ink); }

/* ---------- Artigo / conteúdo ---------- */
main { display: block; }

article {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.6em 1.25em 3em;
}

article section {
  padding-top: 1.6em;
  border-top: 1px dashed var(--line);
}
article > section:first-of-type { border-top: none; padding-top: 0; }

/* Links dentro de texto corrido: peso de fonte diferencia do texto ao redor, sem depender só de cor (acessibilidade) */
article p a,
article li a,
.faq-item p a,
.related h4 a {
  font-weight: 700;
  text-decoration: none;
}
article li strong { font-family: var(--font-mono); font-weight: 500; }

/* ---------- Home: Destaques, Prova Social e CTAs ---------- */
.hero-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 1.2em;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .8em;
  margin: 1.4em 0 1.8em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1em 1.2em;
  box-shadow: 0 2px 8px rgba(0,0,0,.03);
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: .4em .6em;
  border-right: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.trust-item:last-child {
  border-right: none;
}
.trust-item strong {
  font-size: .95rem;
  font-family: var(--font-display);
  color: var(--ink);
}
.trust-sub {
  font-size: .8rem;
  color: var(--ink-soft);
  margin-top: .2em;
}
.trust-item .stars {
  color: #f1c40f;
  font-size: 1.15rem;
  letter-spacing: 2px;
  line-height: 1;
  margin-bottom: .25em;
}
.trust-item .trust-icon {
  font-size: 1.25rem;
  margin-bottom: .25em;
  line-height: 1;
}
.trust-reviews {
  transition: background .15s ease, transform .15s ease;
}
.trust-reviews:hover {
  background: rgba(255, 153, 0, .07);
  border-radius: var(--radius);
  transform: translateY(-1px);
}

.hero-cta-row {
  display: flex;
  gap: 1em;
  align-items: stretch;
  margin: 1.2em 0 2.4em;
}
.hero-cta-row .btn.btn-whatsapp,
.hero-cta-row .btn-outline {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85em 1.2em;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  text-align: center;
  box-sizing: border-box;
  min-height: 50px;
  line-height: 1.3;
}
.hero-cta-row .btn.btn-whatsapp {
  border: 2px solid transparent;
}
.hero-cta-row .btn-outline {
  gap: .5em;
  border: 2px solid var(--brand);
}

@media (max-width: 680px) {
  .trust-bar {
    grid-template-columns: 1fr 1fr;
    gap: .6em;
    padding: .8em;
  }
  .trust-item:nth-child(2) {
    border-right: none;
  }
}
@media (max-width: 580px) {
  .hero-cta-row {
    flex-direction: column;
    gap: .75em;
  }
  .hero-cta-row .btn.btn-whatsapp,
  .hero-cta-row .btn-outline {
    width: 100%;
    flex: 1 1 auto;
    min-height: 48px;
  }
}
@media (max-width: 420px) {
  .trust-bar {
    grid-template-columns: 1fr;
  }
  .trust-item {
    border-right: none;
    border-bottom: 1px dashed var(--line);
    padding: .6em 0;
  }
  .trust-item:last-child {
    border-bottom: none;
  }
}

/* ---------- Lista estilo "painel de disjuntores" ---------- */
.breaker-list {
  display: flex;
  flex-wrap: wrap;
  gap: .9em;
  margin: 1.6em 0;
  padding-left: 0;
  list-style: none;
}
.breaker-item {
  flex: 1 1 calc((100% - 2*.9rem) / 3);
  position: relative;
  display: flex;
  align-items: center;
  gap: .9em;
  background: var(--surface-dark);
  border: 1px solid #2C3038;
  border-radius: 6px;
  padding: .9em 1.1em;
  text-decoration: none;
  color: var(--on-dark);
  font-weight: 600;
  font-size: .92rem;
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.breaker-item:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}
.breaker-toggle {
  width: 18px;
  height: 34px;
  background: #0F1115;
  border: 1px solid #2C3038;
  border-radius: 3px;
  position: relative;
  flex-shrink: 0;
}
.breaker-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 2px;
  right: 2px;
  height: 13px;
  background: var(--brand);
  opacity: .35;
  border-radius: 2px;
  transition: top .25s ease, opacity .25s ease, box-shadow .25s ease;
}
.breaker-item:hover .breaker-toggle::after {
  top: 18px;
  opacity: 1;
  box-shadow: 0 0 6px rgba(255,153,0,.6);
}
.breaker-led {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 5px rgba(46,204,113,.7);
  transition: background .25s ease, box-shadow .25s ease;
}
.breaker-item:hover .breaker-led {
  background: #e74c3c;
  box-shadow: 0 0 6px rgba(231,76,60,.8);
}
@media (max-width: 900px) {
  .breaker-item { flex-basis: calc((100% - .9rem) / 2); }
}
@media (max-width: 560px) {
  .breaker-item { flex-basis: 100%; }
}

/* ---------- Home: cards grandes de ferramentas (wallbox) ---------- */
.tool-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2em;
  margin: 1.6em 0 2em;
}
.tool-cards-grid .tool-card {
  flex: 1 1 calc((100% - 3*1.2em) / 4);
}
@media (max-width: 900px) {
  .tool-cards-grid .tool-card { flex-basis: calc((100% - 1.2em) / 2); }
}
@media (max-width: 560px) {
  .tool-cards-grid .tool-card { flex-basis: 100%; }
}
.tool-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6em 1.4em;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.tool-card:hover {
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.tool-card .icon-circle {
  width: 60px;
  height: 60px;
  font-size: 1.8rem;
  margin: 0 0 .7em;
}
.tool-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: .35em;
  color: var(--ink);
}
.tool-card p {
  font-size: .9rem;
  color: var(--ink-soft);
  margin-bottom: 0;
}

/* ---------- Variante compacta: linha de atalhos pras ferramentas de
   wallbox no topo de páginas internas (mesma ideia da home, só que
   menor e sem descrição, pra caber como CTA logo após o H1) ---------- */
.tool-cards-grid--compact {
  gap: .7em;
  margin: 1.2em 0 1.6em;
}
.tool-cards-grid--compact .tool-card {
  flex: 1 1 calc((100% - 5*.7em) / 6);
  display: flex;
  align-items: center;
  gap: .6em;
  padding: .7em .9em;
}
.tool-cards-grid--compact .tool-card:hover {
  transform: translateY(-2px);
}
.tool-cards-grid--compact .tool-card .icon-circle {
  width: 36px;
  height: 36px;
  font-size: 1.05rem;
  margin: 0;
  flex-shrink: 0;
}
.tool-cards-grid--compact .tool-card h3 {
  font-size: .85rem;
  margin-bottom: 0;
  line-height: 1.25;
}
.tool-cards-grid--compact .tool-card p {
  display: none;
}
@media (max-width: 900px) {
  .tool-cards-grid--compact .tool-card { flex-basis: calc((100% - 2*.7em) / 3); }
}
@media (max-width: 560px) {
  .tool-cards-grid--compact .tool-card { flex-basis: calc((100% - .7em) / 2); }
}

/* ---------- Home: círculo de ícone ---------- */
.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 153, 0, .13);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto .5em;
}

/* ---------- Home: card de conteúdo com fundo ---------- */
.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8em 1.6em;
  margin: 2em 0;
}
.content-card .icon-circle { margin: 0 0 .6em; }

/* Card de produto/anúncio (ex: link afiliado Mercado Livre) — card inteiro clicável, imagem pequena ao lado do texto */
.product-ad {
  display: block;
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  padding: 1.2em;
  background: var(--surface);
  margin: 1.6em 0;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.product-ad:hover {
  border-color: var(--brand-dark);
  box-shadow: 0 2px 10px rgba(255, 153, 0, .18);
}
.product-ad-inner {
  display: flex;
  gap: 1.1em;
  align-items: flex-start;
}
.product-ad img {
  width: 130px;
  height: auto;
  flex-shrink: 0;
  border-radius: var(--radius);
  display: block;
}
.product-ad-content { flex: 1; min-width: 0; }
.product-ad h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: .4em;
  color: var(--ink);
}
.product-ad p { margin-bottom: .6em; }
.product-ad ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1em;
}
.product-ad ul li {
  padding: .25em 0;
  color: var(--ink-soft);
  font-size: .92rem;
}
.product-ad ul li strong { color: var(--ink); }
.product-ad .btn {
  display: inline-block;
  pointer-events: none;
}
.product-ad .disclosure,
.disclosure {
  font-size: .78rem;
  color: var(--ink-soft);
  margin-top: .8em;
  margin-bottom: 0;
}
@media (max-width: 560px) {
  .product-ad-inner { flex-direction: column; align-items: center; text-align: center; }
  .product-ad img { width: 110px; }
}

/* Seção de aviso de segurança (destaque em vermelho suave) */
.warning {
  background: #FBEAEA;
  border: 1px solid #E8B4B0;
  border-radius: var(--radius);
  padding: 1.2em 1.4em;
}
.warning h2 { color: #B3261E; }
.warning p { color: #8C1F19; margin-bottom: .5em; }
.warning p:last-child { margin-bottom: 0; }

/* Lista de definição (termo: descrição) — sem check icon, sem fonte mono */
.definition-list {
  list-style: none;
  padding-left: 0;
}
.definition-list li {
  padding: .6em 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
}
.definition-list li:last-child { border-bottom: none; }
.definition-list li strong {
  font-family: var(--font-body);
  color: var(--ink);
}

/* Lista de serviços com ícone de check */
.service-list {
  list-style: none;
  padding-left: 0;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: .6em;
  color: var(--ink-soft);
}
.service-list li::before {
  content: "";
  flex-shrink: 0;
  width: 1.1em;
  height: 1.1em;
  margin-top: .15em;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Lista de especificações técnicas */
.spec-list {
  list-style: none;
  padding-left: 0;
}
.spec-list li {
  padding: .4em 0;
  border-bottom: 1px dashed var(--line);
}
.spec-list li:last-child { border-bottom: none; }
.spec-list strong { font-family: var(--font-mono); font-weight: 500; color: var(--ink); }

.car-install h4 {
  font-size: .95rem;
  font-weight: 600;
  margin-top: 1.2em;
  color: var(--ink-soft);
}

/* Cards de valores (página Sobre) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1em;
  margin-top: 1.2em;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2em;
}
.value-emoji {
  font-size: 1.6rem;
  display: block;
  margin-bottom: .4em;
}
.value-card h3 {
  font-size: 1rem;
  margin-bottom: .4em;
}
.value-card p {
  font-size: .9rem;
  margin: 0;
}

/* Menu de atalhos por categoria (emoji + rótulo) */
.service-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .6em;
  margin: 1.4em 0 2em;
}
.service-nav a {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .55em 1em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.service-nav a:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}
.service-nav span { font-size: 1.1em; }

/* Emoji nos títulos de seção */
article h2 span[aria-hidden] {
  margin-right: .3em;
}

/* Trava de segurança: nenhuma imagem dentro do artigo pode ultrapassar a largura do container, não importa o tamanho real do arquivo */
article img {
  max-width: 100%;
  height: auto;
}

/* Imagens dentro do texto do artigo */
.inline-img {
  margin: 1.2em 0;
}
.inline-img img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}

/* Blocos de fórmula/cálculo técnico */
.formula {
  font-family: var(--font-mono);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1em 1.2em;
  color: var(--ink);
  line-height: 1.6;
}

.related h4 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ---------- FAQ ---------- */
.faq-item {
  margin-bottom: 1.2em;
  padding-bottom: 1.2em;
  border-bottom: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: none; }
.faq-item h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 .4em;
}
.faq-item p { margin: 0; }

/* Frase de destaque dentro de um texto (autoridade/prova social) */
.highlight {
  margin: 1.4em 0;
  padding: .9em 1.2em;
  background: rgba(255, 153, 0, .08);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

/* ---------- CTA ---------- */
.cta {
  margin-top: 2.4em;
  padding: 1.6em;
  background: #F1EFEA;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.cta p { color: var(--ink); margin-bottom: .9em; font-family: var(--font-display); font-weight: 500; }
.btn, .cta .btn {
  display: inline-block;
  background: var(--brand);
  color: var(--brand-ink-on-brand);
  font-weight: 600;
  padding: .75em 1.6em;
  border-radius: var(--radius);
  border: none;
}
.btn:hover { background: var(--brand-dark); }

.btn.btn-whatsapp { 
  display: block; 
  width: 100%; 
  background: #25D366; 
  color: #000000; /* Corrigido para 6 dígitos */
  text-align: center; 
  box-sizing: border-box; 
  text-decoration: none; /* Remove sublinhado se for uma tag <a> */
  font-weight: bold; /* Melhora a leitura do texto preto no verde */
} 

.btn.btn-whatsapp:hover {
  background: #128C7E; /* Verde escuro oficial do WhatsApp */
  color: #ffffff; /* Texto muda para branco para garantir contraste perfeito (4.71:1) */
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--brand-dark);
  border: 2px solid var(--brand);
  font-weight: 600;
  padding: .7em 1.5em;
  border-radius: var(--radius);
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}
.btn-outline:hover { background: var(--brand); color: var(--brand-ink-on-brand); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  align-items: stretch;
  margin: 1.2em 0;
}
.cta-row a.btn.btn-whatsapp,
.cta-row .btn-outline {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85em 1.2em;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius);
  text-align: center;
  box-sizing: border-box;
  min-height: 50px;
  line-height: 1.3;
}
.cta-row a.btn.btn-whatsapp {
  border: 2px solid transparent;
}
@media (max-width: 580px) {
  .cta-row {
    flex-direction: column;
    gap: .75em;
  }
  .cta-row a.btn.btn-whatsapp,
  .cta-row .btn-outline {
    width: 100%;
    flex: 1 1 auto;
    min-height: 48px;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-dark);
  color: var(--on-dark-soft);
  margin-top: 3em;
  width: 100%;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, max-content));
  justify-content: center;
  gap: 2em 3em;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 3em 1.25em 1.5em;
}
.footer-col h2 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--brand);
  margin-bottom: .6em;
}
.footer-col p { color: var(--on-dark-soft); font-size: .92rem; }
.footer-col a { color: var(--on-dark-soft); }
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid #2C3038;
  margin-top: 1em;
  padding-top: 1.2em;
  font-size: .78rem;
  color: var(--on-dark-soft);
}
.footer-bottom a { color: var(--on-dark-soft); }

/* ---------- Responsivo ---------- */
@media (max-width: 640px) {
  .topbar { justify-content: center; }
  .main-nav ul { gap: 1em; }
}
@media (max-width: 480px) {
  .topbar { gap: .8em; font-size: .75rem; padding: .45em 1em; }
  :root { --topbar-h: 4.6em; } /* fallback sem JS nesse breakpoint */
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}