/* =========================================================
   Camada de movimento — animações, rolagem suave e microinterações
   (tudo aqui é extra: sem este arquivo a página continua completa)
   ========================================================= */

:root {
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-back: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Rolagem suave (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Barra de progresso ---------- */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), #FFE680);
  transform: scaleX(var(--p, 0));
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- Cabeçalho dinâmico ---------- */
.site-header {
  transition: transform .5s var(--ease-out), background-color .35s, box-shadow .35s;
}
.site-header.is-scrolled {
  background: rgba(178, 56, 69, .88);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 12px 32px rgba(60, 0, 12, .28);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__logo img { transition: transform .4s var(--ease-back); }
.site-header__logo:hover img { transform: rotate(-5deg) scale(1.06); }
.site-header__nav a { position: relative; transition: color .3s; }
.site-header__nav a::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -2px;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.site-header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.site-header__burger rect { transform-box: fill-box; transform-origin: right; transition: transform .35s var(--ease-out); }
.site-header__burger:hover rect:nth-child(1) { transform: scaleX(.7); }
.site-header__burger:hover rect:nth-child(3) { transform: scaleX(.45); }

/* ---------- Botões ---------- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: background-color .3s, color .3s, transform .35s var(--ease-back), box-shadow .35s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(60, 0, 12, .28); }
.btn:active { transform: translateY(0) scale(.97); }
.btn--yellow::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .65) 50%, transparent 70%);
  transform: translateX(-130%);
  animation: shine 4s 2.2s infinite;
}
@keyframes shine {
  0%, 65% { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}

/* ---------- Hero ---------- */
.hero::before {
  transform-origin: 50% 0;
  scale: 1.06;
  translate: 0 var(--py, 0px);
  will-change: translate;
}
.motion .hero::before { animation: hero-zoom 2.6s var(--ease-out) backwards; }
@keyframes hero-zoom {
  from { scale: 1.22; filter: blur(10px) saturate(.5); }
  to { scale: 1.06; filter: none; }
}
.motion .hero__title span { animation: line-up 1.1s var(--ease-out) backwards; }
.motion .hero__l1 { animation-delay: .25s; }
.motion .hero__l2 { animation-delay: .4s; }
.motion .hero__l3 { animation-delay: .55s; }
@keyframes line-up {
  from { opacity: 0; transform: translateY(70%) skewY(4deg); clip-path: inset(0 -10% 100% -10%); }
  to { opacity: 1; transform: none; clip-path: inset(-40% -10% -40% -10%); }
}
.motion .hero .btn {
  animation: pop-in .9s var(--ease-back) .95s backwards, pulse 2.6s ease-out 2.4s infinite;
}
@keyframes pop-in { from { opacity: 0; transform: scale(.6) translateY(20px); } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 204, 0, .65); }
  70%, 100% { box-shadow: 0 0 0 18px rgba(255, 204, 0, 0); }
}

/* ---------- Faixa animada ---------- */
/* a faixa é mais larga que a tela e girada; o contêiner corta só as laterais
   (overflow-x: clip não cria área de rolagem e deixa a sombra/inclinação vazar em cima e embaixo) */
