/* Mobile-first: portrait ratio ~390x700 */
.hero-banner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: min(700px, 179vw);
	margin-bottom: var(--section-space);
	overflow: hidden;
	background: var(--color-surface);
}

/* Tablet and up: switch to landscape proportions */
@media (min-width: 768px) {
	.hero-banner,
	.hero-banner--height-default {
		min-height: clamp(400px, 55vw, 620px);
	}

	.hero-banner--height-short {
		min-height: clamp(280px, 35vw, 420px);
	}

	.hero-banner--height-tall {
		min-height: clamp(520px, 70vw, 820px);
	}
}

@media (max-width: 767px) {
	.hero-banner--mobile-short {
		min-height: clamp(16rem, 56vw, 22rem);
	}

	.hero-banner--mobile-short .hero-banner__bg-img,
	.hero-banner--mobile-short .hero-banner__bg-video {
		object-position: right center;
	}
}

.hero-banner__bg {
	position: absolute;
	inset: 0;
}

.hero-banner__bg picture {
	display: block;
	width: 100%;
	height: 100%;
}

/* Mobile: center the image so portrait crops show correctly */
.hero-banner__bg-img,
.hero-banner__bg-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}

/* Desktop: shift focus toward top of image */
@media (min-width: 768px) {
	.hero-banner__bg-img,
	.hero-banner__bg-video {
		object-position: center top;
	}
}

.hero-banner__content {
	position: relative;
	z-index: 1;
	width: min(100%, 36rem);
	padding: var(--space-5) var(--space-4);
	text-align: center;
}

/* Mobile (<768): always center horizontally; left→top, center→middle, right→bottom */
.hero-banner--pos-left {
	align-items: flex-start;
	justify-content: center;
}

.hero-banner--pos-center {
	align-items: center;
	justify-content: center;
}

.hero-banner--pos-right {
	align-items: flex-end;
	justify-content: center;
}

/* Desktop: left/center/right as horizontal placement, vertically middle */
@media (min-width: 768px) {
	.hero-banner--pos-left {
		align-items: center;
		justify-content: flex-start;
	}

	.hero-banner--pos-center {
		align-items: center;
		justify-content: center;
	}

	.hero-banner--pos-right {
		align-items: center;
		justify-content: flex-end;
	}

	/* Align left/right blocks to the site container edge, not the viewport */
	.hero-banner--pos-left,
	.hero-banner--pos-right {
		padding-inline: max(1rem, calc((100% - min(100% - 2rem, var(--container))) / 2));
	}
}

.hero-banner--align-left .hero-banner__content {
	text-align: left;
}

.hero-banner--align-center .hero-banner__content {
	text-align: center;
}

.hero-banner--align-right .hero-banner__content {
	text-align: right;
}

@media (min-width: 768px) {
	.hero-banner__content {
		padding: var(--space-6) var(--space-4);
	}
}

.hero-banner__rich-text {
	font-size: clamp(1rem, 2.4vw, 1.375rem);
	line-height: 1.4;
	color: var(--color-text);
}

.hero-banner__rich-text > *:first-child {
	margin-top: 0;
}

.hero-banner__rich-text > *:last-child {
	margin-bottom: 0;
}

.hero-banner__rich-text h1,
.hero-banner__rich-text h2,
.hero-banner__rich-text h3,
.hero-banner__rich-text h4 {
	margin: 0 0 var(--space-3);
	font-size: clamp(2.5rem, 10vw, 6rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.05;
	text-transform: uppercase;
}

.hero-banner__rich-text p {
	margin: 0 0 var(--space-3);
}

.hero-banner__rich-text strong,
.hero-banner__rich-text b {
	font-weight: 700;
}

.hero-banner__rich-text a {
	color: var(--color-brand-blue, #003da5);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

.hero-banner__rich-text a:focus-visible {
	outline: 2px solid var(--color-brand-blue, #003da5);
	outline-offset: 2px;
}

.hero-banner__cta {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	min-width: 14rem;
	margin-top: var(--space-4);
	padding: 1.05rem 2.5rem;
	border: 1px solid #1a2340;
	border-radius: 0.5rem;
	background: #1a2340;
	color: #fff;
	font: inherit;
	font-size: 1rem;
	line-height: 1;
	text-align: center;
	text-decoration: none;
}

.hero-banner__cta::before {
	content: "";
	position: absolute;
	top: -1px;
	right: -1px;
	bottom: -1px;
	left: -1px;
	background: #1a2340;
	transition: transform 0.25s ease;
	transform: translateX(0);
}

.hero-banner__cta-label {
	position: relative;
	z-index: 1;
	transition: color 0.25s ease;
}

@media (hover: hover) {
	.hero-banner__cta:hover::before {
		transform: translateX(-100%);
	}

	.hero-banner__cta:hover {
		background: #fff;
		color: #1a2340;
	}

	.hero-banner__cta:hover .hero-banner__cta-label {
		color: #1a2340;
	}
}

.hero-banner__cta:focus-visible::before {
	transform: translateX(-100%);
}

.hero-banner__cta:focus-visible {
	background: #fff;
	color: #1a2340;
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.hero-banner__cta:focus-visible .hero-banner__cta-label {
	color: #1a2340;
}
