/* FlyOra About — positioning, states and motion for the About page's story pieces.
   Layout, typography and section styling live in Elementor (fy-* / fx-* / ab-* global
   classes); this file only adds what Elementor cannot express (nth-child placement,
   text strokes, keyframes, JS-driven states). */

/* ---------- Anchors ---------- */
.elementor .ab-story,
.elementor .ab-approach {
	scroll-margin-top: 90px;
}

/* ==========================================================
   The FlyOra story: travel pieces → one connected journey
   ========================================================== */
.elementor .ab-pieces.ab-pieces {
	position: relative;
	overflow: hidden;
}
.elementor .ab-piece.ab-piece {
	position: absolute;
	z-index: 2;
	width: 44%;
	transition: transform 1.1s var(--fx-spring, ease), opacity .6s ease, box-shadow .6s ease;
}
.elementor .ab-piece:nth-child(1) { left: 6%; top: 6%; }
.elementor .ab-piece:nth-child(2) { left: 50%; top: 19%; transition-delay: .07s; }
.elementor .ab-piece:nth-child(3) { left: 6%; top: 32%; transition-delay: .14s; }
.elementor .ab-piece:nth-child(4) { left: 50%; top: 45%; transition-delay: .21s; }
.elementor .ab-piece:nth-child(5) { left: 6%; top: 58%; transition-delay: .28s; }
.elementor .ab-piece:nth-child(6) { left: 50%; top: 71%; transition-delay: .35s; }
.elementor .ab-piece > :first-child {
	transition: background-color .5s ease .9s, color .5s ease .9s;
}
.elementor .ab-pieces.is-joined .ab-piece > :first-child {
	background-color: var(--fy-orange, #F15A22);
	color: #fff;
}

/* Scattered state (only when JS runs — without it the joined journey shows) */
.fx-js .elementor .ab-pieces:not(.is-joined) .ab-piece {
	box-shadow: 0 26px 40px -26px rgba(29, 28, 90, .45);
}
.fx-js .elementor .ab-pieces:not(.is-joined) .ab-piece:nth-child(1) { transform: translate3d(22px, 34px, 0) rotate(-8deg); }
.fx-js .elementor .ab-pieces:not(.is-joined) .ab-piece:nth-child(2) { transform: translate3d(-30px, 56px, 0) rotate(7deg); }
.fx-js .elementor .ab-pieces:not(.is-joined) .ab-piece:nth-child(3) { transform: translate3d(46px, -6px, 0) rotate(5deg); }
.fx-js .elementor .ab-pieces:not(.is-joined) .ab-piece:nth-child(4) { transform: translate3d(-54px, -24px, 0) rotate(-6deg); }
.fx-js .elementor .ab-pieces:not(.is-joined) .ab-piece:nth-child(5) { transform: translate3d(34px, 44px, 0) rotate(9deg); }
.fx-js .elementor .ab-pieces:not(.is-joined) .ab-piece:nth-child(6) { transform: translate3d(-24px, -46px, 0) rotate(-7deg); }

.elementor .ab-piece-end.ab-piece-end {
	position: absolute;
	z-index: 3;
	left: 50%;
	top: 86%;
	transform: translate3d(-50%, 0, 0);
	white-space: nowrap;
	transition: opacity .6s ease 1.5s, transform .9s var(--fx-spring, ease) 1.5s;
}
.fx-js .elementor .ab-pieces:not(.is-joined) .ab-piece-end.ab-piece-end {
	opacity: 0;
	transform: translate3d(-50%, 16px, 0) scale(.85);
}

.ab-pieces-route {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}
.ab-pieces-route svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}
.ab-route-path {
	fill: none;
	stroke: #F15A22;
	stroke-width: 2;
	stroke-dasharray: 2 10;
	stroke-linecap: round;
	vector-effect: non-scaling-stroke;
	opacity: .85;
}
.ab-route-mask {
	fill: none;
	stroke: #fff;
	stroke-width: 16;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	transition: stroke-dashoffset 2.6s var(--fx-ease, ease) .6s;
}
.ab-pieces.is-joined .ab-route-mask {
	stroke-dashoffset: 0;
}
.ab-pieces.is-instant .ab-route-mask,
.ab-pieces.is-instant .ab-piece,
.ab-pieces.is-instant .ab-piece-end {
	transition: none;
}

