/**
 * Aiweb Nav Menu — desktop horizontal + mobile hamburger drawer.
 * Scoped under .aiweb-nav to limit theme/Elementor bleed.
 */

.aiweb-nav,
.aiweb-nav *,
.aiweb-nav-drawer,
.aiweb-nav-drawer * {
	box-sizing: border-box;
}

.aiweb-nav {
	--aiweb-nav-text: #111111;
	--aiweb-nav-panel-bg: #000000;
	--aiweb-nav-burger: currentColor;
	--aiweb-nav-backdrop: rgba(0, 0, 0, 0.55);
	--aiweb-nav-panel-width: 320px;
	--aiweb-nav-m-color: var(--aiweb-nav-text);
	--aiweb-nav-m-bg: transparent;
	--aiweb-nav-m-color-hover: var(--aiweb-nav-text);
	--aiweb-nav-m-bg-hover: rgba(0, 0, 0, 0.04);
	--aiweb-nav-m-divider: rgba(0, 0, 0, 0.06);
	--aiweb-nav-close-color: inherit;
	--aiweb-nav-close-bg: rgba(0, 0, 0, 0.06);
	--aiweb-nav-cta-color: #ffffff;
	--aiweb-nav-cta-bg: #111111;
	--aiweb-nav-cta-color-hover: #ffffff;
	--aiweb-nav-cta-bg-hover: #333333;
	position: relative;
	width: 100%;
	max-width: 100%;
	font-family: inherit;
	line-height: 1.4;
	z-index: 20;
}

/* ------------------------------------------------------------------ */
/* Bar                                                                  */
/* ------------------------------------------------------------------ */

.aiweb-nav__bar {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: inherit;
	width: 100%;
	gap: 12px;
	min-height: 44px;
}

/* ------------------------------------------------------------------ */
/* Hamburger                                                            */
/* ------------------------------------------------------------------ */

