/* ==========================================================
   Sparkli Menu — logo trim, mobile header + slide-out menu
   Navy #0f1f2d · Gold #e8c15f · White
   Levela Solutions
   ========================================================== */

:root {
	--spm-navy: #0f1f2d;
	--spm-navy-2: #16304a;
	--spm-gold: #e8c15f;
	--spm-gold-dk: #d4ae4a;
	--spm-ink: #111111;
	--spm-white: #ffffff;
	--spm-muted: rgba(255, 255, 255, .62);
	--spm-line: rgba(255, 255, 255, .1);
	--spm-ease: cubic-bezier(.22, .8, .24, 1);
	--spm-spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.6 6.2 5.8 11.4 12 12-6.2.6-11.4 5.8-12 12-.6-6.2-5.8-11.4-12-12C6.2 11.4 11.4 6.2 12 0z'/%3E%3C/svg%3E");
}

/* buttons + labels use the same font as Flatsome's nav (set by JS) */
.spm-actions, .spm-foot, .spm-kicker, .spm-menu .nav-sidebar > li > a { font-family: var(--spm-font, inherit) !important; }

.spm-spark svg, .spm-mspark svg, .spm-quote-spark svg, .spm-btn-spark svg, .spm-twinkles svg { display: block; width: 100%; height: 100%; }

/* ---------- Logo trim ----------
   The supplied logo is a 200×200 PNG with the artwork in the middle
   (x 13–185, y 43–130). These negative margins cut the empty space so
   the logo can be shown much bigger in the same header height. */
.spm-crop #logo img,
.spm-crop .spm-logo img {
	--spm-lh: 96px;
	width: var(--spm-lh) !important;
	height: var(--spm-lh) !important;
	max-width: none !important;
	max-height: none !important;
	margin:
		calc(var(--spm-lh) * -.215)
		calc(var(--spm-lh) * -.075)
		calc(var(--spm-lh) * -.35)
		calc(var(--spm-lh) * -.065) !important;
	object-fit: contain;
}
.spm-crop #logo img.header-logo-dark { display: none !important; }
.spm-crop #logo img.header_logo { display: block !important; }

/* ==========================================================
   Mobile header (< 850px)
   ========================================================== */
@media (max-width: 849px) {
	.spm-mob #masthead #logo {
		width: auto !important;
		display: flex;
		align-items: center;
		align-self: center;
	}
	.spm-mob #masthead #logo > a {
		display: inline-flex;
		align-items: center;
		overflow: hidden;
		background: var(--spm-white);
		border-radius: 12px;
		padding: 6px 10px;
		box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .7);
		line-height: 0;
	}
	.spm-mob #masthead #logo img { max-height: 40px; width: auto; }
	.spm-mob.spm-crop #masthead #logo img { --spm-lh: 72px; max-height: none; }
	.spm-mob.spm-crop #masthead #logo img.header-logo-dark { display: none !important; }

	.spm-mob #header:not(.transparent) #masthead,
	.spm-mob .header-wrapper.stuck #masthead {
		background: rgba(15, 31, 45, .96) !important;
		-webkit-backdrop-filter: blur(10px);
		backdrop-filter: blur(10px);
		box-shadow: 0 1px 0 rgba(232, 193, 95, .3);
	}
}

/* ---------- Burger button ---------- */
.spm-trigger {
	position: relative;
	width: 44px !important;
	height: 44px !important;
	min-height: 44px !important;
	padding: 0 !important;
	border-radius: 12px !important;
	background: var(--spm-gold) !important;
	border-color: var(--spm-gold) !important;
	box-shadow: 0 8px 18px -8px rgba(0, 0, 0, .6);
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	transition: transform .25s var(--spm-ease), background .25s;
}
.spm-trigger:active { transform: scale(.94); }
.spm-trigger > i.icon-menu { display: none !important; }

