/* =========================================================
   VISION HEADER NAV WIDGET - FRONTEND STYLES
   ========================================================= */

/* ---------- GLOSSY HEADER ---------- */
.vh-header-wrap {
	width: 100%;
	z-index: 999;
}

.vh-header-wrap.vh-sticky {
	position: relative;
}

/* JS adds .vh-fixed-active once the page has scrolled past the header's
   natural position. We deliberately do NOT use CSS `position: sticky`
   here — sticky silently breaks the moment ANY ancestor (an Elementor
   Section/Column/Container) has `overflow` set to anything but `visible`
   (very common with entrance animations / hero bleed effects), and that
   ancestor is outside this widget's control. `position: fixed` doesn't
   have that problem, so it's used instead once JS confirms we've
   scrolled. A spacer element (added right after the header markup)
   keeps the page content from jumping when the header leaves flow. */
.vh-header-wrap.vh-sticky.vh-fixed-active {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
}

body.admin-bar .vh-header-wrap.vh-sticky.vh-fixed-active {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .vh-header-wrap.vh-sticky.vh-fixed-active {
		top: 46px;
	}
}

.vh-header-spacer {
	display: none;
}

.vh-header-wrap.vh-fixed-active + .vh-header-spacer {
	display: block;
}

.vh-header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	--vh-blur: blur(18px);
	--vh-brightness: brightness(100%);
	--vh-saturate: saturate(100%);
	--vh-contrast: contrast(100%);
	--vh-grayscale: grayscale(0%);
	backdrop-filter: var(--vh-blur) var(--vh-brightness) var(--vh-saturate) var(--vh-contrast) var(--vh-grayscale);
	-webkit-backdrop-filter: var(--vh-blur) var(--vh-brightness) var(--vh-saturate) var(--vh-contrast) var(--vh-grayscale);
	background-color: transparent;
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* ---------- Sticky Header state (added by JS once scrolled) ---------- */
/* NOTE: uses ".vh-logo .vh-logo-img-sticky" (2 classes) instead of just
   ".vh-logo-img-sticky" (1 class) — needed so this beats the
   ".vh-logo img" rule below in specificity. Otherwise the sticky logo
   never actually hides and both logos render on top of each other. */
.vh-logo .vh-logo-img-sticky {
	display: none;
}

.vh-header-wrap.vh-scrolled .vh-logo-img-normal {
	display: none;
}

.vh-header-wrap.vh-scrolled .vh-logo-img-sticky {
	display: block;
}

