/* Hide Elementor off-canvas – replaced by custom mobile menu */
.elementor-widget-off-canvas,
.elementor-off-canvas {
	display: none !important;
}

.km-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 999999;
	pointer-events: none;
	visibility: hidden;
}

.km-mobile-menu.is-open {
	pointer-events: auto;
	visibility: visible;
}

.km-mobile-menu__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.km-mobile-menu.is-open .km-mobile-menu__overlay {
	opacity: 1;
}

.km-mobile-menu__panel {
	position: absolute;
	top: 0;
	right: 0;
	width: min(88vw, 360px);
	height: 100%;
	background: #fff;
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.km-mobile-menu.is-open .km-mobile-menu__panel {
	transform: translateX(0);
}

.km-mobile-menu__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid #eee;
	flex-shrink: 0;
}

.km-mobile-menu__label {
	font-family: "Mona Sans", sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #666;
}

/* Override Hello Elementor reset.css button styles (#c36 pink) */
.km-mobile-menu__close,
.km-mobile-menu__close[type="button"],
.km-mobile-menu button.km-mobile-menu__close {
	appearance: none;
	border: 0 !important;
	background: #f5f5f5 !important;
	color: #111 !important;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease;
	box-shadow: none;
	text-decoration: none;
}

.km-mobile-menu__close:hover,
.km-mobile-menu__close:focus,
.km-mobile-menu__close:active,
.km-mobile-menu__close:focus-visible {
	background: #ebebeb !important;
	color: #111 !important;
	border: 0 !important;
	outline: none;
	box-shadow: none;
	text-decoration: none;
}

.km-mobile-menu__nav {
	flex: 1;
	overflow-y: auto;
	padding: 0.5rem 0;
	-webkit-overflow-scrolling: touch;
}

.km-mobile-menu__nav .menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.km-mobile-menu__nav .menu-item {
	margin: 0;
	border-bottom: 1px solid #f0f0f0;
}

.km-mobile-menu__nav .menu-item a {
	display: block;
	padding: 1rem 1.5rem;
	font-family: "Mona Sans", sans-serif;
	font-size: 1.125rem;
	font-weight: 600;
	color: #111;
	text-decoration: none;
	transition: color 0.2s ease, background 0.2s ease;
}

.km-mobile-menu__nav .menu-item a:hover,
.km-mobile-menu__nav .menu-item.current-menu-item a {
	color: #036d7d;
	background: #f8fbfb;
}

.km-mobile-menu__footer {
	padding: 1.25rem 1.5rem 1.75rem;
	border-top: 1px solid #eee;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	flex-shrink: 0;
	background: #fafafa;
}

.km-mobile-menu__phone {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: "Mona Sans", sans-serif;
	font-size: 1rem;
	font-weight: 600;
	color: #111;
	text-decoration: none;
}

.km-mobile-menu__phone::before {
	content: "";
	display: inline-block;
	width: 1rem;
	height: 1rem;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23DAA520' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.km-mobile-menu__cta {
	display: block;
	text-align: center;
	padding: 1rem 1.25rem;
	background: #f0b429;
	color: #111 !important;
	font-family: "Mona Sans", sans-serif;
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 12px;
	text-transform: capitalize;
	transition: background 0.2s ease;
}

.km-mobile-menu__cta:hover,
.km-mobile-menu__cta:focus {
	background: #e5a820;
	color: #111 !important;
}

body.km-menu-open {
	overflow: hidden;
}

@media (min-width: 1025px) {
	.km-mobile-menu {
		display: none !important;
	}
}
