.rp-hv-container {
	width: min(calc(100% - 2rem), var(--rp-hv-content-width));
	margin: 0 auto;
}

.rp-hv-container--content {
	width: min(calc(100% - 2rem), var(--rp-hv-content-narrow));
}

.rp-hv-section {
	padding: clamp(3rem, 5vw, 5.5rem) 0;
}

.rp-hv-editor-flow > .wp-block-group,
.rp-hv-editor-flow > .wp-block-cover,
.rp-hv-editor-flow > .wp-block-columns,
.rp-hv-editor-flow > .wp-block-media-text {
	margin-bottom: 0;
}

.rp-hv-editor-flow > :is(.wp-block-group, .wp-block-cover, .wp-block-columns, .wp-block-media-text) {
	position: relative;
	left: 50%;
	width: 100vw;
	max-width: none;
	margin-left: -50vw;
	margin-right: -50vw;
	margin-top: 0;
	margin-bottom: 0;
}

.rp-hv-editor-flow > :is(.wp-block-group, .wp-block-cover, .wp-block-columns, .wp-block-media-text):first-child {
	margin-top: -1px;
}

.rp-hv-editor-flow > .wp-block-group > .wp-block-group__inner-container {
	width: min(calc(100% - 2rem), var(--rp-hv-content-width));
	max-width: var(--rp-hv-content-width);
	margin-left: auto;
	margin-right: auto;
}

.rp-hv-editor-flow > .rp-hv-pattern-section--narrow > .wp-block-group__inner-container {
	width: min(calc(100% - 2rem), var(--rp-hv-content-narrow));
	max-width: var(--rp-hv-content-narrow);
}

.rp-hv-editor-flow > .wp-block-group > .wp-block-group__inner-container > :where(:not(.alignfull):not(.alignwide):not(.alignleft):not(.alignright)) {
	width: min(calc(100% - 2rem), var(--rp-hv-content-width));
	max-width: var(--rp-hv-content-width);
	margin-left: auto;
	margin-right: auto;
}

.rp-hv-editor-flow > .wp-block-columns,
.rp-hv-editor-flow > .wp-block-media-text {
	padding-left: max(1rem, calc((100vw - var(--rp-hv-content-width)) / 2));
	padding-right: max(1rem, calc((100vw - var(--rp-hv-content-width)) / 2));
}

.site-main--front {
	padding-top: 0;
}

.site-header {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.72) 58%, rgba(255, 255, 255, 0.18) 100%);
	border-bottom: 0;
	box-shadow: none;
}

.rp-hv-header__inner {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: var(--rp-hv-space-lg);
	min-height: 5.75rem;
}

.rp-hv-branding img {
	max-height: 120px;
	width: auto;
}

.rp-hv-navigation {
	justify-self: end;
}

.rp-hv-menu,
.rp-hv-footer-menu {
	display: flex;
	flex-wrap: wrap;
	gap: var(--rp-hv-space-lg);
	padding: 0;
	margin: 0;
	list-style: none;
}

.rp-hv-menu li,
.rp-hv-footer-menu li {
	position: relative;
}

.rp-hv-menu a,
.rp-hv-footer-menu a {
	display: inline-flex;
	align-items: center;
	min-height: 2.5rem;
	font-weight: 600;
	color: var(--rp-hv-color-primary-dark);
}

.rp-hv-footer-menu {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
}

.rp-hv-footer-menu a {
	min-height: 0;
	color: rgba(255, 255, 255, 0.72);
}

.rp-hv-footer-menu a:hover,
.rp-hv-footer-menu a:focus {
	text-decoration: none;
	color: rgba(255, 255, 255, 0.86);
}

.rp-hv-menu .sub-menu {
	position: absolute;
	top: calc(100% + 0.5rem);
	left: 0;
	display: none;
	flex-direction: column;
	gap: 0;
	min-width: 14rem;
	padding: 0.75rem;
	margin: 0;
	list-style: none;
	background: var(--rp-hv-color-white);
	border: 1px solid var(--rp-hv-color-border);
	border-radius: var(--rp-hv-radius-sm);
	box-shadow: var(--rp-hv-shadow-soft);
}

.rp-hv-menu li:focus-within > .sub-menu,
.rp-hv-menu li.is-open > .sub-menu {
	display: flex;
}

.rp-hv-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 0.3rem;
	padding: 0.65rem;
	border: 0;
	background: transparent;
}

.rp-hv-nav-toggle__line {
	display: block;
	width: 1.35rem;
	height: 2px;
	background: var(--rp-hv-color-primary-dark);
}

