/* ─── Site Header ────────────────────────────────────────────────────────── */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	width: 100%;
	background: #ffffff;
	box-shadow: 0px 11px 9.55px rgba(0, 0, 0, 0.05);
	margin-bottom: 0;
}

/* On screens wider than 1440px the bar is centered, leaving gutters.
   Extend the red brand colour into the left gutter and leave white on
   the right. Width formula: half-viewport minus (half-bar minus brand).
   = 50vw - (720px - 260px) = calc(50% - 460px)                        */
@media (min-width: 1441px) {
	.site-header::before {
		content: '';
		position: absolute;
		top: 0;
		left: 0;
		bottom: 0;
		width: calc(50% - 460px);
		background: #E10600;
		z-index: -1;
	}
}

/* ─── WP Block Spacing Reset ─────────────────────────────────────────────── */

.wp-site-blocks {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.wp-block-template-part + * {
	margin-top: 0 !important;
}

/* ─── Header Bar ─────────────────────────────────────────────────────────── */

.site-header__bar {
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
}

/* ─── Brand (Left Red Block) ─────────────────────────────────────────────── */

.site-header__brand {
	flex-shrink: 0;
	background: #E10600;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 45px 60px;
	padding-top: 75px; /* 30px above-logo strip + 45px logo top padding */
	min-height: 158.61px;
	box-sizing: border-box;
}

.site-header__logo-link {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.site-header__logo-link svg {
	display: block;
}

/* ─── Desktop Nav (Right White Block) ───────────────────────────────────── */

.site-header__nav {
	flex: 1 1 auto;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-left: 28px;
	padding-top: 20px;
	min-height: 158.61px;
	box-sizing: border-box;
}

/* ─── Menu List ──────────────────────────────────────────────────────────── */

.site-header__menu {
	flex: 1 1 auto;
}

.site-header__menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 24px;
	padding-right: 60px;
}

.site-header__menu-item {
	position: relative;
	display: flex;
	align-items: center;
}

.site-header__menu-link {
	font-family: 'Benton Sans', sans-serif;
	font-weight: 500;
	font-size: 18px;
	color: #041E42;
	padding: 4px 0;
	text-decoration: none;
	background: none;
	border: none;
	cursor: pointer;
	white-space: normal;
	word-break: break-word;
	text-align: center;
	transition: color 0.15s ease;
	line-height: 1.4;
}

.site-header__menu-link:hover,
.site-header__menu-link:focus,
.site-header__menu-item.is-active .site-header__menu-link,
.current-menu-item .site-header__menu-link,
.current-menu-ancestor .site-header__menu-link {
	color: #E10600;
	box-shadow: inset 0 -1px 0 #E10600;
}

/* ─── Menu Chevron (mega menu toggle) ───────────────────────────────────── */

.site-header__menu-chevron {
	display: none;
}

.site-header__menu-chevron:hover,
.site-header__menu-item.is-active .site-header__menu-chevron {
	color: #E10600;
}

.site-header__menu-chevron[aria-expanded="true"] {
	transform: rotate(180deg);
}

/* ─── Search Toggle (Desktop) ────────────────────────────────────────────── */

.site-header__search-toggle {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 26px;
	margin-right: 28px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
}

.site-header__search-toggle svg {
	display: block;
}

/* ─── Mobile Controls (hidden on desktop) ───────────────────────────────── */

.site-header__mobile-controls {
	display: none;
	align-items: center;
	gap: 32px;
	padding-right: 16px;
	margin-left: auto;
}

.site-header__mobile-controls .site-header__search-toggle {
	margin-right: 0;
}

/* ─── Hamburger ──────────────────────────────────────────────────────────── */

.site-header__hamburger {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	width: 24px;
	height: 24px;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
}

.site-header__hamburger-bar {
	display: block;
	width: 24px;
	height: 3px;
	background: #041E42;
	border-radius: 1.5px;
	transition: transform 0.2s ease, opacity 0.2s ease;
	transform-origin: center;
}

.site-header__hamburger.is-open .site-header__hamburger-bar:nth-child(1) {
	transform: translateY(9px) rotate(45deg);
}

.site-header__hamburger.is-open .site-header__hamburger-bar:nth-child(2) {
	opacity: 0;
}

.site-header__hamburger.is-open .site-header__hamburger-bar:nth-child(3) {
	transform: translateY(-9px) rotate(-45deg);
}

/* ─── Mega Menu ──────────────────────────────────────────────────────────── */

.site-mega-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background: rgba(4, 30, 66, 0.9);
	z-index: 99;
}

.site-mega-menu.is-open {
	display: block;
}

.site-mega-menu__inner {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	padding: 42px 72px;
	max-width: 1440px;
	margin: 0 auto;
}

.site-mega-menu__col {
	min-width: 0;
}

.site-mega-menu__col-title {
	font-family: 'Benton Sans', sans-serif;
	font-weight: 500;
	font-size: 20px;
	color: #ffffff;
	margin: 0;
	padding: 0 12px;
	line-height: 1.4;
}

