/* =========================================================
   São José Consulting: base (tokens, tipografia, utilitários)
   Arquivo do líder. Construtores: não editem, peçam mudanças.
   ========================================================= */

:root {
  /* Cores */
  --verde: #158548; /* contraste 4,7:1 com branco (AA para texto pequeno) */
  --verde-vivo: #34D27F;
  --mata: #0A2A1C;
  --mata-2: #113A28;
  --papel: #F2F4EF;
  --tinta: #0A2A1C;
  --cinza: #5E6B63;
  --nevoa: #B9C7BE;
  --laranja: #7CC4FF; /* era laranja #FF6A2B; trocado a pedido do cliente (04/11/2026) */
  --kraft: #C9A57B;
  --kraft-escuro: #A9845A;
  --branco: #FFFFFF;
  --linha-escura: rgba(255, 255, 255, .14);
  --linha-clara: rgba(10, 42, 28, .14);

  /* Tipografia */
  --f-display: "Nata Sans", "Arial Black", sans-serif;
  --f-texto: "Albert Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Medidas */
  --max: 1440px;
  --pad: clamp(18px, 4.2vw, 80px);
  --secao-y: clamp(88px, 11vw, 180px);
  --raio: 28px;
  --raio-s: 16px;
  --topo-h: 84px;

  /* Movimento */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-forte: cubic-bezier(.7, 0, .2, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  font-family: var(--f-texto);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.55;
  font-weight: 400;
  color: var(--tinta);
  background: var(--papel);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* clip (e não hidden): não cria área de rolagem, então position: sticky continua funcionando */
}
html { overflow-x: clip; }

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul[role="list"], ol[role="list"] { list-style: none; }
:focus-visible { outline: 3px solid var(--laranja); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--verde-vivo); color: var(--mata); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pular {
  position: fixed; left: 16px; top: -60px; z-index: 999; background: var(--laranja); color: var(--mata);
  padding: 10px 18px; border-radius: 999px; font-weight: 700; text-decoration: none; transition: top .2s;
}
.pular:focus { top: 16px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }
.secao { position: relative; padding-block: var(--secao-y); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 2vw, 32px); }

/* Fundos (cada seção escolhe um) */
.fundo-mata  { background: var(--mata); color: var(--branco); }
.fundo-verde { background: var(--verde); color: var(--branco); }
.fundo-papel { background: var(--papel); color: var(--tinta); }
.fundo-branco { background: var(--branco); color: var(--tinta); }
.fundo-mata .suave, .fundo-verde .suave { color: var(--nevoa); }
.fundo-verde .suave { color: rgba(255,255,255,.82); }
.suave { color: var(--cinza); }

/* ---------- Tipografia ---------- */
.display, .t-mega, .t-xl, .t-l {
  font-family: var(--f-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: .9;
}
.t-mega { font-size: clamp(3.4rem, 10.4vw, 12.6rem); letter-spacing: -0.04em; }
.t-xl   { font-size: clamp(2.6rem, 6.4vw, 7.6rem); }
.t-l    { font-size: clamp(1.9rem, 3.6vw, 4rem); line-height: .95; }
.t-m    { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.3rem, 1.7vw, 1.9rem); line-height: 1.05; letter-spacing: -0.01em; }
.t-lead { font-size: clamp(1.1rem, 1.45vw, 1.45rem); line-height: 1.45; font-weight: 500; letter-spacing: -0.01em; }
.t-s    { font-size: .9rem; }
.t-num  { font-family: var(--f-display); font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: -0.04em; line-height: .85; }
.nowrap { white-space: nowrap; }
.medida { max-width: 62ch; }

/* ---------- Botões ---------- */
.btn {
  --btn-bg: var(--verde); --btn-cor: var(--branco);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 1.05em 1.9em; border-radius: 999px; background: var(--btn-bg); color: var(--btn-cor);
  font-family: var(--f-texto); font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none;
  overflow: hidden; isolation: isolate; transition: transform .3s var(--ease), color .3s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--btn-hover, var(--mata)); transform: translateY(101%); transition: transform .45s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--btn-cor-hover, var(--branco)); }
