/* Ventomedica motion 2.2.0 */

/* 1) Elementi skriveni do animacije (profili Početna + Start). Klasu
      vm-motion-pending postavlja inline skripta u <head>, motion.js je uklanja
      čim preuzme kontrolu (fallback: 3 s). Liste MORAJU odgovarati PREHIDE_HOME
      i PREHIDE_START u ventomedica-motion.js — generirano iz njih.          */
html.vm-motion-pending .vm-home .vm-hero__content > .vm-hero-kicker,
html.vm-motion-pending .vm-home .vm-hero__content > .vm-title,
html.vm-motion-pending .vm-home .vm-hero__content > p:not(.vm-hero-kicker),
html.vm-motion-pending .vm-home .vm-hero__content > .vm-actions,
html.vm-motion-pending .vm-home .vm-path__intro > *,
html.vm-motion-pending .vm-home .vm-path .vm-card,
html.vm-motion-pending .vm-home .vm-path .vm-pills,
html.vm-motion-pending .vm-home .vm-brands__title,
html.vm-motion-pending .vm-home .vm-brand,
html.vm-motion-pending .vm-home .vm-review__grid > div:first-child > .vm-eyebrow,
html.vm-motion-pending .vm-home .vm-review__grid > div:first-child > .vm-section-title,
html.vm-motion-pending .vm-home .vm-review__grid > div:first-child > .vm-lead,
html.vm-motion-pending .vm-home .vm-review .vm-checks > li,
html.vm-motion-pending .vm-home .vm-review__grid > div:first-child > .vm-actions,
html.vm-motion-pending .vm-home .vm-video,
html.vm-motion-pending .vm-home .vm-support__image,
html.vm-motion-pending .vm-home .vm-support__content > .vm-eyebrow,
html.vm-motion-pending .vm-home .vm-support__content > .vm-section-title,
html.vm-motion-pending .vm-home .vm-support__content > .vm-lead,
html.vm-motion-pending .vm-home .vm-support .vm-step,
html.vm-motion-pending .vm-home .vm-support .vm-start-cta,
html.vm-motion-pending .vm-home .vm-stats,
html.vm-motion-pending .vm-home .vm-faq > .vm-shell > .vm-eyebrow,
html.vm-motion-pending .vm-home .vm-faq > .vm-shell > .vm-section-title,
html.vm-motion-pending .vm-home .vm-faq > .vm-shell > .vm-lead,
html.vm-motion-pending .vm-home .vm-faq-list > details,
html.vm-motion-pending .vm-home .vm-contact,
html.vm-motion-pending #vm-start .vm-hero-brand,
html.vm-motion-pending #vm-start .vm-hero-copy > *,
html.vm-motion-pending #vm-start .vm-hero-image-card,
html.vm-motion-pending #vm-start .vm-float-card,
html.vm-motion-pending #vm-start .vm-section-heading > *,
html.vm-motion-pending #vm-start .vm-journey-card,
html.vm-motion-pending #vm-start .vm-program-visual,
html.vm-motion-pending #vm-start .vm-program-grid > .vm-reveal:not(.vm-program-visual) > :not(.vm-step-list),
html.vm-motion-pending #vm-start .vm-step-item,
html.vm-motion-pending #vm-start .vm-guide-intro,
html.vm-motion-pending #vm-start .vm-quiz-card,
html.vm-motion-pending #vm-start .vm-trouble-aside,
html.vm-motion-pending #vm-start .vm-faq-list > details,
html.vm-motion-pending #vm-start .vm-review-grid > .vm-reveal:not(.vm-review-visual) > :not(.vm-review-timeline),
html.vm-motion-pending #vm-start .vm-review-card,
html.vm-motion-pending #vm-start .vm-review-visual,
html.vm-motion-pending #vm-start .vm-evidence-copy > *,
html.vm-motion-pending #vm-start .vm-source-card,
html.vm-motion-pending #vm-start .vm-final-copy > *,
html.vm-motion-pending #vm-start .vm-form-card,
html.vm-motion-pending #vm-start .vm-bottom-note {
	visibility: hidden;
}

/* 1b) Start: legacy .vm-reveal (IntersectionObserver) — drži skriveno dok JS
       ne preuzme, a nakon toga GSAP vodi; tranzicije isključene samo dok
       element animira (klasa vm-motion-animating)                            */
html.vm-motion-pending #vm-start .vm-reveal.is-visible {
	opacity: 0;
	transform: translateY(18px);
}

html.vm-motion-ready #vm-start .vm-reveal {
	opacity: 1;
	transform: none;
}

html.vm-motion-ready #vm-start .vm-motion-animating,
html.vm-motion-ready .vm-home .vm-motion-animating {
	transition: none !important;
}

/* 2) SplitText linije (maske postavlja SplitText inline) */
.vm-line {
	will-change: transform;
}

/* 3) Brojke: iste širine znamenki dok se broje da ne "skaču" */
.vm-stat strong.vm-counting {
	font-variant-numeric: tabular-nums;
}

/* 3b) Premium otkrivanje slika: brendirana zavjesa koju JS ubacuje u
       omotač slike (uklanja se nakon otvaranja); slika ostaje blago uvećana
       zbog parallaxa pri skrolanju                                          */
