/* ==========================================================
   base.css — cores, fontes, fundo com bolhas, topo e botões
   ========================================================== */

@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --fundo: #070d17;
  --texto: #e9eef5;
  --texto-2: #9fb0c4;
  --marca: #4f7393;          /* azul-aço da marca */
  --marca-clara: #86abc9;
  --grafite: #262626;
  --linha: rgba(255, 255, 255, 0.09);
  --vidro: rgba(255, 255, 255, 0.035);
  --luz: #ffb872;            /* luz quente, ~3000K */
  --raio: 20px;
  --topo: 68px;
  --fonte-titulo: "Montserrat", system-ui, sans-serif;
  --fonte-texto: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topo) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 400 1rem/1.65 var(--fonte-texto);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--fonte-titulo); line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pular { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--marca); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.pular:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--marca-clara); outline-offset: 3px; border-radius: 6px; }

/* ---------- Fundo: degradê azul-escuro (sem bolhas: retiradas a pedido do dono) ---------- */
.fundo {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(120% 70% at 50% -10%, #14305a 0%, #0b1a33 40%, rgba(7, 13, 23, 0) 78%),
    radial-gradient(90% 60% at 100% 100%, #0c2142 0%, rgba(7, 13, 23, 0) 70%),
    var(--fundo);
}

/* ---------- Topo ---------- */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--topo);
  background: rgba(7, 13, 23, 0.62);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linha);
}
.topo__interno { max-width: 1240px; height: 100%; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 28px; }
.topo__logo { display: flex; flex: none; }
.topo__logo img { height: 34px; width: auto; }

.menu { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.menu a { text-decoration: none; font-size: 0.9rem; font-weight: 500; color: var(--texto-2); white-space: nowrap; transition: color 0.2s; }
.menu a:hover { color: #fff; }
.menu .menu__cta { color: #fff; }

.idiomas { display: flex; gap: 4px; }
.idiomas a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 10px; text-decoration: none; font-size: 0.78rem; font-weight: 600; color: var(--texto-2); transition: background 0.2s, color 0.2s; }
.idiomas a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.idiomas a[aria-current] { color: #fff; background: rgba(134, 171, 201, 0.16); box-shadow: inset 0 0 0 1px rgba(134, 171, 201, 0.3); }
.idiomas img { border-radius: 3px; display: block; }

.menu-botao { display: none; flex: none; width: 42px; height: 42px; border: 1px solid var(--linha); border-radius: 12px; background: transparent; cursor: pointer; position: relative; }
.menu-botao__barras, .menu-botao__barras::before, .menu-botao__barras::after { position: absolute; left: 12px; width: 16px; height: 2px; border-radius: 2px; background: #fff; content: ""; transition: transform 0.25s, opacity 0.2s; }
.menu-botao__barras { top: 19px; }
.menu-botao__barras::before { left: 0; top: -5px; }
.menu-botao__barras::after { left: 0; top: 5px; }
.topo[data-aberto] .menu-botao__barras { background: transparent; }
.topo[data-aberto] .menu-botao__barras::before { transform: translateY(5px) rotate(45deg); }
.topo[data-aberto] .menu-botao__barras::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 980px) {
  .topo__interno { gap: 12px; }
  .idiomas { margin-left: auto; }
  .menu-botao { display: block; }
  .menu {
    display: none; position: absolute; top: var(--topo); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 10px 20px 20px;
    background: rgba(7, 13, 23, 0.97); border-bottom: 1px solid var(--linha);
  }
  .topo[data-aberto] .menu { display: flex; }
  .menu a { padding: 14px 4px; font-size: 1rem; border-bottom: 1px solid var(--linha); }
  .menu .menu__cta { margin-top: 14px; text-align: center; border: 0; }
}
@media (max-width: 420px) {
  .idiomas span { display: none; }
  .topo__logo img { height: 28px; }
}

/* ---------- Botões ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border: 1px solid transparent; border-radius: 999px;
  background: var(--marca); color: #fff; font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, border-color 0.2s;
}
.botao:hover { background: #5d84a6; }
.botao:active { transform: translateY(1px); }
.botao--pequeno { padding: 9px 18px; font-size: 0.85rem; }
.botao--fantasma { background: transparent; border-color: var(--linha); color: var(--texto); }
.botao--fantasma:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.2); }
.botao--whatsapp { background: #128c4a; }
.botao--whatsapp:hover { background: #16a058; }
.botao[hidden] { display: none; }

main { padding-top: var(--topo); }

.eyebrow { font: 600 0.74rem/1 var(--fonte-titulo); letter-spacing: 0.18em; text-transform: uppercase; color: var(--marca-clara); }

/* ---------- Aparecer ao rolar ---------- */
.js .revelar { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .revelar.visivel { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .revelar { transform: none; transition: opacity 0.2s; }
}

/* ---------- Aviso de cookies (13/11/2026) ----------
   Cartão discreto no canto de baixo à esquerda (o botão do celular fica à direita). Não trava a página.
   O Meta Pixel só é ligado depois do "Aceitar" (js/rastreamento.js). */
.cookies {
  position: fixed; left: 20px; bottom: 20px; z-index: 70; width: min(420px, calc(100% - 40px));
  padding: 20px 22px 18px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 18, 32, 0.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  animation: cookies-entra 0.5s cubic-bezier(0.23, 1, 0.32, 1) both;
}
.cookies[hidden] { display: none; }

/* ===== WhatsApp preso no pé da tela, SÓ NO CELULAR (26/11/2026; js/whatsapp-flutuante.js) =====
   Verde do WhatsApp mais escuro (#128c4a, o mesmo do .botao--whatsapp) para o texto branco ser legível;
   um halo verde "respira" de tempos em tempos para chamar o olho, sem piscar. */
.wa-flutuante { display: none; }
@media (max-width: 760px) {
  .wa-flutuante {
    position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 65;
    display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 20px 0 14px; border-radius: 999px;
    color: #fff; text-decoration: none; font: 700 0.98rem/1 var(--fonte-texto);
    background: linear-gradient(160deg, #1fa85a, #0f7a40);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.14) inset;
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
  }
  .wa-flutuante svg { width: 28px; height: 28px; flex: none; }
  .wa-flutuante::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); animation: wa-halo 4s ease-out 1.2s infinite;
  }
  .wa-flutuante:active { transform: scale(0.96); }
  .wa-flutuante[hidden] { display: flex; opacity: 0; transform: translateY(24px) scale(0.92); pointer-events: none; }
  .wa-flutuante[hidden]::after { animation: none; }
  /* o botão do celular virtual vai para a esquerda: ver o fim do css/celular.css */
}
@keyframes wa-halo {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  35%, 100% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .wa-flutuante, .wa-flutuante::after { transition: none; animation: none; }
}
.cookies__titulo { font: 600 1rem/1.3 var(--fonte-titulo); margin-bottom: 6px; }
.cookies__texto { color: var(--texto-2); font-size: 0.88rem; line-height: 1.55; }
.cookies__texto a { color: var(--marca-clara); }
.cookies__acoes { display: flex; gap: 10px; margin-top: 16px; justify-content: flex-end; }
.cookies__acoes .botao { min-width: 110px; }
@media (max-width: 600px) {
  .cookies { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px 18px 16px; }
  .cookies__acoes .botao { flex: 1; }
}
@keyframes cookies-entra { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cookies { animation: none; } }

/* Rodapé: política de privacidade e "Preferências de cookies" (reabre o aviso) */
.rodape__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.rodape__legal a { text-decoration: none; }
.rodape__legal a:hover, .rodape__botao:hover { color: #fff; }
.rodape__botao { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
