/* =========================================================
   Speed Header Menu — front-end styles
   Scoped to #shm-header / #shm-mobile-menu so it cannot
   bleed into (or be broken by) the active theme.
   ========================================================= */

:root{
	--shm-header-height: 80px;
	--shm-bg: #0a0a0c;
	--shm-bg-elevated: #131316;
	--shm-text: #f5f5f7;
	--shm-text-dim: #b4b4bb;
	--shm-border: rgba(255,255,255,0.08);
	--shm-accent-a: #b46bff; /* purple */
	--shm-accent-b: #4dd9ff; /* cyan   */
}

/* ---------- Header bar ---------- */

.shm-header{
	position: relative;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 75px;
	background: var(--shm-bg);
	z-index: 9999;
}

.shm-header.shm-sticky{
	position: sticky;
}

button#shm-mobile-close {
    font-size: 36px;
    color: #fff;
    padding: 0px;
    border: none;
   font-weight:500;
}
.shm-header::after{
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: linear-gradient(270deg, #2D69FB 0%, #FD8010 100%);
}

.shm-container{
	max-width: 1240px;
	height: 75px;
	margin: 0 auto;
	padding: 0px 15px;
	display: flex;
	align-items: center;
	gap: 40px;
}

/* ---------- Logo ---------- */

.shm-logo{
	display: flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none;
}

.shm-logo img{
	display: block;
	height: auto;
	width: auto;
}

/* ---------- Desktop nav ---------- */

.shm-nav{
	flex: 1;
	height: 100%;
}

.shm-menu{
	list-style: none;
	display: flex;
	align-items: center;
	height: 100%;
	gap: 4px;
}

.shm-menu-item{
	height: 100%;
	display: flex;
	align-items: center;
}

.shm-menu-link{
	display: flex;
	align-items: center;
	gap: 6px;
	height: 100%;
	padding: 0 16px;
	color: #ffff;
	text-decoration: none;
	font-size: 18px;
	font-weight: 500;
	white-space: nowrap;
	transition: color 0.15s ease;
}

.shm-menu-link:hover,
.shm-menu-item:hover > .shm-menu-link,
.shm-menu-item.has-children:focus-within > .shm-menu-link{
	color: var(--shm-text);
}

.shm-caret{
	color: currentColor;
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

.shm-menu-item:hover .shm-caret,
.shm-menu-item.has-children:focus-within .shm-caret{
	transform: rotate(180deg);
}

/* ---------- Mega dropdown (hover) ---------- */

.shm-mega{
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	width: 100%;
	background: var(--shm-bg-elevated);
	border-top: 1px solid var(--shm-border);
	border-bottom: 1px solid var(--shm-border);
	box-shadow: 0 24px 40px rgba(0,0,0,0.45);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-6px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
	z-index: 10000;
}

.shm-menu-item.has-children:hover > .shm-mega,
.shm-menu-item.has-children:focus-within > .shm-mega{
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

.shm-mega-inner{
	max-width: 1340px;
	margin: 0 auto;
	padding: 20px 25px;
}

.shm-mega-list{
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 4px 24px;
}

.shm-mega-list a{
	display: block;
	padding: 12px 16px;
	border-radius: 8px;
	color:#ffff;
	text-decoration: none;
	font-size: 16px;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}

.shm-mega-list a:hover{
	background: rgba(255,255,255,0.06);
	color: var(--shm-text);
}

/* ---------- Burger button (mobile trigger) ---------- */

.shm-burger{
	display: none;
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	background: transparent;
	border: none;
	cursor: pointer;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.shm-burger span{
	display: block;
	width: 22px;
	height: 2px;
	background: var(--shm-text);
	transition: transform 0.25s ease, opacity 0.25s ease;
    margin-bottom:5px;
}

.shm-burger[aria-expanded="true"] span:nth-child(1){
	transform: translateY(8px) rotate(45deg);
}
.shm-burger[aria-expanded="true"] span:nth-child(2){
	opacity: 0;
}
.shm-burger[aria-expanded="true"] span:nth-child(3){
	transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Mobile full-screen menu ---------- */

.shm-mobile-menu{
	position: fixed;
	top: 0;
	right: 0;
	width: 100%;
	height: 100%;
	background: var(--shm-bg);
	z-index: 10001;
	transform: translateX(100%);
	transition: transform 0.3s ease;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

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

.shm-mobile-top{
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--shm-header-height);
	padding: 0 24px;
	border-bottom: 1px solid var(--shm-border);
	flex-shrink: 0;
}

.shm-mobile-close{
	background: transparent;
	border: none;
	color: var(--shm-text);
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
}

.shm-mobile-list{
	list-style: none;
	padding: 8px 24px 40px;
}

.shm-mobile-item{
	border-bottom: 1px solid var(--shm-border);
}

.shm-mobile-row{
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.shm-mobile-row a{
	display: block;
	flex: 1;
	padding: 18px 0;
	color: var(--shm-text);
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.2px;
	text-transform: uppercase;
}

.shm-mobile-toggle{
	background: transparent;
	border: none;
	color: #ffff;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex-shrink: 0;
}

.shm-mobile-toggle svg{
	transition: transform 0.25s ease;
}

.shm-mobile-item.is-open .shm-mobile-toggle svg{
	transform: rotate(180deg);
}

.shm-mobile-submenu{
	list-style: none;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.shm-mobile-item.is-open .shm-mobile-submenu{
	max-height: 1000px;
    padding-left:15px;
}

.shm-mobile-submenu a{
	display: block;
	padding: 12px 0 12px 16px;
	color: #ffff;
	text-decoration: none;
	font-size: 16px;
	border-left: 2px solid var(--shm-border);
}

.shm-mobile-submenu a:hover{
	color: var(--shm-text);
	border-left-color: var(--shm-accent-b);
}
.has-children .shm-mega-list {
    width: 100px;
    flex-wrap: wrap;
}
/* ---------- Overlay (behind mobile panel, click to close) ---------- */

.shm-overlay{
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.5);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s;
	z-index: 10000;
}

.shm-overlay.is-open{
	opacity: 1;
	visibility: visible;
}

.shm-burger {
    display: none !important;
} 

/* prevent background scroll while mobile menu is open */
html.shm-lock,
html.shm-lock body{
	overflow: hidden;
}

/* =========================================================
   Breakpoint: 1024px — switch to burger / mobile menu
   ========================================================= */

@media (max-width: 1024px){
	.shm-nav{
		display: none;
	}
	.shm-burger{
		display: flex;
		margin-left: auto;
        display:block !important;
	}
	.shm-container{
		gap: 16px;
		padding: 0 20px;
	}
}

@media (min-width: 1025px){
	.shm-mobile-menu,
	.shm-overlay{
		display: none;
	}
}


.shm-mega-columns {
	display: flex;
	align-items: flex-start;
	gap: 40px;
}

.shm-mega-list {
	margin: 0;
	padding: 0;
	list-style: none;
	min-width: 180px;
}
