/* The top contact bar stays at its original position; only the primary navigation becomes sticky. */
:root {
	--sticky-navigation-height: 80px;
	--sticky-sidebar-gap: 24px;
	--wordpress-admin-bar-height: 0px;
	--header-motion-enter-duration: 300ms;
	--header-motion-exit-duration: 220ms;
	--header-motion-enter-easing: cubic-bezier(0.16, 1, 0.3, 1);
	--header-motion-exit-easing: cubic-bezier(0.4, 0, 1, 1);
}

.header-overlay {
	position: absolute;
}

.header-overlay-bottom {
	position: relative;
	top: auto;
	isolation: isolate;
	transform: translate3d(0, 0, 0);
	transition: transform var(--header-motion-enter-duration) var(--header-motion-enter-easing);
}

.header-overlay-bottom::before {
	position: absolute;
	z-index: 0;
	inset: 0;
	content: "";
	pointer-events: none;
	background: rgba(255, 255, 255, 0.82);
	border-bottom: 1px solid rgba(255, 255, 255, 0.62);
	box-shadow: 0 10px 32px rgba(18, 38, 14, 0.14);
	opacity: 0;
	-webkit-backdrop-filter: blur(18px) saturate(145%);
	backdrop-filter: blur(18px) saturate(145%);
	transition: opacity 160ms ease-out;
}

.header-overlay-bottom > .container {
	position: relative;
	z-index: 1;
}

.header-overlay-bottom.is-header-sticky {
	position: fixed;
	z-index: 100001;
	top: 0;
	right: 0;
	left: 0;
	width: 100%;
	background: transparent;
	will-change: transform;
}

.header-overlay-bottom.is-header-sticky::before {
	opacity: 1;
}

.header-overlay-bottom.is-header-hidden {
	transform: translate3d(0, -105%, 0);
	transition-duration: var(--header-motion-exit-duration);
	transition-timing-function: var(--header-motion-exit-easing);
}

.header-overlay-bottom.is-header-sticky .header-menu a,
.header-overlay-bottom.is-header-sticky .header-button-area .header-search-button a {
	color: #222;
}

.burger-menu {
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
}

.burger-menu:focus-visible {
	outline: 3px solid #1f6f12;
	outline-offset: 3px;
}

.aside-content-area {
	top: calc(var(--wordpress-admin-bar-height) + var(--sticky-sidebar-gap));
	transform: translate3d(0, 0, 0);
	transition: transform var(--header-motion-exit-duration) var(--header-motion-exit-easing);
}

.has-visible-sticky-header .aside-content-area.is-sidebar-stuck {
	transform: translate3d(0, var(--sticky-navigation-height), 0);
	transition-duration: var(--header-motion-enter-duration);
	transition-timing-function: var(--header-motion-enter-easing);
}

body.admin-bar {
	--wordpress-admin-bar-height: 32px;
}

body.admin-bar .header-overlay-bottom.is-header-sticky {
	top: 32px;
}

body.admin-bar .header-overlay-bottom.is-header-hidden {
	transform: translate3d(0, calc(-105% - 32px), 0);
}

@media only screen and (max-width: 1024px) {
	header .header-overlay {
		position: absolute;
		width: 100%;
	}

	.header-overlay-bottom {
		position: relative;
		top: auto;
	}

	.header-overlay-bottom.is-header-sticky {
		position: fixed;
		top: 0;
	}

	.menu-header-logo {
		grid-template-columns: auto 44px;
	}
}

@media only screen and (max-width: 782px) {
	body.admin-bar {
		--wordpress-admin-bar-height: 46px;
	}

	body.admin-bar .header-overlay-bottom.is-header-sticky {
		top: 46px;
	}

	body.admin-bar .header-overlay-bottom.is-header-hidden {
		transform: translate3d(0, calc(-105% - 46px), 0);
	}
}

@media only screen and (max-width: 767px) {
	.aside-content-area {
		position: static;
		top: auto;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.header-overlay-bottom,
	.header-overlay-bottom::before,
	.aside-content-area,
	.mobile-menu-wrapper {
		transition-duration: 0.01ms !important;
	}
}
