/* Everest Header & Footer — header.css
   Palette: brand #0B6993, deep #084F70, accent #17A2C9, tint #EAF4F9

   Sticky note: the header is pinned via JS (position:fixed toggled on scroll +
   a spacer element that reserves its height), not CSS position:sticky. On this
   stack, position:sticky failed to stick on a page-content-level element
   nested inside the theme-builder <header> region regardless of what other
   CSS was loaded — reproduced with the header's own rule as the ONLY CSS on
   the page. A JS fixed+spacer header is a normal, well-supported pattern and
   sidesteps that entirely. */

.ehf-header {
	position: relative;
	z-index: 999;
	background: #fff;
	width: 100%;
}

.ehf-header.is-pinned {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
}

body.admin-bar .ehf-header.is-pinned {
	top: var(--ehf-admin-offset, var(--wp-admin--admin-bar--height, 32px));
}

body.admin-bar .ehf-drawer {
	top: var(--ehf-admin-offset, var(--wp-admin--admin-bar--height, 32px));
}

.ehf-header__spacer {
	display: none;
}

.ehf-header__spacer.is-active {
	display: block;
}

.ehf-header__accent {
	height: 3px;
	background: linear-gradient(90deg, #0b6993, #17a2c9, #0b6993);
	background-size: 200% 100%;
	animation: ehf-shift 6s linear infinite;
}

@keyframes ehf-shift {
	0% { background-position: 0% 0; }
	100% { background-position: 200% 0; }
}

/* Utility bar */
.ehf-utility {
	background: linear-gradient(135deg, #0b6993 0%, #084f70 100%);
	color: #eaf6fc;
}

.ehf-utility__inner {
	max-width: 1320px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 7px 24px;
	flex-wrap: nowrap;
}

.ehf-utility__contact {
	display: flex;
	align-items: center;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ehf-utility__contact a,
.ehf-utility__contact a:link,
.ehf-utility__contact a:visited {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #eaf6fc !important;
	text-decoration: none;
	font-size: 13px;
	font-family: "Nunito Sans", sans-serif;
	transition: color 0.15s ease;
}

.ehf-utility__contact a:hover,
.ehf-utility__contact a:focus-visible {
	color: #ffffff !important;
}

.ehf-utility__contact svg {
	width: 12px;
	height: 12px;
	fill: #bfe0ee;
	flex-shrink: 0;
}

.ehf-utility__trust {
	margin: 0;
	font-size: 13px;
	color: #bfe0ee;
	font-family: "Nunito Sans", sans-serif;
	text-align: center;
	flex: 1 1 auto;
}

.ehf-utility__socials {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.ehf-utility__social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #fff;
	flex-shrink: 0;
	transition: transform 0.15s ease;
}

.ehf-utility__social:hover,
.ehf-utility__social:focus-visible {
	transform: scale(1.08);
}

.ehf-utility__social svg {
	width: 12px;
	height: 12px;
	fill: #0b6993;
}

/* Main bar */
.ehf-main {
	background: #fff;
	border-bottom: 1px solid rgba(11, 105, 147, 0.12);
	transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.ehf-header.is-scrolled .ehf-main {
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: blur(14px) saturate(1.4);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	box-shadow: 0 8px 24px rgba(11, 41, 61, 0.08);
}

.ehf-main__inner {
	max-width: 1320px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 14px 24px;
}

.ehf-logo {
	flex-shrink: 0;
	display: block;
}

.ehf-logo img {
	display: block;
	height: auto;
}

/* Nav */
.ehf-nav {
	flex: 1 1 auto;
	display: flex;
	justify-content: center;
}

.ehf-nav__list {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ehf-nav__list li {
	position: relative;
}

.ehf-nav .ehf-nav__list {
	align-items: stretch;
}

.ehf-nav .ehf-nav__list > li {
	display: flex;
	align-items: center;
	margin-top: -14px;
	margin-bottom: -14px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.ehf-nav__list > li > a,
.ehf-nav__list > li > a:link,
.ehf-nav__list > li > a:visited {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	color: #111827 !important;
	text-decoration: none;
	font-family: "Nunito", sans-serif;
	font-size: 14px;
	font-weight: 600;
	border-radius: 8px;
	transition: color 0.15s ease;
}

.ehf-nav__list > li > a::after {
	content: "";
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 4px;
	height: 2px;
	background: #0b6993;
	border-radius: 2px;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.2s ease;
}

.ehf-nav__list > li > a:hover,
.ehf-nav__list > li > a:focus-visible,
.ehf-nav__list > li.current-menu-item > a,
.ehf-nav__list > li.current-menu-ancestor > a,
.ehf-nav__list > li.current_page_item > a {
	color: #0b6993 !important;
}

.ehf-nav__list > li > a:hover::after,
.ehf-nav__list > li > a:focus-visible::after,
.ehf-nav__list > li.current-menu-item > a::after,
.ehf-nav__list > li.current_page_item > a::after {
	transform: scaleX(1);
}

.ehf-nav__list li.menu-item-has-children > a::before {
	content: "";
	width: 6px;
	height: 6px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	order: 2;
}

/* Bridge keeps :hover while the pointer travels from the trigger into the panel.
   Old top: calc(100% + 6px) + closed translateY(6px) left a 6–12px dead zone;
   pointer-events:none then hid the menu before the first child could be hit. */
.ehf-nav .ehf-nav__list > li.menu-item-has-children::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: 12px;
	z-index: 1;
}

.ehf-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 20;
	min-width: 240px;
	max-height: min(70vh, 480px);
	overflow-x: hidden;
	overflow-y: auto;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 16px 40px rgba(11, 41, 61, 0.16);
	list-style: none;
	margin: 0;
	padding: 8px;
	opacity: 0;
	transform: translateY(6px);
	pointer-events: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.ehf-nav__list .sub-menu::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 100%;
	height: 12px;
}

.ehf-nav .ehf-nav__list > li.menu-item-has-children:not(:has(~ li.menu-item-has-children)) > .sub-menu {
	left: auto;
	right: 0;
}

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

.ehf-nav__list .sub-menu a,
.ehf-nav__list .sub-menu a:link,
.ehf-nav__list .sub-menu a:visited {
	display: block;
	padding: 9px 12px;
	border-radius: 6px;
	color: #111827 !important;
	text-decoration: none;
	font-family: "Nunito", sans-serif;
	font-size: 14px;
	font-weight: 600;
	transition: background 0.15s ease, color 0.15s ease;
}

.ehf-nav__list .sub-menu a:hover,
.ehf-nav__list .sub-menu a:focus-visible {
	background: #eaf4f9;
	color: #0b6993 !important;
}

/* CTA button */
.ehf-cta,
.ehf-cta:link,
.ehf-cta:visited {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: linear-gradient(135deg, #0b6993, #084f70);
	color: #ffffff !important;
	text-decoration: none;
	font-family: "Nunito", sans-serif;
	font-size: 14px;
	font-weight: 600;
	padding: 12px 20px;
	border-radius: 10px;
	box-shadow: 0 6px 16px rgba(11, 105, 147, 0.28);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	flex-shrink: 0;
	white-space: nowrap;
}

.ehf-cta:hover,
.ehf-cta:focus,
.ehf-cta:focus-visible,
.ehf-cta:active {
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(11, 105, 147, 0.36);
	color: #ffffff !important;
}

.ehf-cta svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.15s ease;
}

.ehf-cta:hover svg,
.ehf-cta:focus-visible svg {
	transform: translateX(3px);
}

.ehf-cta--block {
	width: 100%;
	justify-content: center;
}

/* Mobile toggle */
.ehf-toggle {
	display: none !important;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 4px;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	background: #eaf4f9 !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	color: #0b6993 !important;
	cursor: pointer;
	flex-shrink: 0;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.ehf-toggle:hover,
.ehf-toggle:focus-visible {
	background: #d5ebf4 !important;
	color: #0b6993 !important;
}

.ehf-toggle span {
	display: block;
	width: 18px;
	height: 2px;
	background: #0b6993;
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.ehf-toggle[aria-expanded="true"] span:nth-child(1) {
	transform: translateY(6px) rotate(45deg);
}

.ehf-toggle[aria-expanded="true"] span:nth-child(2) {
	opacity: 0;
}

.ehf-toggle[aria-expanded="true"] span:nth-child(3) {
	transform: translateY(-6px) rotate(-45deg);
}

/* Off-canvas drawer (re-parented to <body> by header.js) */
.elementor-location-header,
.elementor-location-footer {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.elementor-location-header > .elementor,
.elementor-location-footer > .elementor {
	width: 100%;
	max-width: none;
}

.elementor-location-header .e-con.e-parent,
.elementor-location-footer .e-con.e-parent {
	--padding-left: 0px;
	--padding-right: 0px;
	--padding-top: 0px;
	--padding-bottom: 0px;
	--width: 100%;
	max-width: none;
	width: 100%;
}

.elementor-location-header .elementor-widget,
.elementor-location-footer .elementor-widget,
.elementor-location-header .elementor-widget-container,
.elementor-location-footer .elementor-widget-container {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
}

.ehf-drawer {
	position: fixed;
	inset: 0;
	z-index: 99990;
	visibility: hidden;
}

.ehf-drawer.is-open {
	visibility: visible;
}

.ehf-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(6, 26, 38, 0.58);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.ehf-drawer.is-open .ehf-drawer__backdrop {
	opacity: 1;
}

.ehf-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(calc(100vw - 16px), 400px);
	max-width: 100%;
	background: #ffffff;
	padding: 0;
	padding-bottom: env(safe-area-inset-bottom, 0px);
	overflow: hidden;
	overscroll-behavior: contain;
	transform: translateX(100%);
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
	display: flex;
	flex-direction: column;
	box-shadow: -24px 0 48px rgba(6, 58, 82, 0.18);
}

.ehf-drawer.is-open .ehf-drawer__panel {
	transform: translateX(0);
}

.ehf-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-shrink: 0;
	padding: 16px 16px 16px 20px;
	border-bottom: 1px solid #eef2f4;
	background: #ffffff;
}

.ehf-drawer__brand {
	display: flex;
	align-items: center;
	min-width: 0;
}

.ehf-drawer__brand img {
	display: block;
	width: 128px;
	height: auto;
}

.ehf-drawer button.ehf-drawer__close,
.ehf-drawer button.ehf-drawer__close[type="button"] {
	position: static;
	flex: 0 0 40px;
	width: 40px !important;
	height: 40px;
	margin: 0;
	padding: 0 !important;
	border-radius: 50% !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background: #f4f6f8 !important;
	color: #111827 !important;
	font-size: inherit;
	line-height: 1;
	cursor: pointer;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.ehf-drawer button.ehf-drawer__close:hover,
.ehf-drawer button.ehf-drawer__close:focus-visible,
.ehf-drawer button.ehf-drawer__close[type="button"]:hover,
.ehf-drawer button.ehf-drawer__close[type="button"]:focus-visible {
	background: #eaf6fc !important;
	color: #0b6993 !important;
}

.ehf-drawer button.ehf-drawer__close:focus-visible,
.ehf-drawer button.ehf-drawer__close[type="button"]:focus-visible {
	box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #0b6993 !important;
}

.ehf-drawer__nav {
	flex: 1 1 auto;
	min-height: 0;
	margin: 0;
	padding: 8px 12px 16px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.ehf-drawer__nav .ehf-nav__list {
	flex-direction: column;
	align-items: stretch;
	gap: 4px;
}

.ehf-drawer__nav .ehf-nav__list > li {
	display: block;
	margin: 0;
	padding: 0;
	border-bottom: none;
}

.ehf-drawer__row {
	display: flex;
	align-items: stretch;
	gap: 0;
	border-radius: 12px;
	transition: background-color 0.15s ease;
}

.ehf-drawer__nav a,
.ehf-drawer__nav a:link,
.ehf-drawer__nav a:visited {
	color: #111827 !important;
	text-decoration: none;
	background: transparent;
	border-radius: 0;
}

.ehf-drawer__nav .ehf-drawer__row > a,
.ehf-drawer__nav .ehf-nav__list > li:not(.menu-item-has-children) > a {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	padding: 14px 16px;
	min-height: 48px;
	border-bottom: none;
	border-radius: 12px;
	justify-content: flex-start;
	width: auto;
	font-family: "Nunito", sans-serif;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	color: #111827 !important;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.ehf-drawer__nav .ehf-drawer__row > a {
	border-radius: 12px 0 0 12px;
}

/* Touch keeps :hover after tap — no fill on hover unless a real pointer. */
.ehf-drawer__nav .ehf-nav__list > li:not(.menu-item-has-children) > a:active,
.ehf-drawer__row:active {
	background: #f4f6f8;
}

.ehf-drawer__nav a:hover,
.ehf-drawer__nav a:focus-visible,
.ehf-drawer__nav a:active {
	color: #0b6993 !important;
}

@media (hover: hover) and (pointer: fine) {
	.ehf-drawer__nav .ehf-nav__list > li:not(.menu-item-has-children) > a:hover,
	.ehf-drawer__row:hover {
		background: #f4f6f8;
	}
}

.ehf-drawer__nav .ehf-nav__list > li > a::after,
.ehf-drawer__nav .ehf-nav__list li.menu-item-has-children > a::before {
	display: none;
	content: none;
}

.ehf-drawer button.ehf-drawer__caret,
.ehf-drawer button.ehf-drawer__caret[type="button"] {
	flex: 0 0 48px;
	width: 48px !important;
	min-width: 48px;
	height: auto;
	min-height: 48px;
	margin: 0;
	padding: 0 !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	border-radius: 0 12px 12px 0 !important;
	background: transparent !important;
	color: #5c6570 !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	-webkit-appearance: none !important;
	appearance: none !important;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.ehf-drawer__row:hover .ehf-drawer__caret,
.ehf-drawer button.ehf-drawer__caret:hover,
.ehf-drawer button.ehf-drawer__caret:focus-visible,
.ehf-drawer button.ehf-drawer__caret[type="button"]:hover,
.ehf-drawer button.ehf-drawer__caret[type="button"]:focus-visible {
	background: transparent !important;
	color: #0b6993 !important;
}

.ehf-drawer button.ehf-drawer__caret:focus-visible,
.ehf-drawer button.ehf-drawer__caret[type="button"]:focus-visible {
	box-shadow: inset 0 0 0 2px #0b6993 !important;
}

.ehf-drawer__caret svg {
	transition: transform 0.2s ease;
}

.ehf-drawer__nav li.menu-item-has-children.is-expanded > .ehf-drawer__row .ehf-drawer__caret svg {
	transform: rotate(180deg);
}

.ehf-drawer__nav li.menu-item-has-children.is-expanded > .ehf-drawer__row {
	background: #f4f6f8;
}

.ehf-drawer__nav li.menu-item-has-children.is-expanded > .ehf-drawer__row .ehf-drawer__caret {
	color: #0b6993 !important;
}

.ehf-drawer__nav .ehf-nav__list > li.menu-item-has-children::after,
.ehf-drawer__nav .sub-menu::before {
	content: none;
}

.ehf-drawer__nav .sub-menu {
	position: static;
	left: auto;
	right: auto;
	z-index: auto;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transform: none;
	pointer-events: none;
	box-shadow: none;
	border-radius: 10px;
	padding: 0;
	margin: 0 8px 0 12px;
	display: block;
	background: #f4f6f8;
	border-left: 3px solid #17a2c9;
	transition: max-height 0.25s ease, opacity 0.2s ease, margin 0.2s ease, padding 0.2s ease, visibility 0.2s ease;
}

.ehf-drawer__nav li.menu-item-has-children.is-expanded > .sub-menu {
	max-height: 80vh;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	padding: 6px 0;
	margin: 0 8px 8px 12px;
	overflow-y: auto;
}

.ehf-drawer__nav .sub-menu a,
.ehf-drawer__nav .sub-menu a:link,
.ehf-drawer__nav .sub-menu a:visited {
	padding: 12px 16px;
	min-height: 44px;
	display: flex;
	align-items: center;
	font-family: "Nunito Sans", sans-serif;
	font-size: 15px;
	font-weight: 600;
	border-radius: 0;
	color: #5c6570 !important;
	background: transparent;
}

.ehf-drawer__nav .sub-menu a:hover,
.ehf-drawer__nav .sub-menu a:focus-visible,
.ehf-drawer__nav .sub-menu a:active {
	color: #0b6993 !important;
	background: transparent;
}

.ehf-drawer__nav .sub-menu a:active {
	background: #eef1f4;
}

@media (hover: hover) and (pointer: fine) {
	.ehf-drawer__nav .sub-menu a:hover {
		background: #eef1f4;
	}
}

.ehf-drawer__nav .sub-menu .current-menu-item > a,
.ehf-drawer__nav .ehf-nav__list > li.current-menu-item > a,
.ehf-drawer__nav .ehf-nav__list > li.current_page_item > a,
.ehf-drawer__nav .ehf-nav__list > li.current-menu-item > .ehf-drawer__row > a,
.ehf-drawer__nav .ehf-nav__list > li.current-menu-ancestor > .ehf-drawer__row > a {
	color: #0b6993 !important;
	background: transparent;
	box-shadow: none;
	font-weight: 700;
}

.ehf-drawer__nav .ehf-nav__list > li.current-menu-item > .ehf-drawer__row,
.ehf-drawer__nav .ehf-nav__list > li.current-menu-ancestor > .ehf-drawer__row {
	background: transparent;
}

.ehf-drawer__nav .ehf-nav__list > li.current-menu-item > a:active,
.ehf-drawer__nav .ehf-nav__list > li.current_page_item > a:active,
.ehf-drawer__nav .ehf-nav__list > li.current-menu-item > .ehf-drawer__row:active,
.ehf-drawer__nav .sub-menu .current-menu-item > a:active {
	background: #f4f6f8;
}

.ehf-drawer__footer {
	margin-top: auto;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px 20px 20px;
	border-top: 1px solid #eef2f4;
	background: #f4f6f8;
}

.ehf-drawer__phone,
.ehf-drawer__phone:link,
.ehf-drawer__phone:visited {
	text-align: center;
	color: #0b6993 !important;
	font-family: "Nunito", sans-serif;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none;
}

html.ehf-drawer-open,
html.ehf-drawer-open body {
	overflow: hidden;
}

/* Responsive */
@media (max-width: 1024px) {
	.ehf-nav,
	.ehf-main__cta {
		display: none !important;
	}

	.ehf-toggle {
		display: flex !important;
	}

	.ehf-utility__trust {
		display: none;
	}
}

@media (max-width: 767px) {
	.ehf-utility__inner {
		gap: 8px;
		padding: 6px 12px;
	}

	.ehf-utility__contact {
		gap: 10px;
		min-width: 0;
		flex: 1 1 auto;
	}

	.ehf-utility__contact a {
		font-size: 12px;
		white-space: nowrap;
	}

	.ehf-utility__social {
		width: 22px;
		height: 22px;
	}
}

@media (max-width: 640px) {
	.ehf-utility__email span {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.ehf-logo img {
		width: 130px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ehf-header *,
	.ehf-drawer * {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}
