/**
 * Hero section styles — Full-viewport homepage hero.
 *
 * BEM block: .hero-home
 * Depends on design tokens from theme.json.
 *
 * @package BuryGolfClub
 * @since   1.0.0
 */

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

.hero-home {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: flex-start;
	min-height: 100vh;
	min-height: 100dvh;
	overflow: hidden;
	background-color: var(--wp--preset--color--cream, #F5F0E6);
}

/* ========================================================================
   Hero — Background Image / Media
   ======================================================================== */

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

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

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

.hero-home__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 — Light-wash Overlay Gradient (Centurion style)
   ======================================================================== */

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

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

.hero-home__content {
	position: relative;
	z-index: 2;
	width: 100%;
	text-align: left;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding-inline: clamp(1.25rem, 5vw, 5rem);
	padding-bottom: clamp(4rem, 10vw, 8rem);
}

/* Overline — "Established 1890" */
.hero-home__overline {
	margin-bottom: 1.25rem;
	opacity: 0;
	animation: heroFadeIn 0.8s ease 0.3s forwards;
}

.hero-home__overline-text {
	display: inline-block;
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--wp--preset--color--gold);
	border-bottom: 1px solid var(--wp--preset--color--gold);
	padding-bottom: 0.25rem;
}

/* Title — large text heading */
.hero-home__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(3rem, 5vw + 1.5rem, 6.5rem);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--cream, #F5F0E6);
	margin: 0 0 1.25rem;
	opacity: 0;
	animation: heroFadeIn 0.8s ease 0.3s forwards;
}

/* Subtitle — designers credit */
.hero-home__subtitle {
	font-family: var(--wp--preset--font-family--body);
	font-size: clamp(0.875rem, 0.5vw + 0.75rem, 1.125rem);
	font-weight: 300;
	letter-spacing: 0.04em;
	color: var(--wp--preset--color--cream-dark);
	margin-bottom: 2rem;
	opacity: 0;
	animation: heroFadeIn 0.8s ease 0.6s forwards;
}

/* CTA wrapper */
.hero-home__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	opacity: 0;
	animation: heroFadeIn 0.8s ease 0.9s forwards;
}

/* Hero CTA — outline style to match Centurion's understated approach */
.hero-home__actions .bgc-btn,
.hero-home__actions .bgc-btn--gold {
	background-color: transparent;
	border: 1px solid var(--wp--preset--color--cream, #F5F0E6);
	color: var(--wp--preset--color--cream, #F5F0E6);
	font-size: 0.75rem;
	padding: 0.5rem 0.5rem 0.5rem 1.125rem;
}

.hero-home__actions .bgc-btn:hover,
.hero-home__actions .bgc-btn--gold:hover {
	background-color: var(--wp--preset--color--gold);
	border-color: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--text-primary);
}

.hero-home__actions .bgc-btn:hover .bgc-btn__arrow {
	background-color: var(--wp--preset--color--text-primary);
}

.hero-home__actions .bgc-btn:hover .bgc-btn__arrow svg {
	stroke: var(--wp--preset--color--gold);
}

.hero-home__actions .bgc-btn__arrow {
	width: 1.375rem;
	height: 1.375rem;
	background-color: var(--wp--preset--color--cream, #F5F0E6);
}

.hero-home__actions .bgc-btn__arrow svg {
	stroke: var(--wp--preset--color--primary, #071428);
}

/* ========================================================================
   Hero — Scroll Indicator
   ======================================================================== */

.hero-home__scroll {
	position: absolute;
	bottom: 2rem;
	right: var(--wp--preset--spacing--30);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}

.hero-home__scroll-text {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.6875rem;
	font-weight: 500;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--wp--preset--color--cream);
	writing-mode: vertical-lr;
	opacity: 0.6;
}

.hero-home__scroll-line {
	display: block;
	width: 1px;
	height: 3rem;
	background-color: var(--wp--preset--color--cream);
	opacity: 0.4;
	position: relative;
	overflow: hidden;
}

.hero-home__scroll-line::after {
	content: '';
	position: absolute;
	top: -100%;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--wp--preset--color--gold);
	animation: scrollLine 2s ease-in-out infinite;
}

/* ========================================================================
   Hero — Keyframe Animations
   ======================================================================== */

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

@keyframes scrollLine {
	0% {
		top: -100%;
	}
	50% {
		top: 100%;
	}
	50.01% {
		top: -100%;
	}
	100% {
		top: 100%;
	}
}

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

@media (min-width: 48rem) {
	.hero-home__overline-text {
		font-size: 0.8125rem;
	}

	.hero-home__subtitle {
		font-size: 1.125rem;
	}

	.hero-home__scroll {
		bottom: 3rem;
	}

	.hero-home__scroll-line {
		height: 4rem;
	}
}

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

@media (min-width: 64rem) {
	.hero-home__scroll {
		right: 3rem;
	}
}

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

@media (prefers-reduced-motion: reduce) {
	.hero-home__overline,
	.hero-home__title,
	.hero-home__subtitle,
	.hero-home__actions,
	.hero-home__logo {
		opacity: 1;
		animation: none;
	}

	.hero-home__scroll-line::after {
		animation: none;
	}
}
