/* ============================================
   Mobile Off-Canvas Menu
   ============================================ */

.mobile-menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.55);
	z-index: 998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s ease;
}

.mobile-menu-overlay.active {
	opacity: 1;
	visibility: visible;
}

.mobile-menu-panel {
	position: fixed;
	top: 0;
	right: -100%;
	width: 320px;
	max-width: 85vw;
	height: 100%;
	height: 100dvh;
	background: var(--primary-color);
	z-index: 999;
	display: flex;
	flex-direction: column;
	transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	overflow-y: auto;
}

.mobile-menu-panel.active {
	right: 0;
}

/* ---- Panel Header ---- */
.mobile-menu-header {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding: 24px 25px;
	border-bottom: 1px solid var(--dark-divider-color);
}

.mobile-menu-close {
	background: none;
	border: none;
	color: var(--white-color);
	font-size: 32px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	transition: color 0.3s ease;
	font-family: var(--default-font);
}

.mobile-menu-close:hover,
.mobile-menu-close:focus {
	color: var(--accent-color);
}

/* ---- Navigation ---- */
.mobile-menu-nav {
	flex: 1;
	padding: 20px 0 0;
}

.mobile-menu-nav > ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.mobile-menu-nav > ul > li {
	opacity: 0;
	transform: translateX(30px);
	transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu-panel.active .mobile-menu-nav > ul > li {
	opacity: 1;
	transform: translateX(0);
}

.mobile-menu-panel.active .mobile-menu-nav > ul > li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-panel.active .mobile-menu-nav > ul > li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-panel.active .mobile-menu-nav > ul > li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-panel.active .mobile-menu-nav > ul > li:nth-child(4) { transition-delay: 0.25s; }

.mobile-nav-link {
	display: block;
	padding: 16px 30px;
	font-family: var(--accent-font);
	font-size: 20px;
	font-weight: 600;
	color: var(--white-color);
	text-decoration: none;
	text-transform: capitalize;
	transition: color 0.3s ease, padding-left 0.3s ease;
	letter-spacing: 0.5px;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
	color: var(--accent-color);
	padding-left: 35px;
}

/* ---- Accordion ---- */
.mobile-menu-accordion .has-submenu {
	position: relative;
}

.mobile-menu-accordion .has-submenu::after {
	content: '\f107';
	font-family: 'FontAwesome';
	font-weight: 900;
	position: absolute;
	right: 30px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 18px;
	transition: transform 0.3s ease;
}

.mobile-menu-accordion.open .has-submenu::after {
	transform: translateY(-50%) rotate(180deg);
}

.mobile-submenu {
	list-style: none;
	padding: 0;
	margin: 0;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s ease;
	background: rgba(255, 255, 255, 0.03);
	border-left: 2px solid var(--accent-color);
}

.mobile-menu-accordion.open .mobile-submenu {
	max-height: 300px;
}

.mobile-submenu li a {
	display: block;
	padding: 12px 30px 12px 48px;
	font-family: var(--default-font);
	font-size: 15px;
	font-weight: 400;
	color: var(--white-color);
	opacity: 0.7;
	text-decoration: none;
	transition: opacity 0.3s ease, padding-left 0.3s ease;
}

.mobile-submenu li a:hover,
.mobile-submenu li a:focus {
	opacity: 1;
	color: var(--accent-color);
	padding-left: 52px;
}

/* ---- CTA Button ---- */
.mobile-menu-btn {
	padding: 24px 30px 40px;
}

.mobile-menu-btn .btn-default {
	display: block;
	width: 100%;
	text-align: center;
}

/* ---- Hamburger Button ---- */
.mobile-hamburger {
	display: none;
	background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-secondary-color) 50%, var(--accent-color) 100%);
	background-size: 200% auto;
	width: 38px;
	height: 38px;
	border: none;
	cursor: pointer;
	padding: 0;
	clip-path: polygon(0px 0px, calc(100% - 10px) 0px, 100% 10px, 100% 100%, 0px 100%);
	transition: background-position 0.3s ease-in-out;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

.mobile-hamburger.active {
	background-position: right center;
}

.mobile-hamburger span {
	display: block;
	width: 22px;
	height: 3px;
	background: var(--white-color);
	transition: all 0.25s ease;
	border-radius: 0;
}

.mobile-hamburger.active span:nth-child(1) {
	transform: rotate(-45deg) translate(-5px, 5px);
}

.mobile-hamburger.active span:nth-child(2) {
	opacity: 0;
}

.mobile-hamburger.active span:nth-child(3) {
	transform: rotate(45deg) translate(-5px, -5px);
}

/* ---- Breakpoints ---- */
@media only screen and (min-width: 992px) {
	.mobile-hamburger,
	.mobile-menu-overlay,
	.mobile-menu-panel {
		display: none !important;
	}
}

@media only screen and (max-width: 991px) {
	.mobile-hamburger {
		display: flex;
	}
}
