/* Bless Animations — uses the individual translate/scale/rotate properties so it composes with
   any transform a widget already uses; every animation property is removed once finished (.bless-done). */

/* Before the script primes a widget: keep it hidden (no flash). Reverts automatically via the head failsafe. */
.bless-anim-on [data-bless-anim]:not(.bless-ready):not([data-bless-anim="none"]) { opacity: 0; }
/* Section overlapping the one above (e.g. case-study overview over the hero): its background must paint at once,
   or the hero shows full height first and then gets covered (looks like the banner jumps). Hide only its content. */
.bless-anim-on [data-bless-anim]:not(.bless-ready):not([data-bless-anim="none"]):has(.is-overlap) { opacity: 1; }
.bless-anim-on [data-bless-anim]:not(.bless-ready):not([data-bless-anim="none"]) .is-overlap > * { opacity: 0; }

.bless-anim-on .bless-fx:not(.bless-done) {
	transition-property: opacity, translate, scale, rotate, filter, clip-path !important;
	transition-duration: var(--bless-dur, 1600ms) !important;
	transition-delay: var(--bless-delay, 0ms) !important;
	transition-timing-function: cubic-bezier(.22, 1, .36, 1) !important;
	will-change: opacity, translate;
}

/* Hidden (pre-entrance) states */
.bless-anim-on .bless-fx:not(.bless-in):not([data-bless-fx="reveal"]) { opacity: 0 !important; }
.bless-anim-on .bless-fx[data-bless-fx="fade-up"]:not(.bless-in)    { translate: 0 90px !important; }
.bless-anim-on .bless-fx.bless-item[data-bless-fx="fade-up"]:not(.bless-in) { translate: 0 60px !important; }
.bless-anim-on .bless-fx[data-bless-fx="fade-down"]:not(.bless-in)  { translate: 0 -50px !important; }
.bless-anim-on .bless-fx[data-bless-fx="fade-left"]:not(.bless-in)  { translate: 70px 0 !important; }
.bless-anim-on .bless-fx[data-bless-fx="fade-right"]:not(.bless-in) { translate: -70px 0 !important; }
.bless-anim-on .bless-fx[data-bless-fx="zoom-in"]:not(.bless-in)    { scale: .88 !important; }
.bless-anim-on .bless-fx[data-bless-fx="zoom-out"]:not(.bless-in)   { scale: 1.1 !important; }
.bless-anim-on .bless-fx[data-bless-fx="rise-blur"]:not(.bless-in)  { translate: 0 90px !important; scale: .97 !important; }
.bless-anim-on .bless-fx[data-bless-fx="rise-blur"]:not(.bless-in):not(.bless-keepfilter) { filter: blur(8px) !important; }
.bless-anim-on .bless-fx[data-bless-fx="blur-in"]:not(.bless-in)    { scale: 1.05 !important; }
.bless-anim-on .bless-fx[data-bless-fx="blur-in"]:not(.bless-in):not(.bless-keepfilter) { filter: blur(14px) !important; }
.bless-anim-on .bless-fx[data-bless-fx="reveal"]:not(.bless-in)     { translate: 0 30px !important; }
.bless-anim-on .bless-fx[data-bless-fx="reveal"]:not(.bless-in):not(.bless-keepclip) { clip-path: inset(0 0 100% 0) !important; }
.bless-anim-on .bless-fx[data-bless-fx="reveal"].bless-in:not(.bless-done):not(.bless-keepclip) { clip-path: inset(0 0 0 0); }
.bless-anim-on .bless-fx[data-bless-fx="reveal"].bless-keepclip:not(.bless-in) { opacity: 0 !important; }

/* Repeated grid/list cards pop in one after another */
.bless-anim-on .bless-fx.bless-card:not(.bless-in) { scale: .92 !important; }

/* Cinematic image reveal: unmask from a rounded inset while settling from a slight zoom */
.bless-anim-on .bless-fx.bless-img:not(.bless-in) { scale: 1.12 !important; clip-path: inset(12% 8% 12% 8% round 16px) !important; }
.bless-anim-on .bless-fx.bless-img.bless-in:not(.bless-done) { clip-path: inset(0 0 0 0 round 0); }

/* Ambient: section glow blobs drift slowly */
@media (prefers-reduced-motion: no-preference) {
	[data-bless-ambient] [class*="glow"]:not(img):not(svg) { animation: bless-float 16s ease-in-out infinite alternate; will-change: translate; }
	[data-bless-ambient] [class*="glow"]:not(img):not(svg):nth-of-type(2n) { animation-duration: 20s; animation-direction: alternate-reverse; }
}
@keyframes bless-float {
	0%   { translate: 0 0; }
	50%  { translate: 40px -30px; }
	100% { translate: -30px 25px; }
}

/* ---------- Interactive hover effects (opt-in per widget, skipped inside carousels/sliders) ---------- */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	[data-bless-hover] .bless-hcard {
		transition: translate .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease, transform .45s ease, background-color .3s ease, color .3s ease, border-color .3s ease, opacity .3s ease, filter .3s ease;
	}
	[data-bless-hover] .bless-hcard:hover {
		translate: 0 -8px;
		box-shadow: 0 22px 45px -18px rgba(0, 174, 240, .55);
	}

	[data-bless-hover] :is(.ba-btn, .elementor-button, a[class*="btn"]:not([class*="btn"] a)) {
		transition: translate .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, background-color .3s ease, color .3s ease, border-color .3s ease, filter .3s ease;
	}
	[data-bless-hover] :is(.ba-btn, .elementor-button, a[class*="btn"]:not([class*="btn"] a)):hover {
		translate: 0 -3px;
		box-shadow: 0 12px 26px -10px rgba(0, 174, 240, .75);
		filter: brightness(1.08);
	}

	/* Logos: glow only, no pop */
	[data-bless-hover] [class*="logo"]:not([class*="carousel"] *, [class*="marquee"] *, [class*="slider"] *, [class*="track"] *) > img {
		transition: filter .35s ease;
	}
	[data-bless-hover] [class*="logo"]:not([class*="carousel"] *, [class*="marquee"] *, [class*="slider"] *, [class*="track"] *):hover > img {
		filter: drop-shadow(0 0 10px rgba(0, 174, 240, .55));
	}
}

/* Phones: shorter travel so entrances stay smooth and never push content sideways */
@media (max-width: 767px) {
	.bless-anim-on .bless-fx[data-bless-fx="fade-up"]:not(.bless-in),
	.bless-anim-on .bless-fx[data-bless-fx="rise-blur"]:not(.bless-in) { translate: 0 40px !important; }
	.bless-anim-on .bless-fx.bless-item[data-bless-fx="fade-up"]:not(.bless-in) { translate: 0 30px !important; }
	.bless-anim-on .bless-fx[data-bless-fx="fade-left"]:not(.bless-in)  { translate: 30px 0 !important; }
	.bless-anim-on .bless-fx[data-bless-fx="fade-right"]:not(.bless-in) { translate: -30px 0 !important; }
}

/* Rows that hold a group of cards (team rows, grids) never lift as one block */
[data-bless-hover] :is(.ba-team-row, .ba-member-panel).bless-hcard:hover { translate: none; box-shadow: none; }
