/* Bird IT — camada de animações (identidade própria: facetas das asas + pássaro) */

/* Menu fixo com efeito vidro ao rolar */
body > div:first-child { overflow-x: clip !important; }
header.ba-header { position: sticky; top: 0; z-index: 60; transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease; }
header.ba-header.ba-scrolled { background: rgba(255,255,255,.86) !important; -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); box-shadow: 0 8px 30px rgba(21,28,48,.10) !important; }

/* Facetas das asas se movendo no fundo do topo */
.ba-shards { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ba-shard { transform-box: fill-box; transform-origin: center; animation: baDrift 18s ease-in-out infinite alternate; }
@keyframes baDrift {
  0%   { transform: translate(0, 0) rotate(0deg); }
  50%  { transform: translate(18px, -14px) rotate(6deg); }
  100% { transform: translate(-12px, 10px) rotate(-4deg); }
}
.ba-spark { transform-box: fill-box; transform-origin: center; animation: baTwinkle 3.6s ease-in-out infinite; }
@keyframes baTwinkle { 0%,100% { opacity: 0; transform: scale(.4) rotate(45deg); } 50% { opacity: 1; transform: scale(1) rotate(45deg); } }

/* Pilares do topo flutuando */
.ba-float { animation: baFloat 6s ease-in-out infinite; transition: background-color .25s ease; }
.ba-float:hover { background: #26335A !important; }
@keyframes baFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Elementos surgindo ao rolar */
html.js-anim .ba-reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
html.js-anim .ba-reveal.ba-in { opacity: 1; transform: none; }

/* Cards levantando ao passar o mouse */
.ba-lift { transition: transform .25s ease, box-shadow .25s ease; }
.ba-lift:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(21,28,48,.14) !important; }
a[style*="background: #D8115D"][style*="border-radius: 999px"] { transition: box-shadow .25s ease, transform .25s ease, opacity .15s; }
a[style*="background: #D8115D"][style*="border-radius: 999px"]:hover { box-shadow: 0 10px 28px rgba(216,17,93,.45); transform: translateY(-2px); opacity: 1; }

/* Faixa de clientes em movimento */
.ba-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ba-track { display: flex; gap: 14px; width: max-content; animation: baScroll 48s linear infinite; }
.ba-track > div { flex: none; width: 176px; }
.ba-marquee:hover .ba-track { animation-play-state: paused; }
@keyframes baScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Fluxo do AMS: etapa ativa */
.ba-sd { transition: background-color .35s ease, box-shadow .35s ease; }
.ba-sd.ba-sd-on { background: #D8115D !important; box-shadow: 0 10px 26px rgba(216,17,93,.35); z-index: 2; }
.ba-sd.ba-sd-on > span:last-child { color: #FFFFFF !important; }
.ba-sd.ba-sd-on > span[style*="top: -17px"] { animation: baPulse 1.1s ease-out; }
@keyframes baPulse { 0% { box-shadow: 0 0 0 0 rgba(216,17,93,.6); } 100% { box-shadow: 0 0 0 14px rgba(216,17,93,0); } }

/* Pássaro pousando no convite final */
.ba-bird { position: absolute; width: 70px; height: auto; top: 26px; right: 360px; opacity: 0; pointer-events: none; z-index: 1; }
.ba-bird.ba-fly { animation: baFly 2.4s cubic-bezier(.25,.8,.3,1) forwards, baBob 4s ease-in-out 2.4s infinite; }
@keyframes baFly {
  0%   { opacity: 0; transform: translate(-420px, 120px) rotate(-14deg) scale(.6); }
  60%  { opacity: 1; transform: translate(-60px, -18px) rotate(6deg) scale(1.05); }
  100% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); }
}
@keyframes baBob { 0%,100% { opacity: 1; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-8px); } }
@media (max-width: 900px) { .ba-bird { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .ba-shard, .ba-spark, .ba-float, .ba-track, .ba-bird { animation: none !important; }
  .ba-bird { opacity: 1; }
  html.js-anim .ba-reveal { opacity: 1; transform: none; transition: none; }
}
