/* ==========================================================================
   OB Soin — Calm Healthcare Animations & Motion Accessibility
   ========================================================================== */

/* Hero load entrance */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-animate {
  opacity: 0;
  animation: heroFadeUp 0.75s var(--ease-calm) forwards;
}

.hero-animate-1 {
  animation-delay: 80ms;
}

.hero-animate-2 {
  animation-delay: 190ms;
}

.hero-animate-3 {
  animation-delay: 300ms;
}

.hero-animate-4 {
  animation-delay: 420ms;
}

/* Scroll reveal system (activated via IntersectionObserver in js/main.js) */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--duration-slow) var(--ease-calm),
    transform var(--duration-slow) var(--ease-calm);
  will-change: opacity, transform;
}

.js-ready [data-reveal='left'] {
  transform: translateX(-24px);
}

.js-ready [data-reveal='right'] {
  transform: translateX(24px);
}

.js-ready [data-reveal='scale'] {
  transform: scale(0.96);
}

.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Stagger delays */
[data-delay='1'] {
  transition-delay: 90ms;
}

[data-delay='2'] {
  transition-delay: 180ms;
}

[data-delay='3'] {
  transition-delay: 270ms;
}

[data-delay='4'] {
  transition-delay: 360ms;
}

[data-delay='5'] {
  transition-delay: 450ms;
}

/* Gentle floating motion on decorative watermarks */
@keyframes softFloat {
  0%,
  100% {
    transform: translateY(-45%);
  }
  50% {
    transform: translateY(calc(-45% - 10px));
  }
}

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

.watermark-ring {
  animation: softFloat 9s ease-in-out infinite;
}

.watermark-cross {
  animation: softFloatCross 10s ease-in-out infinite;
}

/* Strictly honor user reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js-ready [data-reveal],
  .hero-animate {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
