/**
 * Essential Classy Addons Pro - effects (Shape Divider, Floating, Parallax, Mouse Move, Tilt,
 * Ken Burns, Scroll Trigger, Cursor).
 *
 * Effects move elements with the individual `translate` / `rotate` / `scale` properties, so they
 * combine with each other and with Elementor's own Transform controls (which use `transform`).
 */

@property --ec-fx {
	syntax: "<length>";
	inherits: false;
	initial-value: 0px;
}

@property --ec-fy {
	syntax: "<length>";
	inherits: false;
	initial-value: 0px;
}

/* ------------------------------------------------------------ Shared movement */

.ec-float-yes,
.ec-parallax-yes,
.ec-mouse-yes {
	translate: calc(var(--ec-fx, 0px) + var(--ec-px, 0px) + var(--ec-mx, 0px)) calc(var(--ec-fy, 0px) + var(--ec-py, 0px) + var(--ec-my, 0px));
}

/* ------------------------------------------------------------ Floating (CSS only) */

.ec-float-yes {
	animation: ec-float var(--ec-float-dur, 3s) var(--ec-float-ease, ease-in-out) var(--ec-float-delay, 0s) infinite alternate;
}

.ec-float-dir-y {
	--ec-float-x: 0px;
	--ec-float-y: calc(var(--ec-float-dist, 20px) * -1);
}

.ec-float-dir-x {
	--ec-float-x: var(--ec-float-dist, 20px);
	--ec-float-y: 0px;
}

.ec-float-dir-diag {
	--ec-float-x: var(--ec-float-dist, 20px);
	--ec-float-y: calc(var(--ec-float-dist, 20px) * -1);
}

@keyframes ec-float {
	from {
		--ec-fx: 0px;
		--ec-fy: 0px;
	}

	to {
		--ec-fx: var(--ec-float-x, 0px);
		--ec-fy: var(--ec-float-y, -20px);
	}
}

/* ------------------------------------------------------------ Shape Divider */

.ec-shape-host {
	position: relative;
	isolation: isolate;
}

.ec-shape {
	position: absolute;
	left: 0;
	z-index: -1;
	width: 100%;
	overflow: hidden;
	line-height: 0;
	color: #ffffff;
	pointer-events: none;
	direction: ltr;
}

.ec-shape.ec-shape-front {
	z-index: 2;
}

.ec-shape-bottom {
	bottom: -1px;
}

.ec-shape-top {
	top: -1px;
}

.ec-shape svg {
	position: relative;
	left: 50%;
	display: block;
	width: calc(var(--ec-shape-w, 100) * 1%);
	height: var(--ec-shape-h, 80px);
	transform: translateX(-50%);
	fill: currentColor;
}

.ec-shape-top svg {
	transform: translateX(-50%) scaleY(-1);
}

.ec-shape-flip svg {
	transform: translateX(-50%) scaleX(-1);
}

.ec-shape-top.ec-shape-flip svg {
	transform: translateX(-50%) scale(-1, -1);
}

/* Animation (opt-in): flow slides the repeating track, rise gently changes the height. */
.ec-shape-flow .ec-shape-track {
	animation: ec-shape-flow var(--ec-shape-dur, 12s) linear infinite;
}

.ec-shape-flow-right .ec-shape-track {
	animation-direction: reverse;
}

.ec-shape-rise .ec-shape-wave {
	transform-box: fill-box;
	transform-origin: 50% 100%;
	animation: ec-shape-rise calc(var(--ec-shape-dur, 12s) / 3) ease-in-out infinite alternate;
}

.ec-shape-rise .ec-shape-wave:nth-child(2) {
	animation-delay: calc(var(--ec-shape-dur, 12s) / -7);
}

.ec-shape-rise .ec-shape-wave:nth-child(3) {
	animation-delay: calc(var(--ec-shape-dur, 12s) / -4);
}

.ec-shape-rise-inv .ec-shape-wave {
	transform-origin: 50% 0;
}

@keyframes ec-shape-flow {
	from {
		transform: translateX(0);
	}

	to {
		transform: translateX(-2000px);
	}
}