.spm-burger {
	position: relative;
	width: 20px;
	height: 14px;
	display: block;
}
.spm-burger span {
	position: absolute;
	left: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--spm-navy);
	transition: transform .35s var(--spm-ease), width .35s var(--spm-ease), opacity .2s, top .35s var(--spm-ease);
}
.spm-burger span:nth-child(1) { top: 0;    width: 100%; }
.spm-burger span:nth-child(2) { top: 6px;  width: 70%; }
.spm-burger span:nth-child(3) { top: 12px; width: 100%; }
.spm-trigger:hover .spm-burger span:nth-child(2) { width: 100%; }

.spm-open .spm-trigger { background: var(--spm-white) !important; border-color: var(--spm-white) !important; }
.spm-open .spm-burger span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.spm-open .spm-burger span:nth-child(2) { opacity: 0; }
.spm-open .spm-burger span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* ---------- Overlay ---------- */
.spm-mob .mfp-bg.main-menu-overlay,
.spm-mob .mfp-bg.off-canvas {
	background: rgba(8, 18, 27, .6) !important;
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	opacity: 0;
	transition: opacity .35s ease !important;
}
.spm-mob .mfp-bg.main-menu-overlay.mfp-ready,
.spm-mob .mfp-bg.off-canvas.mfp-ready { opacity: 1 !important; }

/* ---------- Panel ---------- */
.off-canvas .mfp-content:has(.spm-menu) {
	width: min(88vw, 400px) !important;
	max-width: none !important;
	background: var(--spm-navy) !important;
	overflow-y: auto !important;
	scrollbar-width: none;
}
.off-canvas .mfp-content:has(.spm-menu)::-webkit-scrollbar { display: none; }
.off-canvas .mobile-sidebar.spm-menu,
.mfp-content .spm-menu {
	position: relative;
	width: min(88vw, 400px) !important;
	max-width: none !important;
	color: var(--spm-white);
	background:
		radial-gradient(110% 55% at 100% 0%, rgba(232, 193, 95, .14), transparent 60%),
		radial-gradient(90% 50% at 0% 100%, rgba(22, 48, 74, .95), transparent 70%),
		var(--spm-navy) !important;
	box-shadow: 20px 0 60px -20px rgba(0, 0, 0, .6);
	padding: 0 !important;
	min-height: 100%;
	overflow-x: hidden;
	box-sizing: border-box;
}
/* thin gold edge */
.spm-menu::after {
	content: "";
	position: absolute;
	top: 0; right: 0; bottom: 0;
	width: 3px;
	background: linear-gradient(var(--spm-gold), var(--spm-gold-dk) 60%, transparent);
}

/* twinkling sparkles, top right */
.spm-twinkles { position: absolute; inset: 0 0 auto auto; width: 160px; height: 150px; pointer-events: none; z-index: 0; }
.spm-twinkles i { position: absolute; color: var(--spm-gold); opacity: 0; transform: scale(.4); }
.spm-twinkles i:nth-child(1) { top: 34px;  right: 34px; width: 22px; height: 22px; }
.spm-twinkles i:nth-child(2) { top: 78px;  right: 82px; width: 11px; height: 11px; }
.spm-twinkles i:nth-child(3) { top: 20px;  right: 98px; width: 8px;  height: 8px; }
.spm-twinkles i:nth-child(4) { top: 104px; right: 28px; width: 9px;  height: 9px; }
.spm-open .spm-twinkles i { animation: spm-twinkle 3.6s ease-in-out infinite; }
.spm-open .spm-twinkles i:nth-child(2) { animation-delay: .9s; }
.spm-open .spm-twinkles i:nth-child(3) { animation-delay: 1.7s; }
.spm-open .spm-twinkles i:nth-child(4) { animation-delay: 2.5s; }
@keyframes spm-twinkle {
	0%, 100% { opacity: 0;  transform: scale(.4) rotate(0deg); }
	35%      { opacity: .9; transform: scale(1) rotate(45deg); }
	60%      { opacity: .5; transform: scale(.8) rotate(70deg); }
}

.spm-menu .sidebar-menu {
	position: relative;
	z-index: 1;
	min-height: 100%;
	display: flex;
	flex-direction: column;
	padding: 26px 26px 28px !important;
	box-sizing: border-box;
}

