/* ==========================================================================
   db-motion.css · Daelim Belefic child theme
   --------------------------------------------------------------------------
   Motion preferences, site-wide.
   - Normal motion: in-page anchor links scroll smoothly.
   - "Reduce motion" turned on in the visitor's OS/browser: nothing moves.
     Transitions and animations finish instantly (state changes such as
     colours and open/closed still happen), entrance animations are skipped
     so content is simply visible, and hover lifts/zooms are switched off.

   The !important flags are intentional: this is an accessibility override
   and must beat every preset, module setting and inline animation style.

   Works with db-motion.js, which mirrors the same preference into the
   html.is-reduced-motion class and a "db:reduced-motion" event for scripts.
   No markup needed; load it on every page.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }

  /* every transition/animation completes at once */
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; transition-delay: 0s !important;
  }

  /* entrance-animation presets (static build class names): show the content in place */
  .js :is(.anim-reveal-up, .anim-reveal-up-100, .anim-reveal-up-200, .anim-reveal-up-300,
          .anim-reveal-left-100, .anim-reveal-left-200, .anim-reveal-left-300, .anim-fade) {
    opacity: 1 !important; transform: none !important; translate: none !important; animation: none !important;
  }
  /* Divi's own entrance-animation classes (Divi 4 names; confirm they are still used in Divi 5) */
  .et_animated, .et-waypoint, .et-animated { opacity: 1 !important; transform: none !important; animation: none !important; }

  /* header flyouts: no slide and no photo wipe */
  .db-flyout, .db-flyout-photos, .db-flyout-img { transform: none !important; clip-path: none !important; }

  /* no hover lift on link cards, no zoom on tall photos */
  .card-icon-link:hover, .image-tall-hover:hover img, .icon-btn:hover { transform: none !important; }
  :is(.s10-spec-card-photos__tall, .s10-spec-card-photos__small, .s11-two-col-feature__photo):hover { scale: none !important; }
}
