/**
 * Motion Pack - motion.css (loaded once, in the footer)
 *
 * NOTE: the rules that HIDE elements before JavaScript runs (anti-flicker) are
 * printed inline in <head> by PHP, because footer CSS would arrive too late.
 * This file holds everything else.
 */

/* --- Performance hints ---------------------------------------------------- */
.anim-hover-lift,
.anim-parallax {
	will-change: transform;
}

/* --- Hover lift: soft shadow (GSAP handles the upward movement) ------------ */
.anim-hover-lift {
	transition: box-shadow 0.3s ease;
}
.anim-hover-lift:hover,
.anim-hover-lift:focus-within {
	box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

/* --- Slide animations start off-screen sideways; stop a horizontal scrollbar.
       Only applied once motion.js is running. `clip` does not break sticky headers. */
html.mp-active body {
	overflow-x: clip;
}

/* --- Safety: never leave things hidden/moved in these situations ----------- */

/* Visitor prefers reduced motion. */
@media (prefers-reduced-motion: reduce) {
	.anim-fade-up,
	.anim-fade-in,
	.anim-slide-left,
	.anim-slide-right,
	.anim-scale-in,
	.anim-stagger > *,
	.anim-hover-lift,
	.anim-parallax {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
}

/* Elementor editor (extra protection; the plugin also does not load there). */
.elementor-editor-active .anim-fade-up,
.elementor-editor-active .anim-fade-in,
.elementor-editor-active .anim-slide-left,
.elementor-editor-active .anim-slide-right,
.elementor-editor-active .anim-scale-in,
.elementor-editor-active .anim-stagger > * {
	opacity: 1 !important;
	transform: none !important;
}


/* ---- v1.3 slideshows ---- */
.mp-slideshow { width: 100%; display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; position: relative; }
.mp-slideshow > .mp-slide {
	position: relative !important; top: auto !important; right: auto !important; bottom: auto !important; left: auto !important;
	grid-area: 1 / 1; width: 100% !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important;
	box-sizing: border-box; opacity: 0; visibility: hidden; pointer-events: none;
	transition: opacity .9s ease, visibility 0s linear .9s, transform .9s ease;
}
.mp-slideshow > .mp-slide.is-active { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .9s ease, visibility 0s, transform .9s ease; }
.mp-effect-slide > .mp-slide { transform: translateX(40px); }
.mp-effect-slide > .mp-slide.is-before { transform: translateX(-40px); }
.mp-effect-slide > .mp-slide.is-active { transform: none; }

.mp-dots { grid-area: 2 / 1; display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 24px; }
.mp-dot { width: 10px !important; height: 10px !important; min-width: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 999px !important; background: currentColor !important; opacity: .25; cursor: pointer; box-shadow: none !important; transition: opacity .3s ease, width .3s ease; }
.mp-dot.is-active { opacity: 1; width: 28px !important; }
.mp-arrow { background: none !important; border: 0 !important; box-shadow: none !important; color: inherit; font-size: 28px; line-height: 1; padding: 0 8px !important; cursor: pointer; opacity: .6; }
.mp-arrow:hover { opacity: 1; }

.mp-hero-dots { position: absolute; right: 48px; bottom: 32px; z-index: 5; display: flex; align-items: center; gap: 10px; }
.mp-hero-dots .mp-dot { background: #fff !important; opacity: .45; }
.mp-hero-dots .mp-dot.is-active { opacity: 1; }
.mp-hero-dots .mp-arrow { color: #fff; }
@media (max-width: 767px) { .mp-hero-dots { right: 20px; bottom: 20px; } }


/* ---- v1.4 marquee ---- */
.mp-marquee-track { display: flex; flex: none; flex-wrap: nowrap; width: max-content; animation: mp-marquee linear infinite; will-change: transform; }
.mp-marquee-set { display: flex; flex: none; flex-wrap: nowrap; align-items: center; white-space: nowrap; }
.mp-marquee-set > * { flex: none !important; width: auto !important; max-width: none !important; white-space: nowrap; }
@keyframes mp-marquee { from { transform: translateX(0); } to { transform: translateX(var(--mp-shift, -50%)); } }
