/* =========================================================
   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, translate .25s var(--ease-out);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(60, 0, 12, .28); }
.btn:active { transform: translateY(0) scale(.97); }
.btn[data-reveal].is-in:hover { transform: translateY(-3px); }

/* ---------- Abertura: "Tudo começa com um sonho" ---------- */
.motion .story__title span { animation: line-up 1.1s var(--ease-out) backwards; }
.motion .story__l1 { animation-delay: .2s; }
.motion .story__l2 { animation-delay: .32s; }
.motion .story__l3 { animation-delay: .44s; }
.motion .story__l4 { animation-delay: .56s; }
@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 .kicker { animation: rise .8s var(--ease-out) .1s backwards; }
.motion .hero .btn { animation: pop-in .9s var(--ease-back) .85s backwards; }
.motion .hero__media img {
  animation: product-in 1.4s var(--ease-out) .3s backwards, float 7s ease-in-out 1.8s infinite;
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes product-in { from { opacity: 0; transform: translateY(60px) rotate(6deg) scale(.92); } }
@keyframes float { 50% { transform: translateY(-12px) rotate(-1deg); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.6); } }

/* ---------- Linha do tempo ---------- */
.tl__dot.is-lit { animation: lit .7s var(--ease-back); }
@keyframes lit { 40% { transform: scale(1.18); } }
.tl__item::before { transition: transform .7s var(--ease-out) .1s; }
.tl.armed .tl__item:not(.is-reached)::before { transform: scaleX(0); }
.tl__media img { transition: transform .8s var(--ease-out); }
.tl__card:hover .tl__media img { transform: scale(1.04); }
.tl__card { transition: box-shadow .5s, opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.tl__card:hover { box-shadow: 0 34px 60px -30px rgba(60, 0, 12, .5); }

/* ---------- 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(46px); }
[data-reveal="left"] { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal="zoom"] { transform: scale(.9) translateY(30px); filter: blur(6px); }
[data-reveal="pop"] { transform: scale(.6); 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 -2% 0 0); }
.people__arrow[data-reveal="wipe"] { transition-duration: 1.4s; }

/* ---------- Vídeos ---------- */
.yt {
  box-shadow: 0 34px 60px -24px rgba(0, 0, 0, .55);
  transition: transform .6s var(--ease-out), box-shadow .6s;
}
.yt:hover { transform: scale(1.02); box-shadow: 0 44px 70px -24px rgba(0, 0, 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); }
.factory .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); }
}
.feature__icon { transition: transform .45s var(--ease-back), background-color .3s; }
.feature:hover .feature__icon { transform: rotate(-8deg) scale(1.08); background: var(--wine); }
.stats__list strong .num { min-width: 1ch; }

/* ---------- 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; }

/* ---------- 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; }
  .hero__media { translate: none; }
  .tl__fill { transform: none; }
}
