/* =====================================================
   FULL CIRCLE YACHT — HERO SLIDER
   Slide navigation, water motion and a persistent booking card.
   Namespaced under .fcy-hero3d to avoid legacy bleed.
===================================================== */

/* Static first slide remains available before the slider initializes. */
.fcy-hero3d {
	position: relative;
	background: #020a14;
	height: auto;
}

.fcy-hero3d__stage {
	position: relative;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	height: 100dvh;
	min-height: 760px;
	overflow: hidden;
	background: #020a14;
	border-radius: 0 0 0 24px;
}


/* ---------- Scenes ---------- */
.fcy-hero3d__scene {
	position: absolute;
	inset: 0;
	visibility: hidden;
	z-index: 1;
	background: #020a14;
}
.fcy-hero3d__scene.is-base, .fcy-hero3d__scene.is-active { visibility: visible; z-index: 2; }
.fcy-hero3d.is-slider .fcy-hero3d__scene.is-base:not(.is-active) { visibility: hidden; }

.fcy-hero3d__media-tilt {
	position: absolute;
	inset: 0;
	will-change: transform;
}

.fcy-hero3d__media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	transform-origin: 50% 50%;
	will-change: transform, opacity;
	backface-visibility: hidden;
}

.fcy-hero3d__scrim {
	position: absolute;
	inset: 0;
	z-index: 2;
	background:
		linear-gradient(to top, rgba(2,10,20,.75) 0%, rgba(2,10,20,.15) 40%, rgba(2,10,20,.06) 65%, rgba(2,10,20,.2) 100%),
		linear-gradient(to right, rgba(2,16,47,.88) 0%, rgba(2,16,47,.7) 30%, rgba(2,16,47,.2) 65%, rgba(2,16,47,.08) 100%);
}
/* ---------- Scene content ---------- */
.fcy-hero3d__content {
	position: absolute;
	left: 0;
	right: 400px;
	top: clamp(180px, 26vh, 260px);
	bottom: auto;
	z-index: 4;
	padding: 0 0 0 5vw;
	max-width: 780px;
}

