/**
 * Quiet Luxury — Overlay hero: full-bleed editorial image + cream translucent text panel.
 */

.regal-hero-home--overlay {
	--regal-hero-cream: #faf8f5;
	--regal-hero-mocha: #4b3621;
	--regal-hero-line: rgba(75, 54, 33, 0.12);
	--regal-hero-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--regal-hero-panel-bg: rgba(250, 248, 245, 0.72);
	--regal-hero-panel-border: rgba(250, 248, 245, 0.35);
	background: var(--regal-hero-cream);
	border-bottom: 1px solid var(--regal-hero-line);
}

.regal-hero-home__stage {
	position: relative;
	display: flex;
	align-items: stretch;
	justify-content: flex-start;
	width: 100%;
	min-height: clamp(22rem, 72vh, 40rem);
	max-height: min(92vh, 52rem);
	overflow: hidden;
	isolation: isolate;
}

/* —— Full-bleed background images (single or crossfade stack) —— */

.regal-hero-home__media-stack {
	position: absolute;
	inset: 0;
	z-index: 0;
	background-color: #ebe6df;
}

.regal-hero-home__media-slide {
	position: absolute;
	inset: 0;
	background-color: #ebe6df;
	background-position: 68% 40%;
	background-size: cover;
	background-repeat: no-repeat;
	opacity: 0;
	transition: opacity 0.65s ease-in-out;
}

.regal-hero-home__media-slide.is-active {
	opacity: 1;
	z-index: 1;
}

.regal-hero-home__media-stack--1 .regal-hero-home__media-slide {
	opacity: 1;
}

.regal-hero-home--rotating:not(.regal-hero-home--js-rotator) .regal-hero-home__media-stack--2 .regal-hero-home__media-slide:nth-child(1) {
	animation: regal-hero-fade-a 12s ease-in-out infinite;
}

.regal-hero-home--rotating:not(.regal-hero-home--js-rotator) .regal-hero-home__media-stack--2 .regal-hero-home__media-slide:nth-child(2) {
	animation: regal-hero-fade-b 12s ease-in-out infinite;
}

.regal-hero-home--js-rotator .regal-hero-home__media-slide {
	animation: none !important;
}

@keyframes regal-hero-fade-a {
	0%,
	46% {
		opacity: 1;
	}
	50%,
	96% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@keyframes regal-hero-fade-b {
	0%,
	46% {
		opacity: 0;
	}
	50%,
	96% {
		opacity: 1;
	}
	100% {
		opacity: 0;
	}
}

.regal-hero-home__media-link {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.regal-hero-home__img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	max-height: none !important;
	object-fit: cover;
	object-position: 68% 40%;
	display: block;
	filter: saturate(0.92) contrast(1.04);
	transition: filter 0.45s ease, transform 0.8s ease;
}

.regal-hero-home__media-link:hover .regal-hero-home__img,
.regal-hero-home__media-link:focus-visible .regal-hero-home__img {
	filter: saturate(0.96) contrast(1.05);
}

/* Soft gradient so panel text stays readable on bright areas */
.regal-hero-home__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		105deg,
		rgba(250, 248, 245, 0.55) 0%,
		rgba(250, 248, 245, 0.28) 42%,
		rgba(17, 17, 17, 0.08) 100%
	);
}

/* —— Cream translucent text panel —— */

.regal-hero-home__panel {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	align-self: stretch;
	width: 100%;
	max-width: min(100%, 28rem);
	margin: 0;
	padding: clamp(1.25rem, 4vw, 2rem) var(--regal-home-heading-padding-inline, clamp(1.15rem, 4vw, 2.5rem));
	padding-top: max(clamp(1.25rem, 4vw, 2rem), env(safe-area-inset-top, 0px));
	padding-bottom: max(clamp(1.25rem, 4vw, 2rem), env(safe-area-inset-bottom, 0px));
	box-sizing: border-box;
}

.regal-hero-home__panel-inner {
	width: 100%;
	padding: clamp(1.15rem, 3.5vw, 1.75rem) clamp(1.15rem, 3vw, 1.65rem);
	background: var(--regal-hero-panel-bg);
	border: 1px solid var(--regal-hero-panel-border);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 12px 40px rgba(17, 17, 17, 0.06);
}

.regal-hero-home__panel-stack {
	position: relative;
	min-height: 10rem;
}

.regal-hero-home__panel-stack--1 .regal-hero-home__panel-slide {
	position: relative;
	opacity: 1;
}

.regal-hero-home__panel-slide {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.65s ease-in-out;
}

.regal-hero-home__panel-slide.is-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}

.regal-hero-home--rotating:not(.regal-hero-home--js-rotator) .regal-hero-home__panel-stack--2 .regal-hero-home__panel-slide:nth-child(1) {
	animation: regal-hero-fade-a 12s ease-in-out infinite;
}

.regal-hero-home--rotating:not(.regal-hero-home--js-rotator) .regal-hero-home__panel-stack--2 .regal-hero-home__panel-slide:nth-child(2) {
	animation: regal-hero-fade-b 12s ease-in-out infinite;
}

.regal-hero-home--js-rotator .regal-hero-home__panel-slide {
	animation: none !important;
}

/* —— Pagination dots —— */