.vh-logo a {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.vh-logo img {
	display: block;
	height: auto;
	max-width: 100%;
}

.vh-logo-text {
	font-size: 24px;
	font-weight: 700;
	color: inherit;
}

.vh-nav {
	display: flex;
	align-items: center;
	flex: 1;
	gap: 24px;
}

.vh-nav-links {
	display: flex;
	align-items: center;
	flex: 1;
	justify-content: flex-end;
	gap: 8px;
	min-width: 0;
}

.vh-nav a {
	position: relative;
	text-decoration: none;
	font-size: 16px;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	transition: color 0.25s ease, background-color 0.25s ease;
}

.vh-caret {
	width: 0;
	height: 0;
	margin-left: 2px;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	display: inline-block;
	opacity: 0.7;
}

.vh-cta-group {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.vh-cta-btn {
	display: inline-block;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	border-radius: 8px;
	padding: 14px 26px;
	border: 1px solid transparent;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
	white-space: nowrap;
}

.vh-cta-btn-primary {
	background-color: #e8859c;
	color: #fff;
}

.vh-cta-btn-secondary {
	background-color: transparent;
	color: #e8859c;
	border-color: #e8859c;
}

.vh-cta-btn:hover {
	transform: translateY(-1px);
}

/* Mobile hamburger toggle - hidden on desktop */
.vh-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 32px;
	height: 32px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	box-sizing: border-box;
	transition: background-color 0.25s ease;
	z-index: 1001;
}

.vh-toggle span {
	display: block;
	width: 100%;
	height: 2px;
	background-color: #4a4a4a;
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.vh-header-wrap.vh-menu-open .vh-toggle span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}
.vh-header-wrap.vh-menu-open .vh-toggle span:nth-child(2) {
	opacity: 0;
}
.vh-header-wrap.vh-menu-open .vh-toggle span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Header - Responsive Collapse ----------
   Driven by JS (frontend.js) which compares window width against the
   editable "Collapse Menu Below" breakpoint and toggles .vh-is-mobile.
   A 1024px @media fallback is also included below for the rare case
   JS hasn't run yet (avoids a flash of the full desktop menu). ---------- */
.vh-header-wrap.vh-is-mobile .vh-toggle,
.vh-header-wrap.vh-no-js .vh-toggle {
	display: flex;
}

.vh-header-wrap.vh-is-mobile .vh-nav,
.vh-header-wrap.vh-no-js .vh-nav {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	background-color: rgba(255, 255, 255, 0.97);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	transition: max-height 0.35s ease, opacity 0.25s ease;
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.vh-header-wrap.vh-is-mobile .vh-nav-links,
.vh-header-wrap.vh-no-js .vh-nav-links {
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	width: 100%;
	gap: 0;
}

.vh-header-wrap.vh-is-mobile.vh-menu-open .vh-nav,
.vh-header-wrap.vh-no-js.vh-menu-open .vh-nav {
	max-height: 600px;
	opacity: 1;
	visibility: visible;
}

.vh-header-wrap.vh-is-mobile .vh-nav a,
.vh-header-wrap.vh-is-mobile .vh-nav .vh-cta-btn,
.vh-header-wrap.vh-no-js .vh-nav a,
.vh-header-wrap.vh-no-js .vh-nav .vh-cta-btn {
	width: 100%;
	padding: 14px 24px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.vh-header-wrap.vh-is-mobile .vh-nav .vh-cta-btn,
.vh-header-wrap.vh-no-js .vh-nav .vh-cta-btn {
	text-align: center;
	margin: 12px 24px;
	width: calc(100% - 48px);
	border-bottom: none;
}

.vh-header-wrap.vh-is-mobile .vh-header-bar,
.vh-header-wrap.vh-no-js .vh-header-bar {
	position: relative;
}

/* No-JS fallback only (progressive enhancement safety net) */
@media (max-width: 1024px) {
	.vh-header-wrap.vh-no-js .vh-toggle {
		display: flex;
	}
}

/* ---------- Header - Mobile Show/Hide switches (Content > Mobile Settings) ---------- */
.vh-header-wrap.vh-is-mobile.vh-hide-logo-mobile .vh-logo,
.vh-header-wrap.vh-no-js.vh-hide-logo-mobile .vh-logo {
	display: none;
}

.vh-header-wrap.vh-is-mobile.vh-hide-menu-mobile .vh-toggle,
.vh-header-wrap.vh-is-mobile.vh-hide-menu-mobile .vh-nav,
.vh-header-wrap.vh-no-js.vh-hide-menu-mobile .vh-toggle,
.vh-header-wrap.vh-no-js.vh-hide-menu-mobile .vh-nav {
	display: none;
}

.vh-header-wrap.vh-is-mobile.vh-hide-button-mobile .vh-cta-btn-primary,
.vh-header-wrap.vh-no-js.vh-hide-button-mobile .vh-cta-btn-primary {
	display: none;
}

.vh-header-wrap.vh-is-mobile.vh-hide-button-mobile .vh-cta-btn-secondary,
.vh-header-wrap.vh-no-js.vh-hide-button-mobile .vh-cta-btn-secondary {
	/* keep the secondary button visible only when its own mobile setting allows it */
	display: inline-block;
}

.vh-header-wrap.vh-is-mobile.vh-hide-button-2-mobile .vh-cta-btn-secondary,
.vh-header-wrap.vh-no-js.vh-hide-button-2-mobile .vh-cta-btn-secondary {
	display: none;
}

/* ---------- TOP HEADER BAR ---------- */
.vh-topbar-wrap {
	width: 100%;
}

.vh-topbar-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 12px;
	padding: 8px 50px;
	background-color: #2b2b2b;
	background-size: cover;
	background-position: center;
	position: relative;
}

.vh-topbar-inner:after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background-color: rgba(255, 255, 255, 0.14);
	margin: 0 auto;
	pointer-events: none;
}

.vh-topbar-zone {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 18px;
	min-width: 0;
}

.vh-topbar-left {
	justify-self: start;
}

.vh-topbar-center {
	justify-self: center;
}

.vh-topbar-right {
	justify-self: end;
}

.vh-topbar-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	text-decoration: none;
	color: #f2f2f2;
	font-size: 13px;
	line-height: 1.4;
	transition: color 0.25s ease;
}

span.vh-topbar-item {
	cursor: default;
}

.vh-topbar-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	line-height: 1;
}

.vh-topbar-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.vh-topbar-text {
	white-space: nowrap;
}

/* ---------- Top Header Bar - Responsive ---------- */
@media (max-width: 1024px) {
	.vh-topbar-inner {
		padding: 8px 30px;
	}
}

@media (max-width: 767px) {
	.vh-topbar-wrap.vh-topbar-hide-mobile {
		display: none;
	}

	.vh-topbar-wrap.vh-topbar-hide-left-mobile .vh-topbar-left,
	.vh-topbar-wrap.vh-topbar-hide-center-mobile .vh-topbar-center,
	.vh-topbar-wrap.vh-topbar-hide-right-mobile .vh-topbar-right {
		display: none;
	}

	.vh-topbar-inner {
		grid-template-columns: 1fr;
		justify-items: center;
		text-align: center;
		gap: 6px;
		padding: 8px 16px;
	}

	.vh-topbar-left,
	.vh-topbar-center,
	.vh-topbar-right {
		justify-self: center;
		justify-content: center;
	}

	.vh-topbar-text {
		white-space: normal;
	}
}

