/* Vimisa Elementor Header — final cleaned stylesheet. */

:root {
	--vms-header-height: 76px;
	--vms-header-height-mobile: 68px;
	--vms-header-max: 1240px;
	--vms-header-bg: rgba(255, 255, 255, 0.82);
	--vms-header-bg-solid: rgba(255, 255, 255, 0.96);
	--vms-header-ink: #0f172a;
	--vms-header-text: #475569;
	--vms-header-border: #e2e8f0;
	--vms-header-primary: #2563eb;
	--vms-header-primary-dark: #1e40af;
	--vms-header-focus: rgba(37, 99, 235, 0.22);
	--vms-header-radius: 14px;
	--vms-header-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

/* ========================================
   Base and header shell
   ======================================== */

.vms-header,
.vms-header *,
.vms-header *::before,
.vms-header *::after {
	box-sizing: border-box;
}

.vms-header {
	position: sticky;
	top: 0;
	z-index: 1030;
	width: 100%;
	max-width: 100%;
	min-height: var(--vms-header-height);
	border-bottom: 1px solid transparent;
	background: var(--vms-header-bg);
	-webkit-backdrop-filter: blur(18px);
	backdrop-filter: blur(18px);
	transition:
		background-color 220ms ease,
		border-color 220ms ease,
		box-shadow 220ms ease;
}

.vms-header.is-scrolled {
	border-color: rgba(226, 232, 240, 0.9);
	background: var(--vms-header-bg-solid);
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

body.admin-bar .vms-header {
	top: 32px;
}

.vms-header .elementor-element,
.vms-header .e-con,
.vms-header .elementor-widget,
.vms-header .elementor-widget-container,
.vms-header__inner > * {
	min-width: 0;
}

.vms-header__inner {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	width: min(100%, var(--vms-header-max));
	min-height: var(--vms-header-height);
	margin-inline: auto;
	padding: 12px 20px;
}

/* ========================================
   Logo only
   ======================================== */

.vms-header-brand {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: flex-start;
	min-width: 0;
}

.vms-header-brand .elementor-widget-shortcode,
.vms-header-brand .elementor-widget-container {
	display: flex;
	align-items: center;
	width: auto;
	margin: 0;
}

.vms-brand {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: flex-start;
	max-width: 100%;
	text-decoration: none;
}

.vms-brand__image {
	display: block;
	width: auto;
	height: 44px;
	max-width: 190px;
	object-fit: contain;
	transition:
		transform 180ms ease,
		opacity 180ms ease;
}

.vms-brand:hover .vms-brand__image {
	opacity: 0.92;
	transform: translateY(-1px);
}

.vms-brand:focus-visible {
	border-radius: 8px;
	outline: 3px solid var(--vms-header-focus);
	outline-offset: 5px;
}

/* ========================================
   Desktop navigation
   ======================================== */

.vms-desktop-nav {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: center;
	min-width: 0;
}

.vms-desktop-nav .elementor-widget-shortcode,
.vms-desktop-nav .elementor-widget-container {
	width: 100%;
	min-width: 0;
}

.vms-menu {
	width: 100%;
}

.vms-menu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vms-menu--desktop {
	display: block;
	width: 100%;
}

.vms-menu--desktop > .vms-menu__list {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: center;
	gap: clamp(0.75rem, 1.35vw, 1.6rem);
	width: 100%;
	margin: 0;
	padding: 0;
}

.vms-menu--desktop .menu-item {
	position: relative;
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
}

.vms-menu--desktop .menu-item > a {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.5rem 0;
	color: var(--vms-header-text);
	font-size: 0.9375rem;
	font-weight: 650;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
	transition: color 180ms ease;
}

.vms-menu--desktop .menu-item > a::before {
	position: absolute;
	right: 0;
	bottom: 4px;
	left: 0;
	height: 2px;
	border-radius: 999px;
	background: var(--vms-header-primary);
	content: "";
	opacity: 0;
	transform: scaleX(0);
	transform-origin: center;
	transition:
		opacity 180ms ease,
		transform 180ms ease;
}

.vms-menu--desktop .menu-item > a:hover,
.vms-menu--desktop .menu-item > a:focus-visible,
.vms-menu--desktop .current-menu-item > a,
.vms-menu--desktop .current-menu-ancestor > a,
.vms-menu--desktop .current_page_item > a {
	color: var(--vms-header-primary);
}

.vms-menu--desktop .menu-item > a:hover::before,
.vms-menu--desktop .menu-item > a:focus-visible::before,
.vms-menu--desktop .current-menu-item > a::before,
.vms-menu--desktop .current-menu-ancestor > a::before,
.vms-menu--desktop .current_page_item > a::before {
	opacity: 1;
	transform: scaleX(1);
}

.vms-menu--desktop .menu-item > a:focus-visible {
	border-radius: 4px;
	outline: 3px solid rgba(37, 99, 235, 0.18);
	outline-offset: 4px;
}

/* Desktop submenu */

.vms-menu--desktop .sub-menu {
	position: absolute;
	z-index: 1100;
	inset-block-start: calc(100% + 0.5rem);
	inset-inline-start: 0;
	display: block;
	width: max-content;
	min-width: 210px;
	max-width: min(300px, calc(100vw - 2rem));
	padding: 0.5rem;
	border: 1px solid var(--vms-header-border);
	border-radius: var(--vms-header-radius);
	background: #ffffff;
	box-shadow: var(--vms-header-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition:
		opacity 180ms ease,
		visibility 180ms ease,
		transform 180ms ease;
}

.vms-menu--desktop .sub-menu .menu-item {
	display: block;
	width: 100%;
}

.vms-menu--desktop .sub-menu .menu-item > a {
	justify-content: flex-start;
	width: 100%;
	min-height: 42px;
	padding: 0.625rem 0.75rem;
	border-radius: 9px;
	color: #334155;
	font-size: 0.875rem;
	white-space: normal;
}

.vms-menu--desktop .sub-menu .menu-item > a::before {
	display: none;
}

.vms-menu--desktop .sub-menu .menu-item > a:hover,
.vms-menu--desktop .sub-menu .menu-item > a:focus-visible {
	background: #f1f5f9;
	color: var(--vms-header-primary);
}

.vms-menu--desktop .menu-item:hover > .sub-menu,
.vms-menu--desktop .menu-item:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.vms-menu--desktop .sub-menu .sub-menu {
	inset-block-start: -0.5rem;
	inset-inline-start: calc(100% + 0.5rem);
}

.vms-menu--desktop .menu-item-has-children > a {
	gap: 0.375rem;
}

.vms-menu--desktop .menu-item-has-children > a::after {
	width: 7px;
	height: 7px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	content: "";
	transform: translateY(-2px) rotate(45deg);
	transition: transform 180ms ease;
}

.vms-menu--desktop .menu-item-has-children:hover > a::after,
.vms-menu--desktop .menu-item-has-children:focus-within > a::after {
	transform: translateY(1px) rotate(225deg);
}

.vms-menu--desktop .sub-menu .menu-item-has-children > a::after {
	margin-inline-start: auto;
	transform: rotate(-45deg);
}

/* ========================================
   Desktop actions
   ======================================== */

.vms-desktop-actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: flex-end;
	gap: 0.625rem;
	min-width: 0;
}

.vms-desktop-actions .elementor-widget-button {
	width: auto;
	margin: 0;
}

.vms-desktop-actions .elementor-widget-container {
	display: flex;
	align-items: center;
}

.vms-login-link .elementor-button,
.vms-mobile-login .elementor-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.625rem 1rem;
	border: 1px solid transparent;
	border-radius: 10px;
	background: transparent;
	color: #334155;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition:
		color 180ms ease,
		background-color 180ms ease,
		border-color 180ms ease;
}

.vms-login-link .elementor-button:hover,
.vms-mobile-login .elementor-button:hover {
	border-color: var(--vms-header-border);
	background: #f8fafc;
	color: var(--vms-header-primary);
}

.vms-header-cta .elementor-button,
.vms-mobile-cta .elementor-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.6875rem 1.125rem;
	overflow: hidden;
	border: 1px solid var(--vms-header-primary);
	border-radius: 11px;
	background: var(--vms-header-primary);
	box-shadow: 0 8px 18px rgba(37, 99, 235, 0.18);
	color: #ffffff;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition:
		background-color 180ms ease,
		border-color 180ms ease,
		box-shadow 180ms ease,
		transform 180ms ease;
}