.rp-hv-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 34rem;
	padding: calc(5.75rem + 2.5rem) 0 3rem;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
}

.rp-hv-hero--front {
	min-height: clamp(26rem, 62vh, 38rem);
	background-position: center 28%;
}

.rp-hv-hero--page {
	min-height: 20rem;
}

.rp-hv-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.78) 30%, rgba(255, 255, 255, 0) 60%);
}

.rp-hv-hero__inner {
	position: relative;
	width: 100%;
	max-width: var(--rp-hv-content-width);
	margin: 0 auto;
}

.rp-hv-hero__content {
	width: min(100%, var(--rp-hv-content-width));
	max-width: 42rem;
	padding-right: 1rem;
}

.site-footer {
	padding: var(--rp-hv-space-xl) 0 var(--rp-hv-space-md);
	color: rgba(255, 255, 255, 0.88);
	background: linear-gradient(180deg, #183850 0%, #122b40 100%);
}

.rp-hv-footer__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--rp-hv-space-lg);
}

.rp-hv-footer__title {
	font-size: 1.35rem;
	color: var(--rp-hv-color-white);
	padding-bottom: 0.35rem;
	margin-bottom: 0.75rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.rp-hv-footer__content > * {
	margin-bottom: 0.6rem;
	color: rgba(255, 255, 255, 0.72);
}

.rp-hv-footer__content a,
.rp-hv-footer__content p {
	color: rgba(255, 255, 255, 0.72);
}

.rp-hv-footer__content a:hover,
.rp-hv-footer__content a:focus {
	text-decoration: none;
	color: rgba(255, 255, 255, 0.86);
}

.rp-hv-footer__content > *:last-child {
	margin-bottom: 0;
}

.rp-hv-footer__meta {
	margin-top: var(--rp-hv-space-lg);
	padding-top: 0.75rem;
	border-top: 1px solid rgba(255, 255, 255, 0.16);
	text-align: right;
}

.rp-hv-footer__meta p {
	margin: 0;
	font-size: 0.95rem;
	color: rgba(255, 255, 255, 0.72);
}

.rp-hv-language-switcher ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	padding: 0;
	margin: var(--rp-hv-space-md) 0 0;
	list-style: none;
}

@media (max-width: 1024px) {
	.rp-hv-header__inner {
		grid-template-columns: auto auto;
	}

	.rp-hv-nav-toggle {
		display: inline-flex;
		justify-self: end;
	}

	.rp-hv-navigation {
		position: absolute;
		top: calc(100% + 0.75rem);
		right: 0;
		left: 0;
		display: none;
		padding: 1rem;
		background: var(--rp-hv-color-white);
		border: 1px solid var(--rp-hv-color-border);
		border-radius: var(--rp-hv-radius-md);
		box-shadow: var(--rp-hv-shadow-soft);
	}

	.home .site-header,
	.front-page .site-header {
		background: var(--rp-hv-color-white);
		border-bottom: 1px solid rgba(22, 52, 79, 0.08);
		box-shadow: none;
	}

	.home .rp-hv-hero,
	.front-page .rp-hv-hero {
		min-height: clamp(24rem, 58vh, 34rem);
		padding-top: calc(5.75rem + 2rem);
		background-position: center 24%;
	}

	.rp-hv-navigation.is-open {
		display: block;
	}

	.rp-hv-menu,
	.rp-hv-footer-menu {
		flex-direction: column;
		gap: 0.35rem;
	}

	.rp-hv-menu .sub-menu {
		position: static;
		display: none;
		margin-top: 0.25rem;
		padding: 0.5rem 0 0.5rem 1rem;
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.rp-hv-header__cta {
		display: none;
	}

	.rp-hv-footer__grid {
		grid-template-columns: 1fr;
	}

	.rp-hv-hero__inner {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.rp-hv-hero__content {
		padding-right: 0;
	}
}

@media (max-width: 767px) {
	.rp-hv-hero {
		min-height: 28rem;
		padding-top: 4rem;
	}

	.home .rp-hv-hero,
	.front-page .rp-hv-hero {
		min-height: 24rem;
		padding-top: calc(5.75rem + 1.25rem);
		background-position: 60% 20%;
	}

	.rp-hv-hero--page {
		min-height: 18rem;
	}

	.rp-hv-hero__overlay {
		background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.78) 30%, rgba(255, 255, 255, 0) 60%);
	}

	.rp-hv-hero__inner {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}

	.rp-hv-hero__content {
		margin-left: auto;
		margin-right: auto;
		text-align: center;
	}
}