/* ---------- Head ---------- */
.spm-head {
	padding-bottom: 22px;
	margin-bottom: 8px;
	border-bottom: 1px solid var(--spm-line);
}
.spm-logo {
	display: flex;
	width: max-content;
	overflow: hidden;
	align-items: center;
	background: var(--spm-white);
	border-radius: 14px;
	padding: 8px 14px;
	line-height: 0;
	box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .7);
}
.spm-logo img { height: 46px; width: auto; display: block; }
.spm-crop .spm-logo img { --spm-lh: 104px; }
.spm-kicker {
	margin: 14px 0 0 !important;
	font-size: 11px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--spm-gold);
	font-weight: 700;
}

/* ---------- Links ---------- */
.spm-menu .nav-sidebar { margin: 0 !important; padding: 0 !important; }
.spm-menu .nav-sidebar > li { border: 0 !important; }
.spm-menu .nav-sidebar > li.menu-item { border-bottom: 1px solid var(--spm-line) !important; }
.spm-menu .nav-sidebar > li.menu-item > a {
	position: relative;
	display: flex !important;
	align-items: center;
	gap: 12px;
	padding: 17px 0 !important;
	color: var(--spm-white) !important;
	font-size: 22px !important;
	font-weight: 700 !important;
	letter-spacing: -.01em;
	text-transform: none !important;
	line-height: 1.15;
	overflow: hidden;
	transition: color .25s, padding-left .35s var(--spm-ease);
}
.spm-mspark {
	flex: 0 0 auto;
	width: 0;
	height: 14px;
	color: var(--spm-gold);
	opacity: 0;
	transform: scale(0) rotate(-90deg);
	transition: width .35s var(--spm-ease), opacity .25s, transform .45s var(--spm-ease);
}
.spm-menu .nav-sidebar > li.menu-item > a:hover .spm-mspark,
.spm-menu .nav-sidebar > li.current-menu-item > a .spm-mspark {
	width: 14px;
	opacity: 1;
	transform: none;
}
.spm-menu .nav-sidebar > li.current-menu-item > a { color: var(--spm-gold) !important; }
/* polish streak on tap */
.spm-menu .nav-sidebar > li.menu-item > a::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .14) 50%, transparent 65%) no-repeat;
	background-size: 250% 100%;
	background-position: 130% 0;
}
.spm-menu .nav-sidebar > li.menu-item > a:active::after { animation: spm-shine .7s ease; }

/* sub-menus */
.spm-menu .nav-sidebar .children,
.spm-menu .nav-sidebar .sub-menu { padding: 0 0 12px 26px !important; }
.spm-menu .nav-sidebar .sub-menu a {
	color: var(--spm-muted) !important;
	font-size: 15px !important;
	text-transform: none !important;
	padding: 6px 0 !important;
}
.spm-menu .nav-sidebar .toggle { color: var(--spm-gold) !important; opacity: 1 !important; }

/* Flatsome's own contact block is replaced by the footer below */
.spm-menu .header-contact-wrapper { display: none !important; }

/* stagger in */
.spm-menu .nav-sidebar > li.menu-item,
.spm-head,
.spm-foot,
.spm-social {
	opacity: 0;
	transform: translateX(-18px);
	transition: opacity .45s ease, transform .55s var(--spm-ease);
}
.spm-open .spm-head { opacity: 1; transform: none; transition-delay: .08s; }
.spm-open .spm-menu .nav-sidebar > li.menu-item {
	opacity: 1;
	transform: none;
	transition-delay: calc(.12s + var(--spm-i, 0) * .06s);
}
.spm-open .spm-social { opacity: 1; transform: none; transition-delay: .4s; }
.spm-open .spm-foot   { opacity: 1; transform: none; transition-delay: .45s; }

