/* Per-page hero (templates/page.html, inc/page-hero.php). Self-contained —
   this is a custom block mimicking cover-block markup, so core's own
   .wp-block-cover styles never get auto-loaded for it. */

.page-hero {
	position: relative;
	width: 100%;
	height: 460px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	color: #fff;
}

.page-hero__media {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.page-hero__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	animation: page-hero-ken-burns 8s ease-out forwards;
}

.page-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 100%),
		linear-gradient(90deg, rgba(4, 73, 29, 0.75) 0%, rgba(4, 73, 29, 0.6) 45%, rgba(4, 73, 29, 0.05) 82%);
}

.page-hero__content {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	transform: translateY(-50%);
	z-index: 2;
	width: min(1280px, 100%);
	margin: 0 auto;
	padding: 0 50px 0 30px;
	box-sizing: border-box;
	text-align: left;
}

.page-hero__heading {
	max-width: 620px;
	margin: 0;
	color: #ffffff;
	font-size: clamp(2rem, 1.2rem + 2.6vw, 3.5rem);
	line-height: 1.12;
	opacity: 0;
	transform: translateY(20px);
	animation: page-hero-fade-in-up 0.8s ease 0.3s both;
}

@keyframes page-hero-ken-burns {
	from {
		transform: scale(1);
	}
	to {
		transform: scale(1.08);
	}
}

@keyframes page-hero-fade-in-up {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.page-hero__image,
	.page-hero__heading {
		animation: none !important;
	}

	.page-hero__heading {
		opacity: 1 !important;
		transform: none !important;
	}
}

@media screen and (max-width: 768px) {
	.page-hero__content {
		padding: 0 40px;
		text-align: center;
	}

	.page-hero__heading {
		margin-left: auto;
		margin-right: auto;
	}
}

@media screen and (max-width: 480px) {
	.page-hero {
		height: 420px;
	}

	.page-hero__content {
		padding: 0 24px;
	}
}