@keyframes ec-shape-rise {
	from {
		transform: scaleY(1);
	}

	to {
		transform: scaleY(0.72);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ec-shape-flow .ec-shape-track,
	.ec-shape-rise .ec-shape-wave {
		animation: none;
	}
}

/* ------------------------------------------------------------ Ken Burns */

.ec-kb-host {
	isolation: isolate;
}

.ec-kb-host.ec-kb-ready {
	background-image: none !important;
}

.ec-kb-wrap {
	position: absolute;
	inset: 0;
	z-index: -1;
	overflow: hidden;
	border-radius: inherit;
	pointer-events: none;
}

.ec-kb-layer {
	position: absolute;
	inset: 0;
	background-repeat: no-repeat;
}

.elementor-widget.ec-kb-yes {
	overflow: hidden;
}

.ec-kb-layer,
.elementor-widget.ec-kb-yes img {
	animation: ec-kb-in var(--ec-kb-dur, 10s) ease-in-out infinite alternate;
	will-change: scale, translate;
}

.ec-kb-dir-out .ec-kb-layer,
.elementor-widget.ec-kb-dir-out img {
	animation-name: ec-kb-out;
}

.ec-kb-dir-left .ec-kb-layer,
.elementor-widget.ec-kb-dir-left img {
	animation-name: ec-kb-left;
}

.ec-kb-dir-right .ec-kb-layer,
.elementor-widget.ec-kb-dir-right img {
	animation-name: ec-kb-right;
}

@keyframes ec-kb-in {
	from { scale: var(--ec-kb-from, 1); }
	to { scale: var(--ec-kb-to, 1.2); }
}

@keyframes ec-kb-out {
	from { scale: var(--ec-kb-to, 1.2); }
	to { scale: var(--ec-kb-from, 1); }
}

@keyframes ec-kb-left {
	from {
		scale: var(--ec-kb-to, 1.2);
		translate: 3% 0;
	}

	to {
		scale: var(--ec-kb-to, 1.2);
		translate: -3% 0;
	}
}

@keyframes ec-kb-right {
	from {
		scale: var(--ec-kb-to, 1.2);
		translate: -3% 0;
	}

	to {
		scale: var(--ec-kb-to, 1.2);
		translate: 3% 0;
	}
}

/* ------------------------------------------------------------ Scroll Trigger */

.ec-st {
	opacity: var(--ec-st-o, 0);
	translate: var(--ec-st-x, 0px) var(--ec-st-y, 0px);
	scale: var(--ec-st-s, 1);
	rotate: var(--ec-st-r, 0deg);
	transition-property: opacity, translate, scale, rotate;
	transition-duration: var(--ec-st-dur, 800ms);
	transition-timing-function: var(--ec-st-ease, cubic-bezier(0.2, 0.8, 0.2, 1));
	transition-delay: var(--ec-st-delay, 0ms);
}

.ec-st.ec-st-in {
	opacity: 1;
	translate: 0 0;
	scale: 1;
	rotate: 0deg;
}

/* ------------------------------------------------------------ Tilt */

.ec-tilt-glare {
	position: absolute;
	inset: 0;
	z-index: 3;
	border-radius: inherit;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}

/* ------------------------------------------------------------ Cursor */

.ec-cursor {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 2147483000;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.ec-cursor.is-on {
	opacity: 1;
}

.ec-cursor > span {
	position: absolute;
	top: 0;
	left: 0;
	display: block;
	box-sizing: border-box;
	border-radius: 50%;
	will-change: transform;
}

.ec-cursor img {
	display: block;
	max-width: none;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.ec-cursor-hide,
.ec-cursor-hide * {
	cursor: none !important;
}

/* ------------------------------------------------------------ Reduced motion */

@media (prefers-reduced-motion: reduce) {
	.ec-float-yes,
	.ec-kb-layer,
	.elementor-widget.ec-kb-yes img {
		animation: none !important;
	}

	.ec-st {
		opacity: 1 !important;
		translate: none !important;
		scale: none !important;
		rotate: none !important;
		transition: none !important;
	}
}
