:root {
  --navy: #13203f;
  --navy-2: #1d2f5e;
  --yellow: #f7b500;
  --yellow-2: #ffc933;
  --yellow-soft: #fff1c7;
  --cream: #fbf5ea;
  --cream-2: #f4ead6;
  --brown: #8a3d14;
  --ink: #13203f;
  --muted: #4b5675;
  --white: #ffffff;
  --wa: #25d366;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(19, 32, 63, 0.12);
  --max: 1120px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* A rolagem suave dos links é feita em assets/site.js (curva e duração iguais em todo navegador). */
section[id] { scroll-margin-top: 76px; } /* não esconder o título atrás do cabeçalho fixo */
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 1rem; text-decoration: none;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--yellow); color: var(--navy); box-shadow: 0 6px 0 #c98f00; }
.btn-primary:hover { background: var(--yellow-2); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 2px 0 #c98f00; }
.btn-lg { font-size: 1.1rem; padding: 18px 30px; }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }

/* ---------- Header ---------- */
/* O fundo do cabeçalho fica num ::before acima do menu (z-index 1): assim o menu
   "mora" escondido atrás do cabeçalho e desce de trás dele, como uma gaveta. */
.header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid rgba(19, 32, 63, 0.08);
}
.header::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: rgba(251, 245, 234, 0.96);
  backdrop-filter: blur(8px);
}
.header .container > *:not(.nav) { position: relative; z-index: 2; }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.35rem; letter-spacing: .5px; }
.brand img { width: 46px; height: 46px; object-fit: cover; object-position: 50% 32%; border-radius: 50%; background: var(--yellow-soft); }
.brand span b { color: var(--yellow); }
/* Menu mobile em "gaveta": o painel inteiro desce de trás do cabeçalho, como se
   fosse puxado para baixo, e sobe de volta ao fechar. Fechado, fica invisível e
   fora da navegação por teclado. */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); --drawer-in: .5s; --drawer-out: .38s; }
.nav {
  display: flex; flex-direction: column; gap: 4px;
  position: absolute; top: 68px; left: 0; right: 0; z-index: 0;
  background: var(--cream); padding: 12px 16px 20px;
  border-bottom: 1px solid rgba(19, 32, 63, .08);
  box-shadow: 0 0 0 rgba(19, 32, 63, 0);
  visibility: hidden;
  transform: translateY(-100%);
  transition:
    transform var(--drawer-out) cubic-bezier(.55, 0, .7, .2),
    box-shadow var(--drawer-out) ease,
    visibility 0s linear var(--drawer-out);
}
.nav.open {
  visibility: visible; transform: translateY(0);
  box-shadow: 0 18px 40px rgba(19, 32, 63, .18);
  transition:
    transform var(--drawer-in) var(--ease-out),
    box-shadow var(--drawer-in) ease,
    visibility 0s;
}
.nav a { text-decoration: none; font-weight: 600; color: var(--muted); padding: 12px 4px; font-size: 1.05rem; }
.nav a:not(.btn) { border-bottom: 1px solid rgba(19, 32, 63, .06); }
.nav a:hover { color: var(--navy); }
/* Seção atual: no celular, barrinha amarela à esquerda; no computador, sublinhado (ver media query) */
.nav a:not(.btn) { position: relative; } /* transições ficam em ".nav > *" (uma regra só) */
.nav a.active { color: var(--navy); padding-left: 14px; }
.nav a:not(.btn)::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 0; border-radius: 2px;
  background: var(--yellow); transform: translateY(-50%); transition: height .25s ease;
}
.nav a.active::before { height: 60%; }
section[tabindex="-1"]:focus { outline: none; }
/* Os itens descem junto com a gaveta (sem fade próprio). */
.nav > * { transition: color .2s ease, padding-left .25s ease; }
.nav .btn { margin-top: 10px; color: var(--navy); }

/* Botão hambúrguer que vira "X" */
.nav-toggle {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--navy);
  background: transparent; color: var(--navy); cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.nav-toggle[aria-expanded="true"] { background: var(--navy); color: var(--yellow); }
.nav-toggle .bar {
  position: absolute; left: 11px; right: 11px; height: 2.5px; border-radius: 2px;
  background: currentColor;
  transition: transform .4s var(--ease-out), opacity .2s ease;
}
.nav-toggle .bar:nth-child(1) { transform: translateY(-6px); }
.nav-toggle .bar:nth-child(3) { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: rotate(-45deg); }

/* Fundo escurecido atrás do menu aberto (clicar nele fecha o menu) */
/* Sem backdrop-filter (desfoque): enquanto a página rola, o desfoque sumindo
   deixava uma "mancha" no meio da tela. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 15;
  background: rgba(19, 32, 63, .4);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .3s ease, visibility 0s linear .3s;
}
body.menu-open::before { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s ease, visibility 0s; }
/* Ao escolher um item do menu, o fundo some na hora para a rolagem começar limpa. */
body.menu-instant::before { transition: none; }