.btn:active { transform: scale(.97); }
.btn--escuro { --btn-bg: var(--mata); --btn-hover: var(--verde); }
.btn--claro  { --btn-bg: var(--branco); --btn-cor: var(--mata); --btn-hover: var(--laranja); --btn-cor-hover: var(--mata); }
.btn--laranja { --btn-bg: var(--laranja); --btn-cor: var(--mata); --btn-hover: var(--mata); }
.btn--linha  { --btn-bg: transparent; --btn-cor: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; --btn-hover: currentColor; }
.btn--linha:hover { color: var(--mata); }
.fundo-papel .btn--linha:hover, .fundo-branco .btn--linha:hover { color: var(--branco); }

/* ---------- Revelações (controladas por js/main.js) ---------- */
.js [data-reveal]:not([data-reveal="lines"]) { opacity: 0; transform: translateY(40px); }
.js [data-reveal="lines"] .linha-in { display: inline-block; transform: translateY(105%); }
.linha { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.linha-in { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal]:not([data-reveal="lines"]) { opacity: 1; transform: none; }
  .js [data-reveal="lines"] .linha-in { transform: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* =========================================================
   Componentes do shell (header, menu, preloader, botão flutuante)
   ========================================================= */

/* Preloader */
.preloader {
  position: fixed; inset: 0; z-index: 200; background: var(--mata); color: var(--branco);
  display: flex; align-items: flex-end; justify-content: space-between; padding: var(--pad);
}
.preloader__marca { width: clamp(120px, 12vw, 180px); opacity: .9; }
.preloader__num { font-family: var(--f-display); font-weight: 900; font-size: clamp(5rem, 18vw, 18rem); line-height: .8; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.preloader__barra { position: absolute; left: 0; bottom: 0; height: 6px; width: 100%; background: var(--verde-vivo); transform-origin: left; transform: scaleX(0); }
.no-js .preloader, .preloader.saiu { display: none; }

/* Header */
.topo {
  position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--topo-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-inline: clamp(16px, 3.1vw, 60px); color: var(--branco);
  transition: background .35s var(--ease), color .35s var(--ease), transform .45s var(--ease), box-shadow .35s;
}
.topo.rolou:not(.solido) { background: rgba(10, 42, 28, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.topo.solido { background: var(--branco); color: var(--tinta); box-shadow: 0 10px 40px rgba(10, 42, 28, .08); }
.topo.escondido { transform: translateY(-110%); }
.topo__logo { display: block; width: clamp(140px, 11vw, 200px); }
.topo__logo img { width: 100%; height: auto; }
.topo__logo .logo-escura { display: none; }
.topo.solido .topo__logo .logo-clara { display: none; }
.topo.solido .topo__logo .logo-escura { display: block; }
.topo__nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 34px); }
.topo__nav a:not(.btn) { text-decoration: none; font-weight: 700; font-size: clamp(14px, .95vw, 17px); position: relative; }
.topo__nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.topo__nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.topo__nav .btn { padding: .85em 1.4em; font-size: .92rem; }
.topo__menu-btn { display: none; align-items: center; gap: 10px; font-weight: 700; }
.topo__menu-btn span { display: block; width: 26px; height: 2px; background: currentColor; box-shadow: 0 7px 0 currentColor; margin-top: -7px; }
@media (max-width: 1100px) {
  .topo__nav a:not(.btn) { display: none; }
  .topo__menu-btn { display: inline-flex; }
}
@media (max-width: 560px) { .topo__nav .btn { display: none; } }

/* Menu em tela cheia */
.menu {
  position: fixed; inset: 0; z-index: 95; background: var(--verde); color: var(--branco);
  display: grid; grid-template-rows: auto 1fr auto; padding: 24px var(--pad) 40px;
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s var(--ease-forte), visibility 0s .7s;
}
.menu.aberto { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-forte); }
.menu__topo { display: flex; justify-content: space-between; align-items: center; }
.menu__fechar { font-weight: 700; font-size: 1rem; display: inline-flex; gap: 10px; align-items: center; }
.menu__links { align-self: center; list-style: none; display: grid; gap: .1em; }
.menu__links a { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; text-decoration: none; font-size: clamp(2.4rem, 8vw, 6rem); line-height: .95; letter-spacing: -0.03em; display: inline-block; transition: color .25s, transform .4s var(--ease); }
.menu__links a:hover { color: var(--mata); transform: translateX(.15em); }
.menu__rodape { display: flex; flex-wrap: wrap; gap: 12px 32px; font-weight: 600; }
.menu__rodape a { text-decoration: none; }

/* Botão flutuante (estilo Lounge Lizard) */
.flutuante {
  position: fixed; right: 0; bottom: clamp(24px, 9vh, 80px); z-index: 80;
  display: inline-flex; align-items: center; gap: .6em;
  background: var(--verde); color: var(--branco); text-decoration: none;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.01em;
  font-size: clamp(14px, 1.2vw, 22px); padding: .95em 1.4em .95em 1.5em; border-radius: 999px 0 0 999px;
  box-shadow: 0 14px 40px rgba(10, 42, 28, .28); transition: padding .3s var(--ease), background .3s, transform .5s var(--ease);
}
.flutuante:hover { padding-right: 2em; background: var(--laranja); color: var(--mata); }
.flutuante.sobre-verde { background: var(--mata); }
.flutuante.sobre-verde:hover { background: var(--laranja); }
.flutuante.escondido { transform: translateX(110%); }
.flutuante svg { width: 1.1em; height: 1.1em; }


/* =========================================================
   Rodada 2: componentes globais
   ========================================================= */

/* Fita de embalagem entre seções */
.fita {
  position: relative; z-index: 6; height: 0; pointer-events: none;
  overflow-x: clip; overflow-y: visible; /* a faixa passa das bordas, mas não cria rolagem lateral */
}
.fita__faixa { contain: layout paint; }
.fita__faixa {
  position: absolute; left: -5vw; right: -5vw; top: 0; transform: translateY(-50%) rotate(var(--fita-rot, -2.2deg));
  background: var(--fita-cor, var(--verde-vivo)); color: var(--fita-texto, var(--mata));
  overflow: hidden; white-space: nowrap; box-shadow: 0 12px 30px -12px rgba(10, 42, 28, .45);
  border-block: 2px solid rgba(10, 42, 28, .12);
}
.fita__trilho { display: inline-flex; will-change: transform; animation: fita-anda 60s linear infinite; animation-play-state: paused; }
.fita__trilho--volta { animation-name: fita-volta; }
@keyframes fita-anda { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
@keyframes fita-volta { from { transform: translate3d(-50%,0,0); } to { transform: translate3d(0,0,0); } }
@media (prefers-reduced-motion: reduce) { .fita__trilho { animation: none; } }
.fita__texto {
  display: inline-block; padding: .62em 0; padding-right: 1.4em;
  font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(14px, 1.35vw, 22px);
}
.fita--laranja { --fita-cor: #FF6A2B; --fita-texto: var(--mata); } /* faixa continua no laranja original (pedido do cliente 04/11/2026) */
.fita--kraft { --fita-cor: var(--kraft); --fita-texto: var(--mata); }
.fita--inversa { --fita-rot: 1.8deg; }

/* Barra de WhatsApp fixa no celular */
.barra-zap {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 85;
  display: none; align-items: center; justify-content: center; gap: .6em;
  min-height: 56px; border-radius: 999px; background: var(--verde-vivo); color: var(--mata);
  font-weight: 700; font-size: 1.02rem; text-decoration: none;
  box-shadow: 0 14px 36px -6px rgba(10, 42, 28, .65), 0 0 0 2px rgba(10, 42, 28, .12);
  transform: translateY(160%); transition: transform .45s var(--ease), background .3s;
}
.barra-zap svg { width: 22px; height: 22px; flex: none; }
.barra-zap.visivel { transform: none; }
@media (max-width: 860px) {
  .barra-zap { display: inline-flex; }
  .flutuante { display: none; }
}

/* modo leve (aparelho fraco): sem desfoque de vidro, que custa caro na placa de vídeo integrada */
.leve .topo.rolou:not(.solido) { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(10, 42, 28, .96); }
.leve * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }

/* seção fora da tela: animações decorativas param (main.js marca .fora-da-tela) */
.fora-da-tela, .fora-da-tela *, .fora-da-tela *::before, .fora-da-tela *::after { animation-play-state: paused !important; }
/* 25/11: menu do celular = 3 linhas (pedido dele) */
.topo__menu-btn { width: 44px; height: 44px; justify-content: center; border-radius: 50%; }
.topo__menu-btn span { width: 24px; height: 2.5px; border-radius: 2px; margin-top: -16px; box-shadow: 0 7px 0 currentColor, 0 14px 0 currentColor; }
.topo__menu-btn:active { background: color-mix(in srgb, currentColor 10%, transparent); }
/* 25/11: sem desfoque atrás do topo fixo: na Intel HD 4600 ele dava uma travada de ~0,25 s ao começar a rolar */
.topo.rolou:not(.solido) { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(10, 42, 28, .96); }
