/* FlyOra Motion — animation layer for the Elementor homepage.
   Hooks are Elementor global classes (their labels render as class names). */

:root {
	--fx-ease: cubic-bezier(.22, .61, .36, 1);
	--fx-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- Header ---------- */
.elementor .fy-header {
	transition: background-color .45s var(--fx-ease), box-shadow .45s var(--fx-ease), border-color .45s var(--fx-ease);
}
body.fy-scrolled .elementor .fy-header {
	background-color: rgba(255, 255, 255, .9);
	border-color: rgba(228, 230, 239, .95);
	box-shadow: 0 14px 34px -24px rgba(29, 28, 90, .45);
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
}
.elementor .fy-header::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	height: 2px;
	background: linear-gradient(90deg, #F15A22, #FF8A5B);
	transform: scaleX(var(--fx-progress, 0));
	transform-origin: left;
	pointer-events: none;
}
.elementor .fy-logo {
	transition: height .4s var(--fx-ease);
}
body.fy-scrolled .elementor .fy-logo.fy-logo {
	height: 34px;
}

.elementor .fy-nav-link {
	position: relative;
}
.elementor .fy-nav-link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -8px;
	height: 2px;
	border-radius: 2px;
	background: #F15A22;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .4s var(--fx-ease);
}
.elementor .fy-nav-link:hover::after {
	transform: scaleX(1);
	transform-origin: left;
}

/* ---------- Highlighted words inside headings ---------- */
.fx-hl span {
	color: #F15A22;
}
.fx-hl-light span {
	color: #FF9A70;
}
.fx-swoosh span {
	position: relative;
	display: inline-block;
}
.fx-swoosh span::after {
	content: "";
	position: absolute;
	left: 1%;
	right: 1%;
	bottom: -.1em;
	height: .2em;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M4 14 C 80 5, 190 1, 296 9' stroke='%23F15A22' stroke-width='5' fill='none' stroke-linecap='round' opacity='.45'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
	transform-origin: left;
	animation: fxSwoosh 1.2s 1s var(--fx-ease) backwards;
}
@keyframes fxSwoosh {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

/* ---------- Reveal system ---------- */
@keyframes fxUp {
	from { opacity: 0; transform: translate3d(0, 34px, 0); }
	to { opacity: 1; transform: none; }
}
@keyframes fxPop {
	from { opacity: 0; transform: translate3d(0, 30px, 0) scale(.9); }
	to { opacity: 1; transform: none; }
}
@keyframes fxFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
.fx-js .fx-reveal:not(.is-in),
.fx-js .fx-pop:not(.is-in),
.fx-js .fx-fade:not(.is-in),
.fx-js .fx-stagger:not(.is-in) > * {
	opacity: 0;
}
.fx-js .fx-reveal.is-in {
	animation: fxUp 1s var(--fx-ease) backwards;
}
.fx-js .fx-fade.is-in {
	animation: fxFadeIn 1.4s var(--fx-ease) backwards;
}
.fx-js .fx-pop.is-in {
	animation: fxPop 1.2s var(--fx-ease) backwards;
	animation-delay: var(--fx-d, 0s);
}
.fx-js .fx-stagger.is-in > * {
	animation: fxUp .95s var(--fx-ease) backwards;
	animation-delay: calc(var(--fx-i, 0) * 110ms);
}
.fx-d1 { --fx-d: .15s; }
.fx-d2 { --fx-d: .3s; }
.fx-d3 { --fx-d: .45s; }
.fx-js .fx-reveal.is-in.fx-d1,
.fx-js .fx-reveal.is-in.fx-d2,
.fx-js .fx-reveal.is-in.fx-d3 {
	animation-delay: var(--fx-d);
}

/* ---------- Floating + parallax ---------- */
@keyframes fxFloat {
	0%, 100% { transform: translate3d(0, 0, 0); }
	50% { transform: translate3d(0, -16px, 0); }
}
@keyframes fxFloatTilt {
	0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
	50% { transform: translate3d(0, -12px, 0) rotate(1.4deg); }
}
.fx-float { animation: fxFloat 7s ease-in-out infinite; }
.fx-float-2 { animation: fxFloat 8.5s ease-in-out -3s infinite; }
.fx-float-3 { animation: fxFloatTilt 6.5s ease-in-out -1.5s infinite; }

.elementor .fy-depth-1,
.elementor .fy-depth-2,
.elementor .fy-depth-3 {
	transition: transform 1s var(--fx-ease);
}
.elementor .fy-depth-1 { transform: translate3d(calc(var(--px, 0) * -14px), calc(var(--py, 0) * -10px), 0); }
.elementor .fy-depth-2 { transform: translate3d(calc(var(--px, 0) * -28px), calc(var(--py, 0) * -20px), 0); }
.elementor .fy-depth-3 { transform: translate3d(calc(var(--px, 0) * -42px), calc(var(--py, 0) * -30px), 0); }

/* ---------- Aircraft-window frames ---------- */
.elementor .fy-window {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.elementor .fy-window::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, .55),
		inset 0 22px 40px -24px rgba(255, 255, 255, .7),
		inset 0 -40px 60px -40px rgba(29, 28, 90, .55);
	pointer-events: none;
	z-index: 3;
}
.elementor .fy-window::before {
	content: "";
	position: absolute;
	top: -30%;
	left: -80%;
	width: 55%;
	height: 160%;
	background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .28), rgba(255, 255, 255, 0));
	transform: rotate(14deg);
	pointer-events: none;
	z-index: 4;
	animation: fxGlare 8s ease-in-out infinite;
}
.elementor .fy-window.fy-glare-2::before { animation-delay: -2.6s; }
.elementor .fy-window.fy-glare-3::before { animation-delay: -5.2s; }
/* Same sweep as left: -80% → 140%, as a transform so it never triggers layout.
   400% of the glare's own width (55% of the window) = the 220% the old `left` travelled. */