.regal-hero-home__dots {
	position: absolute;
	z-index: 3;
	right: clamp(1rem, 3vw, 1.75rem);
	bottom: clamp(1rem, 3vw, 1.5rem);
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.regal-hero-home__dot {
	width: 0.5rem;
	height: 0.5rem;
	padding: 0;
	border: 1px solid rgba(75, 54, 33, 0.45);
	border-radius: 50%;
	background: rgba(250, 248, 245, 0.55);
	cursor: pointer;
	transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
	-webkit-tap-highlight-color: transparent;
}

.regal-hero-home__dot.is-active,
.regal-hero-home__dot:hover,
.regal-hero-home__dot:focus-visible {
	background: #4b3621;
	border-color: #4b3621;
	transform: scale(1.15);
	outline: none;
}

.regal-hero-home__eyebrow {
	margin: 0 0 0.85rem;
	font-family: var(--regal-hero-font);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--regal-hero-mocha);
	line-height: 1.8;
}

.regal-hero-home--overlay .regal-hero-home-title {
	margin: 0 0 0.85rem;
	max-width: 20rem;
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	font-weight: 500;
	font-size: clamp(1.5rem, 4.5vw, 2.35rem);
	line-height: 1.2;
	letter-spacing: 0.02em;
	color: var(--regal-hero-mocha);
	text-wrap: balance;
	text-shadow: none;
}

.regal-hero-home__lede {
	margin: 0 0 1.25rem;
	max-width: 20rem;
	font-family: var(--regal-hero-font);
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.75;
	letter-spacing: 0.02em;
	color: rgba(75, 54, 33, 0.78);
}

.regal-hero-home__cta-wrap {
	margin: 0;
}

.regal-hero-home__cta {
	display: inline-block;
	min-height: 44px;
	padding: 0.7rem 1.5rem;
	border: 1px solid var(--regal-hero-mocha);
	background: var(--regal-hero-mocha);
	color: var(--regal-hero-cream) !important;
	font-family: var(--regal-hero-font);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	text-decoration: none !important;
	line-height: 1.4;
	transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.regal-hero-home__cta:hover,
.regal-hero-home__cta:focus-visible {
	background: #111111;
	border-color: #111111;
	color: #faf8f5 !important;
}

/* —— Mobile —— */

@media (max-width: 767px) {
	.regal-hero-home__stage {
		min-height: clamp(20rem, 68vh, 34rem);
		max-height: none;
		align-items: flex-end;
	}

	.regal-hero-home__scrim {
		background: linear-gradient(
			180deg,
			rgba(17, 17, 17, 0.12) 0%,
			rgba(250, 248, 245, 0.35) 35%,
			rgba(250, 248, 245, 0.72) 100%
		);
	}

	.regal-hero-home__panel {
		max-width: 100%;
		padding: 0 clamp(1rem, 4vw, 1.25rem) clamp(1rem, 4vw, 1.35rem);
		padding-bottom: max(clamp(1rem, 4vw, 1.35rem), env(safe-area-inset-bottom, 0px));
	}

	.regal-hero-home__panel-inner {
		padding: clamp(1rem, 3.5vw, 1.35rem) clamp(1rem, 3vw, 1.25rem);
	}

	.regal-hero-home--overlay .regal-hero-home-title {
		max-width: none;
		font-size: clamp(1.35rem, 6vw, 1.85rem);
	}

	.regal-hero-home__lede {
		max-width: none;
		font-size: 0.875rem;
	}

	.regal-hero-home__img {
		object-position: 62% 32%;
	}

	.regal-hero-home__cta {
		display: block;
		width: 100%;
		max-width: 20rem;
		text-align: center;
		box-sizing: border-box;
	}
}

/* —— Tablet / desktop —— */

@media (min-width: 768px) {
	.regal-hero-home__stage {
		min-height: clamp(26rem, 78vh, 44rem);
	}

	.regal-hero-home__panel {
		flex: 0 0 auto;
		max-width: min(42vw, 30rem);
		padding-left: clamp(1.5rem, 4vw, 3.5rem);
	}

	.regal-hero-home--overlay .regal-hero-home-title {
		max-width: 22rem;
	}

	.regal-hero-home__img {
		object-position: 72% 42%;
	}
}

@media (min-width: 1200px) {
	.regal-hero-home__panel {
		max-width: 32rem;
		padding-left: clamp(2rem, 5vw, 4.5rem);
	}

	.regal-hero-home__panel-inner {
		padding: clamp(1.35rem, 2.5vw, 2rem) clamp(1.5rem, 2.5vw, 2rem);
	}
}

/* —— Text-only fallback (no image) —— */

.regal-hero-home--overlay.regal-hero-home--text-only .regal-hero-home__stage {
	min-height: auto;
	max-height: none;
	background: var(--regal-hero-cream);
}

.regal-hero-home--overlay.regal-hero-home--text-only .regal-hero-home__panel {
	max-width: none;
	padding: clamp(2.5rem, 6vw, 4rem) var(--regal-home-heading-padding-inline, clamp(1.25rem, 4vw, 2.5rem));
}

.regal-hero-home--overlay.regal-hero-home--text-only .regal-hero-home__panel-inner {
	background: var(--regal-hero-cream);
	border-color: var(--regal-hero-line);
	box-shadow: none;
	backdrop-filter: none;
}

/* —— Reduced motion —— */

@media (prefers-reduced-motion: reduce) {
	.regal-hero-home__img,
	.regal-hero-home__cta {
		transition: none;
	}

	.regal-hero-home--js-rotator .regal-hero-home__media-slide,
	.regal-hero-home--js-rotator .regal-hero-home__panel-slide {
		transition: none;
	}

	.regal-hero-home--js-rotator .regal-hero-home__media-slide:not(.is-active),
	.regal-hero-home--js-rotator .regal-hero-home__panel-slide:not(.is-active) {
		display: none;
	}

	.regal-hero-home--js-rotator .regal-hero-home__media-slide.is-active,
	.regal-hero-home--js-rotator .regal-hero-home__panel-slide.is-active {
		opacity: 1;
		display: flex;
	}
}
