﻿/* ==========================================================================
   Header — top strip, sticky bar, search panel, mega menu overlay
   ========================================================================== */

/* --------------------------------------------------------------------------
   Top strip
   -------------------------------------------------------------------------- */
.topstrip {
	background: var(--navy-900);
	color: rgb(255 255 255 / 78%);
	font-size: var(--fs-xs);
	line-height: 1.5;
}

.topstrip__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1.5rem;
	min-height: 40px;
	padding-block: 0.45rem;
}

.topstrip__contact,
.topstrip__links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 1.25rem;
}

.topstrip a {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	color: inherit;
	font-weight: 600;
}

.topstrip a:hover {
	color: var(--orange);
}

.topstrip .icon {
	width: 14px;
	height: 14px;
	fill: var(--orange);
	flex: none;
}

.topstrip__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.topstrip__menu li {
	margin: 0;
}

.topstrip__since {
	font-weight: 700;
	color: var(--orange);
	letter-spacing: 0.02em;
}

@media (max-width: 991px) {
	.topstrip__links {
		display: none;
	}

	.topstrip__inner {
		justify-content: center;
	}
}

/* --------------------------------------------------------------------------
   Sticky header
   -------------------------------------------------------------------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: #fff;
	border-bottom: 1px solid var(--line);
	transition: box-shadow var(--t);
}

.site-header.is-stuck {
	box-shadow: 0 4px 18px rgb(11 61 145 / 10%);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	min-height: var(--header-h);
	padding-block: 0.6rem;
}

.site-header__brand {
	flex: none;
}

.site-header__brand img,
.custom-logo {
	width: auto;
	height: 54px;
	max-width: 250px;
	object-fit: contain;
}

.site-header__nav {
	flex: 1;
	min-width: 0;
}

.mainnav {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mainnav li {
	margin: 0;
}

.mainnav a {
	position: relative;
	display: block;
	padding: 0.4rem 0;
	color: var(--navy);
	font-size: 1.0625rem;
	font-weight: 600;
}

.mainnav a::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 0;
	height: 2.5px;
	border-radius: 2px;
	background: var(--orange);
	transition: width var(--t);
}

.mainnav a:hover,
.mainnav .current-menu-item > a {
	color: var(--navy);
}

.mainnav a:hover::after,
.mainnav .current-menu-item > a::after {
	width: 100%;
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-left: auto;
	flex: none;
}

.iconbtn {
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1.5px solid var(--line);
	border-radius: 12px;
	background: #fff;
	color: var(--navy);
	cursor: pointer;
	transition: background var(--t), color var(--t), border-color var(--t);
}

.iconbtn:hover {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

.iconbtn .icon {
	width: 20px;
	height: 20px;
	fill: currentcolor;
}

.iconbtn--menu {
	background: var(--navy);
	border-color: var(--navy);
	color: #fff;
}

.iconbtn--menu:hover {
	background: var(--orange);
	border-color: var(--orange);
}

@media (max-width: 1100px) {
	.site-header__nav {
		display: none;
	}
}

@media (max-width: 991px) {
	:root {
		--header-h: 68px;
	}

	.site-header__brand img,
	.custom-logo {
		height: 42px;
		max-width: 190px;
	}

	.iconbtn {
		width: 40px;
		height: 40px;
	}
}

/* --------------------------------------------------------------------------
   Search panel
   -------------------------------------------------------------------------- */
.searchpanel {
	border-top: 1px solid var(--line);
	background: var(--light);
	padding-block: 1rem;
}

.searchpanel__form {
	display: flex;
	gap: 0.6rem;
}

.searchpanel__form .input {
	flex: 1;
}

/* --------------------------------------------------------------------------
   Mega menu overlay
   -------------------------------------------------------------------------- */
.megamenu {
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	overscroll-behavior: contain;
	/*
	 * Solid, not 97%. Three per cent sounds like nothing, but over a bright
	 * hero photograph the headline underneath stayed legible straight through
	 * the menu and the whole overlay read as broken.
	 */
	background: #061f4b;
	color: #fff;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
	-webkit-overflow-scrolling: touch;
}

.megamenu.is-open {
	opacity: 1;
	visibility: visible;
}

.megamenu[hidden] {
	display: none;
}