.site-mega-menu__links {
	list-style: none;
	margin: 0;
	padding: 0;
	padding-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.site-mega-menu__col--no-title .site-mega-menu__links {
	padding-top: 0;
}

.site-mega-menu__links li a {
	display: block;
	font-family: 'Benton Sans', sans-serif;
	font-weight: 400;
	font-size: 18px;
	color: #ffffff;
	text-decoration: none;
	line-height: 1.55;
	padding: 8px 12px;
	transition: background 0.15s ease;
}

.site-mega-menu__links li a:hover {
	background: rgba(243, 244, 246, 0.1);
	text-decoration: underline;
}

/* ─── Search Overlay ─────────────────────────────────────────────────────── */

.site-search-overlay {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(4, 30, 66, 0.9);
    z-index: 99;
}

.site-search-overlay.is-open {
    display: block;
}

.site-search-overlay__inner {
    display: flex;
    justify-content: center;
    padding: 72px 20px;
    max-width: 1440px;
    margin: 0 auto;
}

.site-search-overlay__field {
	position: relative;
	width: 100%;
	max-width: 480px;
}

.site-search-overlay__input {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 48px 12px 16px;
	font-family: 'Benton Sans', sans-serif;
	font-weight: 500;
	font-size: 16px;
	color: #041E42;
	background: #ffffff;
	border: 2px solid #D9DBE1;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
}

.site-search-overlay__input::placeholder {
	color: #041E42;
	opacity: 1;
}

.site-search-overlay__input:focus {
	border-color: #E10600;
}

.site-search-overlay__submit {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
}

/* ─── Mobile Nav Panel ───────────────────────────────────────────────────── */

.site-mobile-nav {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	z-index: 99;
	background: #ffffff;
	overflow-y: auto;
	max-height: calc(100vh - 70px);
}

.site-mobile-nav.is-open {
	display: block;
}

/* Level 1 items */

.site-mobile-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	background: #ffffff;
}

.site-mobile-nav__item {
	border-bottom: 1px solid #F3F4F6;
}

.site-mobile-nav__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 64px;
	padding-left: 16px;
}

.site-mobile-nav__link {
	flex: 1;
	font-family: 'Benton Sans', system-ui, sans-serif;
	font-weight: 500;
	font-size: 18px;
	color: #041E42;
	text-decoration: none;
	line-height: normal;
}

.site-mobile-nav__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 20px 16px;
	background: none;
	border: none;
	cursor: pointer;
	color: #041E42;
	box-sizing: content-box;
}

/* Level 2 sub items */

.site-mobile-nav__sub {
	list-style: none;
	margin: 0;
	padding: 0;
	display: none;
	background: #22324c;
}

.site-mobile-nav__sub.is-open {
	display: block;
}

.site-mobile-nav__sub-item {
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-mobile-nav__sub .site-mobile-nav__row {
	padding-left: 32px;
	min-height: 52px;
}

.site-mobile-nav__sub-link {
	flex: 1;
	font-family: 'Benton Sans', system-ui, sans-serif;
	font-weight: 500;
	font-size: 16px;
	color: #F3F4F6;
	text-decoration: none;
	line-height: 1.4;
}

.site-mobile-nav__sub .site-mobile-nav__toggle {
	color: #F3F4F6;
}

/* Level 3 sub-sub items */

.site-mobile-nav__subsub {
	list-style: none;
	margin: 0;
	padding: 0;
	display: none;
	background: #041E42;
}

.site-mobile-nav__subsub.is-open {
	display: block;
}

.site-mobile-nav__subsub li {
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.site-mobile-nav__subsub-link {
	display: block;
	padding: 14px 16px 14px 48px;
	font-family: 'Benton Sans', system-ui, sans-serif;
	font-weight: 400;
	font-size: 16px;
	color: #F3F4F6;
	text-decoration: none;
	line-height: 1.4;
}

/* Toggle button icon — plus (+ ) becomes minus (−) when open */

.site-mobile-nav__toggle[aria-expanded="true"] .site-mobile-nav__toggle-v {
	display: none;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1440px) {
	.site-header__menu-list {
		gap: 16px;
	}
}

@media (max-width: 1280px) {
	.site-header__menu-list {
		gap: 12px;
	}
	.site-header__menu-link {
		max-width: 100px;
		line-height: 1.3;
	}
}

@media (max-width: 1200px) {
	.site-header__nav {
		padding-right: 20px;
	}
}

@media (max-width: 1024px) {
	.site-header__menu-list {
		gap: 12px;
	}
}

@media (max-width: 960px) {
	.site-header {
		display: flex;
		flex-direction: column;
	}
	.site-header__nav {
		display: none;
	}
	.site-header__mobile-controls {
		display: flex;
	}
}

@media (max-width: 768px) {
	.site-header__brand {
		padding: 16px 20px;
		min-height: 0;
	}

	.site-header__logo-link svg {
		width: 106px;
		height: 22px;
	}

	.site-mega-menu {
		display: none !important;
	}

	.site-mobile-nav {
		max-height: calc(100vh - 54px);
	}
}
