.page-header {
	--bottom-desktop-spacing: 8rem;

	@media (width >= 1000px) {
		--bottom-desktop-spacing: 18rem;
	}

	background-color: var(--midnight);
	color: var(--white);
	padding-block-end: var(--spacing-60);
}

.page-header__bar {
	padding-block: var(--spacing-30)
		calc(var(--bottom-desktop-spacing) + var(--spacing-30));
	position: relative;
	z-index: 1;
	background-color: var(--gray-dark);

	@media (width >= 1000px) {
		padding-block: var(--spacing-120)
			calc(var(--bottom-desktop-spacing) + var(--spacing-100));
	}

	&::after {
		@media (width >= 1000px) {
			background-image: url("../../images/grid-corner-9x5.svg");
			background-repeat: no-repeat;
			background-position: right bottom;
			background-size: contain;
			content: "";
			block-size: 75%;
			inline-size: 75%;
			position: absolute;
			z-index: 1;
			right: 0;
			bottom: 0;
		}
	}

	.container {
		display: flex;
		gap: var(--spacing-20);
		flex-direction: column;
		justify-content: space-between;

		@media (width >= 1000px) {
			flex-direction: row;
			align-items: center;
			position: relative;
			z-index: 2;
		}
	}
}

.page-header__title {
	font-size: var(--wp--custom--font-sizes--display-xl);
	font-weight: 700;
	margin: 0;
	max-width: var(--l);
}

.page-header__cta {
	flex-shrink: 0;
}

.page-header__image {
	position: relative;
	z-index: 1;
	margin-block-start: calc(var(--bottom-desktop-spacing) * -1);

	.image,
	.image__img {
		display: block;
		width: 100%;
		height: auto;
	}
}

.page-header__bottom {
	display: flex;
	align-items: start;
	gap: var(--spacing-20);
	justify-content: center;
	padding-block-start: var(--spacing-40);
	position: relative;
	z-index: 1;
	flex-direction: column;

	@media (width >= 1000px) {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		flex-wrap: wrap;
		gap: var(--spacing-40);
		padding-block-start: var(--spacing-100);
	}
}

.page-header__subtitle {
	color: var(--teal-contrast);
	font-family: var(--font-primary);
	font-size: var(--wp--custom--font-sizes--display-xxl);
	font-weight: 700;
	line-height: 1.05;
	margin: 0;
	max-width: 16ch;
	position: relative;
	z-index: 1;

	@media (width >= 1000px) {
		width: 70%;
	}
}

.page-header__subtitle--teal {
	color: var(--teal-contrast);
}

.page-header__subtitle--orange {
	color: var(--orange);
}

.page-header__subtitle--orange-outline {
	-webkit-text-stroke: 2px var(--orange);
	color: transparent;
}

.page-header__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--spacing-5);

	@media (width >= 1000px) {
		gap: var(--spacing-10);
		order: 100;
	}
}

.page-header__list-item {
	color: var(--white);
	font-size: var(--step-0);
	padding-inline-start: 1.6em;
	position: relative;
}

.page-header__list-item::before {
	color: var(--teal-contrast);
	content: "";
	font-size: 0.85em;
	font-weight: 700;
	inset-block-start: 50%;
	inset-inline-start: 0;
	position: absolute;
	transform: translateY(-50%);
	background-image: url("../../images/check-green.svg");
	background-repeat: no-repeat;
	background-size: contain;
	inline-size: 1em;
	block-size: 1em;
}

.page-header__icon {
	flex-shrink: 0;
	order: -1;

	@media (width >= 1000px) {
		order: 0;
		width: 25%;
		display: flex;
		justify-content: end;
	}

	img {
		display: block;
		height: auto;
		max-height: 40px;
		width: auto;

		@media (width >= 1000px) {
			max-height: 120px;
		}
	}
}