.ticker-wrap {
  position: relative;
  z-index: 3;
  overflow: hidden;
  padding-block: 40px;
  margin-block: -40px;
  pointer-events: none;
}
.ticker-wrap > .ticker { pointer-events: auto; }
@supports (overflow-x: clip) {
  .ticker-wrap { overflow-x: clip; overflow-y: visible; padding-block: 0; margin-block: 0; }
}
.ticker {
  position: relative;
  z-index: 3;
  width: calc(100% + 40px);
  margin: -22px 0 -22px -20px;
  padding: 14px 0;
  background: var(--wine);
  color: var(--yellow);
  border-block: 3px solid var(--yellow);
  transform: rotate(-1.6deg);
  overflow: hidden;
  box-shadow: 0 16px 30px -12px rgba(60, 0, 12, .5);
}
.ticker__track { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; align-items: center; gap: 30px; padding-right: 30px; }
.ticker span {
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker i { font-style: normal; color: #fff; font-size: 1.1rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Revelação ao rolar ---------- */
[data-reveal] {
  opacity: 0;
  transition:
    opacity .9s var(--ease-out),
    transform 1s var(--ease-out),
    clip-path 1.1s var(--ease-out),
    filter .9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal="up"] { transform: translateY(50px); }
[data-reveal="left"] { transform: translateX(-70px); }
[data-reveal="right"] { transform: translateX(70px); }
[data-reveal="zoom"] { transform: scale(.88) translateY(30px); filter: blur(6px); }
[data-reveal="pop"] { transform: scale(.5) rotate(-8deg); transition-timing-function: var(--ease-back); }
[data-reveal="wipe"] { opacity: 1; clip-path: inset(0 100% 0 0); }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
[data-reveal="wipe"].is-in { clip-path: inset(0 0 0 0); }
.talk__arrow[data-reveal="wipe"] { transition-duration: .5s; }

/* ---------- Por que a nossa ---------- */
.why__video .yt {
  border-radius: 18px;
  box-shadow: 0 34px 60px -24px rgba(120, 30, 0, .55);
  transition: transform .6s var(--ease-out), box-shadow .6s;
}
.why__video .yt:hover { transform: scale(1.025) rotate(-.6deg); box-shadow: 0 44px 70px -24px rgba(120, 30, 0, .65); }
.yt__play {
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: var(--red);
  animation: ring 2.2s ease-out infinite;
}
.yt__play::after { left: 33px; top: 27px; border-width: 15px 0 15px 24px; }
.yt:hover .yt__play { background: var(--wine); }
@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); }
  70%, 100% { box-shadow: 0 0 0 22px rgba(255, 255, 255, 0); }
}
.perk__icon, .perk__img img { animation: float 5s ease-in-out infinite; }
.perk__img--fryer img { animation-delay: -1.6s; }
.perk__img--factory img { animation-delay: -3.2s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Expansão ---------- */
.lpc-exp .lpc-svgpin > * {
  transform-origin: 12px 34px;
  transition: transform .8s var(--ease-back) var(--d, 0ms), opacity .4s var(--d, 0ms);
}
.lpc-exp.armed:not(.in-view) .lpc-svgpin > * { opacity: 0; transform: translateY(-40px) scale(.3); }
.lpc-exp .num { display: inline-block; font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- Modelos de negócio ---------- */
.models.armed:not(.in-view) .model__info > *,
.models.armed:not(.in-view) .model__photo { opacity: 0; }
.models.in-view .model.is-active { animation: none; }
.models.in-view .model.is-active .model__info > * { animation: rise .85s var(--ease-out) backwards; }
.models.in-view .model.is-active .model__heading { animation-delay: .05s; }
.models.in-view .model.is-active .model__name { animation-delay: .15s; }
.models.in-view .model.is-active .model__desc { animation-delay: .25s; }
.models.in-view .model.is-active .model__facts { animation: none; }
.models.in-view .model.is-active .model__facts > div { animation: rise .75s var(--ease-out) backwards; }
.models.in-view .model.is-active .model__facts > div:nth-child(1) { animation-delay: .35s; }
.models.in-view .model.is-active .model__facts > div:nth-child(2) { animation-delay: .42s; }
.models.in-view .model.is-active .model__facts > div:nth-child(3) { animation-delay: .49s; }
.models.in-view .model.is-active .model__facts > div:nth-child(4) { animation-delay: .56s; }
.models.in-view .model.is-active .model__facts > div:nth-child(5) { animation-delay: .63s; }
.models.in-view .model.is-active .model__facts > div:nth-child(6) { animation-delay: .7s; }
.models.in-view .model.is-active .model__photo {
  animation: photo-in 1.1s var(--ease-out) .15s backwards, bob 6s ease-in-out 1.3s infinite;
}
.model__facts img { transition: transform .4s var(--ease-back); }
.model__facts > div:hover img { transform: scale(1.18) rotate(-6deg); }
@keyframes rise { from { opacity: 0; transform: translateY(34px); } }
@keyframes photo-in { from { opacity: 0; transform: translateX(90px) rotate(5deg) scale(.9); } }
@keyframes bob { 50% { transform: translateY(-14px); } }

.models__nav { transition: background-color .3s, transform .35s var(--ease-back); }
.models__nav:hover { transform: translateY(-50%) scale(1.12); background: var(--yellow); color: var(--red); }

.dots button { transition: width .45s var(--ease-out), background-color .3s, border-radius .45s; }
.dots button[aria-current="true"] { width: 30px; border-radius: 6px; }

/* ---------- Perfis ---------- */
.profiles.armed:not(.in-view) .profile__photo,
.profiles.armed:not(.in-view) .profile__text { opacity: 0; }
.profile__photo { transform-origin: 0 100%; }
.profiles.in-view .profile.is-active .profile__photo { animation: ken 6s var(--ease-out) backwards; }
.profiles.in-view .profile.is-active .profile__heading { animation: rise .9s var(--ease-out) .15s backwards; }
.profiles.in-view .profile.is-active .profile__desc { animation: rise .9s var(--ease-out) .35s backwards; }
@keyframes ken { from { opacity: 0; transform: scale(1.1) translateX(-24px); } 20% { opacity: 1; } }

/* ---------- Formulário ---------- */
.join__form { perspective: 1200px; }
.lpc-card {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease-out), box-shadow .6s;
  box-shadow: 0 40px 80px -30px rgba(60, 0, 12, .6);
}
.lpc-card:focus-within { --rx: 0deg; --ry: 0deg; box-shadow: 0 46px 90px -30px rgba(60, 0, 12, .7); }

/* ---------- Fale com a gente ---------- */
.talk__wa { position: relative; border-radius: 50%; }
.talk__wa::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  animation: ring-cream 2.2s ease-out infinite;
}
@keyframes ring-cream {
  0% { box-shadow: 0 0 0 0 rgba(232, 226, 209, .7); }
  70%, 100% { box-shadow: 0 0 0 22px rgba(232, 226, 209, 0); }
}
.talk__wa.is-in:hover { transform: scale(1.08) rotate(-6deg); transition: transform .4s var(--ease-back); }

