/* Base compartilhada pelas páginas da BS Cob: ajustes gerais e as classes do motor de efeitos (fx.js). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; min-height: 100svh; overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

:root { --ease: cubic-bezier(.2, .8, .2, 1); --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; }

/* ---------- texto dividido ---------- */
.sp-w { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em .05em .2em; margin: -.14em -.05em -.2em; }
.sp-i { display: inline-block; will-change: transform; }
.js [data-split] .sp-i { transform: translateY(118%) rotate(6deg); transform-origin: 0 100%; transition: transform 1s var(--ease-out); transition-delay: calc(var(--d, 0ms) + var(--i) * var(--stagger, 38ms)); }
.js [data-split].is-in .sp-i { transform: none; }

/* ---------- entradas ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out) var(--d, 0ms), transform 1.1s var(--ease-out) var(--d, 0ms); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translateX(-40px); }
.js [data-reveal="right"] { transform: translateX(40px); }
.js [data-reveal="scale"] { transform: scale(.92); }
.js [data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease-out) var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="clip"].is-in { clip-path: inset(0 0 0 0); }

/* ---------- ímã e inclinação ---------- */
[data-magnetic] { transform: translate(calc(var(--tx, 0) * 1px), calc(var(--ty, 0) * 1px)); transition: transform .6s var(--ease-out); }
[data-magnetic].is-pulled { transition-duration: .14s; }
.js [data-reveal][data-magnetic].is-in { transform: translate(calc(var(--tx, 0) * 1px), calc(var(--ty, 0) * 1px)); }

/* ---------- cursor próprio (só nas páginas que têm .fx-cursor) ---------- */
.fx-cursor { display: none; }
.has-cursor .fx-cursor { display: block; position: fixed; inset: 0; z-index: 9999; pointer-events: none; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor summary { cursor: none; }
.fx-cursor__dot, .fx-cursor__ring { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform; }
.fx-cursor.is-hidden { opacity: 0; }

/* ---------- botão flutuante do WhatsApp ---------- */
.fx-wa { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 90; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; opacity: 0; transform: translateY(18px) scale(.8); pointer-events: none; transition: opacity .5s var(--ease-out), transform .6s var(--ease-back); }
.fx-wa.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fx-wa svg { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  .js [data-split] .sp-i, .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
}