@media (max-width: 767px) {
	.elementor .ab-piece.ab-piece { width: 46%; }
	.elementor .ab-piece:nth-child(odd) { left: 3%; }
	.elementor .ab-piece:nth-child(even) { left: 51%; }
	.fx-js .elementor .ab-pieces:not(.is-joined) .ab-piece:nth-child(n) {
		transform: translate3d(0, 18px, 0) rotate(-4deg);
	}
	.fx-js .elementor .ab-pieces:not(.is-joined) .ab-piece:nth-child(even) {
		transform: translate3d(0, -14px, 0) rotate(5deg);
	}
}

/* "Flights. Visas. Hotels…" settle into place one by one */
.elementor .ab-words span {
	display: inline-block;
	transition: color .5s ease, transform .6s var(--fx-ease, ease);
	transition-delay: calc(var(--ab-i, 0) * 150ms);
}
.fx-js .elementor .ab-words:not(.is-in) span {
	color: #C9CCDA;
	transform: translate3d(0, 6px, 0);
}

/* ==========================================================
   Brand promise
   ========================================================== */
.elementor .ab-outline span {
	color: var(--fy-orange, #F15A22);
}
.elementor .ab-outline em {
	font-style: normal;
	color: transparent;
	-webkit-text-stroke: 2px rgba(255, 255, 255, .92);
}
@media (max-width: 767px) {
	.elementor .ab-outline em { -webkit-text-stroke-width: 1.5px; }
}
.elementor .ab-pillar > :first-child {
	transition: transform .6s var(--fx-spring, ease), background-color .3s ease;
}
.elementor .ab-pillar:hover > :first-child {
	transform: rotate(90deg);
}

/* ==========================================================
   How we work: sticky intro + scroll-led principles
   ========================================================== */
@media (min-width: 1025px) {
	.elementor .ab-sticky.ab-sticky {
		position: sticky;
		top: 120px;
		align-self: flex-start;
	}
	.fx-js .elementor .ab-step {
		transition: opacity .5s ease;
	}
	.fx-js .elementor .ab-step:not(.is-active) {
		opacity: .42;
	}
}
.elementor .ab-step-num.ab-step-num {
	color: transparent;
	-webkit-text-stroke: 1.5px var(--fy-orange, #F15A22);
	transition: color .5s ease;
}
.elementor .ab-step.is-active .ab-step-num.ab-step-num {
	color: var(--fy-orange, #F15A22);
}
@media (max-width: 1024px) {
	.elementor .ab-step-num.ab-step-num { color: var(--fy-orange, #F15A22); }
}

/* ==========================================================
   One journey: connected-services orbit
   ========================================================== */
.elementor .ab-orbit.ab-orbit {
	position: relative;
	aspect-ratio: 1 / 1;
}
/* Ring and glow: explicit box (Elementor gives pseudo-elements a full-size box, so inset alone
   would draw the ring larger and off-centre from the nodes and plane path). */
.elementor .ab-orbit.ab-orbit::before {
	content: "";
	position: absolute;
	inset: auto;
	left: 8%;
	top: 8%;
	width: 84%;
	height: 84%;
	box-sizing: border-box;
	border-radius: 50%;
	border: 2px dashed rgba(44, 43, 124, .2);
	pointer-events: none;
}
.elementor .ab-orbit.ab-orbit::after {
	content: "";
	position: absolute;
	inset: auto;
	left: 20%;
	top: 20%;
	width: 60%;
	height: 60%;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(241, 90, 34, .10) 0%, rgba(241, 90, 34, 0) 70%);
	pointer-events: none;
}
.elementor .ab-orbit-core.ab-orbit-core {
	position: absolute;
	left: 29%;
	top: 29%;
	width: 42%;
	height: 42%;
	min-width: 0;
	z-index: 2;
}
.elementor .ab-orbit-plane.ab-orbit-plane {
	position: absolute;
	left: 8%;
	top: 8%;
	width: 84%;
	height: 84%;
	min-width: 0;
	padding: 0;
	z-index: 1;
	pointer-events: none;
	animation: abOrbit 14s linear infinite;
	animation-play-state: paused;
}
.elementor .ab-orbit.is-live .ab-orbit-plane {
	animation-play-state: running;
}
.elementor .ab-orbit-plane > * {
	position: absolute;
	left: 50%;
	top: 0;
	transform: translate(-50%, -50%) rotate(45deg);
}
@keyframes abOrbit {
	to { transform: rotate(360deg); }
}

.elementor .ab-node.ab-node {
	position: absolute;
	z-index: 3;
	width: auto;
	transform: translate(-50%, -30px);
}
.elementor .ab-node:nth-child(3) { left: 50%; top: 8%; }
.elementor .ab-node:nth-child(4) { left: 86.4%; top: 29%; }
.elementor .ab-node:nth-child(5) { left: 86.4%; top: 71%; }
.elementor .ab-node:nth-child(6) { left: 50%; top: 92%; }
.elementor .ab-node:nth-child(7) { left: 13.6%; top: 71%; }
.elementor .ab-node:nth-child(8) { left: 13.6%; top: 29%; }

.elementor .ab-node-ico {
	transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}
.elementor .ab-orbit.is-live .ab-node-ico {
	animation: abNodeLit 14s ease-in-out infinite;
}
.elementor .ab-orbit.is-live .ab-node:nth-child(4) .ab-node-ico { animation-delay: 2.333s; }
.elementor .ab-orbit.is-live .ab-node:nth-child(5) .ab-node-ico { animation-delay: 4.667s; }
.elementor .ab-orbit.is-live .ab-node:nth-child(6) .ab-node-ico { animation-delay: 7s; }
.elementor .ab-orbit.is-live .ab-node:nth-child(7) .ab-node-ico { animation-delay: 9.333s; }
.elementor .ab-orbit.is-live .ab-node:nth-child(8) .ab-node-ico { animation-delay: 11.667s; }
/* Off-screen (flyora-about.js toggles .ab-paused): orbit and node highlights hold in sync. */
.elementor .ab-orbit.ab-paused .ab-orbit-plane,
.elementor .ab-orbit.ab-paused .ab-node-ico {
	animation-play-state: paused;
}
@keyframes abNodeLit {
	0%, 14% {
		background-color: #F15A22;
		border-color: #F15A22;
		color: #fff;
		box-shadow: 0 16px 30px -14px rgba(241, 90, 34, .8);
	}
	22%, 100% {
		background-color: #fff;
		border-color: #E4E6EF;
		color: #2C2B7C;
		box-shadow: 0 14px 26px -18px rgba(29, 28, 90, .5);
	}
}
/* Labels sit on the ring: give them the section colour so the dashed line passes behind */
.elementor .ab-node > :last-child {
	padding: 4px 9px;
	border-radius: 999px;
	background-color: var(--fy-bg, #F6F7FB);
}
@media (max-width: 767px) {
	.elementor .ab-node > :last-child { padding: 3px 6px; }
}
.elementor .ab-node:hover .ab-node-ico {
	border-color: var(--fy-orange, #F15A22);
}
@media (max-width: 767px) {
	.elementor .ab-node.ab-node { transform: translate(-50%, -23px); }
}

/* ==========================================================
   What matters to us
   ========================================================== */
.elementor .ab-value .ab-value-word {
	transition: color .35s ease, transform .6s var(--fx-ease, ease);
}
.elementor .ab-value:hover .ab-value-word {
	color: var(--fy-orange, #F15A22);
	transform: translate3d(8px, 0, 0);
}
.elementor .ab-value > :first-child {
	transition: transform .6s var(--fx-spring, ease), background-color .3s ease, color .3s ease;
}
.elementor .ab-value:hover > :first-child {
	transform: rotate(-10deg) scale(1.06);
	background-color: var(--fy-orange, #F15A22);
	color: #fff;
}

/* ==========================================================
   Made for going places: identity notes
   ========================================================== */
.elementor .ab-mark-card.ab-mark-card {
	position: absolute;
	z-index: 4;
}
.elementor .ab-note > :first-child {
	transition: background-color .3s ease, color .3s ease, transform .5s var(--fx-spring, ease);
}
.elementor .ab-note:hover > :first-child {
	background-color: var(--fy-orange, #F15A22);
	color: #fff;
	transform: scale(1.08);
}

/* ==========================================================
   The world is worth exploring: editorial mosaic
   ========================================================== */
.elementor .ab-mosaic.ab-mosaic {
	display: grid;
	grid-template-columns: 1.15fr 1fr 1fr 1fr;
	grid-template-rows: 270px 270px;
	gap: 16px;
}
.elementor .ab-mosaic > .ab-tile:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.elementor .ab-mosaic > .ab-tile:nth-child(2) { grid-column: 2 / span 2; grid-row: 1; }
.elementor .ab-mosaic > .ab-tile:nth-child(3) { grid-column: 4; grid-row: 1; }
.elementor .ab-mosaic > .ab-tile:nth-child(4) { grid-column: 2; grid-row: 2; }
.elementor .ab-mosaic > .ab-tile:nth-child(5) { grid-column: 3; grid-row: 2; }
.elementor .ab-mosaic > .ab-tile:nth-child(6) { grid-column: 4; grid-row: 2; }
.elementor .ab-tile.ab-tile {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	min-height: 0;
}
.elementor .ab-tile > :last-child > :last-child {
	transition: opacity .45s ease, transform .6s var(--fx-ease, ease), max-height .6s var(--fx-ease, ease);
}
@media (min-width: 1025px) and (hover: hover) {
	.elementor .ab-tile:not(:hover) > :last-child > :last-child {
		opacity: 0;
		max-height: 0;
		transform: translate3d(0, 8px, 0);
	}
}
@media (max-width: 1024px) {
	.elementor .ab-mosaic.ab-mosaic {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: none;
		grid-auto-rows: 230px;
	}
	.elementor .ab-mosaic > .ab-tile:nth-child(n) { grid-column: auto; grid-row: auto; }
	.elementor .ab-mosaic > .ab-tile:nth-child(1) { grid-row: span 2; }
	.elementor .ab-mosaic > .ab-tile:nth-child(6) { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
	.elementor .ab-mosaic.ab-mosaic {
		grid-auto-rows: 170px;
		gap: 10px;
	}
	.elementor .ab-mosaic > .ab-tile:nth-child(1) { grid-row: auto; grid-column: 1 / -1; }
	.elementor .ab-mosaic > .ab-tile:nth-child(1),
	.elementor .ab-mosaic > .ab-tile:nth-child(6) { height: 210px; }
}

/* ==========================================================
   Where will FlyOra take you next: pathways
   ========================================================== */
.elementor .ab-path.ab-path {
	overflow: hidden;
	isolation: isolate;
}
.elementor .ab-path .ab-path-go {
	transition: background-color .3s ease, border-color .3s ease, transform .6s var(--fx-spring, ease);
}
.elementor .ab-path:hover .ab-path-go,
.elementor .ab-path:focus-visible .ab-path-go {
	background-color: var(--fy-orange, #F15A22);
	border-color: var(--fy-orange, #F15A22);
	transform: rotate(45deg);
}
.elementor .ab-path:focus-visible {
	outline: 3px solid rgba(241, 90, 34, .45);
	outline-offset: 4px;
}
.elementor .ab-path > :last-child > :last-child {
	transition: background-color .3s ease, color .3s ease, transform .45s var(--fx-spring, ease);
}
.elementor .ab-path:hover > :last-child > :last-child {
	background-color: var(--fy-orange, #F15A22);
	color: #fff;
}

/* ---------- Grid spacing Elementor does not output for flex rows that wrap ---------- */
@media (max-width: 1024px) {
	.elementor .ab-paths.ab-paths { row-gap: 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	.elementor .ab-orbit-plane.ab-orbit-plane,
	.elementor .ab-orbit.is-live .ab-node-ico {
		animation: none !important;
	}
	.elementor .ab-orbit-plane.ab-orbit-plane { display: none; }
	.elementor .ab-piece.ab-piece,
	.elementor .ab-piece-end.ab-piece-end,
	.ab-route-mask,
	.elementor .ab-words span {
		transition: none !important;
	}
}
