/* ==========================================================================
   Public site header (public/includes/header_inc.asp)
   Sticky white bar: logo, menu and Login. Below 980px the menu folds
   into a panel opened by the menu button.
   ========================================================================== */

/* legacy CSS sets overflow-x: hidden on body, which makes body its own scroll box and stops
   position: sticky; clip hides sideways overflow the same way without that side effect */
html body { overflow: visible; overflow-x: clip; } /* html body: beats the html, body rule in footer_bottom_inc.asp */

.site-header {
	--sh-blue: #005d97;
	--sh-orange: #ff9004;
	--sh-text: #334155;
	--sh-border: #e5e7eb;

	position: sticky;
	top: 0;
	z-index: 1000;
	background: rgba(255, 255, 255, .96);
	-webkit-backdrop-filter: saturate(180%) blur(8px);
	backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid var(--sh-border);
	font-family: 'Source Sans Pro', 'open_sansregular', Arial, sans-serif;
	transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(15, 23, 42, .08); }

/* SEO headings from h1_inc.asp stay in the markup but are not shown */
.site-header > h1,
.site-header > h2 {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.site-header-inner {
	display: flex;
	align-items: center;
	gap: 32px;
	box-sizing: border-box;
	width: 100%;
	max-width: 1202px; /* content rows are 1170px; plus the side padding */
	height: 92px;
	margin: 0 auto;
	padding: 0 16px;
}

.site-logo { flex: 0 0 auto; display: block; line-height: 0; }
.site-logo img { display: block; width: auto; height: 30px; max-width: none; }

.site-nav {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 32px;
}

.site-menu {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.site-menu li { margin: 0; padding: 0; list-style: none; }
.site-header .site-menu a {
	position: relative;
	display: block;
	padding: 10px 16px;
	border-radius: 8px;
	color: var(--sh-text);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}
.site-header .site-menu a:hover { background: #f1f5f9; color: var(--sh-blue); }
.site-header .site-menu a.current { color: var(--sh-blue); }
.site-header .site-menu a.current::after {
	content: "";
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: -4px;
	height: 2px;
	border-radius: 2px;
	background: var(--sh-orange);
}

.site-nav-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-left: 32px;
	border-left: 1px solid var(--sh-border);
}
.site-header .site-login {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 44px;
	padding: 0 24px;
	border-radius: 999px;
	background: var(--sh-orange);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	box-shadow: none;
	transition: filter .15s ease, transform .15s ease;
}
.site-header .site-login:hover { color: #fff; filter: brightness(.95); transform: translateY(-1px); }
.site-header .site-login .fa { font-size: 14px; }

.site-menu-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-left: auto;
	padding: 0;
	border: 1px solid var(--sh-border);
	border-radius: 10px;
	background: #fff;
	color: var(--sh-text);
	font-size: 20px;
	cursor: pointer;
}

/* ---------- tablet / phone: menu folds into a panel under the bar ---------- */
@media (max-width: 979px) {
	.site-header-inner { height: 72px; gap: 16px; }
	.site-logo { flex-shrink: 1; min-width: 0; }
	.site-logo img { height: auto; max-height: 26px; max-width: 100%; }
	/* Login is in the menu panel now, so the legacy floating Contact / Login buttons are not needed */
	#wrap > .mob_button { display: none !important; }
	.site-menu-toggle { display: flex; }
	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 12px 16px 20px;
		background: #fff;
		border-bottom: 1px solid var(--sh-border);
		box-shadow: 0 16px 32px rgba(15, 23, 42, .12);
	}
	.site-header.menu-open .site-nav { display: flex; }
	.site-menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.site-header .site-menu a { padding: 12px 14px; font-size: 17px; }
	.site-header .site-menu a.current { background: #f1f5f9; }
	.site-header .site-menu a.current::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
	.site-nav-actions {
		justify-content: flex-start;
		padding: 14px 0 0;
		border-left: 0;
		border-top: 1px solid var(--sh-border);
	}
	.site-header .site-login { height: 44px; padding: 0 24px; }
}

/* print: logo only */
@media print {
	.site-header { position: static; box-shadow: none; }
	.site-nav, .site-menu-toggle { display: none !important; }
}