/* ---------- Social ---------- */
.spm-social { padding: 18px 0 0 !important; border: 0 !important; }
.spm-social .social-icons a {
	width: 38px;
	height: 38px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	margin: 0 8px 0 0 !important;
	border-radius: 50% !important;
	border: 1px solid rgba(255, 255, 255, .18) !important;
	background: transparent !important;
	color: var(--spm-white) !important;
	transition: background .25s, border-color .25s, color .25s;
}
.spm-social .social-icons a:hover {
	background: var(--spm-gold) !important;
	border-color: var(--spm-gold) !important;
	color: var(--spm-ink) !important;
}

/* ---------- Footer / contact ---------- */
.spm-foot {
	margin-top: auto;
	padding-top: 26px;
	display: grid;
	gap: 10px;
}
.spm-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 54px;
	padding: 12px 18px;
	border-radius: 12px;
	font-weight: 700;
	font-size: 16px;
	text-decoration: none !important;
	overflow: hidden;
	transition: transform .2s, background .25s, color .25s, border-color .25s;
}
.spm-btn:active { transform: scale(.98); }
.spm-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.spm-btn-quote {
	background: var(--spm-gold);
	color: var(--spm-ink) !important;
	box-shadow: 0 14px 28px -14px rgba(232, 193, 95, .75);
}
.spm-btn-quote::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 50%, transparent 65%) no-repeat;
	background-size: 250% 100%;
	background-position: 130% 0;
}
.spm-open .spm-btn-quote::after { animation: spm-shine 1.1s .9s ease both; }
.spm-btn-quote:hover { background: var(--spm-gold-dk); }
.spm-btn-spark { width: 14px; height: 14px; display: inline-block; }
.spm-btn-call {
	border: 1.5px solid rgba(255, 255, 255, .28);
	color: var(--spm-white) !important;
	background: rgba(255, 255, 255, .03);
	letter-spacing: .02em;
}
.spm-btn-call svg { color: var(--spm-gold); }
.spm-btn-call:hover { border-color: var(--spm-gold); }
.spm-mail {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: var(--spm-muted) !important;
	font-size: 13.5px;
	padding-top: 6px;
	word-break: break-all;
}
.spm-mail svg { width: 15px; height: 15px; flex: 0 0 auto; color: var(--spm-gold); }
.spm-mail:hover { color: var(--spm-white) !important; }
.spm-meta {
	margin: 2px 0 0 !important;
	text-align: center;
	font-size: 11.5px;
	color: var(--spm-muted);
	letter-spacing: .04em;
}
.spm-dot {
	display: inline-block;
	width: 7px; height: 7px;
	margin-right: 7px;
	border-radius: 50%;
	background: #4ade80;
	box-shadow: 0 0 0 0 rgba(74, 222, 128, .6);
	animation: spm-pulse 2s infinite;
	vertical-align: middle;
}
@keyframes spm-pulse {
	70%  { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
	100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
@keyframes spm-shine {
	from { background-position: 130% 0; }
	to   { background-position: -30% 0; }
}

/* ---------- Close button ---------- */
.spm-mob .off-canvas .mfp-close {
	width: 40px !important;
	height: 40px !important;
	line-height: 40px !important;
	padding: 0 !important;
	text-align: center !important;
	top: 18px !important;
	border-radius: 50% !important;
	background: var(--spm-gold) !important;
	color: var(--spm-navy) !important;
	opacity: 1 !important;
	font-size: 26px !important;
	box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6);
	transition: transform .3s var(--spm-ease) !important;
}
.spm-mob .off-canvas-left .mfp-close {
	right: auto !important;
	left: calc(min(88vw, 400px) + 10px) !important;
}
.spm-mob .off-canvas .mfp-close:hover { transform: rotate(90deg); }
.spm-mob.admin-bar .off-canvas .mfp-close { top: 60px !important; }

/* stop page scroll behind the menu */
body.spm-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.spm-menu *, .spm-menu *::after, .spm-burger span, .spm-trigger { transition: none !important; animation: none !important; }
	.spm-menu .nav-sidebar > li.menu-item, .spm-head, .spm-foot, .spm-social { opacity: 1; transform: none; }
	.spm-twinkles { display: none; }
}
