/* Mobile shell: shared mobile navbar + footer (CCJ) */

/*
	When injected into desktop pages (via `navbar.php` / `footer.php`) we add `.ccj-responsive`.
	Hide these by default and only show them at mobile widths.
	Mobile-exclusive pages include the same components without `.ccj-responsive`, so they stay visible
	(even if you force them on desktop via ?mobile=1).
*/
.mobile-navbar.ccj-responsive,
.mobile-footer.ccj-responsive {
	display: none;
}

@media (max-width: 768px) {
	.mobile-navbar.ccj-responsive,
	.mobile-footer.ccj-responsive {
		display: block;
	}

	/* Prefer the mobile shell on small screens */
	.navbar,
	.footer {
		display: none !important;
	}
}

/* Lock scroll when the mobile menu is open */
html.ccj-menu-open,
html.ccj-menu-open body {
	overflow: hidden;
}

/* ==============================
	Mobile Navbar
	============================== */
.mobile-navbar {
	display: block;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1100;
	background: rgba(10, 10, 10, 0.72);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.mobile-navbar-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: calc(0.85rem + env(safe-area-inset-top)) 1rem 0.85rem;
}

.mobile-brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.mobile-logo {
	height: 44px;
	width: auto;
	max-width: 200px;
	object-fit: contain;
}

.mobile-navbar-actions {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
}

.mobile-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.10);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
}

.mobile-menu-toggle {
	display: inline-flex;
	flex-direction: column;
	gap: 5px;
	background: rgba(255, 255, 255, 0.10);
	border: 1px solid rgba(255, 255, 255, 0.14);
	padding: 10px;
	cursor: pointer;
	border-radius: 12px;
	transition: background 0.2s ease;
}

.hamburger-line {
	width: 22px;
	height: 2px;
	background: rgba(255, 255, 255, 0.92);
	border-radius: 2px;
	transition: all 0.25s ease;
}

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

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

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
	transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
	position: fixed;
	top: 0;
	right: -100%;
	width: 88%;
	max-width: 380px;
	height: 100vh;
	background:
		radial-gradient(800px 360px at 20% 0%, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0) 60%),
		linear-gradient(180deg, rgba(10,10,10,0.98) 0%, rgba(10,10,10,0.94) 100%);
	border-left: 1px solid rgba(255, 255, 255, 0.10);
	box-shadow: -20px 0 60px rgba(0, 0, 0, 0.55);
	transition: right 0.28s ease;
	z-index: 1102;
	overflow-y: auto;
	padding-bottom: env(safe-area-inset-bottom);
}

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

.mobile-menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	visibility: hidden;
	transition: all 0.25s ease;
	z-index: 1101;
}

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

.mobile-menu-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: calc(1rem + env(safe-area-inset-top)) 1rem 1rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.mobile-menu-title {
	font-size: 1.1rem;
	font-weight: 900;
	letter-spacing: -0.02em;
	color: rgba(255, 255, 255, 0.92);
}

.mobile-menu-close {
	background: rgba(255, 255, 255, 0.10);
	border: 1px solid rgba(255, 255, 255, 0.14);
	padding: 0.55rem;
	border-radius: 12px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.92);
}

.mobile-menu-content {
	padding: 0.75rem 1rem 1.25rem;
}

.mobile-nav-link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.95rem 0.9rem;
	border-radius: 14px;
	color: rgba(255, 255, 255, 0.90);
	text-decoration: none;
	font-weight: 800;
	letter-spacing: -0.01em;
	border: 1px solid rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.06);
	margin-bottom: 0.65rem;
}

.mobile-nav-link svg {
	flex: 0 0 auto;
	opacity: 0.95;
}

.mobile-nav-link.active {
	border-color: rgba(139, 92, 246, 0.35);
	background: rgba(139, 92, 246, 0.14);
}

.mobile-menu-divider {
	height: 1px;
	background: rgba(255, 255, 255, 0.10);
	margin: 1rem 0;
}

.mobile-cta-link {
	display: block;
	text-align: center;
	padding: 0.95rem 1rem;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 900;
	letter-spacing: -0.01em;
	background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
	color: #fff;
	box-shadow: 0 16px 44px rgba(139, 92, 246, 0.28);
	border: 1px solid rgba(139, 92, 246, 0.35);
}

.mobile-cta-link.secondary {
	margin-top: 0.75rem;
	background: rgba(255, 255, 255, 0.10);
	border-color: rgba(255, 255, 255, 0.16);
	box-shadow: none;
}

/* ==============================
	Mobile Footer
	============================== */
.mobile-footer {
	display: block;
	background: linear-gradient(180deg, #0b0b0f 0%, #06060a 100%);
	color: rgba(255, 255, 255, 0.9);
	padding: 2.5rem 0 calc(1.75rem + env(safe-area-inset-bottom));
	border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.mobile-footer-logo {
	display: flex;
	justify-content: center;
	margin-bottom: 1rem;
}

.mobile-footer-logo img {
	height: 54px;
	width: auto;
	max-width: 220px;
	object-fit: contain;
}

.mobile-footer-tagline {
	margin: 0 auto 1.25rem;
	text-align: center;
	max-width: 30rem;
	color: rgba(255, 255, 255, 0.72);
	line-height: 1.6;
}

.mobile-footer-links {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.mobile-footer-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.9rem 0.9rem;
	border-radius: 12px;
	text-decoration: none;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.92);
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.10);
}

.mobile-footer-contact {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.mobile-contact-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.95rem 1rem;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 900;
	background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
	color: #fff;
	border: 1px solid rgba(139, 92, 246, 0.35);
}

.mobile-contact-btn.secondary {
	background: rgba(255, 255, 255, 0.10);
	border-color: rgba(255, 255, 255, 0.16);
}

.mobile-footer-hours {
	text-align: center;
	padding: 0.9rem 1rem;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.78);
	margin-bottom: 1.25rem;
}

.mobile-footer-bottom {
	text-align: center;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.9rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.10);
}

@media (max-width: 420px) {
	.mobile-footer-links {
		grid-template-columns: 1fr;
	}
}
