/* ========================================
   QLS Mega Menu
   ======================================== */

/* Reset */
.qls-mm *, .qls-mm *::before, .qls-mm *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* Header container */
.qls-mm {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	font-family: Inter, system-ui, -apple-system, sans-serif;
}

/* Top bar — solid */
.qls-mm__bar {
	background: #001b33;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
	            border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
	            box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Transparent on pages with dark hero (front page) */
.qls-mm--transparent .qls-mm__bar {
	background: transparent;
	border-bottom-color: transparent;
}

.qls-mm--transparent.is-scrolled .qls-mm__bar {
	background: #001b33;
	border-bottom-color: rgba(255, 255, 255, 0.06);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.qls-mm.is-mega-open .qls-mm__bar {
	background: #001b33;
}

/* Inner container */
.qls-mm__inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 clamp(16px, 4vw, 48px);
}

.qls-mm__bar .qls-mm__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 64px;
}

/* Logo */
.qls-mm__logo {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	text-decoration: none;
}

.qls-mm__logo img {
	width: 140px;
	height: auto;
	transition: opacity 0.2s;
}

.qls-mm__logo:hover img {
	opacity: 0.8;
}

/* Nav */
.qls-mm__nav {
	display: none;
	align-items: center;
	gap: 2px;
}

@media (min-width: 1024px) {
	.qls-mm__nav {
		display: flex;
	}
}

/* Nav links */
.qls-mm__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 450;
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	border-radius: 6px;
	transition: color 0.2s, background 0.2s;
	white-space: nowrap;
}

.qls-mm__link:hover,
.qls-mm__item--has-mega.is-active .qls-mm__link {
	color: #fff;
	background: rgba(255, 255, 255, 0.06);
}

.qls-mm__chevron {
	opacity: 0.5;
	transition: transform 0.2s;
}

.qls-mm__item--has-mega.is-active .qls-mm__chevron {
	transform: rotate(180deg);
}

/* CTAs */
.qls-mm__ctas {
	display: none;
	align-items: center;
	gap: 8px;
}

@media (min-width: 1024px) {
	.qls-mm__ctas {
		display: flex;
	}
}

.qls-mm__cta {
	display: inline-flex;
	align-items: center;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	border-radius: 6px;
	transition: all 0.2s;
	white-space: nowrap;
}

.qls-mm__cta--outline {
	padding: 7px 14px;
	color: rgba(255, 255, 255, 0.7);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.qls-mm__cta--outline:hover {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.35);
	background: rgba(255, 255, 255, 0.04);
}

.qls-mm__cta--solid {
	padding: 8px 16px;
	color: #001b33;
	background: #fff;
	font-weight: 600;
}

.qls-mm__cta--solid:hover {
	background: rgba(255, 255, 255, 0.88);
}

/* ========================================
   Mega Panel
   ======================================== */
.qls-mm__mega {
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	background: #0a0f1a;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
	            opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.qls-mm.is-mega-open .qls-mm__mega {
	max-height: 400px;
	opacity: 1;
}

.qls-mm__mega .qls-mm__inner {
	padding-top: 28px;
	padding-bottom: 28px;
}

.qls-mm__mega-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

/* Mega column image */
.qls-mm__mega-image {
	display: block;
	margin-bottom: 14px;
	border-radius: 6px;
	overflow: hidden;
}

.qls-mm__mega-image img {
	width: 100%;
	height: 80px;
	object-fit: cover;
	display: block;
	border-radius: 6px;
	opacity: 0.7;
	transition: opacity 0.2s;
}

.qls-mm__mega-image:hover img {
	opacity: 1;
}

/* Mega column heading */
.qls-mm__mega-heading {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	text-decoration: none;
	margin-bottom: 14px;
	transition: color 0.2s;
}

a.qls-mm__mega-heading:hover {
	color: #f7b393;
}

span.qls-mm__mega-heading {
	cursor: default;
}

/* Mega links */
.qls-mm__mega-links {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.qls-mm__mega-link {
	font-size: 12.5px;
	color: rgba(255, 255, 255, 0.45);
	text-decoration: none;
	padding: 5px 10px;
	border-radius: 5px;
	transition: color 0.15s, background 0.15s;
}

.qls-mm__mega-link:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.05);
}