@keyframes fxGlare {
	0%, 60% { transform: translateX(0) rotate(14deg); }
	88%, 100% { transform: translateX(400%) rotate(14deg); }
}

@keyframes fxKen {
	from { transform: scale(1.05); }
	to { transform: scale(1.18) translate3d(-2%, -1.5%, 0); }
}
.elementor .fx-ken.fx-ken {
	animation: fxKen 22s ease-in-out infinite alternate;
}

/* ---------- Clouds ---------- */
.elementor .fx-cloud.fx-cloud {
	position: absolute;
	padding: 0;
	min-width: 0;
	width: 360px;
	height: 130px;
	pointer-events: none;
	background:
		radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0)) 0 36px / 190px 94px no-repeat,
		radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0)) 90px 0 / 210px 128px no-repeat,
		radial-gradient(closest-side, #fff, rgba(255, 255, 255, 0)) 196px 30px / 164px 100px no-repeat;
	filter: blur(3px);
	opacity: .95;
	animation: fxDrift 70s linear infinite;
}
.elementor .fx-cloud-2.fx-cloud-2 { animation-duration: 95s; animation-delay: -40s; transform-origin: center; opacity: .75; }
.elementor .fx-cloud-3.fx-cloud-3 { animation-duration: 120s; animation-delay: -80s; opacity: .6; }
@keyframes fxDrift {
	from { transform: translate3d(-40vw, 0, 0); }
	to { transform: translate3d(120vw, 0, 0); }
}

/* ---------- Flight routes (SVG injected by flyora-motion.js) ---------- */
.elementor .fx-route.fx-route {
	position: absolute;
	padding: 0;
	min-width: 0;
	pointer-events: none;
}
.fx-route svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}
.fx-route .fx-path {
	fill: none;
	stroke: #F15A22;
	stroke-width: 2;
	stroke-dasharray: 2 10;
	stroke-linecap: round;
	opacity: .8;
	vector-effect: non-scaling-stroke;
}
.fx-route .fx-mask-path {
	fill: none;
	stroke: #fff;
	stroke-width: 24;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
}
.fx-route.is-in .fx-mask-path {
	animation: fxDraw 2.8s var(--fx-ease) forwards;
}
.fx-route-steps.is-in .fx-mask-path {
	animation-duration: 3.6s;
}
@keyframes fxDraw {
	to { stroke-dashoffset: 0; }
}
.fx-route .fx-plane {
	opacity: 0;
	transition: opacity .5s .4s;
}
.fx-route.is-in .fx-plane {
	opacity: 1;
}

/* ---------- Marquee ---------- */
.elementor .fx-marquee {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.elementor .fx-marquee-track.fx-marquee-track {
	width: max-content;
	flex-wrap: nowrap;
	gap: 0;
	animation: fxMarquee 48s linear infinite;
}
.elementor .fx-marquee-track.fx-marquee-track > * {
	margin: 0 44px 0 0;
	flex-shrink: 0;
}
.elementor .fx-marquee:hover .fx-marquee-track {
	animation-play-state: paused;
}
@keyframes fxMarquee {
	to { transform: translate3d(-50%, 0, 0); }
}
.elementor .fy-outline.fy-outline {
	color: transparent;
	-webkit-text-stroke: 1.5px #2C2B7C;
}
.elementor .fy-outline-orange.fy-outline-orange {
	color: transparent;
	-webkit-text-stroke: 1.5px #F15A22;
}

/* ---------- Buttons ---------- */
.elementor .fx-arrow::after {
	content: "\2192";
	display: inline-block;
	margin-left: 10px;
	transition: transform .4s var(--fx-spring);
}
.elementor .fx-arrow:hover::after {
	transform: translateX(5px);
}

/* ---------- Services index ---------- */
.elementor .fy-svc-row {
	position: relative;
}
.elementor .fy-svc-row::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	height: 2px;
	background: #F15A22;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .7s var(--fx-ease);
}
.elementor .fy-svc-row:hover::before {
	transform: scaleX(1);
}
.elementor .fy-svc-title {
	transition: transform .55s var(--fx-ease), color .3s ease;
}
.elementor .fy-svc-row:hover .fy-svc-title {
	transform: translateX(10px);
	color: #F15A22;
}
.elementor .fy-svc-go {
	transition: background-color .3s ease, border-color .3s ease, transform .6s var(--fx-spring);
}
.elementor .fy-svc-row:hover .fy-svc-go {
	background-color: #F15A22;
	border-color: #F15A22;
	transform: rotate(45deg);
}
.elementor .fy-svc-row:hover .fy-svc-go .e-svg-base,
.elementor .fy-svc-row:hover .fy-svc-go svg {
	color: #fff;
}
.elementor .fy-svc-thumb.fy-svc-thumb {
	opacity: 0;
	transform: translate3d(0, -50%, 0) scale(.82) rotate(-8deg);
	transition: opacity .35s ease, transform .7s var(--fx-spring);
	pointer-events: none;
}
.elementor .fy-svc-row:hover .fy-svc-thumb.fy-svc-thumb {
	opacity: 1;
	transform: translate3d(0, -50%, 0) scale(1) rotate(-4deg);
}
@media (max-width: 1024px) {
	.elementor .fy-svc-thumb.fy-svc-thumb { display: none; }
}