/* ---------- Rodapé ---------- */
.site-footer__menu a, .site-footer__legal a { position: relative; }
.social a { transition: transform .4s var(--ease-back), background-color .3s, opacity .9s var(--ease-out); }
.social a.is-in:hover, .social a:not([data-reveal]):hover { transform: translateY(-6px) scale(1.08); }
.social a[aria-label="Facebook"]:hover { background: #1877F2; }
.social a[aria-label="Instagram"]:hover { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social a[aria-label="YouTube"]:hover { background: #FF0000; }
.social a[aria-label="Twitter"]:hover { background: #1DA1F2; }
.social a[aria-label="LinkedIn"]:hover { background: #0A66C2; }
.social a[aria-label="TikTok"]:hover { background: #25F4EE; box-shadow: 4px 4px 0 #FE2C55; }

/* ---------- CTA fixo ---------- */
.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 990;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 30px;
  border-radius: 100px;
  background: var(--yellow);
  color: var(--red);
  font: 900 15px/1 var(--f-main);
  text-transform: uppercase;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .35);
  transform: translate(-50%, 180%);
  transition: transform .6s var(--ease-out), background-color .3s, color .3s;
}
.sticky-cta.is-on { transform: translate(-50%, 0); }
.sticky-cta:hover { background: var(--red); color: #fff; }
.sticky-cta svg { transition: transform .35s var(--ease-out); }
.sticky-cta:hover svg { transform: translateX(5px); }

@media (max-width: 767px) {
  .ticker { margin: -16px 0 -16px -20px; padding: 11px 0; }
  .ticker span { font-size: .95rem; }
  .perk__icon, .perk__img img { animation-name: float-sm; }
  @keyframes float-sm { 50% { transform: translateY(-4px); } }
  .profiles.armed:not(.in-view) .profile__tags li { opacity: 0; }
  .profiles.in-view .profile.is-active .profile__tags li { animation: rise .7s var(--ease-out) backwards; }
  .profiles.in-view .profile.is-active .profile__tags li:nth-child(1) { animation-delay: .45s; }
  .profiles.in-view .profile.is-active .profile__tags li:nth-child(2) { animation-delay: .53s; }
  .profiles.in-view .profile.is-active .profile__tags li:nth-child(3) { animation-delay: .61s; }
  .profiles.in-view .profile.is-active .profile__tags li:nth-child(4) { animation-delay: .69s; }
  .profile__photo { transform-origin: 50% 100%; }
  .sticky-cta { left: 16px; right: 16px; transform: translateY(180%); }
  .sticky-cta.is-on { transform: none; }
  .models__nav:hover { transform: translateY(-50%); }
}

/* ---------- Quem prefere menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-iteration-count: 1 !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; filter: none !important; }
  .ticker__track { animation: none !important; }
  .hero::before { translate: none; }
}
