

/* =========================================================
   FULL-SCREEN MOBILE MENU (Astra / Uncode style)
========================================================= */

.mobile-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	z-index: 10002;
	position: relative;
}

.mobile-toggle .bar {
	display: block;
	width: 22px;
	height: 2.5px;
	background: var(--heading, #0F1C32);
	border-radius: 2px;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-toggle[aria-expanded="true"] .bar:nth-child(1) {
	transform: translateY(7.5px) rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] .bar:nth-child(2) {
	opacity: 0;
}
.mobile-toggle[aria-expanded="true"] .bar:nth-child(3) {
	transform: translateY(-7.5px) rotate(-45deg);
}

/* Panel: fixed full viewport */
.kbm-mobile-panel {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background: #ffffff;
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
	visibility: hidden;
	pointer-events: none;
}

.kbm-mobile-panel.is-open {
	transform: translateX(0);
	visibility: visible;
	pointer-events: auto;
}

/* Remove [hidden] conflict when open */
.kbm-mobile-panel[hidden] {
	display: flex !important;
	visibility: hidden;
	pointer-events: none;
}
.kbm-mobile-panel.is-open[hidden] {
	visibility: visible;
	pointer-events: auto;
}

.kbm-mobile-overlay {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(11, 30, 51, 0.45);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.kbm-mobile-overlay.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.kbm-mobile-panel-inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	height: 100dvh;
	padding: 0;
	overflow: hidden;
}

.kbm-mobile-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid #e8edf3;
	flex-shrink: 0;
}

.kbm-mobile-top .logo-title {
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--heading, #0F1C32);
}

.kbm-mobile-top .custom-logo {
	max-height: 40px;
	width: auto;
}

.kbm-mobile-close {
	width: 44px;
	height: 44px;
	border: none;
	background: #f1f5f9;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #0F1C32;
}

.kbm-mobile-close:hover {
	background: #e2e8f0;
}

.kbm-mobile-nav {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 1.5rem 1.25rem 2rem;
}

.kbm-mobile-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.kbm-mobile-menu > li {
	border-bottom: 1px solid #f1f5f9;
}

.kbm-mobile-menu > li > a {
	display: block;
	padding: 1rem 0.25rem;
	font-size: 1.2rem;
	font-weight: 600;
	color: #0F1C32;
	text-decoration: none;
	letter-spacing: -0.01em;
}

.kbm-mobile-menu > li > a:hover,
.kbm-mobile-menu > li.current-menu-item > a {
	color: var(--primary, #0F4C81);
}

.kbm-mobile-menu .sub-menu {
	list-style: none;
	margin: 0 0 0.75rem 0.75rem;
	padding: 0;
	display: none;
}

.kbm-mobile-menu > li.kbm-sub-open > .sub-menu {
	display: block;
}

.kbm-mobile-menu .sub-menu a {
	display: block;
	padding: 0.65rem 0.25rem;
	font-size: 1rem;
	font-weight: 500;
	color: #475569;
	text-decoration: none;
}

.kbm-mobile-menu .menu-item-has-children > a::after {
	content: "▾";
	float: right;
	font-size: 0.85em;
	opacity: 0.5;
}

.kbm-mobile-footer {
	flex-shrink: 0;
	padding: 1.25rem 1.25rem 2rem;
	border-top: 1px solid #e8edf3;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	background: #f8fafc;
}

.kbm-mobile-cta {
	width: 100%;
	max-width: 280px;
	text-align: center;
	justify-content: center;
	padding: 0.9rem 1.5rem;
	border-radius: 999px;
}

.kbm-mobile-social {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	justify-content: center;
	font-size: 0.85rem;
}

.kbm-mobile-social a {
	color: #64748b;
	text-decoration: none;
	font-weight: 500;
}

.kbm-mobile-email {
	font-size: 0.85rem;
	color: #94a3b8;
	text-decoration: none;
}

body.kbm-menu-open {
	overflow: hidden !important;
	touch-action: none;
}

/* Show hamburger / hide desktop menu under 1024px */
@media (max-width: 1024px) {
	.nav-desktop {
		display: none !important;
	}
	.mobile-toggle {
		display: flex !important;
	}
	.header-cta {
		display: none !important;
	}
}

@media (min-width: 1025px) {
	.mobile-toggle {
		display: none !important;
	}
	.kbm-mobile-panel,
	.kbm-mobile-overlay {
		display: none !important;
	}
	.nav-desktop {
		display: flex !important;
	}
}