.megamenu__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1rem;
	flex: none;
}

.megamenu__logo img {
	height: 46px;
	width: auto;
	padding: 6px 10px;
	border-radius: 8px;
	background: #fff;
}

.megamenu__close {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	padding: 0;
	border: 1.5px solid rgb(255 255 255 / 30%);
	border-radius: 12px;
	background: transparent;
	color: #fff;
	cursor: pointer;
	transition: background var(--t), border-color var(--t), transform var(--t);
}

.megamenu__close:hover {
	background: var(--orange);
	border-color: var(--orange);
	transform: rotate(90deg);
}

.megamenu__close .icon {
	width: 22px;
	height: 22px;
	fill: currentcolor;
}

.megamenu__inner {
	flex: 1;
	padding-block: 1rem 3rem;
}

.megamenu__cols {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 2rem;
	align-items: start;
}

/* The cities column carries a dozen entries, so it runs in two files. */
.megamenu__list--cities {
	columns: 2;
	column-gap: 1rem;
}

/*
 * The "see everything" links sit below the columns, not inside them — as a
 * list item the text broke across the column gap and landed on top of the
 * entry beside it.
 */
.megamenu__more {
	display: inline-flex;
	width: fit-content;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.9rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--orange);
}

.megamenu__more + .megamenu__more {
	margin-top: 0.5rem;
}

.megamenu__more:hover {
	color: #fff;
}

.megamenu__more .icon {
	width: 14px;
	height: 14px;
	fill: currentcolor;
	flex: none;
}

.megamenu__title {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 1.1rem;
	padding-bottom: 0.7rem;
	border-bottom: 1px solid rgb(255 255 255 / 18%);
	font-size: 1.3rem;
	font-weight: 700;
	color: #fff;
}

.megamenu__chev {
	width: 18px;
	height: 18px;
	fill: var(--orange);
	flex: none;
}

.megamenu__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.megamenu__list li {
	margin-bottom: 0.15rem;
}

.megamenu__list a {
	display: block;
	padding: 0.45rem 0;
	color: rgb(255 255 255 / 82%);
	font-size: 1rem;
	font-weight: 400;
	transition: color var(--t), padding-left var(--t);
}

.megamenu__list a:hover {
	color: var(--orange);
	padding-left: 0.5rem;
}

.megamenu__list--lead a {
	font-size: 1.5rem;
	font-weight: 700;
	color: #fff;
	padding-block: 0.35rem;
}

.megamenu__list--lead a:hover {
	color: var(--orange);
}

.megamenu__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem;
	margin-top: 2.5rem;
	padding-top: 1.75rem;
	border-top: 1px solid rgb(255 255 255 / 18%);
}

.megamenu__cta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
}

.megamenu__social {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	font-weight: 700;
	color: rgb(255 255 255 / 80%);
}

.megamenu__social a {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border: 1.5px solid rgb(255 255 255 / 28%);
	border-radius: 50%;
	color: #fff;
	transition: background var(--t), border-color var(--t), transform var(--t);
}

.megamenu__social a:hover {
	background: var(--orange);
	border-color: var(--orange);
	transform: translateY(-3px);
}

.megamenu__social .icon {
	width: 17px;
	height: 17px;
	fill: currentcolor;
}

/*
 * Mobile: same overlay, columns stack. Every link stays visible — matching
 * the reference site, which never collapses these groups.
 */
@media (max-width: 991px) {
	.megamenu__cols {
		grid-template-columns: 1fr;
		gap: 1.75rem;
	}

	.megamenu__title {
		font-size: 1.15rem;
		margin-bottom: 0.8rem;
	}

	.megamenu__list--lead a {
		font-size: 1.3rem;
	}

	.megamenu__foot {
		flex-direction: column;
		align-items: flex-start;
	}

	.megamenu__cta .btn {
		flex: 1;
	}
}

@media (min-width: 992px) and (max-width: 1200px) {
	.megamenu__cols {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Five columns need the room. Below this the fifth would be a sliver. */
@media (min-width: 1201px) and (max-width: 1400px) {
	.megamenu__cols {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.75rem 2rem;
	}
}

/* Lock the page behind the overlay */
body.menu-open {
	overflow: hidden;
}
