/* =====================================================================
   NOYRA — Efeitos visuais e microinterações
   A classe .fx no <html> é adicionada por script; sem JavaScript tudo
   aparece normalmente. Quem prefere menos movimento não vê animações.
   ===================================================================== */
:root{--ease-out:cubic-bezier(.16,.84,.3,1);--ease-soft:cubic-bezier(.4,.1,.2,1)}

/* ---------- Revelação ao rolar ---------- */
.fx .reveal{
  opacity:0;transform:translate3d(0,28px,0);
  transition:opacity .9s var(--ease-out),transform 1s var(--ease-out);
  transition-delay:var(--fx-delay,0ms);will-change:opacity,transform
}
.fx .reveal.is-visible{opacity:1;transform:none}

/* Ícones dos benefícios e passos "acendem" ao aparecer */
.fx .benefit .soft-circle,.fx .step-num,.fx .step-icon{transform:scale(.7);opacity:0;transition:transform .8s var(--ease-out),opacity .6s ease;transition-delay:calc(var(--fx-delay,0ms) + 150ms)}
.fx .is-visible .soft-circle,.fx .is-visible .step-num,.fx .is-visible .step-icon{transform:none;opacity:1}

/* ---------- Entrada do topo ---------- */
.fx .hero-copy > *{opacity:0;transform:translate3d(0,22px,0);transition:opacity 1s var(--ease-out),transform 1.1s var(--ease-out)}
.fx .hero-copy > :nth-child(1){transition-delay:.1s}
.fx .hero-copy > :nth-child(2){transition-delay:.25s}
.fx .hero-copy > :nth-child(3){transition-delay:.4s}
.fx .hero-copy > :nth-child(4){transition-delay:.55s}
.fx.fx-ready .hero-copy > *{opacity:1;transform:none}

.fx .hero-media{opacity:0;transform:scale(1.04);transition:opacity 1.4s var(--ease-soft) .15s,transform 1.8s var(--ease-out) .15s}
.fx.fx-ready .hero-media{opacity:1;transform:none}
.hero-media img{will-change:transform}

.fx .topbar{animation:fx-drop .8s var(--ease-out) both}
@keyframes fx-drop{from{opacity:0;transform:translateY(-100%)}to{opacity:1;transform:none}}

/* Seta "rolar" pulsando (mobile) */
.scroll-down{animation:fx-bob 2.4s ease-in-out infinite}
@keyframes fx-bob{0%,100%{transform:translate(-50%,0)}50%{transform:translate(-50%,6px)}}

/* ---------- Cabeçalho ao rolar ---------- */
.topbar{transition:background .3s ease,box-shadow .3s ease}
.nav{transition:height .35s var(--ease-out)}
.brand img{transition:width .35s var(--ease-out)}
.topbar.scrolled{background:rgba(249,240,234,.97);box-shadow:0 6px 24px rgba(60,40,25,.08)}
@media (min-width:761px){
  .topbar.scrolled .nav{height:62px}
  .topbar.scrolled .brand img{width:172px}
}

/* Barra de progresso de leitura */
.scroll-progress{
  position:fixed;left:0;right:0;top:0;height:2px;z-index:120;pointer-events:none;
  background:linear-gradient(90deg,#F59A45,var(--orange));transform:scaleX(0);transform-origin:0 50%
}

/* ---------- Botões ---------- */
.btn{position:relative;overflow:hidden;transition:transform .35s var(--ease-out),box-shadow .35s ease,background .25s ease,border-color .25s ease}
.btn:hover{transform:translateY(-2px)}
.btn:active{transform:translateY(0) scale(.98);transition-duration:.1s}
.btn-primary::after,.btn-whatsapp::after{
  content:"";position:absolute;top:0;bottom:0;left:-60%;width:40%;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.35),transparent);
  transform:skewX(-20deg);transition:left .7s var(--ease-soft);pointer-events:none
}
.btn-primary:hover::after,.btn-whatsapp:hover::after{left:120%}
.btn .ico{transition:transform .35s var(--ease-out)}
.btn:hover .ico{transform:translateX(4px)}
.btn-whatsapp:hover .ico,.buy-bar .btn:hover .ico{transform:scale(1.1)}

