/*
 * Homepage hero banner (v2, 2026-11-24) — navy split layout: copy left, family photo right, $50 offer disc.
 * Markup: inc/home-hero.php (s4e_home_hero_markup), stored in the front page content as section.s4e-hero.
 * Loaded on the front page only (filter s4e_asset_plan). Every rule is scoped to .s4e-hero.
 * Breakpoints: ≥768 split layout (the booking card below overlaps the hero bottom by 80px, see --s4e-hero-overlap),
 *              ≤767 stacked layout (copy, pills + disc, photo band).
 */
@font-face {
	font-family: "Plus Jakarta Sans";
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url("../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations"),
		url("../fonts/plus-jakarta-sans/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.s4e-hero {
	--s4e-hero-navy: #123f7e; /* site brand blue (header button, top bar, form button) */
	--s4e-hero-navy-deep: #0c2f62; /* darker shade of the brand blue, for depth */
	--s4e-hero-navy-lift: #1b4f95; /* lighter shade, for the glow behind the copy */
	--s4e-hero-mint: #27f5d0;
	--s4e-hero-mint-disc: #2ee5c8;
	--s4e-hero-body: #cad8ee;
	--s4e-hero-ink: #032044;
	--s4e-hero-overlap: 80px; /* booking card (.el.s-534a747, margin-top -90px) sits over the hero bottom */
	--s4e-hero-container: 1300px; /* the site's content width (header logo / sections) */
	--s4e-hero-pad: clamp(26px, 4.4vw, 70px);

	position: relative;
	isolation: isolate;
	overflow: hidden;
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0 0 var(--s4e-hero-overlap);
	min-height: max(600px, min(46vw, 800px));
	display: flex;
	align-items: stretch;
	background:
		radial-gradient(90% 130% at 6% 46%, var(--s4e-hero-navy-lift) 0%, rgba(18, 63, 126, 0) 58%),
		linear-gradient(96deg, var(--s4e-hero-navy) 0%, var(--s4e-hero-navy) 42%, var(--s4e-hero-navy-deep) 100%);
	background-color: var(--s4e-hero-navy);
	font-family: "Plus Jakarta Sans", Lato, system-ui, -apple-system, "Segoe UI", sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	text-align: left;
}
.s4e-hero *,
.s4e-hero *::before,
.s4e-hero *::after { box-sizing: border-box; }

/* ---------------------------------------------------------------- photo + overlays */
.s4e-hero__media {
	position: absolute;
	inset: 0 0 0 auto;
	width: 62%;
	margin: 0;
	z-index: 0;
}
.s4e-hero__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 62% center;
	border-radius: 0;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 14%, #000 38%);
	mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .25) 14%, #000 38%);
}
.s4e-hero__wash {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(92deg, #123f7e 0%, rgba(18, 63, 126, .97) 24%, rgba(18, 63, 126, .55) 42%, rgba(12, 47, 98, .04) 58%, rgba(12, 47, 98, .18) 100%);
	pointer-events: none;
}
.s4e-hero__dots {
	position: absolute;
	inset: -20% 0 0 0;
	z-index: 2;
	background-image: radial-gradient(rgba(39, 245, 208, .6) 1px, transparent 1.35px);
	background-size: 26px 26px;
	-webkit-mask-image: linear-gradient(90deg, #000 0%, #000 32%, transparent 56%);
	mask-image: linear-gradient(90deg, #000 0%, #000 32%, transparent 56%);
	opacity: .42;
	pointer-events: none;
}
.s4e-hero__glow {
	display: none; /* the halo now comes from the disc's box-shadow, so it follows the disc */
	position: absolute;
	z-index: 2;
	top: calc(50% - var(--s4e-hero-overlap) / 2);
	left: 57.5%;
	width: 40%;
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	background: radial-gradient(circle, rgba(46, 229, 200, .26) 0%, rgba(46, 229, 200, 0) 66%);
	pointer-events: none;
}

/* ---------------------------------------------------------------- copy */
.s4e-hero__inner {
	position: relative;
	z-index: 3;
	flex: 1 1 auto;
	width: 100%;
	display: flex;
	align-items: center;
	padding: var(--s4e-hero-pad) max(var(--s4e-hero-pad), calc((100% - var(--s4e-hero-container)) / 2));
}
.s4e-hero__copy { position: relative; max-width: min(49%, 660px); }

.s4e-hero .s4e-hero__kicker {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
	padding: 0;
	color: var(--s4e-hero-mint);
	font-family: inherit;
	font-size: clamp(9.5px, .82vw, 12.5px);
	font-weight: 700;
	line-height: 1.4;
	letter-spacing: .19em;
	text-transform: uppercase;
}
.s4e-hero__kicker-line {
	width: clamp(22px, 2.3vw, 38px);
	height: 2px;
	background: var(--s4e-hero-mint);
	border-radius: 2px;
	flex: none;
}
.s4e-hero .s4e-hero__headline {
	margin: clamp(10px, 1.5vw, 22px) 0 0;
	padding: 0;
	color: #fff;
	font-family: inherit;
	font-size: clamp(36px, 4.75vw, 92px); /* reference: ~61px at a 1280px viewport, scales up on wide screens */
	font-weight: 800;
	line-height: 1.03;
	letter-spacing: -.035em;
	text-transform: none;
}
.s4e-hero .s4e-hero__headline em { font-style: normal; font-weight: inherit; color: var(--s4e-hero-mint); }

.s4e-hero .s4e-hero__lede {
	margin: clamp(12px, 1.5vw, 22px) 0 0;
	padding: 0;
	max-width: 34ch;
	color: var(--s4e-hero-body);
	font-family: inherit;
	font-size: clamp(12.5px, 1.08vw, 16.5px);
	font-weight: 400;
	line-height: 1.6;
}
.s4e-hero .s4e-hero__lede strong { color: #fff; font-weight: 700; white-space: nowrap; }

/* ---------------------------------------------------------------- pills + disc */
.s4e-hero__offer { display: contents; }

.s4e-hero .s4e-hero__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: clamp(14px, 1.9vw, 26px) 0 0;
	padding: 0;
	list-style: none;
}
.s4e-hero .s4e-hero__pill {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 7px 18px 7px 7px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(198, 233, 255, .2);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	color: #fff;
	font-family: inherit;
	font-size: clamp(10.5px, .9vw, 14px);
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	list-style: none;
}
.s4e-hero .s4e-hero__pill::before,
.s4e-hero .s4e-hero__pill::marker { content: none; display: none; }
.s4e-hero__pill-icon {
	width: clamp(24px, 2.1vw, 32px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--s4e-hero-mint);
	color: var(--s4e-hero-ink);
	display: grid;
	place-items: center;
	flex: none;
}
.s4e-hero__pill-icon svg { width: 58%; height: 58%; display: block; }

.s4e-hero__promo {
	/* ≥768: sits just right of the text block (the copy box is as wide as its longest line), vertically centred on it */
	position: absolute;
	z-index: 4;
	top: 50%;
	left: calc(100% + clamp(28px, 3.6vw, 72px));
	translate: 0 -50%;
	rotate: -8deg; /* tilted like a sticker */
	animation: s4e-hero-disc-sway 5.5s ease-in-out infinite;
	transition: scale .3s ease;
	width: clamp(132px, 15.4vw, 224px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--s4e-hero-mint-disc);
	display: grid;
	place-content: center;
	text-align: center;
	color: var(--s4e-hero-ink);
	font-family: inherit;
	box-shadow:
		0 30px 70px -22px rgba(0, 0, 0, .6),
		0 0 0 11px rgba(46, 229, 200, .1),
		0 0 100px rgba(46, 229, 200, .26),
		0 0 180px 40px rgba(46, 229, 200, .12); /* soft halo (replaces .s4e-hero__glow, which stayed mid-hero) */
}
.s4e-hero__promo::before { /* dashed inner ring, turning slowly */
	content: "";
	position: absolute;
	inset: 8%;
	border: 1.6px dashed rgba(3, 32, 68, .4);
	border-radius: 50%;
	pointer-events: none;
	animation: s4e-hero-disc-spin 28s linear infinite;
}
.s4e-hero__promo::after { /* mint ring pulsing out from the edge */
	content: "";
	position: absolute;
	inset: 0;
	border: 2px solid rgba(46, 229, 200, .7);
	border-radius: 50%;
	pointer-events: none;
	opacity: 0;
	animation: s4e-hero-disc-ping 2.8s cubic-bezier(.2, .6, .35, 1) infinite;
}
.s4e-hero__promo:hover { animation-play-state: paused; scale: 1.06; }

@keyframes s4e-hero-disc-sway {
	0%, 100% { rotate: -8deg; scale: 1; }
	50% { rotate: -3deg; scale: 1.045; }
}
@keyframes s4e-hero-disc-spin {
	to { rotate: 360deg; }
}
@keyframes s4e-hero-disc-ping {
	0% { scale: 1; opacity: .7; }
	75%, 100% { scale: 1.32; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.s4e-hero__promo,
	.s4e-hero__promo::before,
	.s4e-hero__promo::after { animation: none; }
}
.s4e-hero__promo-top {
	font-size: clamp(8px, .92vw, 13px);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .13em;
	text-transform: uppercase;
}
.s4e-hero__promo-price {
	margin: .06em 0 .02em;
	font-size: clamp(38px, 4.85vw, 72px);
	font-weight: 800;
	line-height: .95;
	letter-spacing: -.05em;
}
.s4e-hero__promo-bot {
	font-size: clamp(9px, 1vw, 14px);
	font-weight: 700;
	line-height: 1.18;
	letter-spacing: .01em;
}

/* ---------------------------------------------------------------- tablet (768–1100): keep copy clear of the disc */
@media (min-width: 768px) and (max-width: 1100px) {
	.s4e-hero { min-height: 560px; }
	.s4e-hero__copy { max-width: 47%; }
}
@media (min-width: 768px) and (max-width: 899px) {
	.s4e-hero .s4e-hero__pills { flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* ---------------------------------------------------------------- mobile (≤767): stacked */
@media (max-width: 767px) {
	.s4e-hero {
		--s4e-hero-overlap: 0px; /* the booking card does not overlap on mobile */
		flex-direction: column;
		min-height: 0;
		padding: 0;
		background:
			radial-gradient(120% 55% at 12% 4%, var(--s4e-hero-navy-lift) 0%, rgba(18, 63, 126, 0) 62%),
			linear-gradient(174deg, var(--s4e-hero-navy) 0%, var(--s4e-hero-navy) 62%, var(--s4e-hero-navy-deep) 100%);
	}

	.s4e-hero__inner {
		order: 1;
		display: block;
		padding: 34px 20px 0;
	}
	.s4e-hero__copy { max-width: 560px; }

	.s4e-hero .s4e-hero__kicker { font-size: 9.5px; gap: 9px; letter-spacing: .16em; }
	.s4e-hero__kicker-line { width: 20px; }

	.s4e-hero .s4e-hero__headline {
		font-size: clamp(31px, 8.7vw, 44px);
		margin-top: 13px;
		letter-spacing: -.038em;
	}
	.s4e-hero .s4e-hero__lede {
		font-size: 13.5px;
		line-height: 1.55;
		margin-top: 12px;
		max-width: 30ch;
	}

	/* pills on the left, $50 disc on their right */
	.s4e-hero__offer {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		max-width: 420px; /* keeps the disc next to the pills on large phones */
		margin-top: 16px;
	}
	.s4e-hero .s4e-hero__pills {
		margin-top: 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 7px;
	}
	.s4e-hero .s4e-hero__pill {
		font-size: 10.5px;
		gap: 7px;
		padding: 4px 12px 4px 4px;
	}
	.s4e-hero__pill-icon { width: 21px; }

	.s4e-hero__promo {
		position: relative;
		top: auto;
		left: auto;
		translate: none;
		flex: none;
		width: 106px;
		box-shadow:
			0 16px 34px -14px rgba(0, 0, 0, .55),
			0 0 0 7px rgba(46, 229, 200, .09),
			0 0 40px rgba(46, 229, 200, .16);
	}
	.s4e-hero__promo::before { inset: 8%; border-width: 1.3px; }
	.s4e-hero__promo-top { font-size: 6.3px; letter-spacing: .12em; }
	.s4e-hero__promo-price { font-size: 30px; }
	.s4e-hero__promo-bot { font-size: 6.8px; }

	/* photo band: whole family + dentist in frame */
	.s4e-hero__media {
		order: 2;
		position: relative;
		inset: auto;
		width: 100%;
		aspect-ratio: 3 / 2;
		max-height: 460px;
		margin: 14px 0 0;
		background: var(--s4e-hero-navy-deep);
	}
	.s4e-hero__media img {
		object-position: 100% center;
		-webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .55) 2%, #000 5.5%);
		mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .55) 2%, #000 5.5%);
	}
	.s4e-hero__media::after {
		content: "";
		position: absolute;
		inset: 0;
		pointer-events: none;
		background:
			linear-gradient(90deg, rgba(18, 63, 126, .92) 0%, rgba(18, 63, 126, .35) 11%, rgba(18, 63, 126, 0) 26%),
			linear-gradient(0deg, rgba(12, 47, 98, .3) 0%, rgba(12, 47, 98, 0) 16%);
	}

	.s4e-hero__wash,
	.s4e-hero__glow { display: none; }

	.s4e-hero__dots {
		inset: 0 0 auto 0;
		height: 46%;
		background-size: 22px 22px;
		-webkit-mask-image: linear-gradient(180deg, #000 0%, #000 48%, transparent 100%);
		mask-image: linear-gradient(180deg, #000 0%, #000 48%, transparent 100%);
		opacity: .32;
	}
}

@media (max-width: 360px) {
	.s4e-hero__inner { padding: 28px 16px 0; }
	.s4e-hero .s4e-hero__headline { font-size: 29px; }
	.s4e-hero__promo { width: 94px; }
	.s4e-hero__promo-price { font-size: 27px; }
	.s4e-hero .s4e-hero__pill { font-size: 10px; }
}
