:root {
	--hd-header-blue: #00265d;
	--hd-header-blue-2: #385577;
	--hd-header-gold: #d69a2d;
	--hd-header-orange: #df5830;
	--hd-header-text: #1b2638;
	--hd-header-line: #edf1f6;
}

.header-wrapper,
#masthead {
	position: relative;
	z-index: 30;
	background: #fff;
	box-shadow: 0 8px 26px rgba(7, 32, 71, 0.06);
}

.header-wrapper::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: #1d262c;
	z-index: 2;
}

.header-main {
	min-height: 74px !important;
	border-bottom: 1px solid var(--hd-header-line);
	background: #fff;
}

.header-main .header-inner,
.header-bottom .header-inner {
	max-width: 1240px;
	margin-left: auto;
	margin-right: auto;
}

.header-main .logo,
.header-main .logo a {
	display: flex;
	align-items: center;
}

.header-main .logo img {
	width: auto;
	max-height: 64px !important;
	object-fit: contain;
}

.header-main .nav {
	align-items: center;
	gap: 0;
	flex-wrap: nowrap !important;
}

.header-main .nav > li {
	flex: 0 0 auto;
	margin: 0 2px;
}

.header-main .nav > li > a,
.header-main .nav > li > a.nav-top-link,
.header-main .nav-dropdown > li > a {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 8px;
	color: var(--hd-header-text);
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	white-space: nowrap;
	transition: color 0.18s ease, background-color 0.18s ease;
}

.header-main .nav > li > a::after,
.header-main .nav > li > a.nav-top-link::after {
	content: "";
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 4px;
	height: 2px;
	border-radius: 999px;
	background: var(--hd-header-gold);
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.2s ease;
}

.header-main .nav > li:hover > a,
.header-main .nav > li > a:hover,
.header-main .nav > li.active > a,
.header-main .nav > li.current-menu-item > a,
.header-main .nav > li.current-menu-ancestor > a,
.header-main .nav > li.current_page_item > a,
.header-main .nav > li.current_page_parent > a {
	color: var(--hd-header-gold) !important;
	background: transparent;
}

.header-main .nav > li:hover > a::after,
.header-main .nav > li.active > a::after,
.header-main .nav > li.current-menu-item > a::after,
.header-main .nav > li.current-menu-ancestor > a::after,
.header-main .nav > li.current_page_item > a::after,
.header-main .nav > li.current_page_parent > a::after {
	transform: scaleX(1);
}