/* ---------- Hero ---------- */
/* isolation + z-index -1 nos enfeites: o logo (fundo claro) usa mix-blend-mode e
   precisa "enxergar" o fundo da seção para o branco sumir. */
.hero { position: relative; overflow: hidden; padding: 40px 0 64px; isolation: isolate; background: var(--cream); }
.hero::before {
  content: ""; position: absolute; right: -180px; top: -120px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, var(--yellow) 0 60%, transparent 61%);
  opacity: .9; z-index: -1;
}
.hero::after {
  content: ""; position: absolute; left: -10%; right: -10%; bottom: -60px; height: 120px;
  background: var(--navy); border-radius: 50% 50% 0 0 / 100% 100% 0 0; z-index: -1;
}
.hero .container { display: grid; gap: 28px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: var(--yellow); font-weight: 700; font-size: .85rem;
  padding: 6px 14px; border-radius: 999px; width: fit-content;
}
.hero h1 {
  font-weight: 800; font-size: clamp(2rem, 7vw, 3.6rem); line-height: 1.08;
  margin: 14px 0 12px; letter-spacing: -0.5px;
}
.hero h1 .hl { background: var(--yellow); padding: 0 10px; border-radius: 10px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero p.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 26px; max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.hero-note svg { width: 18px; height: 18px; color: #1a9e4b; }
/* Cartão com a mesma cor do fundo do logo (#f4f3f1), para o recorte ficar intencional. */
.hero-art {
  position: relative; max-width: 440px; margin: 0 auto;
  background: #f4f3f1; border-radius: 32px; overflow: hidden;
  box-shadow: 0 24px 50px rgba(19, 32, 63, 0.18); border: 6px solid var(--white);
}
.hero-art img { transform: scale(1.12); }

/* ---------- Seções ---------- */
.section { padding: 72px 0; }
.section-title { text-align: center; margin: 0 auto 40px; max-width: 640px; }
.section-title .kicker { color: var(--brown); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem; }
.section-title h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.15; margin: 8px 0 12px; font-weight: 800; }
.section-title p { color: var(--muted); margin: 0; }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy .section-title p { color: #c9d1e8; }
.section-navy .section-title .kicker { color: var(--yellow); }

/* Áreas */
.areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.area {
  background: var(--navy-2); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 20px 16px; text-align: center;
  transition: transform .15s ease, border-color .15s ease;
}
.area:hover { transform: translateY(-4px); border-color: var(--yellow); }
.area .icon {
  width: 54px; height: 54px; margin: 0 auto 12px; border-radius: 14px;
  background: var(--yellow); color: var(--navy); display: grid; place-items: center;
}
.area .icon svg { width: 28px; height: 28px; }
.area h3 { font-size: 1rem; margin: 0; font-weight: 700; }

/* Soluções digitais */
.solutions { display: grid; gap: 16px; }
.solution {
  background: var(--white); border-radius: var(--radius); padding: 24px 20px;
  box-shadow: var(--shadow); border-top: 5px solid var(--yellow);
  transition: transform .15s ease;
}
.solution:hover { transform: translateY(-4px); }
.solution .icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 14px;
  background: var(--navy); color: var(--yellow); display: grid; place-items: center;
}
.solution .icon svg { width: 26px; height: 26px; }
.solution h3 { font-size: 1.1rem; margin: 0 0 6px; line-height: 1.3; }
.solution p { margin: 0; color: var(--muted); font-size: .95rem; }
.solutions-cta { text-align: center; margin-top: 32px; }

/* Sobre */
.about { display: grid; gap: 32px; align-items: center; }
.about-text h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); line-height: 1.15; margin: 8px 0 16px; font-weight: 800; }
.about-text p { color: var(--muted); }
.goals { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.goals li { display: flex; gap: 14px; align-items: flex-start; background: var(--white); padding: 16px; border-radius: 14px; box-shadow: var(--shadow); }
.goals .check { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--yellow); color: var(--navy); display: grid; place-items: center; }
.goals .check svg { width: 18px; height: 18px; }
.goals strong { display: block; }
.goals span { color: var(--muted); font-size: .95rem; }
.about-art { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); max-width: 360px; margin: 0 auto; }

/* Como funciona */
.steps { display: grid; gap: 18px; counter-reset: step; }
.step { position: relative; background: var(--white); border-radius: var(--radius); padding: 28px 22px 22px; box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 22px;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--navy); color: var(--yellow); font-weight: 800; display: grid; place-items: center;
}
.step h3 { margin: 6px 0 6px; font-size: 1.1rem; }
.step p { margin: 0; color: var(--muted); }

