/* ============================================================
   Apulso — CSS partilhado (fundação)
   Carregado ANTES do <style> de cada página. Contém o que é
   comum a todas as páginas: reset, tokens, tipografia base,
   navegação, menu burger, rodapé, botões e animação "reveal".

   Objetivo: cada página deixa de repetir estas regras no seu
   <style> inline. Enquanto a migração não está completa, o
   <style> inline da página ganha (vem depois) — por isso é
   seguro ter as duas coisas ao mesmo tempo.
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green: #583ebd;
  --green-light: #2ff841;
  --off-white: #f4f1ec;
  --dark: #111110;
  --mid: #2a2a28;
  --text-muted: #888880;
  --nav-h: 72px;
}

html {
  scroll-behavior: smooth;
  /* aqui, não no body — overflow-x no body parte o position:fixed no
     WebKit real (iOS Safari e Chrome-iOS, que também é WebKit): se a
     página já tinha scroll quando o menu abre, o nav "fixo" herda esse
     scroll e a cruz do burger acaba escondida acima do ecrã. Não acontece
     no Chrome desktop nem no modo responsivo — é um bug específico do
     WebKit em dispositivo real. */
  overflow-x: hidden;
}

body {
  font-family: "Satoshi", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--off-white);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
}

/* ─── NAV ───────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  z-index: 100;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

nav.scrolled {
  background: rgba(17, 17, 16, 0.88);
}

.nav-logo img {
  height: 21px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 21px;
  list-style: none;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-cta {
  background: var(--green);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 0;
  opacity: 1 !important;
}

.nav-lang a {
  opacity: 0.6;
  font-weight: 500;
}

.nav-lang a:hover {
  opacity: 1;
}

/* ─── BURGER (mobile) ───────────────────────────────────── */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
  opacity: 0;
}

.nav-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── REVEAL ON SCROLL ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── BOTÕES (radius 0, mais ousado) ───────────────────── */
.btn,
.btn-green,
.btn-primary,
.btn-lime,
.btn-outline {
  display: inline-block;
  padding: 14px 32px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 0;
  transition: background 0.2s;
}

.btn-green,
.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-green:hover,
.btn-primary:hover {
  background: #4a33a3;
}

/* Verde-lima cheio, peso 700 — CTA de maior ênfase. */
.btn-lime {
  padding: 18px 34px;
  font-weight: 700;
  background: var(--green-light);
  color: var(--dark);
}

.btn-lime:hover {
  background: #25d635;
}

.btn-outline {
  border: 1.5px solid var(--dark);
  color: var(--dark);
  width: fit-content;
}

.btn-outline:hover {
  background: var(--dark);
  color: #fff;
}

/* ─── BOTÃO FLUTUANTE WHATSAPP (injetado por site.js em todas as páginas) ─ */
.wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  z-index: 300;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.32);
}

.wa-float svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

@media (max-width: 900px) {
  .wa-float {
    right: 16px;
    bottom: 16px;
    width: 50px;
    height: 50px;
  }

  .wa-float svg {
    width: 25px;
    height: 25px;
  }
}

/* ─── RODAPÉ ────────────────────────────────────────────── */
footer {
  background: var(--dark);
  color: #fff;
  padding: 80px 48px 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand img {
  height: 40px;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a,
.footer-social a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  transition: color 0.2s;
}

.footer-col ul a:hover,
.footer-social a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 4px;
  align-items: center;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ─── RESPONSIVE (base) ─────────────────────────────────── */
@media (max-width: 900px) {
  nav {
    padding: 0 24px;
  }

  .nav-burger {
    display: flex;
    z-index: 1000;
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex !important;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 999;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links.open a {
    font-size: 22px;
    letter-spacing: 0.06em;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 60px 24px 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
