/**
 * Interior page hero styles (global).
 *
 * Single hero component for ALL interior pages.
 * Supports optional overline, subtitle, CTA card, and bottom-left alignment.
 * BEM block: .hero-page
 *
 * @package BuryGolfClub
 * @since   1.0.0
 */

/* ========================================================================
   Hero Page — Container
   ======================================================================== */

.hero-page {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 65vh;
	min-height: 65dvh;
	overflow: hidden;
}

/* ========================================================================
   Hero Page — Background
   ======================================================================== */

.hero-page__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero-page__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	filter: saturate(0.7) brightness(0.9);
}

.hero-page__media--placeholder {
	background-color: var(--wp--preset--color--primary-deep);
}

.hero-page__placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(
		135deg,
		var(--wp--preset--color--primary-deep) 0%,
		var(--wp--preset--color--primary) 40%,
		var(--wp--preset--color--accent-light) 100%
	);
}

/* ========================================================================
   Hero Page — Overlay
   ======================================================================== */

.hero-page__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		180deg,
		rgba(7, 20, 40, 0.35) 0%,
		rgba(7, 20, 40, 0.30) 40%,
		rgba(0, 0, 0, 0.45) 70%,
		rgba(0, 0, 0, 0.65) 100%
	);
	pointer-events: none;
}

/* ========================================================================
   Hero Page — Content
   ======================================================================== */

.hero-page__content {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-bottom: clamp(3rem, 8vh, 5rem);
	padding-top: clamp(8rem, 20vh, 14rem);
	text-align: center;
}

.hero-page__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2.75rem, 5vw + 1.5rem, 5.5rem);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 0.03em;
	color: var(--wp--preset--color--cream);
	text-align: center;
	width: 100%;
	margin-bottom: 1rem;
}

.hero-page__subtitle {
	font-family: var(--wp--preset--font-family--body);
	font-size: clamp(0.9375rem, 0.5vw + 0.8125rem, 1.1875rem);
	font-weight: 300;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--cream);
	opacity: 0;
	animation: heroPageFadeIn 0.8s ease 0.3s forwards;
	text-align: center;
	max-width: 40rem;
	margin-inline: auto;
}

/* ========================================================================
   Hero Page — Bottom-left Alignment Variant (Heritage style)
   ======================================================================== */

.hero-page--bottom-left {
	align-items: flex-end;
}

.hero-page--bottom-left .hero-page__content {
	text-align: left;
	padding-bottom: clamp(3rem, 10vw, 10rem);
}

.hero-page--bottom-left .hero-page__title {
	text-align: left;
}

.hero-page--bottom-left .hero-page__subtitle {
	text-align: left;
	margin-inline: 0;
}

/* ========================================================================
   Hero Page — Floating CTA Card
   ======================================================================== */

.hero-page__cta-card {
	position: absolute;
	z-index: 3;
	bottom: clamp(1.5rem, 4vh, 3rem);
	right: clamp(1.25rem, 5vw, 5rem);
	background: rgba(7, 20, 40, 0.85);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(196, 162, 101, 0.3);
	border-radius: var(--wp--custom--border-radius--card, 0.5rem);
	padding: clamp(1.25rem, 2vw, 2rem);
	text-align: center;
	max-width: 16rem;
	opacity: 0;
	animation: heroPageFadeIn 0.8s ease 0.6s forwards;
}

.hero-page__cta-label {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	font-weight: 300;
	color: var(--wp--preset--color--cream);
	margin: 0 0 0.375rem;
}

.hero-page__cta-offer {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--medium, 1rem);
	font-weight: 400;
	color: var(--wp--preset--color--gold);
	margin: 0 0 1rem;
	line-height: 1.3;
}

/* ========================================================================
   Keyframes
   ======================================================================== */

@keyframes heroPageFadeIn {
	from {
		opacity: 0;
		transform: translateY(12px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ========================================================================
   Responsive — Tablet (768px)
   ======================================================================== */

@media (max-width: 47.999rem) {
	.hero-page__cta-card {
		position: relative;
		bottom: auto;
		right: auto;
		max-width: none;
		margin: -2rem var(--wp--preset--spacing--30, 1.25rem) 0;
		z-index: 3;
	}
}

/* ========================================================================
   Responsive — Desktop (1024px)
   ======================================================================== */

@media (min-width: 64rem) {
	.hero-page {
		min-height: 75vh;
		min-height: 75dvh;
	}

	.hero-page__content {
		padding-bottom: clamp(4rem, 10vh, 7rem);
		padding-top: clamp(12rem, 25vh, 16rem);
	}
}

/* ========================================================================
   Reduced Motion
   ======================================================================== */

@media (prefers-reduced-motion: reduce) {
	.hero-page__subtitle,
	.hero-page__cta-card {
		opacity: 1;
		animation: none;
	}
}
