/* ==========================================================
   Faciclínica — animações
   O conteúdo só começa oculto quando o JS está ativo (html.js).
   ========================================================== */

/* Entrada do hero (on-load) */
html.js .hero-frame { clip-path: inset(3% 3% 3% 3% round 48px); transition: clip-path 1.4s var(--ease); }
html.js.is-loaded .hero-frame { clip-path: inset(0 0 0 0 round 28px); }
html.js .hero-bg { transform: scale(1.12); transition: transform 2.2s var(--ease); }
html.js.is-loaded .hero-bg { transform: scale(1); }

html.js .hero-title .line > span { transform: translateY(110%) rotate(3deg); transform-origin: left bottom; transition: transform 1.15s var(--ease); transition-delay: var(--d, 0s); }
html.js.is-loaded .hero-title .line > span { transform: translateY(0) rotate(0); }

html.js .load-fade { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
html.js.is-loaded .load-fade { opacity: 1; transform: none; }

html.js .hero-3d { opacity: 0; transform: scale(.82) translateY(30px); filter: blur(14px); transition: opacity 1.4s var(--ease) .35s, transform 1.6s var(--ease) .35s, filter 1.4s var(--ease) .35s; }
html.js.is-loaded .hero-3d { opacity: 1; transform: none; filter: none; }

/* Flutuação suave */
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes floatSpin { 0%, 100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -12px; rotate: 6deg; } }
.molecule, [data-float] { animation: floatSpin 9s ease-in-out infinite; }
.crystal { animation: float 7s ease-in-out infinite; }

/* Marquee editorial lento */
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-track { animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Indicador de rolagem */
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
.scroll-cue span { animation: cue 1.8s var(--ease) infinite; }

/* Pulso do botão WhatsApp */
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
.wa-float::before { animation: ring 2.6s var(--ease) infinite; }

/* Revelações ao rolar */
html.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--rd, 0s); }
html.js .reveal.in { opacity: 1; transform: none; }

html.js .reveal-clip > img:first-child { clip-path: inset(18% 12% 18% 12% round 28px); transition: clip-path 1.5s var(--ease); }
html.js .reveal-clip.in > img:first-child { clip-path: inset(0 0 0 0 round 0); }

/* Cookie banner */
.cookie-banner:not([hidden]) { animation: slideUp .7s var(--ease) both .8s; }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Menu mobile */
.mobile-menu a { transition: opacity .5s var(--ease), transform .5s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html.js .reveal, html.js .load-fade, html.js .hero-3d { opacity: 1; transform: none; filter: none; }
  html.js .hero-title .line > span { transform: none; }
  html.js .hero-frame, html.js .reveal-clip > img:first-child { clip-path: none; }
}