/* ---------- Destination windows (expanding) ---------- */
.elementor .fy-win.fy-win {
	width: auto;
	flex: 1 1 0;
	min-width: 0;
	transition: flex-grow .9s var(--fx-ease), box-shadow .5s ease;
}
.elementor .fy-win-row:hover .fy-win.fy-win {
	flex-grow: 1;
}
.elementor .fy-win-row .fy-win.fy-win:hover,
.elementor .fy-win-row:not(:hover) .fy-win.fy-win:first-child {
	flex-grow: 2.7;
}
.elementor .fy-win-more.fy-win-more {
	opacity: 0;
	transform: translate3d(0, 12px, 0);
	transition: opacity .45s ease, transform .6s var(--fx-ease);
}
.elementor .fy-win-row .fy-win:hover .fy-win-more.fy-win-more,
.elementor .fy-win-row:not(:hover) .fy-win:first-child .fy-win-more.fy-win-more {
	opacity: 1;
	transform: none;
}
.elementor .fy-win .fy-dest-sub {
	transition: opacity .4s ease;
}
@media (min-width: 768px) {
	.elementor .fy-win-row .fy-win:not(:hover) .fy-dest-sub { opacity: 0; }
	.elementor .fy-win-row:not(:hover) .fy-win:first-child .fy-dest-sub { opacity: 1; }
}
@media (max-width: 767px) {
	.elementor .fy-win-row.fy-win-row {
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}
	.elementor .fy-win-row::-webkit-scrollbar { display: none; }
	.elementor .fy-win.fy-win,
	.elementor .fy-win-row .fy-win.fy-win:hover,
	.elementor .fy-win-row:not(:hover) .fy-win.fy-win:first-child {
		flex: 0 0 68%;
		scroll-snap-align: center;
	}
	.elementor .fy-win-more.fy-win-more { opacity: 1; transform: none; }
}

/* ---------- Image zoom on card hover ---------- */
.elementor .fy-zoom {
	transition: transform 1.2s var(--fx-ease);
}
.elementor .fy-zoom-parent:hover .fy-zoom {
	transform: scale(1.07);
}

/* ---------- Boarding pass ---------- */
.elementor .fy-pass {
	position: relative;
}
.elementor .fy-pass::before,
.elementor .fy-pass::after {
	content: "";
	position: absolute;
	top: calc(62% - 13px);
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: #1D1C5A;
}
.elementor .fy-pass::before { left: -13px; }
.elementor .fy-pass::after { right: -13px; }

/* ---------- Placeholder notes wrap on phones (the fy-placeholder class sets nowrap) ---------- */
@media (max-width: 767px) {
	.elementor .fy-placeholder.fy-placeholder {
		white-space: normal;
		max-width: 100%;
	}
}

/* ---------- Off-screen: looping animations pause (flyora-motion.js toggles .fx-offscreen) ---------- */
.fx-offscreen,
.fx-offscreen::before,
.fx-offscreen .fx-marquee-track {
	animation-play-state: paused !important;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.fx-js .fx-reveal, .fx-js .fx-pop, .fx-js .fx-fade, .fx-js .fx-stagger > * {
		opacity: 1 !important;
		animation: none !important;
	}
	.fx-float, .fx-float-2, .fx-float-3,
	.elementor .fx-ken.fx-ken, .elementor .fx-cloud.fx-cloud,
	.elementor .fx-marquee-track.fx-marquee-track,
	.elementor .fy-window::before, .fx-swoosh span::after {
		animation: none !important;
	}
	.fx-route .fx-mask-path { stroke-dashoffset: 0; animation: none !important; }
	.fx-route .fx-plane { display: none; }
}

/* ---------- Keyboard focus ring (Elementor's atomic link/button reset removes the theme's) ---------- */
.elementor a:focus-visible,
.elementor button:focus-visible,
.elementor summary:focus-visible,
.elementor [tabindex]:not([tabindex="-1"]):focus-visible {
	outline: 2px solid var(--fy-orange, #F15A22);
	outline-offset: 3px;
}
