/**
 * Elementor Off-Canvas Mobile Nav - Styles
 * Mobile-first, minimal, modern
 */

/* Wrapper */
.emnav-wrapper {
	--emnav-duration: 300ms;
	--emnav-ease: cubic-bezier(0.4, 0, 0.2, 1);
	display: inline-block;
}

.emnav-wrapper.emnav-toggle-align-center {
	display: block;
	text-align: center;
}

.emnav-wrapper.emnav-toggle-align-right {
	display: block;
	text-align: right;
}

/* Toggle button */
.emnav-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	background: none;
	border: none;
	cursor: pointer;
	color: #333;
	font: inherit;
	-webkit-tap-highlight-color: transparent;
	min-height: 44px;
	min-width: 44px;
}

.emnav-toggle:hover,
.emnav-toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.emnav-toggle i,
.emnav-toggle svg {
	flex-shrink: 0;
}

/* Overlay */
.emnav-overlay {
	position: fixed;
	inset: 0;
	z-index: 999998;
	background: rgba(0, 0, 0, 0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--emnav-duration) var(--emnav-ease), visibility var(--emnav-duration);
	pointer-events: none;
}

.emnav-open .emnav-overlay {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* Panel */
.emnav-panel {
	position: fixed;
	top: 0;
	bottom: 0;
	width: 300px;
	max-width: 85vw;
	background: #fff;
	z-index: 999999;
	box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
	transform: translateX(100%);
	transition: transform var(--emnav-duration) var(--emnav-ease);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.emnav-direction-left .emnav-panel {
	left: 0;
	right: auto;
	box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
	transform: translateX(-100%);
}

.emnav-direction-right .emnav-panel {
	right: 0;
	left: auto;
}

.emnav-open.emnav-direction-right .emnav-panel {
	transform: translateX(0);
}

.emnav-open.emnav-direction-left .emnav-panel {
	transform: translateX(0);
}

.emnav-panel-inner {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

/* Panel header */
.emnav-panel-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex-shrink: 0;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.emnav-heading {
	font-weight: 600;
	font-size: 1.125rem;
	flex: 1;
}

/* Close button */
.emnav-close {
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	color: #333;
	font-size: 28px;
	line-height: 1;
	padding: 0.5rem;
	min-width: 44px;
	min-height: 44px;
	-webkit-tap-highlight-color: transparent;
}

.emnav-close:hover,
.emnav-close:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Levels container */
.emnav-levels {
	position: relative;
	flex: 1;
	overflow: hidden;
}

/* Individual level */
.emnav-level {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	background: inherit;
	transform: translateX(100%);
	visibility: hidden;
	opacity: 0;
	transition: transform var(--emnav-duration) var(--emnav-ease), visibility var(--emnav-duration), opacity var(--emnav-duration);
}

.emnav-direction-left .emnav-level {
	transform: translateX(-100%);
}

.emnav-level.emnav-active {
	position: relative;
	transform: translateX(0);
	visibility: visible;
	opacity: 1;
}

/* Slide animations - enter from right */
.emnav-level.emnav-enter-right {
	transform: translateX(100%);
	visibility: visible;
	opacity: 1;
}

.emnav-direction-left .emnav-level.emnav-enter-left {
	transform: translateX(-100%);
	visibility: visible;
	opacity: 1;
}

.emnav-direction-left .emnav-level.emnav-enter-left.emnav-active,
.emnav-level.emnav-enter-right.emnav-active {
	transform: translateX(0);
}

/* Exit animations */
.emnav-level.emnav-exit-left {
	transform: translateX(-100%);
}

.emnav-direction-right .emnav-level.emnav-exit-left {
	position: absolute;
}

.emnav-level.emnav-exit-right {
	transform: translateX(100%);
}

.emnav-direction-left .emnav-level.emnav-exit-right {
	position: absolute;
}

/* Back button */
.emnav-back {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	width: 100%;
	background: rgba(0, 0, 0, 0.04);
	border: none;
	padding: 0.875rem 1.25rem;
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	min-height: 48px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.emnav-back:hover,
.emnav-back:focus-visible {
	background: rgba(0, 0, 0, 0.08);
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

.emnav-back-icon {
	font-size: 1.25em;
}

/* Menu list */
.emnav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.emnav-item {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.emnav-item:last-child {
	border-bottom: none;
}

/* Menu links and triggers */
.emnav-item a.emnav-link,
.emnav-item button.emnav-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 1rem 1.25rem;
	color: inherit;
	text-decoration: none;
	background: none;
	border: none;
	font: inherit;
	text-align: left;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	min-height: 48px;
}

.emnav-item a.emnav-link:hover,
.emnav-item button.emnav-link:hover {
	background: rgba(0, 0, 0, 0.04);
}

.emnav-item a.emnav-link:focus-visible,
.emnav-item button.emnav-link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

/* Parent with both link and trigger */
.emnav-item.emnav-has-children {
	display: flex;
	align-items: stretch;
	flex-wrap: nowrap;
}

.emnav-item.emnav-has-children > a.emnav-link-text {
	flex: 1;
	min-width: 0;
}

.emnav-item.emnav-has-children > .emnav-submenu-trigger {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 1rem;
	min-width: 48px;
	background: none;
	border: none;
	font: inherit;
	cursor: pointer;
	color: inherit;
	border-left: 1px solid rgba(0, 0, 0, 0.08);
}

.emnav-item.emnav-has-children > .emnav-submenu-trigger:hover {
	background: rgba(0, 0, 0, 0.04);
}

.emnav-chevron {
	opacity: 0.7;
	font-size: 1.1em;
}

/* Body scroll lock */
body.emnav-body-open {
	overflow: hidden;
	touch-action: none;
}

/* Editor placeholder */
.emnav-placeholder {
	padding: 1.5rem;
	background: #f5f5f5;
	border: 1px dashed #ccc;
	border-radius: 4px;
}

.emnav-placeholder p {
	margin: 0;
	color: #666;
}
