/*
 * Premium animation layer (body.wm-premium). Rule of the file: nothing is ever
 * hidden while a page loads; elements only move, grow or catch the light.
 * Uses translate / scale / rotate so it does not fight the scroll animations.
 */
@media (prefers-reduced-motion: no-preference) {
	/* First screen: the hero content glides up. It is visible from the first frame. */
	body.wm-premium .wm-hero .elementor-widget { animation: wm-p-up .8s cubic-bezier(.2,.8,.2,1) backwards; }
	body.wm-premium .wm-hero .elementor-widget:nth-child(2) { animation-delay: .07s; }
	body.wm-premium .wm-hero .elementor-widget:nth-child(3) { animation-delay: .14s; }
	body.wm-premium .wm-hero .elementor-widget:nth-child(n+4) { animation-delay: .2s; }
	body.wm-premium .wm-illu svg { animation: wm-p-float 6s ease-in-out infinite; }
	body.wm-premium .wm-deco svg { animation: wm-p-spin 38s linear infinite; }

	/* Buttons: a light sweep, a lift on hover and a press on tap. */
	body.wm-premium .elementor .elementor-button, body.wm-premium .wm-header__cta, body.wm-premium .wmc-btn { position: relative; overflow: hidden; transition: translate .25s ease, scale .15s ease, box-shadow .3s ease, background-color .25s ease, color .25s ease; }
	body.wm-premium .elementor .elementor-button::after, body.wm-premium .wmc-btn::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; pointer-events: none; background: linear-gradient(100deg, transparent, rgba(255,255,255,.38), transparent); translate: -130% 0; animation: wm-p-shine 4.6s ease-in-out infinite; }
	body.wm-premium .elementor .elementor-button:active, body.wm-premium .wm-header__cta:active, body.wm-premium .wmc-btn:active { scale: .96; }

	/* Cards: soft lift and glow; pictures zoom gently. */
	body.wm-premium .elementor .e-con.wm-card, body.wm-premium .elementor .e-con.wm-price, body.wm-premium .wmc-card, body.wm-premium .wmc-review, body.wm-premium .wm-post-card { transition: translate .35s cubic-bezier(.2,.8,.2,1), scale .2s ease, box-shadow .35s ease; }
	body.wm-premium .wm-card .elementor-icon, body.wm-premium .wm-card .elementor-widget-image img { transition: scale .35s ease, rotate .35s ease; }
	body.wm-premium .elementor-widget-image:not(.wm-no-anim) img, body.wm-premium .wmc-card img, body.wm-premium .wm-post-card img { transition: scale .6s cubic-bezier(.2,.8,.2,1); }

	/* Icons breathe once their section is on screen. */
	body.wm-premium .wm-p-seen .elementor-icon { animation: wm-p-pop .7s cubic-bezier(.2,.9,.25,1.5) backwards; }

	/* Back-to-top and WhatsApp buttons draw the eye gently. */
	body.wm-premium .wm-header__wa { animation: wm-p-pulse 2.8s ease-out infinite; }

	@media (hover: hover) and (pointer: fine) {
		body.wm-premium .elementor .elementor-button:hover, body.wm-premium .wm-header__cta:hover, body.wm-premium .wmc-btn:hover { translate: 0 -3px; }
		body.wm-premium .elementor .e-con.wm-card:hover, body.wm-premium .elementor .e-con.wm-price:hover, body.wm-premium .wmc-card:hover, body.wm-premium .wmc-review:hover, body.wm-premium .wm-post-card:hover { translate: 0 -8px; box-shadow: 0 28px 50px -28px rgba(20,20,40,.4); }
		body.wm-premium .wm-card:hover .elementor-icon { scale: 1.12; rotate: -7deg; }
		body.wm-premium .elementor-widget-image:not(.wm-no-anim):hover img, body.wm-premium .wmc-card:hover img, body.wm-premium .wm-post-card:hover img { scale: 1.04; }
		body.wm-premium .wm-menu > li > a { transition: translate .25s ease, background-color .25s ease, color .25s ease; }
		body.wm-premium .wm-menu > li > a:hover { translate: 0 -2px; }
	}
	@media (hover: none) {
		body.wm-premium .elementor .e-con.wm-card:active, body.wm-premium .wmc-card:active, body.wm-premium .wm-post-card:active { scale: .98; }
	}

	@keyframes wm-p-up { from { translate: 0 26px; } to { translate: 0 0; } }
	@keyframes wm-p-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
	@keyframes wm-p-spin { to { rotate: 360deg; } }
	@keyframes wm-p-shine { 0% { translate: -130% 0; } 35%, 100% { translate: 330% 0; } }
	@keyframes wm-p-pop { from { scale: .4; rotate: -25deg; } to { scale: 1; rotate: 0deg; } }
	@keyframes wm-p-pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(37,211,102,0); } }
}