.vms-header-cta .elementor-button:hover,
.vms-mobile-cta .elementor-button:hover {
	border-color: var(--vms-header-primary-dark);
	background: var(--vms-header-primary-dark);
	box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
	transform: translateY(-1px);
}

.vms-login-link .elementor-button:focus-visible,
.vms-header-cta .elementor-button:focus-visible,
.vms-mobile-login .elementor-button:focus-visible,
.vms-mobile-cta .elementor-button:focus-visible {
	outline: 3px solid var(--vms-header-focus);
	outline-offset: 3px;
}

/* ========================================
   Mobile toggle
   ======================================== */

.vms-mobile-toggle-wrap {
	display: none;
	flex: 0 0 auto;
	align-items: center;
	justify-content: flex-end;
}

.vms-mobile-toggle-wrap .elementor-widget-html,
.vms-mobile-toggle-wrap .elementor-widget-container {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
}

.vms-menu-toggle {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--vms-header-border);
	border-radius: 12px;
	background: #ffffff;
	color: var(--vms-header-ink);
	box-shadow: none;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition:
		background-color 180ms ease,
		border-color 180ms ease,
		box-shadow 180ms ease;
}

.vms-menu-toggle:hover {
	border-color: #bfdbfe;
	background: #eff6ff;
}