/* Mega description */
.qls-mm__mega-desc {
	font-size: 12.5px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.3);
}

/* ========================================
   Featured Column
   ======================================== */
.qls-mm__mega-col--featured {
	border-left: 1px solid rgba(255, 255, 255, 0.06);
	padding-left: 32px;
	position: relative;
}

.qls-mm__featured {
	display: none;
	flex-direction: column;
	text-decoration: none;
	border-radius: 8px;
	overflow: hidden;
	transition: opacity 0.3s;
}

.qls-mm__featured.is-active {
	display: flex;
}

.qls-mm__featured-icon {
	display: flex;
	color: #ffffff;
	margin-bottom: 14px;
	transition: opacity 0.2s;
}

.qls-mm__featured-icon svg {
	width: 40px;
	height: 40px;
}

.qls-mm__featured:hover .qls-mm__featured-icon {
	opacity: 0.8;
}

.qls-mm__featured-label {
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	margin-bottom: 6px;
}

.qls-mm__featured-desc {
	font-size: 12px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.35);
	margin-bottom: 10px;
}

.qls-mm__featured-cta {
	font-size: 12px;
	font-weight: 500;
	color: #f7b393;
	transition: color 0.2s;
}

.qls-mm__featured:hover .qls-mm__featured-cta {
	color: #fff;
}

/* Dots */
.qls-mm__featured-dots {
	display: flex;
	gap: 6px;
	margin-top: 14px;
}

.qls-mm__featured-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.15);
	cursor: pointer;
	padding: 0;
	transition: background 0.2s;
}

.qls-mm__featured-dot.is-active {
	background: #f7b393;
}

.qls-mm__featured-dot:hover {
	background: rgba(255, 255, 255, 0.4);
}

/* ========================================
   Mobile Toggle
   ======================================== */
.qls-mm__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	transition: color 0.2s;
}

.qls-mm__toggle:hover {
	color: #fff;
}

.qls-mm__toggle-close {
	display: none;
}

.qls-mm.is-mobile-open .qls-mm__toggle-open {
	display: none;
}

.qls-mm.is-mobile-open .qls-mm__toggle-close {
	display: block;
}

@media (min-width: 1024px) {
	.qls-mm__toggle {
		display: none;
	}
}

/* ========================================
   Mobile Menu
   ======================================== */
.qls-mm__mobile {
	display: none;
	background: #0a0f1a;
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	max-height: calc(100vh - 64px);
	overflow-y: auto;
}

.qls-mm.is-mobile-open .qls-mm__mobile {
	display: block;
}

@media (min-width: 1024px) {
	.qls-mm__mobile {
		display: none !important;
	}
}

/* Hide featured column on mobile/tablet */
@media (max-width: 1023px) {
	.qls-mm__mega-col--featured {
		display: none !important;
	}
}

.qls-mm__mobile-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 16px clamp(16px, 4vw, 48px) 28px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.qls-mm__mobile-link {
	font-size: 14px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.8);
	text-decoration: none;
	padding: 10px 0;
}

.qls-mm__mobile-link--sub {
	padding-left: 16px;
	font-size: 13px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.6);
}

.qls-mm__mobile-link--subsub {
	padding-left: 32px;
	font-size: 12px;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.35);
	padding-top: 10px;
	padding-bottom: 10px;
}

a.qls-mm__mobile-link:hover {
	color: #fff;
}

span.qls-mm__mobile-link {
	cursor: default;
	color: rgba(255, 255, 255, 0.4);
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	padding-top: 16px;
}

.qls-mm__mobile-ctas {
	display: flex;
	gap: 8px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.qls-mm__mobile-ctas .qls-mm__cta {
	flex: 1;
	justify-content: center;
	padding: 10px 16px;
}
