/**
 * Motion compartilhado — entrada + interação.
 * Modelos: fade, fadeUp/Down/Left/Right, blurUp, clipUp, zoomSoft, zoomIn, slipFade.
 */

.bbx-enter {
  --bbx-enter-delay: 0ms;
  --bbx-enter-duration: 700ms;
  --bbx-hover-ms: 700ms;
}

.bbx-enter:not(.is-inview) {
  opacity: 0;
}

.bbx-enter.is-inview {
  animation-duration: var(--bbx-enter-duration);
  animation-delay: var(--bbx-enter-delay);
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.bbx-enter--fade.is-inview { animation-name: bbx-m-fade; }
.bbx-enter--fadeUp.is-inview { animation-name: bbx-m-fade-up; }
.bbx-enter--fadeDown.is-inview { animation-name: bbx-m-fade-down; }
.bbx-enter--fadeLeft.is-inview { animation-name: bbx-m-fade-left; }
.bbx-enter--fadeRight.is-inview { animation-name: bbx-m-fade-right; }
.bbx-enter--blurUp.is-inview { animation-name: bbx-m-blur-up; }
.bbx-enter--clipUp.is-inview { animation-name: bbx-m-clip-up; }
.bbx-enter--zoomSoft.is-inview,
.bbx-enter--zoomIn.is-inview { animation-name: bbx-m-zoom; }
.bbx-enter--slipFade.is-inview { animation-name: bbx-m-slip; }

.bbx-text--fade:not(.is-inview),
.bbx-text--blurIn:not(.is-inview) {
  opacity: 0;
}
.bbx-text--fade.is-inview {
  animation: bbx-m-fade var(--bbx-enter-duration) var(--bbx-enter-delay) both;
}
.bbx-text--blurIn.is-inview {
  animation: bbx-m-blur-up var(--bbx-enter-duration) var(--bbx-enter-delay) both;
}

@keyframes bbx-m-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes bbx-m-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes bbx-m-fade-down {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: none; }
}
@keyframes bbx-m-fade-left {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: none; }
}
@keyframes bbx-m-fade-right {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes bbx-m-blur-up {
  from { opacity: 0; filter: blur(8px); transform: translateY(10px); }
  to { opacity: 1; filter: none; transform: none; }
}
@keyframes bbx-m-clip-up {
  from { opacity: 0; clip-path: inset(12% 0 0 0); transform: translateY(8px); }
  to { opacity: 1; clip-path: inset(0); transform: none; }
}
@keyframes bbx-m-zoom {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes bbx-m-slip {
  from { opacity: 0; transform: translateY(10px) skewY(1.5deg); }
  to { opacity: 1; transform: none; }
}

.bbx-hover--lift {
  transition: transform var(--bbx-hover-ms) ease, box-shadow var(--bbx-hover-ms) ease;
}
.bbx-hover--lift:hover {
  transform: translateY(-4px);
}
.bbx-hover--glow:hover {
  box-shadow: 0 0 0 1px rgba(245, 215, 110, 0.45), 0 14px 32px rgba(21, 42, 92, 0.14);
}
.bbx-hover--pulse:hover {
  animation: bbx-m-pulse var(--bbx-hover-ms) ease-in-out infinite;
}
@keyframes bbx-m-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* Canvas do Elementor: estado final, sem laço. O site publicado não tem esta classe. */
.bbx-is-editor .bbx-enter,
.bbx-is-editor .bbx-enter.is-inview,
.bbx-is-editor .bbx-text--fade,
.bbx-is-editor .bbx-text--fade.is-inview,
.bbx-is-editor .bbx-text--blurIn,
.bbx-is-editor .bbx-text--blurIn.is-inview,
.bbx-is-editor .bbx-reveal,
.bbx-is-editor .bbx-st,
.bbx-is-editor .bbx-ar,
.bbx-is-editor .bbx-ti,
.bbx-is-editor .bbx-card,
.bbx-is-editor.bbx-await .bbx-card:not(.is-in) {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
  clip-path: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.bbx-is-editor .bbx-ar .bbx-ln,
.bbx-is-editor .bbx-highlight.is-chip::before,
.bbx-is-editor .bbx-ti.is-pulse .bbx-dot,
.bbx-is-editor .bbx-tab::before,
.bbx-is-editor .bbx-card::before,
.bbx-is-editor .bbx-card::after,
.bbx-is-editor .bbx-card.is-gleam::after,
.bbx-is-editor .bbx-hover--pulse,
.bbx-is-editor .bbx-hover--pulse:hover {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .bbx-brasil:not(.bbx-force-motion) .bbx-enter,
  .bbx-6passos:not(.bbx-force-motion) .bbx-enter,
  .bbx-timeline:not(.bbx-force-motion) .bbx-enter,
  .bbx-cards:not(.bbx-force-motion) .bbx-enter,
  .bbx-abas:not(.bbx-force-motion) .bbx-enter {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
