/* ==========================================
   SITE HEADER
========================================== */

.site-header {
	position: sticky;
	top: 0;
	z-index: 9999;

	width: 100%;

	background: var(--color-navy);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);

	box-shadow:
		0 6px 18px rgba(0, 0, 0, 0.12);
}

.site-header__inner {
	width: min(100% - 48px, var(--container-width));
	min-height: 74px;
	margin-inline: auto;

	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}

/* ==========================================
   BRANDING
========================================== */

.site-branding {
	flex-shrink: 0;
}

.site-title {
	display: inline-flex;
	align-items: center;

	color: var(--color-white);
	font-family: var(--font-heading);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.04em;
	text-decoration: none;
}

.site-logo,
.custom-logo-link {
	display: inline-flex;
	align-items: center;
}

.custom-logo {
	display: block;
	width: auto;
	max-width: 190px;
	max-height: 48px;
}

/* ==========================================
   DESKTOP NAVIGATION
========================================== */

.main-navigation {
	display: flex;
	align-items: center;
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: 34px;

	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-menu li {
	position: relative;
	margin: 0;
}

.nav-menu a {
	position: relative;
	display: inline-flex;
	align-items: center;
	padding: 28px 0;

	color: rgba(255, 255, 255, 0.82);
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.12em;
	text-decoration: none;
	text-transform: uppercase;

	transition:
		color 180ms ease,
		opacity 180ms ease;
}

.nav-menu a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 20px;

	width: 0;
	height: 1px;
	margin: auto;

	background: var(--color-gold);
	transition: width 180ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
	color: var(--color-gold);
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after,
.nav-menu .current-menu-item > a::after,
.nav-menu .current_page_item > a::after {
	width: 100%;
}

/* ==========================================
   MENU BUTTON
========================================== */

.menu-toggle {
	display: none;
	width: 42px;
	height: 42px;
	padding: 8px;

	background: transparent;
	border: 0;
	border-radius: 0;
	cursor: pointer;
}

.menu-toggle span {
	display: block;
	width: 24px;
	height: 1.5px;
	margin: 5px auto;

	background: var(--color-white);
	transform-origin: center;

	transition:
		transform 200ms ease,
		opacity 200ms ease;
}

.menu-toggle.is-active span:nth-child(1) {
	transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
	opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
	transform: translateY(-6.5px) rotate(-45deg);
}

/* ==========================================
   MOBILE NAVIGATION
========================================== */

@media (max-width: 900px) {

	.site-header__inner {
		width: min(100% - 32px, var(--container-width));
		min-height: 68px;
	}

	.custom-logo {
		max-width: 160px;
		max-height: 42px;
	}

	.menu-toggle {
		display: block;
	}

	.nav-menu {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;

		display: grid;
		gap: 0;

		max-height: 0;
		overflow: hidden;

		background: var(--color-navy);
		border-top: 1px solid rgba(255, 255, 255, 0.06);

		opacity: 0;
		visibility: hidden;

		transition:
			max-height 300ms ease,
			opacity 200ms ease,
			visibility 200ms ease;
	}

	.nav-menu.is-open {
		max-height: 600px;
		opacity: 1;
		visibility: visible;
	}

	.nav-menu li {
		width: 100%;
		border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	}

	.nav-menu a {
		width: 100%;
		padding: 18px 24px;

		font-size: 0.74rem;
	}

	.nav-menu a::after {
		display: none;
	}

	body.menu-open {
		overflow: hidden;
	}
}