/**
 * Good Men Base Theme — header and mobile menu layout foundation.
 */

.gm-site-header {
	position: relative;
	z-index: 100;
}

.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: 1rem 1.5rem;
}

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

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

.gm-mobile-menu-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.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--base, #ffffff);
	color: var(--wp--preset--color--contrast, #111111);
	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 ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.gm-mobile-menu__nav a {
	display: block;
	padding: 0.75rem 0;
	text-decoration: none;
}

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

@media (min-width: 783px) {
	.gm-site-header__nav {
		display: block;
		flex: 1;
	}

	.gm-site-header__nav .wp-block-navigation {
		justify-content: flex-end;
	}

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

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