/**
 * PRIMO Homepage Hero — Version B (Full-Bleed Cinematic) — APPROVED
 *
 * Scope: ONLY when body.hero-variant-b / .hero--cinematic is active (site default).
 * Version A (previous split Hero) remains in blacklane-top.css for /?hero=a revert.
 *
 * Dark cinematic shadow is CSS-only (::after on .hero-visual).
 * Photo asset is NOT edited. White masks/fades from Version A are removed here.
 *
 * Default: B  ·  Emergency revert: /?hero=a
 */

/* —— Desktop / tablet shell —— */
body.hero-variant-b .hero.hero--cinematic,
body.hero-variant-b .hero {
	--hero-bg: #061d23;
	--hero-ink: #f8f7f3;
	--hero-ink-soft: rgba(248, 247, 243, 0.86);
	--hero-eyebrow: #e1b76e;
	--hero-gold: #e1b76e;
	--hero-petrol: #033f4b;

	position: relative;
	isolation: isolate;
	overflow: visible; /* booking widget may overlap lower edge */
	/*
	 * Spacious editorial floor — locked to the pre-simplification shell so
	 * removing trust chips / secondary CTA does not shrink the photograph.
	 */
	min-height: 700px;
	background: var(--hero-bg);
}

body.hero-variant-b .hero-visual {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	overflow: hidden;
	background-color: var(--hero-bg);
	background-image: var(--pg-hero-image);
	background-repeat: no-repeat;
	background-size: cover;
	/* Keep vehicle + guests primarily on the right */
	background-position: 62% 46%;
	filter: none;
	opacity: 1;
	-webkit-mask-image: none;
	mask-image: none;
	-webkit-mask-size: auto;
	mask-size: auto;
	-webkit-mask-repeat: repeat;
	mask-repeat: repeat;
}

/* Kill Version A white-edge masks and any stacked fade layers */
body.hero-variant-b .hero-visual:before {
	content: none !important;
	display: none !important;
	background: none !important;
}

/*
 * Single CSS cinematic overlay — above photo, below copy.
 * Darkest behind headline (left); clear toward vehicle (right).
 */
body.hero-variant-b .hero-visual:after {
	content: "";
	display: block;
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		90deg,
		rgba(3, 18, 23, 0.86) 0%,
		rgba(3, 18, 23, 0.76) 22%,
		rgba(3, 18, 23, 0.53) 39%,
		rgba(3, 18, 23, 0.19) 57%,
		rgba(3, 18, 23, 0.04) 76%,
		transparent 90%
	);
}

body.hero-variant-b .hero-text {
	position: relative;
	z-index: 2;
	min-height: 700px;
	display: flex;
	align-items: center;
	background: transparent;
}

body.hero-variant-b .hero-copy {
	max-width: 560px;
	/*
	 * Bottom padding clears the overlapping booking card for the single CTA.
	 * Hero shell min-height stays 603px — do not compress for booking exposure.
	 */
	padding: 34px 0 118px 22px;
}

/* —— Typography (Hero-scoped only) —— */
body.hero-variant-b .hero .eyebrow {
	color: var(--hero-eyebrow);
}

body.hero-variant-b .hero .eyebrow i {
	background: var(--hero-eyebrow);
}

body.hero-variant-b .hero h1 {
	color: var(--hero-ink);
	margin: 0 0 18px;
}

body.hero-variant-b .hero h1 em {
	color: var(--hero-gold);
	font-style: italic;
	font-weight: 400;
}

body.hero-variant-b .hero-copy > p {
	color: var(--hero-ink-soft);
	max-width: 38ch;
	margin: 0 0 28px;
}

/* —— Single primary CTA (cinematic variant only) —— */
body.hero-variant-b .hero-actions {
	gap: 0;
}

body.hero-variant-b .hero-actions .btn-dark {
	background: var(--hero-gold);
	color: var(--hero-petrol);
}

body.hero-variant-b .hero-actions .btn-dark:hover {
	background: #d4a55e;
	color: var(--hero-petrol);
}

/* —— Booking widget: keep white card above photo/overlay —— */
body.hero-variant-b .booking-zone {
	position: relative;
	z-index: 5;
	/* Preserved approved overlap — not a booking-first compression */
	margin-top: -79px;
}

body.hero-variant-b .booking-card {
	background: #fff;
	/* no dark overlay inheritance */
	isolation: isolate;
}

/*
 * Short laptop heights — light trim only; keep the spacious cinematic presence
 * from the approved composition (do not re-apply compact conversion heights).
 */
@media (min-width: 851px) and (max-height: 740px) {
	body.hero-variant-b .hero-copy {
		padding-top: 28px;
		padding-bottom: 110px;
	}

	body.hero-variant-b .booking-zone {
		margin-top: -79px;
	}
}

/* —— Mid desktop: keep text clear of grille / branding —— */
@media (max-width: 1440px) and (min-width: 1121px) {
	body.hero-variant-b .hero-visual {
		background-position: 58% 46%;
	}

	body.hero-variant-b .hero-visual:after {
		background: linear-gradient(
			90deg,
			rgba(3, 18, 23, 0.88) 0%,
			rgba(3, 18, 23, 0.78) 20%,
			rgba(3, 18, 23, 0.55) 36%,
			rgba(3, 18, 23, 0.22) 54%,
			rgba(3, 18, 23, 0.05) 72%,
			transparent 88%
		);
	}

	body.hero-variant-b .hero-copy {
		max-width: 520px;
	}
}

