/* MG Mobile Nav — vertical, mobile-friendly menu component.
   Uses Elementor color globals when available, falls back to safe defaults. */

.mg-mn {
	--mg-mn-fg:       #ffffff;
	--mg-mn-fg-muted: rgba(255, 255, 255, 0.7);
	--mg-mn-accent:   var(--e-global-color-accent, #83C760);
	--mg-mn-rule:     rgba(255, 255, 255, 0.1);
	--mg-mn-sub-bg:   rgba(0, 0, 0, 0.2);
	--mg-mn-ease:     cubic-bezier(.22,.61,.36,1);

	width: 100%;
	max-width: 480px;
	margin: 0 auto;
	color: var(--mg-mn-fg);
	font-family: inherit;
	line-height: 1.3;
}

/* Light theme override */
.mg-mn--theme-light {
	--mg-mn-fg:       #1a1f2e;
	--mg-mn-fg-muted: rgba(26, 31, 46, 0.65);
	--mg-mn-rule:     rgba(0, 0, 0, 0.08);
	--mg-mn-sub-bg:   rgba(0, 0, 0, 0.03);
}

.mg-mn__list,
.mg-mn__sublist {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mg-mn__item {
	border-bottom: 0;
}

.mg-mn__row {
	display: flex;
	align-items: stretch;
	min-height: 56px;
}

.mg-mn__link {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	padding: 14px 18px;
	color: inherit;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: 0.01em;
	text-decoration: none;
	transition: color 180ms var(--mg-mn-ease), background 180ms var(--mg-mn-ease);
}
.mg-mn--align-center .mg-mn__link {
	justify-content: center;
	text-align: center;
}
.mg-mn__link:hover,
.mg-mn__link:focus-visible {
	color: var(--mg-mn-accent);
	outline: none;
}
.mg-mn__item--current > .mg-mn__row > .mg-mn__link {
	color: var(--mg-mn-accent);
}

/* Submenu toggle button */
.mg-mn__toggle {
	flex: 0 0 56px;
	background: transparent;
	color: inherit;
	border: 0;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: color 180ms var(--mg-mn-ease), background 180ms var(--mg-mn-ease);
}
.mg-mn__toggle:hover,
.mg-mn__toggle:focus-visible {
	color: var(--mg-mn-accent);
	background: rgba(255,255,255,0.04);
	outline: none;
}
.mg-mn--theme-light .mg-mn__toggle:hover {
	background: rgba(0,0,0,0.03);
}
.mg-mn__toggle svg {
	width: 18px;
	height: 18px;
	transition: transform 240ms var(--mg-mn-ease);
}
.mg-mn__toggle[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

/* Submenu collapse — JS sets explicit max-height inline */
.mg-mn__sublist {
	max-height: 0;
	overflow: hidden;
	background: var(--mg-mn-sub-bg);
	transition: max-height 320ms var(--mg-mn-ease);
}
.mg-mn--start-expanded .mg-mn__sublist {
	max-height: none;
}
.mg-mn__item--has-children.is-open > .mg-mn__sublist {
	/* fallback when JS hasn't computed yet */
	max-height: 2000px;
}

/* Parent links — make it visually obvious they expand on tap */
.mg-mn__link--parent {
	cursor: pointer;
}

/* ===== Hierarchy: sub-items slightly smaller and indented.
   !important so the widget's Typography control (which sets font-size on
   .mg-mn__link site-wide) doesn't clobber sub-item sizes. */
.mg-mn .mg-mn__sublist .mg-mn__link {
	padding-left: 36px;
	font-size: 0.9em !important;
}
.mg-mn .mg-mn__sublist .mg-mn__sublist .mg-mn__link {
	padding-left: 56px;
	font-size: 0.9em !important;
}
.mg-mn .mg-mn__sublist .mg-mn__sublist .mg-mn__sublist .mg-mn__link {
	padding-left: 76px;
	font-size: 0.9em !important;
}

/* Center-aligned variant: no indent — use size only */
.mg-mn--align-center .mg-mn__sublist .mg-mn__link,
.mg-mn--align-center .mg-mn__sublist .mg-mn__sublist .mg-mn__link {
	padding-left: 18px;
}

/* Larger tap targets on touch devices */
@media (hover: none) {
	.mg-mn__row { min-height: 60px; }
	.mg-mn__link { padding-top: 16px; padding-bottom: 16px; }
}
