/**
 * Mobile sidebar drawer — opens from the "More / menu" bar button.
 * Completely independent from the header navigation.
 */

/* ── Overlay ─────────────────────────────────────────────────────────── */
.wr-mobile-sidebar {
	display: none; /* hidden entirely on desktop */
}

@media screen and (max-width: 991px) {

.wr-mobile-sidebar {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 990; /* above the bar (880) */
	pointer-events: none;
}

.wr-mobile-sidebar__overlay {
	position: absolute;
	inset: 0;
	background: rgba(18, 10, 48, 0.55);
	opacity: 0;
	transition: opacity 0.3s ease;
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

/* ── Panel ────────────────────────────────────────────────────────────── */
.wr-mobile-sidebar__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: 82vw;
	max-width: 320px;
	display: flex;
	flex-direction: column;
	background: linear-gradient(160deg, rgba(255, 255, 255, 0.97) 0%, rgba(240, 235, 255, 0.98) 100%);
	border-left: 1px solid rgba(255, 255, 255, 0.7);
	box-shadow: -12px 0 40px rgba(67, 56, 145, 0.18);
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
	transform: translateX(100%);
	transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Open state ───────────────────────────────────────────────────────── */
.wr-mobile-sidebar.is-open {
	pointer-events: auto;
}

.wr-mobile-sidebar.is-open .wr-mobile-sidebar__overlay {
	opacity: 1;
}

.wr-mobile-sidebar.is-open .wr-mobile-sidebar__panel {
	transform: translateX(0);
}

/* Prevent body scroll while sidebar is open */
body.wr-sidebar-open {
	overflow: hidden;
}

/* ── Panel header ─────────────────────────────────────────────────────── */
.wr-mobile-sidebar__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 20px 16px;
	border-bottom: 1px solid rgba(94, 67, 254, 0.08);
	flex: 0 0 auto;
}

.wr-mobile-sidebar__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
}

.wr-mobile-sidebar__brand-icon {
	display: block;
	width: 38px;
	height: 38px;
	flex: none;
	overflow: hidden;
	border-radius: 9px;
}

/* Inline SVG inside brand icon — scale to fit the 38×38 container */
.wr-mobile-sidebar__brand-icon > svg {
	display: block !important;
	width: 38px !important;
	height: 38px !important;
	max-width: none !important;
}

.wr-mobile-sidebar__brand-name {
	font-size: 17px;
	font-weight: 700;
	color: #1a1040;
	letter-spacing: -0.02em;
	line-height: 1;
}

.wr-mobile-sidebar__close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	border: 1px solid rgba(94, 67, 254, 0.12);
	background: rgba(255, 255, 255, 0.8);
	color: #3a3354;
	cursor: pointer;
	padding: 0;
	font-size: 20px;
	line-height: 1;
	transition: background 0.2s ease, color 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
	flex: none;
}

