/**
 * Shared section — inner-page hero (template-parts/sections/page-hero.php)
 *
 * 1. Page Hero
 * 2. Responsive
 */

/* ============================ PAGE HERO ============================ */
.page-hero {
	--hero-bleed: calc((100vw - min(var(--container-max), var(--container-fluid))) / 2);
	position: relative;
	overflow-x: clip;
	background: var(--white);
}

.page-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr); /* copy column widened by its no-wrap heading in the design: seam at 1005px of 1920 */
	min-height: calc(714 * var(--u));
}

.page-hero__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: var(--space-72) var(--space-96) var(--space-80) 0;
}

.page-hero__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--space-10);
	margin-bottom: var(--space-24);
	font-size: var(--fs-24);
	line-height: 1.55;
	color: var(--text-color);
}

.page-hero__crumb {
	color: var(--text-color);
	text-transform: capitalize;
}

a.page-hero__crumb:hover {
	color: var(--primary-color);
}

.page-hero__crumb-sep {
	color: var(--crumb-divider);
}

.page-hero__eyebrow {
	margin-bottom: var(--space-24);
	font-size: var(--fs-24);
	font-weight: var(--font-weight-bold);
	line-height: 1.55;
	color: var(--text-color);
	text-transform: capitalize;
}

.page-hero__dot {
	color: var(--primary-color);
}

.page-hero__title {
	margin-bottom: var(--space-12);
}

.page-hero__text {
	max-width: calc(620 * var(--u));
	margin-bottom: var(--space-18);
	font-size: var(--fs-lead);
	font-weight: var(--font-weight-light);
	line-height: 1.45;
	color: var(--text-color);
}

.page-hero__media {
	position: relative;
	min-height: calc(714 * var(--u));
}

.page-hero__shot {
	position: absolute;
	inset: 0 calc(-1 * var(--hero-bleed)) 0 0;
	overflow: hidden;
	background: var(--light-bg-alt);
}

.page-hero__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.page-hero__seam {
	position: absolute;
	inset: 0 auto 0 0;
	width: calc(15 * var(--u));
	min-width: 8px;
	background: var(--flag-columns);
}

.page-hero__badge {
	position: absolute;
	top: 50%;
	left: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: calc(196 * var(--u));
	height: calc(196 * var(--u));
	min-width: 104px;
	min-height: 104px;
	padding: calc(24 * var(--u));
	border: calc(3 * var(--u)) solid transparent;
	border-radius: var(--radius-full);
	background:
		linear-gradient(var(--white), var(--white)) padding-box,
		linear-gradient(200deg, var(--light-bg-alt) 20%, var(--accent-color) 85%) border-box;
	transform: translate(-50%, -50%);
}

.page-hero__crest {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* ============================ RESPONSIVE ============================ */

/* --- MD / Tablet --- */
@media (max-width: 992px) {
	.page-hero__grid {
		grid-template-columns: minmax(0, 1fr);
		min-height: 0;
	}

	.page-hero__copy {
		padding: 40px 0 48px;
	}

	.page-hero__media {
		min-height: 0;
		aspect-ratio: 16 / 10;
		margin-inline: calc(-1 * var(--hero-bleed));
	}

	.page-hero__shot {
		inset: 0;
	}

	.page-hero__seam {
		inset: 0 0 auto 0;
		width: auto;
		height: 8px;
		min-width: 0;
		background: var(--flag-thirds);
	}

	.page-hero__badge {
		top: 0;
		left: auto;
		right: calc(var(--hero-bleed) + 8px);
		transform: translateY(-50%);
	}
}

/* --- SM / Mobile --- */
@media (max-width: 768px) {
	.page-hero__badge {
		min-width: 84px;
		min-height: 84px;
		padding: 12px;
	}
}
