/* ==========================================================================
   BASE — reset, fontes, tipografia, container, utilitários
   ========================================================================== */

/* ---- Fontes -------------------------------------------------------------- */
@font-face {
  font-family: "Helvetica Now Display";
  src: url("../fonts/HelveticaNowDisplay-Regular.woff2") format("woff2"),
    url("../fonts/HelveticaNowDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Helvetica Now Display";
  src: url("../fonts/HelveticaNowDisplay-Bold.woff2") format("woff2"),
    url("../fonts/HelveticaNowDisplay-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Lato — usada só nos cards de depoimento (é a fonte do Figma nessa seção).
   Subset latino auto-hospedado, baixado do Google Fonts. */
@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("../fonts/Lato-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Inter — usada só nos chips de taxa das seções de produto. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---- Reset --------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto; /* o smooth fica por conta do Lenis */
}

body {
  font-family: var(--ff-display);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--c-preto);
  background: var(--c-branco);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

/* Sem text-wrap: balance / pretty. O Figma quebra linha de forma gulosa
   (greedy) e o balance reagrupa as palavras — "16 anos de / mercado" virava
   "16 anos / de mercado". Fidelidade ao design vence o refinamento. */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: var(--lh-heading);
}

/* Sem letter-spacing customizado: a Helvetica Now Display já tem o tracking
   do design. Medido contra o Figma — qualquer ajuste aqui desalinha os
   títulos. */
h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

:focus-visible {
  outline: 2px solid var(--c-verde-lima);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection {
  background: var(--c-verde-lima);
  color: var(--c-lima-texto);
}

/* ---- Layout -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide {
  max-width: calc(var(--container-wide) + var(--gutter) * 2);
}

.container--narrow {
  max-width: calc(var(--container-narrow) + var(--gutter) * 2);
}

.container--tight {
  max-width: calc(var(--container-tight) + var(--gutter) * 2);
}

.section {
  position: relative;
  overflow: hidden; /* segura os elementos decorativos que estouram */
}

/* ---- Utilitários --------------------------------------------------------- */
.u-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.u-skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  z-index: var(--z-overlay);
  padding: var(--sp-3) var(--sp-5);
  background: var(--c-verde-lima);
  color: var(--c-lima-texto);
  font-weight: 700;
  border-radius: var(--r-btn);
}

.u-skip-link:focus {
  top: var(--sp-4);
}

/* ==========================================================================
   ESTADOS INICIAIS DE ANIMAÇÃO
   O CSS esconde; o GSAP revela. A classe .js no <html> garante que, se o JS
   falhar ou não carregar, nada fique invisível.
   ========================================================================== */

.js [data-anim="fade-up"] {
  opacity: 0;
  transform: translateY(40px);
}

.js [data-anim="fade-in"] {
  opacity: 0;
}

.js [data-anim="fade-down"] {
  opacity: 0;
  transform: translateY(-24px);
}

.js [data-anim="fade-left"] {
  opacity: 0;
  transform: translateX(-48px);
}

.js [data-anim="fade-right"] {
  opacity: 0;
  transform: translateX(48px);
}

.js [data-anim="scale-in"] {
  opacity: 0;
  transform: scale(0.9);
}

.js [data-anim="lines"] {
  opacity: 0;
}

/* Sem JS ou com movimento reduzido: tudo já no estado final. */
@media (prefers-reduced-motion: reduce) {
  .js [data-anim] {
    opacity: 1 !important;
    transform: none !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