@media (max-width: 1280px) and (min-width: 851px) {
	body.hero-variant-b .hero-visual {
		background-position: 54% 46%;
	}

	body.hero-variant-b .hero-visual:after {
		background: linear-gradient(
			90deg,
			rgba(3, 18, 23, 0.9) 0%,
			rgba(3, 18, 23, 0.8) 18%,
			rgba(3, 18, 23, 0.58) 34%,
			rgba(3, 18, 23, 0.26) 50%,
			rgba(3, 18, 23, 0.06) 68%,
			transparent 86%
		);
	}

	body.hero-variant-b .hero-copy {
		max-width: 480px;
		padding-left: 12px;
	}
}

@media (max-width: 1120px) and (min-width: 851px) {
	body.hero-variant-b .hero-visual {
		background-position: 50% 44%;
	}

	body.hero-variant-b .hero-visual:after {
		background: linear-gradient(
			90deg,
			rgba(3, 18, 23, 0.92) 0%,
			rgba(3, 18, 23, 0.82) 16%,
			rgba(3, 18, 23, 0.6) 32%,
			rgba(3, 18, 23, 0.28) 48%,
			rgba(3, 18, 23, 0.08) 64%,
			transparent 82%
		);
	}

	body.hero-variant-b .hero-copy {
		max-width: 440px;
	}

	body.hero-variant-b .hero h1 {
		font-size: clamp(48px, 5vw, 68px);
	}
}

/* —— Tablet / mobile: readable copy + strong vehicle crop —— */
@media (max-width: 850px) {
	body.hero-variant-b .hero,
	body.hero-variant-b .hero.hero--cinematic {
		display: flex;
		flex-direction: column;
		min-height: 0;
		height: auto;
		overflow: visible;
		background: var(--hero-bg);
	}

	body.hero-variant-b .hero-text {
		position: relative;
		z-index: 2;
		min-height: 0;
		height: auto;
		display: block;
		background: transparent; /* single overlay lives on .hero-visual::after only */
	}

	body.hero-variant-b .hero-copy {
		max-width: none;
		padding: 18px 0 20px;
	}

	body.hero-variant-b .hero h1 {
		font-size: clamp(42px, 11vw, 57px);
		max-width: 16ch;
		margin: 12px 0 12px;
	}

	body.hero-variant-b .hero-copy > p {
		font-size: 14px;
		max-width: 36ch;
		margin: 0 0 18px;
	}

	/*
	 * Photo sits under copy via absolute layer spanning the hero,
	 * plus a relative spacer so flex height includes the vehicle band.
	 */
	body.hero-variant-b .hero-visual {
		position: absolute;
		inset: 0;
		width: 100%;
		height: auto;
		min-height: 100%;
		z-index: 0;
		background-position: 68% 40%;
		background-size: cover;
		-webkit-mask-image: none;
		mask-image: none;
	}

	/* Mobile: one combined overlay (no second veil on .hero-text) */
	body.hero-variant-b .hero-visual:after {
		background: linear-gradient(
			160deg,
			rgba(3, 18, 23, 0.9) 0%,
			rgba(3, 18, 23, 0.72) 22%,
			rgba(3, 18, 23, 0.38) 48%,
			rgba(3, 18, 23, 0.12) 68%,
			rgba(3, 18, 23, 0.28) 100%
		);
	}

	/* Spacer so hero height includes vehicle band under copy (kept after content trim). */
	body.hero-variant-b .hero::after {
		content: "";
		display: block;
		position: relative;
		z-index: 0;
		width: 100%;
		height: clamp(320px, 62vw, 390px);
		pointer-events: none;
	}

	/* Normal document flow for booking — avoid awkward overlap on small screens */
	body.hero-variant-b .booking-zone {
		margin-top: 12px;
		z-index: 5;
	}
}

@media (max-width: 520px) {
	body.hero-variant-b .hero-copy {
		padding: 14px 0 16px;
	}

	body.hero-variant-b .hero h1 {
		font-size: clamp(38px, 10.5vw, 49px);
	}

	body.hero-variant-b .hero-visual {
		background-position: 72% 38%;
	}

	body.hero-variant-b .hero-visual:after {
		background: linear-gradient(
			155deg,
			rgba(3, 18, 23, 0.92) 0%,
			rgba(3, 18, 23, 0.76) 24%,
			rgba(3, 18, 23, 0.4) 50%,
			rgba(3, 18, 23, 0.14) 70%,
			rgba(3, 18, 23, 0.32) 100%
		);
	}

	body.hero-variant-b .hero::after {
		height: clamp(300px, 66vw, 350px);
	}

	body.hero-variant-b .booking-zone {
		margin-top: 10px;
	}
}

@media (max-width: 360px) {
	body.hero-variant-b .hero-visual {
		background-position: 74% 36%;
	}

	body.hero-variant-b .hero::after {
		height: 300px;
	}
}
