/* =========================================================
   LEGACY CLAIM PARTNERS — ANIMATIONS
   ========================================================= */

/* ---- Keyframes ---- */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---- Scroll-reveal base state ----
   Elements start hidden/offset and are revealed by main.js
   via IntersectionObserver adding the .in-view class. */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
[data-animate].in-view { opacity: 1; transform: translateY(0); }

[data-animate="fade"] { transform: none; }
[data-animate="slide-left"] { transform: translateX(-40px); }
[data-animate="slide-left"].in-view { transform: translateX(0); }
[data-animate="slide-right"] { transform: translateX(40px); }
[data-animate="slide-right"].in-view { transform: translateX(0); }
[data-animate="zoom"] { transform: scale(0.92); }
[data-animate="zoom"].in-view { transform: scale(1); }

/* Staggering via inline custom property --d (delay in ms), set by main.js or inline style */
[data-animate] { transition-delay: var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  [data-animate] { opacity: 1; transform: none; transition: none; }
}

/* ---- Hover / card animations already declared in style.css via transitions ---- */

/* ---- Loading dots (used sparingly, e.g. form submit) ---- */
.dot-loader { display: inline-flex; gap: 4px; }
.dot-loader span {
  width: 6px; height: 6px; border-radius: 50%; background: currentColor;
  animation: dotPulse 1.2s ease-in-out infinite;
}
.dot-loader span:nth-child(2) { animation-delay: 0.15s; }
.dot-loader span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotPulse { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

/* ---- Ambient float for decorative elements ---- */
.floating { animation: floatSlow 6s ease-in-out infinite; }