.vm-media-host {
	position: relative;
}

.vm-media-veil {
	position: absolute;
	inset: -1px;
	z-index: 2;
	pointer-events: none;
	background: linear-gradient(115deg, #06243d 0%, #0b5f8a 55%, #35b8e6 100%);
	transform-origin: 100% 50%;
	will-change: transform;
}

.vm-media-host img {
	will-change: transform;
}

/* 4) Točkica u hero kickeru "diše" nakon uvodne animacije */
@keyframes vm-breathe {
	0%,
	100% {
		transform: scale(1);
		box-shadow: 0 0 0 6px rgba(53, 184, 230, 0.14);
	}
	50% {
		transform: scale(1.22);
		box-shadow: 0 0 0 14px rgba(53, 184, 230, 0.03);
	}
}

.vm-motion-ready .vm-hero--in .vm-hero-kicker span {
	animation: vm-breathe 3.8s ease-in-out infinite;
	transform-origin: center;
}

/* 5) Hover mikro-interakcije — tek nakon ulazne animacije (klasa vm-in),
      da CSS tranzicije ne smetaju GSAP-u                                   */
@media (hover: hover) and (pointer: fine) {
	.vm-motion-ready .vm-card.vm-in {
		transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
	}

	.vm-motion-ready .vm-card.vm-in:hover {
		transform: translateY(-5px);
		box-shadow: 0 30px 70px rgba(8, 42, 70, 0.16);
	}

	.vm-motion-ready .vm-brand.vm-in {
		transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
	}

	.vm-motion-ready .vm-brand.vm-in:hover {
		transform: translateY(-3px);
		box-shadow: 0 14px 34px rgba(8, 42, 70, 0.1);
	}

	.vm-motion-ready .vm-contact.vm-in {
		transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
	}

	.vm-motion-ready .vm-contact.vm-in:hover {
		transform: translateY(-3px);
	}
}

/* 6) Niz 7 · 30 · 90 dana u kartici "CPAP Therapy Review" (ubacuje JS) */
.vm-review-days {
	position: relative;
	max-width: 31rem;
	margin: 1.5rem 0 0;
}

.vm-review-days::before,
.vm-review-days__line {
	position: absolute;
	top: 1.45rem;
	left: 16.666%;
	right: 16.666%;
	height: 2px;
	border-radius: 999px;
	content: "";
}

.vm-review-days::before {
	background: rgba(255, 255, 255, 0.25);
}

.vm-review-days__line {
	z-index: 1;
	background: rgba(255, 255, 255, 0.92);
	transform-origin: left center;
}

.vm-review-days ol {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.65rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vm-review-day {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	min-width: 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.vm-review-day strong {
	display: grid;
	width: 2.9rem;
	height: 2.9rem;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.55);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 8px 22px rgba(0, 33, 55, 0.16);
	color: #087d9f;
	font-size: 1rem;
	line-height: 1;
}

@media (max-width: 767px) {
	.vm-review-days {
		max-width: 22rem;
		margin-top: 1.25rem;
	}

	.vm-review-day {
		font-size: 0.7rem;
	}
}

/* 7) Reduced motion: ništa se ne skriva niti animira */
@media (prefers-reduced-motion: reduce) {
	.vm-motion-ready .vm-hero--in .vm-hero-kicker span {
		animation: none;
	}

	.vm-review-days__line {
		transform: none !important;
	}

	.vm-motion-ready .vm-card.vm-in,
	.vm-motion-ready .vm-brand.vm-in,
	.vm-motion-ready .vm-contact.vm-in {
		transition: none;
	}
}

/* 8) Start hero: plutajuće kartice nakon uvoda (desktop) i lagani drift krugova */
@keyframes vm-float-a {
	0% { transform: translateY(0); }
	100% { transform: translateY(-9px); }
}

@keyframes vm-float-b {
	0% { transform: translateY(0); }
	100% { transform: translateY(7px); }
}

@keyframes vm-drift {
	0% { transform: translate(0, 0); }
	100% { transform: translate(-22px, 26px); }
}

@media (min-width: 1024px) {
	.vm-motion-ready #vm-start .vm-hero--in .vm-float-card-a {
		animation: vm-float-a 5.6s ease-in-out infinite alternate;
	}

	.vm-motion-ready #vm-start .vm-hero--in .vm-float-card-b {
		animation: vm-float-b 6.8s ease-in-out infinite alternate;
	}
}

.vm-motion-ready #vm-start .vm-hero::before {
	animation: vm-drift 18s ease-in-out infinite alternate;
}

.vm-motion-ready #vm-start .vm-hero::after {
	animation: vm-drift 22s ease-in-out infinite alternate-reverse;
}

@media (prefers-reduced-motion: reduce) {
	.vm-motion-ready #vm-start .vm-hero--in .vm-float-card-a,
	.vm-motion-ready #vm-start .vm-hero--in .vm-float-card-b,
	.vm-motion-ready #vm-start .vm-hero::before,
	.vm-motion-ready #vm-start .vm-hero::after {
		animation: none;
	}
}