/* Links da navegação */
.nav-links a,.footer nav a{transition:color .25s ease}
.nav-links a:hover{color:var(--orange-ink)}
.icon-btn{transition:transform .3s var(--ease-out),color .25s ease}
.icon-btn:hover{transform:translateY(-2px);color:var(--orange-text)}
.social a{display:block;transition:transform .3s var(--ease-out),color .25s ease}
.social a:hover{transform:translateY(-3px)}

/* ---------- Cards ---------- */
.ingredient,.testimonial{transition:transform .5s var(--ease-out),box-shadow .5s ease,border-color .3s ease}
.ingredient img{transition:transform .9s var(--ease-out)}
.ingredient:hover{transform:translateY(-6px);box-shadow:0 18px 36px rgba(120,86,60,.14)}
.ingredient:hover img{transform:scale(1.06)}
.ingredient{overflow:hidden}
.testimonial:hover{transform:translateY(-5px);box-shadow:0 18px 40px rgba(120,86,60,.1);border-color:#ecd9c6}
.avatar{transition:transform .6s var(--ease-out)}
.testimonial:hover .avatar{transform:scale(1.04)}

.benefit .soft-circle svg,.step-icon svg{transition:transform .5s var(--ease-out)}
.benefit:hover .soft-circle svg,.step:hover .step-icon svg{transform:scale(1.12) rotate(-4deg)}
.trust li .trust-icon{transition:transform .4s var(--ease-out)}
.trust li:hover .trust-icon{transform:translateY(-3px)}

/* ---------- FAQ ---------- */
.faq-item summary{transition:color .25s ease}
.faq-item summary:hover{color:var(--orange-ink)}
.faq-item summary svg{transition:transform .4s var(--ease-out)}
.faq-item[open] p{animation:fx-faq .5s var(--ease-out)}
@keyframes fx-faq{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

/* ---------- Botão flutuante e barra de compra ---------- */
.wa-float{isolation:isolate;animation:fx-pop .7s var(--ease-out) 1.2s both}
.wa-float::before{
  content:"";position:absolute;inset:0;border-radius:inherit;background:#25D366;z-index:-1;
  animation:fx-ping 2.8s ease-out 2s infinite
}
@keyframes fx-pop{from{opacity:0;transform:translateY(20px) scale(.9)}to{opacity:1;transform:none}}
@keyframes fx-ping{0%{transform:scale(1);opacity:.4}70%,100%{transform:scale(1.5);opacity:0}}

@media (max-width:760px){
  .fx .buy-bar{transform:translateY(110%);transition:transform .5s var(--ease-out)}
  .fx .buy-bar.show{transform:none}
}

/* ---------- Páginas de checkout e conta ---------- */
.shop-body .co-step,.shop-body .summary-card,.shop-body .auth-card,.shop-body .confirm-card,
.shop-body .account-head,.shop-body .account-tabs,.shop-body .order{animation:fx-up .7s var(--ease-out) both}
.shop-body .co-step:nth-of-type(2){animation-delay:.08s}
.shop-body .co-step:nth-of-type(3){animation-delay:.16s}
.shop-body .co-step:nth-of-type(4){animation-delay:.24s}
.shop-body .summary-card{animation-delay:.12s}
.shop-body .order:nth-child(2){animation-delay:.08s}
.shop-body .order:nth-child(3){animation-delay:.16s}
@keyframes fx-up{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
.kit,.pay-option{transition:border-color .25s ease,box-shadow .3s ease,transform .35s var(--ease-out),background .25s ease}
.kit:hover,.pay-option:hover{transform:translateY(-2px)}
.totals dd{transition:color .3s ease}
.confirm-icon{animation:fx-check .8s var(--ease-out) .2s both}
@keyframes fx-check{0%{transform:scale(.4);opacity:0}60%{transform:scale(1.1);opacity:1}100%{transform:none}}

/* ---------- Botões "carregando" ---------- */
.btn.is-loading{color:transparent !important;pointer-events:none}
.btn.is-loading .ico{opacity:0}
.btn.is-loading::before{
  content:"";position:absolute;left:50%;top:50%;width:20px;height:20px;margin:-10px 0 0 -10px;
  border-radius:50%;border:2.5px solid rgba(255,255,255,.35);border-top-color:#fff;animation:fx-spin .7s linear infinite
}
.btn-outline.is-loading::before{border-color:rgba(17,17,17,.15);border-top-color:var(--ink)}
@keyframes fx-spin{to{transform:rotate(360deg)}}

/* ---------- Menos movimento ---------- */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none !important;transition:none !important}
  .scroll-progress{display:none}
}