.aiweb-nav__toggle {
	display: none;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0;
	margin-left: auto;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--aiweb-nav-burger, var(--aiweb-nav-text, #111));
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	appearance: none;
	z-index: 2;
}

.aiweb-nav__toggle:hover,
.aiweb-nav__toggle:focus-visible {
	opacity: 0.75;
	outline: none;
}

.aiweb-nav__toggle-box {
	position: relative;
	display: block;
	width: 22px;
	height: 16px;
}

.aiweb-nav__toggle-line {
	position: absolute;
	left: 0;
	display: block;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background-color: currentColor;
	transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.aiweb-nav__toggle-line:nth-child(1) {
	top: 0;
}

.aiweb-nav__toggle-line:nth-child(2) {
	top: 7px;
}

.aiweb-nav__toggle-line:nth-child(3) {
	top: 14px;
}

.aiweb-nav.is-open .aiweb-nav__toggle-line:nth-child(1) {
	top: 7px;
	transform: rotate(45deg);
}

.aiweb-nav.is-open .aiweb-nav__toggle-line:nth-child(2) {
	opacity: 0;
}

.aiweb-nav.is-open .aiweb-nav__toggle-line:nth-child(3) {
	top: 7px;
	transform: rotate(-45deg);
}

/* ------------------------------------------------------------------ */
/* Desktop menu                                                         */
/* ------------------------------------------------------------------ */

.aiweb-nav__desktop {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center;
	justify-content: inherit;
	gap: 8px;
	width: auto;
	max-width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.aiweb-nav__desktop>li {
	position: relative;
	display: block;
	flex: 0 0 auto;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.aiweb-nav__desktop>li>a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 14px;
	color: var(--aiweb-nav-text, #111);
	text-decoration: none !important;
	white-space: nowrap;
	font-weight: 500;
	border-radius: 6px;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.aiweb-nav__desktop>li>a:hover,
.aiweb-nav__desktop>li>a:focus-visible {
	opacity: 0.85;
}

.aiweb-nav__desktop .menu-item-has-children>a::after {
	content: "";
	display: inline-block;
	width: 0;
	height: 0;
	margin-left: 4px;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	opacity: 0.65;
	transition: transform 0.2s ease;
}

.aiweb-nav__desktop .menu-item-has-children:hover>a::after,
.aiweb-nav__desktop .menu-item-has-children:focus-within>a::after {
	transform: rotate(180deg);
}

/* Desktop dropdown */
.aiweb-nav__desktop .sub-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	z-index: 100;
	display: block;
	visibility: hidden;
	opacity: 0;
	min-width: 200px;
	margin: 0 !important;
	padding: 8px 0 !important;
	list-style: none !important;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
	transform: translateY(6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
	pointer-events: none;
}

.aiweb-nav__desktop>li:hover>.sub-menu,
.aiweb-nav__desktop>li:focus-within>.sub-menu {
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.aiweb-nav__desktop .sub-menu li {
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.aiweb-nav__desktop .sub-menu a {
	display: block;
	padding: 10px 18px;
	color: #333;
	text-decoration: none !important;
	white-space: nowrap;
	font-weight: 400;
	border-radius: 0;
}

.aiweb-nav__desktop .sub-menu a:hover {
	background: #f5f5f5;
	color: #000;
}

/* Last-item CTA (desktop) */
.aiweb-nav--cta .aiweb-nav__desktop>li:last-child>a {
	padding: 10px 18px;
	font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Mobile drawer (ported to body by JS)                                 */
/* ------------------------------------------------------------------ */

.aiweb-nav-drawer {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	pointer-events: none;
}

.aiweb-nav-drawer.is-visible {
	display: block;
	pointer-events: auto;
}

.aiweb-nav-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: var(--aiweb-nav-backdrop, rgba(0, 0, 0, 0.55));
	opacity: 0;
	transition: opacity 0.28s ease;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.aiweb-nav-drawer.is-open .aiweb-nav-drawer__backdrop {
	opacity: 1;
}

.aiweb-nav-drawer__panel {
	position: absolute;
	display: flex;
	flex-direction: column;
	background: var(--aiweb-nav-panel-bg, #ffffff);
	color: var(--aiweb-nav-text, #111111);
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
	will-change: transform;
}

/* Slide from right (default) */
.aiweb-nav-drawer--right .aiweb-nav-drawer__panel {
	top: 0;
	right: 0;
	bottom: 0;
	left: auto;
	width: min(var(--aiweb-nav-panel-width, 320px), 92vw);
	transform: translateX(105%);
}

.aiweb-nav-drawer--right.is-open .aiweb-nav-drawer__panel {
	transform: translateX(0);
}

.aiweb-nav-drawer--left .aiweb-nav-drawer__panel {
	top: 0;
	left: 0;
	bottom: 0;
	right: auto;
	width: min(var(--aiweb-nav-panel-width, 320px), 92vw);
	transform: translateX(-105%);
}

.aiweb-nav-drawer--left.is-open .aiweb-nav-drawer__panel {
	transform: translateX(0);
}

.aiweb-nav-drawer--top .aiweb-nav-drawer__panel {
	top: 0;
	left: 0;
	right: 0;
	bottom: auto;
	width: 100%;
	max-height: min(85vh, 640px);
	transform: translateY(-105%);
}

.aiweb-nav-drawer--top.is-open .aiweb-nav-drawer__panel {
	transform: translateY(0);
}

.aiweb-nav-drawer--bottom .aiweb-nav-drawer__panel {
	top: auto;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	max-height: min(85vh, 640px);
	transform: translateY(105%);
}

.aiweb-nav-drawer--bottom.is-open .aiweb-nav-drawer__panel {
	transform: translateY(0);
}

.aiweb-nav-drawer__head {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: flex-end;
	min-height: 64px;
	padding: 12px 16px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.aiweb-nav-drawer__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--aiweb-nav-close-bg, rgba(0, 0, 0, 0.06)) !important;
	box-shadow: none !important;
	color: var(--aiweb-nav-close-color, inherit);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	appearance: none;
}

.aiweb-nav-drawer__close:hover,
.aiweb-nav-drawer__close:focus-visible {
	background: rgba(0, 0, 0, 0.1) !important;
	outline: none;
}

.aiweb-nav-drawer__close-icon {
	position: relative;
	display: block;
	width: 18px;
	height: 18px;
}

.aiweb-nav-drawer__close-icon::before,
.aiweb-nav-drawer__close-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
}

.aiweb-nav-drawer__close-icon::before {
	transform: translateY(-50%) rotate(45deg);
}

.aiweb-nav-drawer__close-icon::after {
	transform: translateY(-50%) rotate(-45deg);
}

.aiweb-nav-drawer__body {
	flex: 1 1 auto;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 8px 0 32px;
	overscroll-behavior: contain;
}

/* Mobile list */
.aiweb-nav__mobile {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: stretch;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.aiweb-nav__mobile li {
	display: block;
	width: 100%;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.aiweb-nav__mobile>li>a,
.aiweb-nav__mobile .sub-menu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: var(--aiweb-nav-m-pad-t, 14px) var(--aiweb-nav-m-pad-r, 20px) var(--aiweb-nav-m-pad-b, 14px) var(--aiweb-nav-m-pad-l, 20px);
	color: var(--aiweb-nav-m-color, var(--aiweb-nav-text, inherit)) !important;
	text-decoration: none !important;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.35;
	border-bottom: 1px solid var(--aiweb-nav-m-divider, rgba(0, 0, 0, 0.06));
	background: var(--aiweb-nav-m-bg, transparent);
	transition: background-color 0.15s ease, color 0.15s ease;
}

.aiweb-nav__mobile>li>a:hover,
.aiweb-nav__mobile>li>a:focus-visible {
	color: var(--aiweb-nav-m-color-hover, var(--aiweb-nav-m-color, inherit)) !important;
	background: var(--aiweb-nav-m-bg-hover, rgba(0, 0, 0, 0.04));
	outline: none;
}

.aiweb-nav__mobile .sub-menu {
	display: none;
	margin: 0 !important;
	padding: 0 0 0 12px !important;
	list-style: none !important;
	border-left: 2px solid rgba(0, 0, 0, 0.08);
	margin-left: 20px !important;
}

.aiweb-nav__mobile .menu-item-has-children.is-expanded>.sub-menu {
	display: block;
}

.aiweb-nav__mobile .sub-menu a {
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 400;
	border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.aiweb-nav__mobile .menu-item-has-children>a .aiweb-nav__chevron {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.05);
	transition: transform 0.2s ease;
}

.aiweb-nav__mobile .menu-item-has-children>a .aiweb-nav__chevron::before {
	content: "";
	display: block;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid currentColor;
	opacity: 0.7;
}

.aiweb-nav__mobile .menu-item-has-children.is-expanded>a .aiweb-nav__chevron {
	transform: rotate(180deg);
}

.aiweb-nav-drawer--cta .aiweb-nav__mobile>li:last-child>a,
.aiweb-nav--cta .aiweb-nav__mobile>li:last-child>a {
	margin: 16px 20px 0;
	width: calc(100% - 40px);
	justify-content: center;
	border: 0 !important;
	border-radius: 8px;
	background: var(--aiweb-nav-cta-bg, #111) !important;
	color: var(--aiweb-nav-cta-color, #fff) !important;
	font-weight: 600;
}

.aiweb-nav-drawer--cta .aiweb-nav__mobile>li:last-child>a:hover,
.aiweb-nav--cta .aiweb-nav__mobile>li:last-child>a:hover {
	background: var(--aiweb-nav-cta-bg-hover, #333) !important;
	color: var(--aiweb-nav-cta-color-hover, #fff) !important;
}

/* Body scroll lock while drawer open */
html.aiweb-nav-lock,
html.aiweb-nav-lock body {
	overflow: hidden !important;
	touch-action: none;
}

/* ------------------------------------------------------------------ */
/* Default breakpoint (overridden by inline style from widget)          */
/* Below breakpoint: hide desktop, show hamburger.                      */
/* ------------------------------------------------------------------ */

@media (max-width: 767px) {
	.aiweb-nav:not([data-bp]) .aiweb-nav__desktop {
		display: none !important;
	}

	.aiweb-nav:not([data-bp]) .aiweb-nav__toggle {
		display: inline-flex !important;
	}
}

@media (min-width: 768px) {
	.aiweb-nav:not([data-bp]) .aiweb-nav__toggle {
		display: none !important;
	}

	.aiweb-nav:not([data-bp]) .aiweb-nav__desktop {
		display: flex !important;
	}
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {

	.aiweb-nav__toggle-line,
	.aiweb-nav-drawer__backdrop,
	.aiweb-nav-drawer__panel,
	.aiweb-nav__desktop .sub-menu {
		transition: none !important;
	}
}