.vms-menu-toggle:focus-visible {
	outline: 3px solid var(--vms-header-focus);
	outline-offset: 3px;
}

.vms-menu-toggle__line {
	display: block;
	width: 19px;
	height: 2px;
	border-radius: 999px;
	background: currentColor;
	transform-origin: center;
	transition:
		opacity 180ms ease,
		transform 180ms ease;
}

.vms-menu-toggle[aria-expanded="true"] .vms-menu-toggle__line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.vms-menu-toggle[aria-expanded="true"] .vms-menu-toggle__line:nth-child(2) {
	opacity: 0;
	transform: scaleX(0);
}

.vms-menu-toggle[aria-expanded="true"] .vms-menu-toggle__line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ========================================
   Mobile panel and navigation
   ======================================== */

.vms-mobile-panel {
	display: none;
	width: min(100%, var(--vms-header-max));
	max-width: 100%;
	margin: 0 auto 12px;
}

.vms-mobile-panel .elementor-widget-shortcode,
.vms-mobile-panel .elementor-widget-container {
	width: 100%;
	min-width: 0;
}

.vms-menu--mobile,
.vms-menu--mobile .vms-menu__list {
	width: 100%;
}

.vms-menu--mobile ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vms-menu--mobile .menu-item {
	display: block;
	width: 100%;
	margin: 0;
}

.vms-menu--mobile .menu-item > a {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	width: 100%;
	min-height: 48px;
	padding: 0.75rem 0.875rem;
	border-radius: 10px;
	color: #334155;
	font-size: 0.9375rem;
	font-weight: 650;
	line-height: 1.5;
	text-decoration: none;
	overflow-wrap: anywhere;
	transition:
		color 180ms ease,
		background-color 180ms ease;
}

.vms-menu--mobile .menu-item > a:hover,
.vms-menu--mobile .menu-item > a:focus-visible,
.vms-menu--mobile .current-menu-item > a,
.vms-menu--mobile .current-menu-ancestor > a {
	background: #eff6ff;
	color: var(--vms-header-primary);
}

.vms-menu--mobile .menu-item > a:focus-visible {
	outline: 3px solid rgba(37, 99, 235, 0.18);
	outline-offset: -3px;
}

.vms-menu--mobile .sub-menu {
	position: static;
	display: block;
	width: 100%;
	margin: 0.125rem 0 0;
	padding-inline-start: 0.75rem;
	border-inline-start: 1px solid var(--vms-header-border);
	background: transparent;
	box-shadow: none;
	opacity: 1;
	visibility: visible;
	transform: none;
}

