@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

.bq-header {
	--bq-navy: #0b2d5b;
	--bq-gold: #f4b000;
	--bq-light: #f7f9fb;
	--bq-gutter: clamp(1.25rem, 4vw, 4.5rem);

	position: relative;
	z-index: 4;
	background: var(--bq-navy);
	font-family: Montserrat, "Segoe UI", sans-serif;
}

body.has-uc-screen .bq-header {
	--bq-gutter: 0;
	background: transparent;
}

body.has-uc-screen .bq-header__inner {
	width: 1499px;
	max-width: 100%;
	margin-inline: auto;
}

@media (max-width: 1499px) {
	body.has-uc-screen .bq-header {
		--uc-gutter: 1.25rem;
		--bq-gutter: 1.25rem;
	}
}

.bq-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	width: 100%;
	padding: 1.5rem var(--bq-gutter) 0.35rem;
}

.bq-header__brand {
	min-width: 0;
}

.bq-header a,
.bq-header a:visited {
	color: var(--bq-light);
	text-decoration: none;
}

.bq-header a:hover,
.bq-header a:focus {
	color: var(--bq-gold);
}

.bq-header .custom-logo-link {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.bq-header .custom-logo {
	display: block;
	width: auto;
	max-width: 220px;
	height: auto;
	max-height: 48px;
}

.bq-header__wordmark {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--bq-light);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	line-height: 1;
	text-transform: uppercase;
}

.bq-header__mark {
	display: block;
	width: 36px;
	height: 36px;
	flex: 0 0 auto;
}

.bq-nav {
	position: relative;
}

.bq-nav__menu {
	align-items: center;
	gap: 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bq-nav__menu li {
	position: relative;
	margin: 0;
}

.bq-nav__menu a {
	display: block;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	line-height: 1;
	text-transform: uppercase;
}

.bq-header .current-menu-item > a,
.bq-header .current-menu-item > a:visited,
.bq-header .current-menu-ancestor > a,
.bq-header .current-menu-ancestor > a:visited {
	color: var(--bq-gold);
}

.bq-nav__menu .sub-menu {
	display: none;
	position: absolute;
	top: calc(100% + 0.75rem);
	left: 0;
	z-index: 5;
	min-width: 200px;
	margin: 0;
	padding: 0.45rem 0;
	list-style: none;
	background: #071e3d;
	border-radius: 8px;
}

.bq-nav__menu li:hover > .sub-menu,
.bq-nav__menu li:focus-within > .sub-menu {
	display: block;
}

.bq-nav__menu .sub-menu a {
	padding: 0.7rem 1rem;
	letter-spacing: 0.12em;
}

.bq-nav__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
	width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	cursor: pointer;
}

.bq-nav__menu {
	display: none;
}

.bq-nav__bar {
	display: block;
	width: 20px;
	height: 2px;
	border-radius: 2px;
	background: #f7f9fb;
}

.bq-header .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

@media (max-width: 1023px) {
	.bq-nav__menu a {
		font-size: 0.8125rem;
	}
}

.bq-nav__panel-head,
.bq-nav__contact {
	display: none;
}

@media (min-width: 901px) {
	.bq-nav__toggle {
		display: none;
	}

	.bq-nav__panel {
		display: contents;
	}

	.bq-nav__menu {
		display: flex;
		position: static;
		min-width: 0;
		padding: 0;
		background: transparent;
		border-radius: 0;
	}
}

@media (max-width: 900px) {
	.bq-header__inner {
		padding-top: 1rem;
		padding-bottom: 0.75rem;
	}

	.bq-nav__panel {
		display: none;
	}

	.bq-nav.toggled .bq-nav__panel {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		position: fixed;
		inset: 0;
		z-index: 7;
		width: 100%;
		height: 100%;
		height: 100dvh;
		margin: 0;
		padding: 1rem var(--bq-gutter) 2rem;
		overflow: auto;
		background: #071e3d;
	}

	.bq-nav.toggled .bq-nav__panel-head,
	.bq-nav.toggled .bq-nav__contact {
		display: flex;
	}

	.bq-nav.toggled .bq-nav__panel-head {
		align-items: center;
		width: 100%;
		min-height: 42px;
	}

	.bq-nav__panel-brand {
		min-width: 0;
		max-width: calc(100% - 3.5rem);
	}

	.bq-nav__panel-brand .custom-logo {
		max-width: 100%;
	}

	.bq-nav__close {
		display: inline-flex;
		position: relative;
		flex: 0 0 auto;
		align-items: center;
		justify-content: center;
		width: 42px;
		height: 42px;
		margin: 0 0 0 auto;
		padding: 0;
		border: 0;
		background: transparent;
		cursor: pointer;
	}

	.bq-nav__close .bq-nav__bar {
		position: absolute;
		top: 50%;
		left: 50%;
		width: 20px;
		margin: -1px 0 0 -10px;
	}

	.bq-nav__close .bq-nav__bar:nth-child(2) {
		transform: rotate(45deg);
	}

	.bq-nav__close .bq-nav__bar:nth-child(3) {
		transform: rotate(-45deg);
	}

	.bq-nav__menu {
		position: static;
		flex-direction: column;
		align-items: flex-start;
		gap: 0.15rem;
		width: 100%;
		min-width: 0;
		margin-top: 2.5rem;
		padding: 0;
		background: transparent;
		border-radius: 0;
	}

	.bq-nav.toggled .bq-nav__menu {
		display: flex;
	}

	.bq-nav__menu a {
		padding: 0.85rem 0;
		font-size: 1rem;
	}

	.bq-nav__contact {
		flex-direction: column;
		gap: 0.7rem;
		margin-top: auto;
		padding-top: 1.75rem;
		border-top: 1px solid rgba(107, 124, 147, 0.45);
	}

	.bq-nav__contact a {
		font-size: 0.95rem;
		font-weight: 500;
		letter-spacing: 0.02em;
		line-height: 1.4;
		text-transform: none;
	}

	body.bq-nav-open {
		overflow: hidden;
	}

	.bq-nav__menu .sub-menu {
		position: static;
		display: none;
		min-width: 0;
		padding: 0 0 0.25rem;
		background: transparent;
		border-radius: 0;
	}

	.bq-nav__menu li:hover > .sub-menu,
	.bq-nav__menu li.focus > .sub-menu,
	.bq-nav__menu li:focus-within > .sub-menu {
		display: block;
	}
}
