/* ==========================================================================
   JUG — motion layer (GSAP progressive enhancement)
   Loaded after brand.css. Initial hidden states are applied from JS
   (jug-motion.js adds `.js-motion` only when GSAP + motion are allowed), so
   content is never hidden when JS/GSAP is unavailable.
   ========================================================================== */

/* Subtle hover micro-interactions (CSS only; disabled with reduced motion) */
@media (prefers-reduced-motion: no-preference) {
	.js-motion .products .product,
	.js-motion .ts-service-style-1,
	.js-motion .ts-pricing-table-style1,
	.js-motion .blog-item {
		transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
		will-change: auto;
	}

	.js-motion .products .product:hover,
	.js-motion .ts-service-style-1:hover,
	.js-motion .ts-pricing-table-style1:hover {
		transform: translate3d(0, -3px, 0);
	}

	.js-motion .ts-button,
	.js-motion .blog-read,
	.js-motion .add_to_cart_button,
	.js-motion .brand-hero-actions a {
		transition: transform .2s ease, background-color .18s ease, border-color .18s ease;
	}

	.js-motion .ts-button:hover,
	.js-motion .blog-read:hover,
	.js-motion .add_to_cart_button:hover,
	.js-motion .brand-hero-actions a:hover {
		transform: translate3d(0, -1px, 0);
	}
}

/* Header shadow once the user scrolls (added by jug-motion.js) */
.main-header {
	transition: box-shadow .25s ease;
}

.main-header.is-scrolled {
	box-shadow: 0 8px 24px -18px rgba(37, 37, 37, .55);
}

/* When GSAP is active, revealed elements are composited only while animating;
   clearProps in the JS removes the inline transform afterwards. */
.js-motion .js-reveal {
	will-change: auto;
}

/* Accessibility: with reduced motion, force visible/static content no matter what */
@media (prefers-reduced-motion: reduce) {
	.js-motion .js-reveal,
	.js-motion .js-hero-item {
		opacity: 1 !important;
		transform: none !important;
	}

	.js-motion .products .product:hover,
	.js-motion .ts-service-style-1:hover,
	.js-motion .ts-pricing-table-style1:hover,
	.js-motion .ts-button:hover,
	.js-motion .blog-read:hover,
	.js-motion .add_to_cart_button:hover,
	.js-motion .brand-hero-actions a:hover {
		transform: none !important;
	}
}