.header-main .nav-dropdown {
	min-width: 220px;
	padding: 10px;
	border: 1px solid var(--hd-header-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 18px 40px rgba(7, 32, 71, 0.14);
}

.header-main .nav-dropdown > li > a {
	width: 100%;
	min-height: 38px;
	padding: 0 12px;
	border-radius: 8px;
	color: var(--hd-header-blue);
	font-size: 13px;
	text-transform: none;
}

.header-main .nav-dropdown > li > a:hover,
.header-main .nav-dropdown > li.active > a,
.header-main .nav-dropdown > li.current-menu-item > a {
	background: rgba(214, 154, 45, 0.1);
	color: var(--hd-header-gold) !important;
}

.header-main .nav-right {
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
	flex-wrap: nowrap !important;
}

.header-main .nav-right > li.header-button,
.header-main .nav-right > li.html {
	margin: 0;
}

.header-main .nav-right > li.header-button > .header-button,
.header-main .nav-right > li.html {
	display: flex;
	align-items: center;
}

.header-main .nav-right > li.header-button .button,
.header-main .nav-right > li.html .button,
.header-main .nav-right > li.html a[href^="tel:"],
.header-main .nav-right > li.html a[href*="0868"],
.header-main .nav-right > li.html a[href*="tel"],
.header-main .nav-right > li > a.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	min-height: 42px;
	height: 42px;
	margin: 0 !important;
	padding: 0 20px !important;
	border-radius: 999px !important;
	font-size: 14px;
	font-weight: 800;
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	text-decoration: none;
	box-shadow: none !important;
	transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.header-main .nav-right > li.header-button:first-child .button,
.header-main .nav-right > li.html:first-child .button,
.header-main .nav-right > li.html .button.primary {
	min-width: 176px;
	border: 2px solid var(--hd-header-blue-2) !important;
	background: var(--hd-header-blue-2) !important;
	color: #fff !important;
}

.header-main .nav-right > li.header-button:first-child .button:hover,
.header-main .nav-right > li.html:first-child .button:hover,
.header-main .nav-right > li.html .button.primary:hover {
	border-color: var(--hd-header-blue) !important;
	background: var(--hd-header-blue) !important;
	color: #fff !important;
	transform: translateY(-1px);
}

.header-main .nav-right > li.header-button:nth-child(2) .button,
.header-main .nav-right > li.header-button:last-child .button,
.header-main .nav-right > li.html:last-child .button,
.header-main .nav-right > li.html .button.secondary,
.header-main .nav-right > li.html a[href^="tel:"],
.header-main .nav-right > li.html a[href*="0868"],
.header-main .nav-right > li.html a[href*="tel"] {
	min-width: 152px;
	border: 2px solid var(--hd-header-orange) !important;
	background: #fff !important;
	color: var(--hd-header-orange) !important;
}

.header-main .nav-right > li.header-button:nth-child(2) .button:hover,
.header-main .nav-right > li.header-button:last-child .button:hover,
.header-main .nav-right > li.html:last-child .button:hover,
.header-main .nav-right > li.html .button.secondary:hover,
.header-main .nav-right > li.html a[href^="tel:"]:hover,
.header-main .nav-right > li.html a[href*="0868"]:hover,
.header-main .nav-right > li.html a[href*="tel"]:hover {
	background: var(--hd-header-orange) !important;
	color: #fff !important;
	transform: translateY(-1px);
}

.stuck .header-main,
.header-wrapper.stuck .header-main {
	box-shadow: 0 12px 28px rgba(7, 32, 71, 0.1);
}

.mobile-nav .nav-icon,
.header-main .nav-icon {
	color: var(--hd-header-blue);
}

.off-canvas .nav-sidebar.nav-vertical > li > a {
	color: var(--hd-header-blue);
	font-size: 15px;
	font-weight: 800;
	text-transform: uppercase;
}

.off-canvas .nav-sidebar.nav-vertical > li.current-menu-item > a,
.off-canvas .nav-sidebar.nav-vertical > li.current-menu-ancestor > a,
.off-canvas .nav-sidebar.nav-vertical > li > a:hover {
	color: var(--hd-header-gold);
}

@media (max-width: 1100px) {
	.header-main .header-inner,
	.header-bottom .header-inner {
		max-width: 94%;
	}

	.header-main .nav > li > a,
	.header-main .nav > li > a.nav-top-link {
		padding-left: 5px;
		padding-right: 5px;
		font-size: 12px;
	}

	.header-main .nav-right {
		gap: 8px;
	}

	.header-main .nav-right > li.header-button .button,
	.header-main .nav-right > li.html .button,
	.header-main .nav-right > li.html a[href^="tel:"],
	.header-main .nav-right > li.html a[href*="0868"],
	.header-main .nav-right > li.html a[href*="tel"] {
		min-height: 42px;
		height: 42px;
		padding-left: 12px !important;
		padding-right: 12px !important;
		font-size: 12px;
	}

	.header-main .nav-right > li.header-button:first-child .button,
	.header-main .nav-right > li.html:first-child .button {
		min-width: 148px;
	}

	.header-main .nav-right > li.header-button:nth-child(2) .button,
	.header-main .nav-right > li.header-button:last-child .button,
	.header-main .nav-right > li.html:last-child .button,
	.header-main .nav-right > li.html a[href^="tel:"],
	.header-main .nav-right > li.html a[href*="0868"],
	.header-main .nav-right > li.html a[href*="tel"] {
		min-width: 128px;
	}
}

@media (min-width: 850px) and (max-width: 1240px) {
	.header-main .logo img {
		max-height: 58px !important;
	}

	.header-main .nav > li {
		margin-left: 1px;
		margin-right: 1px;
	}

	.header-main .nav > li > a,
	.header-main .nav > li > a.nav-top-link {
		padding-left: 6px;
		padding-right: 6px;
		font-size: 12.5px;
	}

	.header-main .nav-right {
		gap: 7px;
	}

	.header-main .nav-right > li.header-button .button,
	.header-main .nav-right > li.html .button,
	.header-main .nav-right > li.html a[href^="tel:"],
	.header-main .nav-right > li.html a[href*="0868"],
	.header-main .nav-right > li.html a[href*="tel"] {
		height: 40px;
		min-height: 40px;
		padding-left: 14px !important;
		padding-right: 14px !important;
		font-size: 12.5px;
	}

	.header-main .nav-right > li.header-button:first-child .button,
	.header-main .nav-right > li.html:first-child .button {
		min-width: 154px;
	}

	.header-main .nav-right > li.header-button:nth-child(2) .button,
	.header-main .nav-right > li.header-button:last-child .button,
	.header-main .nav-right > li.html:last-child .button,
	.header-main .nav-right > li.html a[href^="tel:"],
	.header-main .nav-right > li.html a[href*="0868"],
	.header-main .nav-right > li.html a[href*="tel"] {
		min-width: 134px;
	}
}

@media (max-width: 849px) {
	.header-main {
		min-height: 66px !important;
	}

	.header-main .logo img {
		max-height: 56px !important;
	}

	.header-main .header-inner {
		max-width: calc(100% - 28px);
	}
}

@media (max-width: 549px) {
	.header-main {
		min-height: 62px !important;
	}

	.header-main .logo img {
		max-height: 50px !important;
	}
}