/* Plataformas */
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.platform {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); border: 2px solid var(--cream-2); border-radius: 999px;
  padding: 12px 22px; font-weight: 700; font-size: 1.05rem;
}
.platform svg { width: 20px; height: 20px; color: #1a9e4b; }
.secure-note { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 22px; }

/* CTA final */
.cta {
  background: var(--navy); color: var(--white); border-radius: 28px;
  padding: 44px 22px; text-align: center; position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%;
  background: var(--yellow); opacity: .12; right: -80px; top: -100px;
}
.cta h2 { font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 0 0 10px; font-weight: 800; line-height: 1.15; }
.cta p { color: #c9d1e8; margin: 0 auto 26px; max-width: 46ch; }
.cta .btn { position: relative; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.btn-light { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.6); }
.btn-light:hover { border-color: var(--yellow); color: var(--yellow); }
.socials { display: flex; justify-content: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.socials a {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: var(--white); transition: background .15s ease, color .15s ease;
}
.socials a:hover { background: var(--yellow); color: var(--navy); }
.socials svg { width: 22px; height: 22px; }
/* Variante para fundo claro (topo e rodapé) */
.socials-light a { background: var(--navy); color: var(--yellow); }
.socials-light a:hover { background: var(--yellow); color: var(--navy); }
.footer .socials-light a { color: var(--yellow); }
.footer .socials-light a:hover { color: var(--navy); }
.socials-left { justify-content: flex-start; align-items: center; margin-top: 22px; }
.socials-label { font-weight: 700; font-size: .95rem; color: var(--navy); margin-right: 2px; }

/* Footer (compacto) */
.site-footer { background: var(--navy); color: #c9d1e8; font-size: .9rem; }
.footer-top { display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 28px; padding-bottom: 20px; text-align: center; }
.footer-top .brand { color: var(--white); font-size: 1.15rem; }
.footer-top .brand img { width: 40px; height: 40px; }
.footer-top .brand b { color: var(--yellow); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.footer-links a { color: #e6eaf5; text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--yellow); }
.footer-socials { margin-top: 0; gap: 8px; }
.footer-socials a { width: 38px; height: 38px; }
.footer-socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 14px 0 88px; font-size: .8rem; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; text-align: center; }
.footer-bottom a { color: #c9d1e8; text-decoration: none; }
.footer-bottom a:hover { color: var(--yellow); }

/* Botão flutuante */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 30;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 700;
  border-radius: 999px; padding: 14px; box-shadow: 0 10px 25px rgba(0,0,0,.25);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.05); }
.wa-float svg { width: 30px; height: 30px; }
.wa-float span { display: none; }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); animation: pulse 2.2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ---------- Página de texto (privacidade) ---------- */
.doc { max-width: 760px; padding: 48px 16px 120px; }
.doc h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.15; margin: 0 0 8px; }
.doc h2 { font-size: 1.25rem; margin: 32px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc .updated { font-size: .9rem; }

/* ---------- Tablet / desktop ---------- */
@media (min-width: 960px) {
  .footer-top { flex-direction: row; justify-content: space-between; text-align: left; }
  .footer-bottom { padding-bottom: 14px; }
  .footer-bottom .container { justify-content: space-between; }
}
@media (min-width: 720px) {
  .solutions { grid-template-columns: repeat(2, 1fr); }
  .areas { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .wa-float { padding: 14px 20px 14px 16px; }
  .wa-float span { display: inline; }
}
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav, .nav.open {
    display: flex; position: relative; z-index: 2; top: auto; flex-direction: row; align-items: center; gap: 28px;
    padding: 0; box-shadow: none; background: none; border: 0;
    visibility: visible; transform: none; transition: none;
  }
  .nav.open a, .nav a { padding: 0; font-size: 1rem; border: 0; }
  .nav a.active { padding-left: 0; }
  .nav a:not(.btn)::before {
    left: 0; right: 0; top: auto; bottom: -6px; width: auto; height: 3px;
    transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.16, 1, .3, 1);
  }
  .nav a.active::before { height: 3px; transform: scaleX(1); }
  body.menu-open::before { opacity: 0; visibility: hidden; }
  .nav .btn { margin-top: 0; padding: 10px 18px; }
  .hero { padding: 72px 0 120px; }
  .hero .container { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .solutions { grid-template-columns: repeat(4, 1fr); }
  .hero-art { max-width: 520px; }
  .about-text { text-align: center; }
  .about-text p { max-width: 70ch; margin-left: auto; margin-right: auto; }
  .goals { grid-template-columns: repeat(3, 1fr); text-align: left; }
  .cta { padding: 64px 40px; }
}

/* Quem pede "menos movimento" no sistema (Windows: Efeitos de animação desligados):
   a gaveta do menu continua descendo, só que mais rápida; sem pulso e sem efeitos de hover. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .btn, .area, .solution, .wa-float, .nav-toggle .bar { transition: none !important; }
  .btn:hover, .area:hover, .solution:hover, .wa-float:hover { transform: none; }
  :root { --drawer-in: .28s; --drawer-out: .22s; }
}
