/* ==========================================================================
   Elementor-style fly-in entrance animations.

   Reproduces the entrance library used on legitwebsolutions.com.ng:
   fadeIn, fadeInUp, fadeInDown, fadeInLeft and fadeInRight, with slow / fast
   durations, staggered delays and grow / shrink hover helpers. The original
   main.css and main.js remain byte-for-byte unchanged; this file only layers
   the fly-in states on top.
   ========================================================================== */

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

@keyframes lwsFadeInUp {
	from { opacity: 0; transform: translate3d(0, 100%, 0); }
	to   { opacity: 1; transform: none; }
}

@keyframes lwsFadeInDown {
	from { opacity: 0; transform: translate3d(0, -100%, 0); }
	to   { opacity: 1; transform: none; }
}

@keyframes lwsFadeInLeft {
	from { opacity: 0; transform: translate3d(-100%, 0, 0); }
	to   { opacity: 1; transform: none; }
}

@keyframes lwsFadeInRight {
	from { opacity: 0; transform: translate3d(100%, 0, 0); }
	to   { opacity: 1; transform: none; }
}

/* Hidden until the element scrolls into view, like Elementor's
   .elementor-invisible state. */
.js [data-lws-fly]:not(.lws-fly-in) {
	opacity: 0 !important;
	transform: none !important;
	visibility: hidden !important;
	transition: none !important;
}

.js [data-lws-fly].lws-fly-in {
	visibility: visible !important;
	animation-duration: 1.25s;
	animation-timing-function: var(--ease);
	animation-fill-mode: both;
	animation-delay: var(--lws-fly-delay, 0s);
	will-change: opacity, transform;
}

.js [data-lws-fly="fadeIn"].lws-fly-in     { animation-name: lwsFadeIn; }
.js [data-lws-fly="fadeInUp"].lws-fly-in    { animation-name: lwsFadeInUp; }
.js [data-lws-fly="fadeInDown"].lws-fly-in  { animation-name: lwsFadeInDown; }
.js [data-lws-fly="fadeInLeft"].lws-fly-in  { animation-name: lwsFadeInLeft; }
.js [data-lws-fly="fadeInRight"].lws-fly-in { animation-name: lwsFadeInRight; }

/* Elementor's .animated-slow / .animated-fast equivalents. */
.js [data-lws-fly].lws-fly-in.lws-fly--slow { animation-duration: 2s; }
.js [data-lws-fly].lws-fly-in.lws-fly--fast { animation-duration: .75s; }

/* Optional hover motion, matching Elementor's grow / shrink helpers. */
.lws-fly-grow { transition: transform .3s var(--ease); }
.lws-fly-grow:hover { transform: scale(1.1); }
.lws-fly-shrink { transition: transform .3s var(--ease); }
.lws-fly-shrink:hover { transform: scale(.9); }

/* A few native hover targets use the same grow / shrink motion. */
.lws-hero-kicker { transition: transform .3s var(--ease); }
.lws-hero-kicker:hover { transform: scale(1.1); }
.lws-faq__q i { transition: transform .3s var(--ease); }
.lws-faq__q:hover i { transform: scale(.9); }

/* Never hide content in the Elementor editor or for reduced-motion users. */
.elementor-editor-active [data-lws-fly],
.elementor-editor-active [data-lws-fly]:not(.lws-fly-in) {
	opacity: 1 !important;
	transform: none !important;
	visibility: visible !important;
	animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.js [data-lws-fly],
	.js [data-lws-fly]:not(.lws-fly-in),
	.js [data-lws-fly].lws-fly-in {
		opacity: 1 !important;
		transform: none !important;
		visibility: visible !important;
		animation: none !important;
		transition: none !important;
	}
}