.vms-menu--mobile .sub-menu .menu-item > a {
	min-height: 44px;
	padding-block: 0.625rem;
	font-size: 0.875rem;
	font-weight: 550;
}

.vms-mobile-actions {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--vms-header-border);
}

.vms-mobile-actions .elementor-widget-button {
	width: auto;
	min-width: 0;
}

.vms-mobile-actions .elementor-widget-container,
.vms-mobile-actions .elementor-button-wrapper {
	width: 100%;
}

.vms-mobile-actions .elementor-button {
	width: 100%;
	min-height: 46px;
}

/* ========================================
   Responsive rules
   ======================================== */

@media (min-width: 1025px) and (max-width: 1199px) {
	.vms-header__inner {
		gap: 16px;
	}

	.vms-menu--desktop > .vms-menu__list {
		gap: 0.875rem;
	}

	.vms-menu--desktop .menu-item > a {
		font-size: 0.875rem;
	}

	.vms-desktop-actions {
		gap: 0.375rem;
	}

	.vms-login-link .elementor-button {
		padding-inline: 0.75rem;
	}

	.vms-header-cta .elementor-button {
		padding-inline: 0.875rem;
	}
}

@media (max-width: 1024px) {
	.vms-header {
		min-height: var(--vms-header-height-mobile);
	}

	.vms-header__inner {
		gap: 12px;
		min-height: var(--vms-header-height-mobile);
		padding: 10px 20px;
	}

	.vms-desktop-nav,
	.vms-desktop-actions {
		display: none !important;
	}

	.vms-mobile-toggle-wrap {
		display: flex !important;
		margin-inline-start: auto;
	}

	.vms-mobile-panel {
		display: block !important;
		max-height: 0;
		margin-bottom: 0;
		padding: 0 20px;
		overflow: hidden;
		border: 1px solid transparent;
		border-radius: 17px;
		background: rgba(255, 255, 255, 0.98);
		box-shadow: none;
		opacity: 0;
		visibility: hidden;
		transition:
			max-height 260ms ease,
			margin-bottom 260ms ease,
			padding 260ms ease,
			opacity 180ms ease,
			visibility 180ms ease,
			border-color 180ms ease,
			box-shadow 180ms ease;
	}

	.vms-mobile-panel.is-open {
		max-height: calc(100dvh - 88px);
		margin-bottom: 12px;
		padding-top: 10px;
		padding-bottom: 16px;
		overflow-x: hidden;
		overflow-y: auto;
		border-color: var(--vms-header-border);
		box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
		opacity: 1;
		visibility: visible;
	}

	.vms-brand__image {
		height: 40px;
		max-width: 165px;
	}
}

@media (max-width: 782px) {
	body.admin-bar .vms-header {
		top: 46px;
	}
}

@media (max-width: 480px) {
	.vms-header__inner,
	.vms-mobile-panel {
		padding-right: 16px;
		padding-left: 16px;
	}

	.vms-brand__image {
		height: 36px;
		max-width: 140px;
	}

	.vms-menu-toggle {
		width: 42px;
		height: 42px;
	}

	.vms-menu--mobile .menu-item > a {
		min-height: 46px;
		padding-inline: 0.75rem;
	}
}

@media (max-width: 400px) {
	.vms-mobile-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.vms-mobile-actions .elementor-widget-button,
	.vms-mobile-actions .elementor-button-wrapper,
	.vms-mobile-actions .elementor-button {
		width: 100%;
	}
}

@media (max-width: 360px) {
	.vms-header__inner {
		padding-inline: 12px;
	}

	.vms-mobile-panel {
		padding-inline: 10px;
	}

	.vms-brand__image {
		height: 34px;
		max-width: 120px;
	}

	.vms-menu-toggle {
		width: 40px;
		height: 40px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vms-header,
	.vms-header *,
	.vms-header *::before,
	.vms-header *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}

	.vms-brand:hover .vms-brand__image,
	.vms-header-cta .elementor-button:hover,
	.vms-mobile-cta .elementor-button:hover {
		transform: none;
	}
}