.wr-mobile-sidebar__close:hover,
.wr-mobile-sidebar__close:focus-visible {
	background: rgba(94, 67, 254, 0.08);
	color: var(--_color---5e43fe, #5e43fe);
}

.wr-mobile-sidebar__close:focus-visible {
	outline: 2px solid var(--_color---5e43fe, #5e43fe);
	outline-offset: 2px;
}

/* ── Navigation ───────────────────────────────────────────────────────── */
.wr-mobile-sidebar__nav {
	flex: 1 1 auto;
	padding: 12px 0;
}

/* WordPress nav menu ul reset */
.wr-mobile-sidebar__nav ul,
.wr-mobile-sidebar__nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Top-level items */
.wr-mobile-sidebar__nav li,
.wr-mobile-sidebar__nav-list li {
	border-bottom: 1px solid rgba(94, 67, 254, 0.06);
}

.wr-mobile-sidebar__nav li:last-child,
.wr-mobile-sidebar__nav-list li:last-child {
	border-bottom: none;
}

.wr-mobile-sidebar__nav a,
.wr-mobile-sidebar__nav-list a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 20px;
	font-size: 15px;
	font-weight: 500;
	color: #2a1f54;
	text-decoration: none;
	transition: color 0.2s ease, background 0.2s ease;
	letter-spacing: -0.01em;
}

.wr-mobile-sidebar__nav a:hover,
.wr-mobile-sidebar__nav-list a:hover {
	color: var(--_color---5e43fe, #5e43fe);
	background: rgba(94, 67, 254, 0.04);
}

.wr-mobile-sidebar__nav a.current-menu-item,
.wr-mobile-sidebar__nav a.current_page_item,
.wr-mobile-sidebar__nav-list a.is-active {
	color: var(--_color---5e43fe, #5e43fe);
	background: rgba(94, 67, 254, 0.06);
	font-weight: 600;
}

/* ── Accordion (sub-menus) ────────────────────────────────────────────── */

/* Parent li row: flex so link + toggle sit side-by-side */
.wr-mobile-sidebar__nav li.menu-item-has-children,
.wr-mobile-sidebar__nav-list li.has-children {
	display: flex;
	flex-direction: column;
}

.wr-mobile-sidebar__nav li.menu-item-has-children > .wr-sidebar-item-row,
.wr-mobile-sidebar__nav-list li.has-children > .wr-sidebar-item-row {
	display: flex;
	align-items: stretch;
}

.wr-mobile-sidebar__nav li.menu-item-has-children > .wr-sidebar-item-row > a,
.wr-mobile-sidebar__nav-list li.has-children > .wr-sidebar-item-row > a {
	flex: 1 1 auto;
	min-width: 0;
}

/* Toggle chevron button */
.wr-sidebar-toggle {
	flex: 0 0 44px;
	width: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	background: transparent;
	color: #7b6fa8;
	cursor: pointer;
	padding: 0;
	font-size: 18px;
	line-height: 1;
	border-left: 1px solid rgba(94, 67, 254, 0.06);
	transition: color 0.2s ease, background 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
}

.wr-sidebar-toggle:hover,
.wr-sidebar-toggle:focus-visible {
	color: var(--_color---5e43fe, #5e43fe);
	background: rgba(94, 67, 254, 0.04);
}

.wr-sidebar-toggle:focus-visible {
	outline: 2px solid var(--_color---5e43fe, #5e43fe);
	outline-offset: -2px;
}

.wr-sidebar-toggle i {
	transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Open state: rotate chevron */
.wr-mobile-sidebar__nav li.is-sub-open > .wr-sidebar-item-row .wr-sidebar-toggle i,
.wr-mobile-sidebar__nav-list li.is-sub-open > .wr-sidebar-item-row .wr-sidebar-toggle i {
	transform: rotate(180deg);
}

/* Sub-menu: collapsed by default */
.wr-mobile-sidebar__nav ul.sub-menu,
.wr-mobile-sidebar__nav-list ul.sub-menu {
	padding-left: 0;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Open state */
.wr-mobile-sidebar__nav li.is-sub-open > ul.sub-menu,
.wr-mobile-sidebar__nav-list li.is-sub-open > ul.sub-menu {
	max-height: 600px; /* generous ceiling */
}

.wr-mobile-sidebar__nav ul.sub-menu li {
	border-bottom: none;
	border-top: 1px solid rgba(94, 67, 254, 0.05);
}

.wr-mobile-sidebar__nav ul.sub-menu a,
.wr-mobile-sidebar__nav-list ul.sub-menu a {
	font-size: 13.5px;
	padding: 12px 20px 12px 32px;
	color: #5a4f82;
}

.wr-mobile-sidebar__nav ul.sub-menu a:hover,
.wr-mobile-sidebar__nav-list ul.sub-menu a:hover {
	color: var(--_color---5e43fe, #5e43fe);
	background: rgba(94, 67, 254, 0.04);
}

/* ── Footer strip ─────────────────────────────────────────────────────── */
.wr-mobile-sidebar__foot {
	flex: 0 0 auto;
	padding: 16px 20px;
	border-top: 1px solid rgba(94, 67, 254, 0.08);
}

.wr-mobile-sidebar__contact {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 11px 20px;
	border-radius: 12px;
	background: linear-gradient(135deg, #5e43fe 0%, #7c63ff 100%);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	letter-spacing: -0.01em;
	width: 100%;
	justify-content: center;
	transition: opacity 0.2s ease;
}

.wr-mobile-sidebar__contact:hover {
	opacity: 0.9;
	color: #fff;
}

.wr-mobile-sidebar__contact i {
	font-size: 16px;
}

} /* end @media */
