/* Mark Hope Electrical: mega menu + full-screen mobile menu behaviour */

/* ---------- Desktop mega menu ---------- */
html body .elementor .mh-mega-panel {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translate(-50%, 14px);
	transition: opacity 0.28s ease, transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.28s;
}
html body .elementor .mh-mega-item:hover .mh-mega-panel,
html body .elementor .mh-mega-item:focus-within .mh-mega-panel {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translate(-50%, 0);
}
html body .elementor .mh-mega-item:hover > .mh-nav-link,
html body .elementor .mh-mega-item:focus-within > .mh-nav-link {
	color: #F4F7FA;
	background-color: rgba(244, 247, 250, 0.06);
}
html body .elementor .mh-caret {
	display: inline-block;
	margin-left: 0.3rem;
	font-size: 11px;
	transition: transform 0.3s ease;
}
html body .elementor .mh-mega-item:hover .mh-caret {
	transform: rotate(180deg);
}
html body .elementor .mh-nav-link.mh-active {
	color: #82C408;
}

/* columns ease in one after another when the panel opens */
html body .elementor .mh-mega-col,
html body .elementor .mh-mega-cta {
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
html body .elementor .mh-mega-item:hover .mh-mega-col,
html body .elementor .mh-mega-item:focus-within .mh-mega-col,
html body .elementor .mh-mega-item:hover .mh-mega-cta,
html body .elementor .mh-mega-item:focus-within .mh-mega-cta {
	opacity: 1;
	transform: none;
}
html body .elementor .mh-mega-col:nth-child(2) { transition-delay: 0.04s; }
html body .elementor .mh-mega-col:nth-child(3) { transition-delay: 0.08s; }
html body .elementor .mh-mega-col:nth-child(4) { transition-delay: 0.12s; }
html body .elementor .mh-mega-col:nth-child(5) { transition-delay: 0.16s; }
html body .elementor .mh-mega-cta { transition-delay: 0.2s; }

html body .elementor .mh-mega-link {
	transition: background-color 0.25s ease;
}
html body .elementor .mh-mega-link img {
	transition: transform 0.3s ease;
}
html body .elementor .mh-mega-link:hover img {
	transform: scale(1.12);
}
html body .elementor .mh-mega-link .mh-mega-name {
	transition: color 0.25s ease;
}
html body .elementor .mh-mega-link:hover .mh-mega-name {
	color: #82C408;
}

/* ---------- Burger ---------- */
html body .elementor .mh-burger {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
html body .elementor .mh-burger:hover {
	transform: scale(1.05);
	box-shadow: 0 10px 30px rgba(130, 196, 8, 0.35);
}
html body .elementor .mh-burger .mh-burger-bar:nth-child(2) {
	width: 13px;
	transform: translateX(3.5px);
}

/* ---------- Full-screen mobile menu ---------- */
html body .elementor .mh-menu {
	transform: translateX(100%);
	visibility: hidden;
	transition: transform 0.55s cubic-bezier(0.7, 0, 0.2, 1), visibility 0.55s;
}
html.mh-menu-open body .elementor .mh-menu {
	transform: none;
	visibility: visible;
}
html.mh-menu-open,
html.mh-menu-open body {
	overflow: hidden;
}
html body .elementor .mh-m-link,
html body .elementor .mh-m-pill,
html body .elementor .mh-m-eyebrow,
html body .elementor .mh-m-foot {
	opacity: 0;
	transform: translateX(28px);
	transition: opacity 0.45s ease, transform 0.45s ease, color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
html.mh-menu-open body .elementor .mh-m-link,
html.mh-menu-open body .elementor .mh-m-pill,
html.mh-menu-open body .elementor .mh-m-eyebrow,
html.mh-menu-open body .elementor .mh-m-foot {
	opacity: 1;
	transform: none;
}
html.mh-menu-open body .elementor .mh-m-link:nth-child(1) { transition-delay: 0.15s; }
html.mh-menu-open body .elementor .mh-m-link:nth-child(2) { transition-delay: 0.21s; }
html.mh-menu-open body .elementor .mh-m-link:nth-child(3) { transition-delay: 0.27s; }
html.mh-menu-open body .elementor .mh-m-link:nth-child(4) { transition-delay: 0.33s; }
html.mh-menu-open body .elementor .mh-m-link:nth-child(5) { transition-delay: 0.39s; }
html.mh-menu-open body .elementor .mh-m-link:nth-child(6) { transition-delay: 0.45s; }
html.mh-menu-open body .elementor .mh-m-eyebrow { transition-delay: 0.5s; }
html.mh-menu-open body .elementor .mh-m-pill:nth-child(1) { transition-delay: 0.55s; }
html.mh-menu-open body .elementor .mh-m-pill:nth-child(2) { transition-delay: 0.6s; }
html.mh-menu-open body .elementor .mh-m-pill:nth-child(3) { transition-delay: 0.65s; }
html.mh-menu-open body .elementor .mh-m-pill:nth-child(4) { transition-delay: 0.7s; }
html.mh-menu-open body .elementor .mh-m-pill:nth-child(5) { transition-delay: 0.75s; }
html.mh-menu-open body .elementor .mh-m-pill:nth-child(6) { transition-delay: 0.8s; }
html.mh-menu-open body .elementor .mh-m-foot { transition-delay: 0.85s; }

html body .elementor .mh-m-link:hover,
html body .elementor .mh-m-link.mh-active {
	color: #82C408;
}
html body .elementor .mh-m-pill:hover {
	background-color: rgba(130, 196, 8, 0.18);
	border-color: #82C408;
}
html body .elementor .mh-close {
	transition: transform 0.3s ease;
}
html body .elementor .mh-close:hover {
	transform: rotate(90deg);
}

/* the full-screen menu only exists below the desktop breakpoint */
@media (min-width: 1025px) {
	html body .elementor .mh-menu {
		display: none;
	}
}

/* respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
	html body .elementor .mh-menu,
	html body .elementor .mh-mega-panel,
	html body .elementor .mh-mega-col,
	html body .elementor .mh-mega-cta,
	html body .elementor .mh-m-link,
	html body .elementor .mh-m-pill,
	html body .elementor .mh-m-eyebrow,
	html body .elementor .mh-m-foot {
		transition-duration: 0.01s;
		transition-delay: 0s;
	}
}
