/* ==========================================================================
   Valident Basic — Mobile Full-Screen Menu
   ========================================================================== */

/* Full-screen panel */
.mobile-menu__panel {
	position: fixed;
	inset: 0;
	background: var(--vb-color-mobile-menu-bg);
	color: var(--vb-color-mobile-menu-fg);
	transform: translateX(100%);
	transition: transform 0.4s ease;
	z-index: 999;
	overflow-y: auto;
	padding: 32px;
	display: flex;
	flex-direction: column;
}

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

/* Prevent body scroll when menu is open */
body.is-menu-open {
	overflow: hidden;
}

/* Header — logo left, close right */
.mobile-menu__header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 48px;
}

.mobile-menu__logo a {
	display: block;
	color: var(--vb-color-mobile-menu-fg);
	text-decoration: none;
}

.mobile-menu__logo img {
	max-height: 80px;
	width: auto;
}

.mobile-menu__logo svg {
	height: 80px;
	width: auto;
	color: var(--vb-color-mobile-menu-fg);
}

/* Close button — square outline like Chapter One */
.mobile-menu__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	color: var(--vb-color-mobile-menu-fg);
	background: none;
	border: 1.5px solid currentColor;
	opacity: 0.7;
	cursor: pointer;
	transition: border-color 0.2s ease;
}

.mobile-menu__close:hover {
	opacity: 1;
}

.mobile-menu__close svg {
	width: 20px;
	height: 20px;
}

/* Menu list */
.mobile-menu__list {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 1;
}

.mobile-menu__list li {
	border: none;
}

.mobile-menu__list a {
	display: block;
	padding: 12px 0;
	font-family: var(--vb-font-heading);
	font-size: 1.75rem;
	font-weight: 400;
	color: var(--vb-color-mobile-menu-fg);
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.mobile-menu__list a:hover {
	opacity: 0.7;
	text-decoration: none;
}

.mobile-menu__list .current-menu-item > a {
	font-weight: 500;
}

/* Sub-menu (depth 2) */
.mobile-menu__list .sub-menu {
	list-style: none;
	margin: 0;
	padding: 0 0 0 16px;
}

.mobile-menu__list .sub-menu a {
	font-size: 1.25rem;
	padding: 8px 0;
}

/* Footer — CTA button at bottom */
.mobile-menu__footer {
	margin-top: auto;
	padding-top: 32px;
}

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

.mobile-menu__cta a {
	display: block;
	text-align: center;
	padding: 16px 32px;
	font-family: var(--vb-font-nav);
	font-size: 1.125rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: var(--vb-color-highlight);
	background: var(--vb-color-cream);
	border: none;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.mobile-menu__cta a:hover {
	background: #ffffff;
	text-decoration: none;
}

/* Hide mobile menu elements on desktop */
@media (min-width: 769px) {
	.mobile-menu {
		display: none;
	}
}
