/**
 * Site header and mobile menu.
 */

.gm-site-header {
	position: relative;
	z-index: 100;
	background: var(--wp--preset--color--white, #ffffff);
	color: var(--wp--preset--color--dark-900, #0a0a0a);
	border-bottom: 1px solid var(--wp--preset--color--border-black-6, rgba(0, 0, 0, 0.06));
}

.gm-site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin-inline: auto;
	padding: 1.25rem 1.5rem;
}

.gm-site-header__brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
	min-width: 0;
}

.gm-site-header__logo img {
	display: block;
	max-height: 2rem;
	width: auto;
}

.gm-site-header__title {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--18);
	font-weight: 600;
	line-height: 1.556;
	text-decoration: none;
	color: inherit;
}

.gm-site-header__nav {
	display: none;
}

.gm-site-header__nav .gm-menu,
.gm-mobile-menu__nav .gm-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gm-site-header__nav .gm-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem 2rem;
}

.gm-site-header__nav a,
.gm-mobile-menu__nav a {
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--16);
	font-weight: 600;
	line-height: 1.5;
	text-decoration: none;
	color: inherit;
	transition: color 0.15s ease;
}

.gm-site-header__nav a:hover,
.gm-site-header__nav a:focus-visible,
.gm-site-header__nav .current-menu-item > a,
.gm-site-header__nav .current-menu-ancestor > a {
	color: var(--wp--preset--color--dark-900, #0a0a0a);
}

.gm-site-header__actions {
	display: none;
	flex-shrink: 0;
}

.gm-site-header__actions .gm-widget__title,
.gm-mobile-menu__actions .gm-widget__title {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.gm-site-header__actions .gm-widget,
.gm-mobile-menu__actions .gm-widget {
	margin: 0;
}

.gm-site-header__actions .wp-block-buttons,
.gm-mobile-menu__actions .wp-block-buttons {
	margin: 0;
}

.gm-mobile-menu__actions {
	margin-top: auto;
	padding-top: 2rem;
}

.gm-mobile-menu__actions .wp-block-button {
	width: 100%;
}

.gm-mobile-menu__actions .wp-block-button__link {
	display: flex;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
}

.gm-mobile-menu-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--wp--preset--color--gray-200, #e5e5e5);
	border-radius: 0.25rem;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease;
}

.gm-mobile-menu-toggle:hover,
.gm-mobile-menu-toggle:focus-visible {
	border-color: var(--wp--preset--color--teal, #00a1b9);
	color: var(--wp--preset--color--teal, #00a1b9);
}

.gm-mobile-menu-toggle__icon {
	position: relative;
	display: block;
	width: 1.25rem;
	height: 2px;
	background: currentColor;
}

.gm-mobile-menu-toggle__icon::before,
.gm-mobile-menu-toggle__icon::after {
	content: "";
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: currentColor;
}

.gm-mobile-menu-toggle__icon::before {
	top: -6px;
}

.gm-mobile-menu-toggle__icon::after {
	top: 6px;
}

.gm-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: flex;
	flex-direction: column;
	background: var(--wp--preset--color--white, #ffffff);
	color: var(--wp--preset--color--dark-900, #0a0a0a);
	overflow-y: auto;
}

.gm-mobile-menu[hidden] {
	display: none !important;
}

.gm-mobile-menu__inner {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 5rem 1.5rem 2rem;
}

.gm-mobile-menu__nav a {
	display: block;
	padding: 0.875rem 0;
	font-size: var(--wp--preset--font-size--18);
	font-weight: 600;
	line-height: 1.556;
}

.gm-mobile-menu__nav a:hover,
.gm-mobile-menu__nav a:focus-visible,
.gm-mobile-menu__nav .current-menu-item > a,
.gm-mobile-menu__nav .current-menu-ancestor > a {
	color: var(--wp--preset--color--teal, #00a1b9);
}

body.gm-mobile-menu-is-open {
	overflow: hidden;
}

@media (min-width: 783px) {
	.gm-site-header__inner {
		padding-block: 1.5rem;
	}

	.gm-site-header__nav {
		display: block;
		flex: 1;
	}

	.gm-site-header__actions {
		display: block;
		padding-left: 16px;
	}

	.gm-mobile-menu-toggle {
		display: none;
	}

	.gm-mobile-menu {
		display: none !important;
	}
}