.fcy-hero3d__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: "Rajdhani", sans-serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: .32em;
	text-transform: uppercase;
	color: #fff;
	margin: 0 0 18px;
}
.fcy-hero3d__scene h1,
.fcy-hero3d__scene h2 {
	font-family: "Rajdhani", sans-serif;
	font-weight: 700;
	text-transform: none;
	color: #fff;
	font-size: clamp(40px, 4vw, 64px);
	line-height: 1.05;
	margin: 0;
}
.fcy-hero3d__line { display: block; color: #fff; }

.fcy-hero3d__scene p {
	font-family: "Nunito", sans-serif;
	color: #cfd6e2;
	font-size: 17px;
	line-height: 1.6;
	max-width: 620px;
	margin: 20px 0 0;
}

/* ---------- Water and media previews ---------- */
.fcy-hero3d__water { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.fcy-hero3d__previews {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 7;
    display: flex;
    gap: 12px;
    width: calc(396px + 4vw);
    padding: 16px 4vw 16px 16px;
    background: #02102f;
    border-radius: 24px 0 0 0;
}
/* Concave corners join the image edge to the navy thumbnail tray. */
.fcy-hero3d__previews::before,
.fcy-hero3d__previews::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 0 0 24px 0;
    box-shadow: 8px 8px 0 8px #02102f;
    pointer-events: none;
}
.fcy-hero3d__previews::before { left: -24px; bottom: 0; }
.fcy-hero3d__previews::after { right: 0; top: -24px; }
.fcy-hero3d__preview { position: relative; display: block; flex: 1; min-width: 0; aspect-ratio: 1.4; overflow: hidden; border: 1px solid rgba(255,255,255,.5); border-radius: 12px; background: #041424; }
.fcy-hero3d__preview img, .fcy-hero3d__preview video { width: 100%; height: 100%; object-fit: cover; }
.fcy-hero3d__preview span { position: absolute; inset: auto 0 0; padding: 9px 10px; background: rgba(2,10,20,.78); color: #fff; font: 600 12px "Nunito", sans-serif; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.fcy-hero3d__preview:hover, .fcy-hero3d__preview:focus-visible { border-color: #4d9fff; outline: 2px solid #4d9fff; outline-offset: -2px; }
.fcy-hero3d__motion { position: absolute; left: 5vw; bottom: 24px; z-index: 7; padding: 4px 0; border: 0; background: transparent; color: #fff; font: 12px "Nunito", sans-serif; text-decoration: underline; text-underline-offset: 4px; }
.fcy-hero3d__dialog { width: min(1000px, 92vw); max-height: 90dvh; margin: auto; padding: 14px; border: 1px solid #4d9fff; border-radius: 16px; background: #041424; }
.fcy-hero3d__dialog::backdrop { background: rgba(2,10,20,.86); }
.fcy-hero3d__dialog > button { display: block; margin: 0 0 12px auto; border: 0; background: transparent; color: #fff; padding: 8px 12px; }
.fcy-hero3d__dialog video { display: block; width: 100%; max-height: 75dvh; }

/* ---------- Persistent CTA ---------- */
.fcy-hero3d__cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}
.fcy-hero3d__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 15px 34px;
	font-family: "Nunito", sans-serif;
	font-size: 16px;
	font-weight: 600;
	border-radius: 3px;
	text-decoration: none;
	transition: .35s ease;
	white-space: nowrap;
}
.fcy-hero3d__btn--primary {
	background: #174b8c;
	border: 1px solid #174b8c;
	color: #fff;
}
.fcy-hero3d__btn--primary:hover { background: #F10614; border-color: #F10614; color: #fff; }
.fcy-hero3d__btn--ghost {
	background: rgba(255,255,255,.04);
	border: 1px solid rgba(255,255,255,.4);
	color: #fff;
	backdrop-filter: blur(6px);
}
.fcy-hero3d__btn--ghost:hover { background: #fff; color: #041424; border-color: #fff; }

/* ---------- Slider navigation ---------- */
.fcy-hero3d__slider-controls { position: absolute; bottom: 62px; left: 5vw; z-index: 7; display: flex; align-items: center; gap: 12px; color: #fff; }
.fcy-hero3d__slider-controls button { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 0; background: transparent; color: #4dbeff; font-size: 24px; text-shadow: 0 0 5px #009dff, 0 0 12px #009dff, 0 0 22px rgba(0,157,255,.7); }
.fcy-hero3d__slider-controls [data-slide] { width: 10px; height: 10px; padding: 0; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: transparent; text-shadow: none; }
.fcy-hero3d__slider-controls [aria-pressed="true"] { background: #4d9fff; border-color: #4d9fff; }
.fcy-hero3d__slider-controls button:focus-visible { outline: 2px solid #4d9fff; outline-offset: 4px; }
.fcy-hero3d__slide-count { font: 600 13px "Nunito", sans-serif; min-width: 36px; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .fcy-hero3d__stage { min-height: 720px; }
    .fcy-hero3d__content { top: 130px; right: 0; bottom: clamp(210px, 30vw, 330px); display: flex; flex-direction: column; justify-content: safe center; padding: 0 24px; max-height: none; overflow-y: auto; }
    .fcy-hero3d__scene h1, .fcy-hero3d__scene h2 { font-size: 34px; }
    .fcy-hero3d__scene p { font-size: 14px; line-height: 1.5; margin-top: 14px; }
    .fcy-hero3d__eyebrow { font-size: 12px; letter-spacing: .2em; }
    .fcy-hero3d__cta { margin-top: 20px; gap: 10px; }
    .fcy-hero3d__btn { padding: 13px 18px; font-size: 14px; justify-content: center; }
    .fcy-hero3d__previews { left: 0; right: 0; bottom: 0; width: auto; padding: 16px 24px 58px; border-radius: 24px 24px 0 0; }
    .fcy-hero3d__previews::before, .fcy-hero3d__previews::after { display: none; }
    .fcy-hero3d__motion { left: auto; right: 24px; bottom: 21px; }
    .fcy-hero3d__slider-controls { left: 24px; bottom: 14px; gap: 9px; }
    .fcy-hero3d__slider-controls button { width: 32px; height: 32px; }
    .fcy-hero3d__slider-controls [data-slide] { width: 8px; height: 8px; }
}

/* A small red beacon follows the booking card's rounded edge. */
.fcy-hero3d__form-dock .quick-book-wrap,
.fcy-hero3d__form-mobile-slot .quick-book-wrap {
    position: relative;
}
.fcy-hero3d__form-dock .quick-book-wrap::after,
.fcy-hero3d__form-mobile-slot .quick-book-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: #ff172f;
    box-shadow: 0 0 4px 1px #ff172f, 0 0 10px 3px rgba(255,23,47,.65);
    offset-path: inset(3px round 18px);
    offset-anchor: center;
    animation: fcy-booking-beacon 14s linear infinite;
    pointer-events: none;
    z-index: 2;
}
@keyframes fcy-booking-beacon {
    from { offset-distance: 0%; }
    to { offset-distance: 100%; }
}

/* The existing booking form sits beside the slider on desktop. */
.fcy-hero3d__form-dock:empty {
	display: none;
}

@media (min-width: 992px) {
	.fcy-hero3d__form-dock {
		position: absolute;
		inset: clamp(180px, 26vh, 260px) 4vw 164px auto;
		width: 380px;
		display: flex;
		align-items: flex-start;
		padding: 0;
		z-index: 6;
		pointer-events: none;
	}
	.fcy-hero3d__form-dock .feature-area.style-three {
		pointer-events: auto;
		max-height: 100%;
		width: 100%;
		max-width: 380px;
		padding: 0;
		background: transparent;
	}
	.fcy-hero3d__form-dock .container {
		padding: 0;
		max-width: none;
		width: 100%;
	}
	.fcy-hero3d__form-dock .quick-book-wrap {
		margin: 0;
		width: 100%;
		border-radius: 18px;
		padding: 24px;
		max-height: calc(100dvh - clamp(180px, 26vh, 260px) - 164px);
		overflow-y: auto;
		box-shadow: 0 30px 80px rgba(2,10,20,.55);
	}
	.fcy-hero3d__form-dock .qb-title {
		display: block;
		text-align: center;
		margin-bottom: 16px;
	}
	.fcy-hero3d__form-dock .qb-title i {
		display: block;
		margin: 0 auto 7px;
		font-size: 22px;
	}
	.fcy-hero3d__form-dock .qb-title h3 { font-size: 19px; }
	.fcy-hero3d__form-dock .qb-title span { font-size: 12px; line-height: 1.4; }

	.fcy-hero3d__form-dock .qb-mobile-progress {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		margin-bottom: 14px;
	}
	.fcy-hero3d__form-dock .qb-mobile-progress span {
		width: 24px;
		height: 24px;
		border-radius: 50%;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		background: rgba(255,255,255,.12);
		color: rgba(255,255,255,.72);
		font-size: 11px;
		font-weight: 900;
	}
	.fcy-hero3d__form-dock .qb-mobile-progress span.active {
		background: #F10614;
		color: #fff;
	}

	.fcy-hero3d__form-dock .qb-mobile-step { display: none; }
	.fcy-hero3d__form-dock .qb-mobile-step.active { display: block; }

	.fcy-hero3d__form-dock .qb-form-row1,
	.fcy-hero3d__form-dock .qb-form-row2,
	.fcy-hero3d__form-dock .qb-form-row3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
		margin-bottom: 12px;
	}
    .fcy-hero3d__form-dock .qb-form-row1 .qb-field:nth-child(n+3),
    .fcy-hero3d__form-dock .qb-form-row2 .qb-field:last-child { grid-column: 1 / -1; }
    .fcy-hero3d__form-dock .qb-field { min-width: 0; gap: 5px; }
    .fcy-hero3d__form-dock .qb-field label { line-height: 1.4; }
	.fcy-hero3d__form-dock .qb-field input,
	.fcy-hero3d__form-dock .qb-field select {
		height: 46px;
		font-size: 14px;
	}

	.fcy-hero3d__form-dock .qb-step-next,
	.fcy-hero3d__form-dock .qb-step-back {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		width: 100%;
		height: 48px;
		border-radius: 9px;
		font-size: 14px;
		font-weight: 800;
		letter-spacing: .4px;
		border: 1px solid rgba(255,255,255,.18);
	}
	.fcy-hero3d__form-dock .qb-step-next { background: #174b8c; color: #fff; }
	.fcy-hero3d__form-dock .qb-step-back { background: rgba(255,255,255,.1); color: #fff; }
	.fcy-hero3d__form-dock .qb-submit-btn { height: 48px; min-width: 0; font-size: 12px; padding: 0 8px; white-space: normal; line-height: 1.2; }
}

/* ---------- Hand-off below the hero (mobile / narrow desktop) ----------
   The theme's ".quick-book-wrap" normally pulls itself up (-70px to -88px,
   some with !important) to float over the bottom of the old single-viewport
   hero. Our hero's own CTA row now sits in that same bottom strip, so cancel
   the pull-up wherever the form is still in its normal-flow mobile slot. */
.fcy-hero3d__form-mobile-slot .quick-book-wrap {
	margin-top: 0 !important;
}

/* Reduced motion preserves the image and booking card without scrolling effects. */
@media (prefers-reduced-motion: reduce) {
    .fcy-hero3d__water { display: none; }
    .fcy-hero3d__form-dock .quick-book-wrap::after,
    .fcy-hero3d__form-mobile-slot .quick-book-wrap::after { animation: none; }
}
