/* ALG motion: scroll reveal + hover interactions (pages listed in main.php) */

html.alg-preload [data-elementor-type="wp-page"] { opacity: 0; }

/* Scroll reveal: soft fade-up */
body.alg-motion .alg-reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), translate 0.9s cubic-bezier(0.22, 1, 0.36, 1), scale 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}
/* Photos and artwork settle in from slightly smaller */
body.alg-motion .alg-reveal.alg-media { translate: 0 16px; scale: 0.97; }
body.alg-motion .alg-reveal.alg-in { opacity: 1; translate: 0 0; scale: 1; }

/* Buttons lift on hover */
body.alg-motion .e-button-base,
body.alg-motion .elementor-button,
body.alg-motion button[type="submit"] {
  transition: translate 0.25s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}
body.alg-motion .e-button-base:hover,
body.alg-motion .elementor-button:hover,
body.alg-motion button[type="submit"]:hover {
  translate: 0 -3px;
}

/* Cards grow slightly on hover */
body.alg-motion .alg-hover-grow {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
body.alg-motion .alg-hover-grow.alg-reveal {
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), translate 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
body.alg-motion .alg-hover-grow:hover {
  transform: scale(1.03);
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  body.alg-motion .alg-reveal { opacity: 1; translate: none; scale: none; transition: none; }
  body.alg-motion .alg-hover-grow:hover { transform: none; }
  body.alg-motion .e-button-base:hover, body.alg-motion .elementor-button:hover { translate: none; }
}
