/* =============================================================================
   Sticky Header — Glassmorphic
   ========================================================================== */

.wt-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: var(--wt-z-sticky-header);
	height: 80px;
	background: rgba(255, 255, 255, 0.80);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-bottom: 1px solid rgba(117, 118, 132, 0.15);
	transition: all var(--wt-transition-base);
}

.wt-header.is-scrolled {
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 6px 24px rgba(0, 40, 142, 0.06);
	border-bottom-color: rgba(117, 118, 132, 0.22);
	height: 68px;
}

.wt-header__inner {
	max-width: var(--wt-container-max);
	height: 100%;
	margin: 0 auto;
	padding: 0 var(--wt-gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wt-gutter);
}

@media (max-width: 767px) {
	.wt-header__inner { padding: 0 var(--wt-margin-mobile); }
}

.wt-header__brand {
	display: flex;
	align-items: center;
	gap: var(--wt-stack-sm);
	font-family: var(--wt-font-display);
	font-size: 26px;
	font-weight: var(--wt-fw-extrabold);
	color: var(--wt-primary);
	text-decoration: none;
	letter-spacing: var(--wt-tracking-snug);
}
.wt-header__brand img { max-height: 40px; width: auto; }

/* Desktop primary nav */
.wt-header__nav {
	display: none;
	align-items: center;
	gap: var(--wt-stack-lg);
	flex: 1;
	margin-left: var(--wt-stack-xl);
}
@media (min-width: 1024px) {
	.wt-header__nav { display: flex; }
}

.wt-header__nav a,
.wt-header__nav > ul > li > a {
	color: var(--wt-on-surface-variant);
	font-family: var(--wt-font-body);
	font-size: var(--wt-fs-body-md);
	font-weight: var(--wt-fw-medium);
	text-decoration: none;
	transition: color var(--wt-transition-fast);
	padding: 8px 4px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.wt-header__nav a:hover,
.wt-header__nav .current-menu-item > a,
.wt-header__nav .current-menu-parent > a,
.wt-header__nav .current-menu-ancestor > a {
	color: var(--wt-primary);
}

.wt-header__nav > ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: var(--wt-stack-lg);
	align-items: center;
}
.wt-header__nav > ul > li {
	position: relative;
}

/* Chevron for parent items */
.wt-header__nav .menu-item-has-children > a::after {
	content: 'expand_more';
	font-family: var(--wt-font-icons);
	font-size: 18px;
	margin-left: 2px;
	font-variation-settings: 'FILL' 0, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

/* Mega menu dropdown */
.wt-header__nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 12px;
	min-width: 320px;
	list-style: none;
	padding: var(--wt-stack-lg);
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.30);
	border-radius: var(--wt-radius-xl);
	box-shadow: var(--wt-shadow-xl);
	opacity: 0;
	transform: translateY(8px);
	pointer-events: none;
	transition: all var(--wt-transition-base);
	z-index: var(--wt-z-dropdown);
}

/* Invisible bridge — lets cursor cross the 12px gap without triggering close */
.wt-header__nav .sub-menu::before {
	content: '';
	position: absolute;
	top: -14px;
	left: 0;
	right: 0;
	height: 14px;
	background: transparent;
}

/* Keep parent li hoverable across the gap by extending its hit zone downward */
.wt-header__nav > ul > li.menu-item-has-children {
	padding-bottom: 14px;
	margin-bottom: -14px;
}

/* Services mega — two-column */
.wt-header__nav .menu-item-services > .sub-menu {
	min-width: 480px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.wt-header__nav > ul > li:hover > .sub-menu,
.wt-header__nav > ul > li:focus-within > .sub-menu {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.wt-header__nav .sub-menu li a {
	display: block;
	padding: 12px 16px;
	border-radius: var(--wt-radius-md);
	border: 1px solid transparent;
	transition: all var(--wt-transition-fast);
	color: var(--wt-primary);
	font-weight: var(--wt-fw-bold);
}
.wt-header__nav .sub-menu li a:hover {
	background: rgba(0, 40, 142, 0.05);
	border-color: var(--wt-outline-variant);
}
.wt-header__nav .sub-menu li a::after { content: none; }

/* Header CTA */
.wt-header__actions {
	display: flex;
	align-items: center;
	gap: var(--wt-stack-sm);
	flex-shrink: 0;
}
.wt-header__cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--wt-primary);
	color: var(--wt-on-primary);
	padding: 10px 22px;
	border-radius: var(--wt-radius-full);
	font-weight: var(--wt-fw-bold);
	font-size: 14px;
	text-decoration: none;
	transition: all var(--wt-transition-base);
	white-space: nowrap;
}
.wt-header__cta:hover {
	background: var(--wt-primary-container);
	color: var(--wt-on-primary);
	box-shadow: var(--wt-shadow-primary);
	transform: translateY(-1px);
}

/* Hamburger button — mobile only */
.wt-header__hamburger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: transparent;
	border: 0;
	color: var(--wt-primary);
	cursor: pointer;
	border-radius: var(--wt-radius-md);
	transition: background var(--wt-transition-fast);
}
.wt-header__hamburger:hover {
	background: rgba(0, 40, 142, 0.05);
}
.wt-header__hamburger .material-symbols-outlined { font-size: 32px; }
@media (min-width: 1024px) {
	.wt-header__hamburger { display: none; }
}

/* Skip link — WCAG required */
.wt-skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: var(--wt-z-skip-link);
	background: var(--wt-amber);
	color: #0F172A;
	padding: 12px 20px;
	border-radius: var(--wt-radius-md);
	font-weight: var(--wt-fw-bold);
	text-decoration: none;
	transition: top var(--wt-transition-fast);
}
.wt-skip-link:focus {
	top: 16px;
}

/* Push page content below fixed header */
body:not(.elementor-editor-active) .wt-site-main {
	padding-top: 80px;
}
