*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.6; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Tipografia base */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; overflow-wrap: break-word; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem); font-weight: 700; margin-bottom: 0.6em; }
h3 { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem); font-weight: 700; }
.kicker { font-weight: 600; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--leaf-dark); margin-bottom: 1rem; }
.lead { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); color: var(--ink-muted); max-width: 62ch; }
.note { font-size: 0.9rem; opacity: 0.8; margin-top: 1.5rem; }

/* Seções */
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--dark { background: var(--forest); color: var(--on-dark); }
.section--dark .kicker { color: var(--leaf); }
.section--dark .lead { color: var(--on-dark-muted); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; min-height: 48px; padding: 0.75em 1.5em;
  border-radius: 999px; font: 600 1rem/1.2 var(--font-body); text-decoration: none; text-align: center; border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease-out), background-color 0.2s; max-width: 100%; }
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--forest); }
.btn--gold:hover { background: #F6CF6E; }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--small { min-height: 44px; padding: 0.55em 1.2em; font-size: 0.95rem; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Pular para conteúdo */
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--gold); color: var(--forest); padding: 12px 18px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* Topo */
.topbar { position: absolute; inset: 0 0 auto 0; z-index: 20; color: var(--on-dark); }
.topbar__inner { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); padding-block: 16px; }
.topbar__brand { display: inline-flex; align-items: center; min-height: 44px; margin-right: auto; }
.topbar__brand img { width: clamp(140px, 16vw, 200px); height: auto; }
.topbar__nav { display: none; gap: 4px; }
.topbar__nav a, .topbar__lang { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding-inline: 10px; text-decoration: none; font-weight: 500; font-size: 0.95rem; border-radius: 10px; }
.topbar__nav a:hover, .topbar__lang:hover { background: rgba(255, 255, 255, 0.1); }
.topbar__lang { border: 1px solid var(--line-dark); justify-content: center; }
.topbar__cta { display: none; }
@media (min-width: 1024px) { .topbar__nav { display: flex; } }
@media (min-width: 641px) { .topbar__cta { display: inline-flex; } }

/* CTA fixo no celular */
.mobile-cta { position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 30; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5); }
@media (min-width: 641px) { .mobile-cta { display: none; } }
@media (max-width: 640px) { .footer { padding-bottom: 96px; } }

/* Movimento (só quando o JS está ativo) */
.motion-ready .reveal { opacity: 0; transform: translateY(24px); }
.motion-live .reveal { transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.motion-ready .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .motion-ready .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
