/* Mobile-exclusive CCJ homepage */

.mobile-home {
	background:
		radial-gradient(900px 420px at 18% 8%, rgba(139, 92, 246, 0.18), rgba(139, 92, 246, 0) 60%),
		linear-gradient(180deg, #0b0b0f 0%, #0b0b0f 34%, #0b0b0f 100%);
	min-height: 100vh;
	padding-bottom: calc(2.5rem + env(safe-area-inset-bottom));
}

/* Base hero layout (keeps the hero background from bleeding into other sections) */
.mobile-hero {
	position: relative;
	overflow: hidden;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: flex-end;
	padding-top: calc(5.25rem + env(safe-area-inset-top));
	padding-bottom: calc(3.25rem + env(safe-area-inset-bottom));
	box-sizing: border-box;
}

.mobile-hero > .container {
	width: 100%;
}

.mobile-hero-bg {
	z-index: 0;
}

/* Ensure sections always layer above hero background */
.mobile-section {
	position: relative;
	z-index: 1;
}

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

.mobile-hero-bg {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.88) 100%),
		url('../Images/backgrounds/66_corvette.jpg') center/cover no-repeat;
	filter: saturate(1.05) contrast(1.08) brightness(0.9);
}

.mobile-hero-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(520px 280px at 20% 20%, rgba(139, 92, 246, 0.28), rgba(139, 92, 246, 0) 60%),
		linear-gradient(0deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 55%);
	mix-blend-mode: screen;
	opacity: 0.7;
}

.mobile-hero-bg::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.82) 100%);
	opacity: 1;
}

.mobile-hero-content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 640px;
	padding-bottom: env(safe-area-inset-bottom);
	text-align: left;
}

.mobile-kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.4rem 0;
	border-radius: 0;
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, 0.92);
	font-weight: 700;
	letter-spacing: 0.14em;
	font-size: 0.75rem;
	text-transform: uppercase;
}

.mobile-kicker::after {
	content: '';
	display: block;
	width: 72px;
	height: 2px;
	margin-top: 0.75rem;
	border-radius: 999px;
	background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(139,92,246,0.9));
}

.mobile-hero h1 {
	margin: 0.9rem 0 0.75rem;
	font-family: var(--font-serif);
	font-size: clamp(2.15rem, 7.4vw, 3rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: rgba(255, 255, 255, 0.98);
	text-shadow: 0 14px 42px rgba(0,0,0,0.7);
	max-width: 18ch;
}


.mobile-hero-sub {
	margin: 0 0 1.35rem;
	color: rgba(255, 255, 255, 0.84);
	line-height: 1.6;
	max-width: 26rem;
	font-size: 1.05rem;
}

.mobile-hero-actions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.85rem;
	max-width: 22rem;
}

.mobile-hero-actions .btn-primary,
.mobile-hero-actions .btn-secondary {
	width: 100%;
	justify-content: center;
}

.mobile-hero .btn-primary,
.mobile-hero .btn-secondary {
	border-radius: 999px;
	box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
}

.mobile-hero .btn-primary {
	box-shadow: 0 18px 54px rgba(139, 92, 246, 0.35);
}

/* On dark hero: make secondary button light-on-dark (shared buttons.css is black text) */
.mobile-hero .btn-secondary {
	background: rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.95);
	border-color: rgba(255, 255, 255, 0.26);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.mobile-hero .btn-secondary:hover {
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.35);
	color: rgba(255, 255, 255, 0.98);
}

.mobile-hero-meta {
	margin-top: 0.9rem;
	font-size: 0.92rem;
	color: rgba(255, 255, 255, 0.72);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}

.mobile-hero-meta .meta-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.55rem 0.85rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: rgba(255, 255, 255, 0.92);
	text-decoration: none;
	font-weight: 700;
	letter-spacing: 0.01em;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.mobile-hero-meta .meta-chip svg {
	flex: 0 0 auto;
	opacity: 0.9;
}

.mobile-hero-meta a.meta-chip:hover {
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.32);
}

.mobile-hero-meta .sep {
	opacity: 0.6;
}

@media (max-width: 420px) {
	.mobile-hero {
		padding-top: calc(4.75rem + env(safe-area-inset-top));
		padding-bottom: calc(2.75rem + env(safe-area-inset-bottom));
	}

	.mobile-hero-actions {
		max-width: none;
	}

	.mobile-hero-sub {
		font-size: 1rem;
	}
}

.mobile-section {
	padding: 3rem 0;
	background: transparent;
	scroll-margin-top: 96px;
}

.mobile-section-light {
	background: #f8fafc;
}

.mobile-section-dark {
	background: #0a0a0a;
}

/* Soft separators so sections don't feel stacked randomly */
.mobile-section-light + .mobile-section-light {
	border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.mobile-section-dark {
	border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-section-header {
	max-width: 36rem;
	margin-bottom: 1rem;
}

/* Featured section heading polish */
.mobile-featured-section .mobile-section-header {
	max-width: 44rem;
	margin-bottom: 1.15rem;
}

.mobile-featured-section .mobile-section-header h2 {
	font-size: 1.95rem;
	line-height: 1.12;
	letter-spacing: -0.03em;
	font-weight: 900;
	color: #0b1220;
	position: relative;
	padding-bottom: 0.75rem;
}

.mobile-featured-section .mobile-section-header h2::after {
	content: '';
	display: block;
	width: 84px;
	height: 3px;
	border-radius: 999px;
	margin-top: 0.55rem;
	background: linear-gradient(90deg, rgba(139, 92, 246, 0.95), rgba(236, 72, 153, 0.85));
}

.mobile-featured-section .mobile-section-header p {
	margin-top: 0.55rem;
	font-size: 1.02rem;
	color: #475569;
}

.mobile-section-header h2 {
	margin: 0;
	font-size: 1.85rem;
	font-weight: 900;
	color: #0f172a;
	letter-spacing: -0.03em;
	line-height: 1.12;
	position: relative;
	padding-bottom: 0.65rem;
}

.mobile-section-header h2::after {
	content: '';
	display: block;
	width: 64px;
	height: 3px;
	border-radius: 999px;
	margin-top: 0.5rem;
	background: linear-gradient(90deg, rgba(139, 92, 246, 0.9), rgba(236, 72, 153, 0.75));
}

.mobile-section-header p {
	margin: 0.4rem 0 1.25rem;
	color: #475569;
	line-height: 1.6;
	font-size: 1.02rem;
}

.mobile-section-dark .mobile-section-header h2,
.mobile-section-dark .mobile-section-header p {
	color: rgba(255, 255, 255, 0.92);
}

.mobile-section-dark .mobile-section-header h2::after {
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.85), rgba(139, 92, 246, 0.85));
}

/* Steps */
.mobile-steps {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.9rem;
}

.mobile-step {
	position: relative;
	display: grid;
	grid-template-columns: 42px 1fr;
	gap: 0.85rem;
	align-items: start;
	padding: 1.25rem;
	border-radius: 1.1rem;
	border: 1px solid rgba(15, 23, 42, 0.08);
	background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,250,252,1) 100%);
	box-shadow: 0 18px 50px rgba(2, 6, 23, 0.07);
}

.mobile-step::before {
	content: '';
	position: absolute;
	left: 0.9rem;
	top: 1rem;
	bottom: 1rem;
	width: 3px;
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(139, 92, 246, 0.75), rgba(236, 72, 153, 0.55));
	opacity: 0.8;
}

.step-icon {
	width: 42px;
	height: 42px;
	border-radius: 999px;
	display: grid;
	place-items: center;
	font-weight: 800;
	color: #ffffff;
	background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
	box-shadow: 0 14px 38px rgba(139, 92, 246, 0.28);
}

.step-body h3 {
	margin: 0.1rem 0 0.2rem;
	font-size: 1.1rem;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.02em;
}

.step-body p {
	margin: 0;
	color: #475569;
	line-height: 1.55;
}

/* Service cards */
.mobile-cards {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.9rem;
}

.mobile-card-panel {
	position: relative;
	border-radius: 1.1rem;
	border: 1px solid rgba(15, 23, 42, 0.08);
	background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,250,252,1) 100%);
	padding: 1.15rem;
	box-shadow: 0 18px 54px rgba(2, 6, 23, 0.07);
}

.mobile-card-panel::before {
	content: '';
	position: absolute;
	left: 1rem;
	top: 1rem;
	width: 10px;
	height: 10px;
	border-radius: 999px;
	background: rgba(139, 92, 246, 0.35);
	box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.10);
}

.panel-icon {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.18) 0%, rgba(236, 72, 153, 0.10) 100%);
	border: 1px solid rgba(139, 92, 246, 0.20);
	color: #6d28d9;
	margin-bottom: 0.75rem;
}

.mobile-card-panel h3 {
	margin: 0 0 0.35rem;
	font-size: 1.1rem;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.02em;
}

.mobile-card-panel p {
	margin: 0;
	color: #475569;
	line-height: 1.55;
}

/* About */
.mobile-about {
	position: relative;
	border-radius: 1.1rem;
	border: 1px solid rgba(15, 23, 42, 0.08);
	background:
		radial-gradient(520px 220px at 10% 0%, rgba(139, 92, 246, 0.10), rgba(139, 92, 246, 0) 60%),
		linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,250,252,1) 100%);
	padding: 1.15rem;
	box-shadow: 0 18px 54px rgba(2, 6, 23, 0.07);
}

.mobile-about::before {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.14), rgba(236, 72, 153, 0.08));
	opacity: 0.25;
	pointer-events: none;
}

.mobile-about > * {
	position: relative;
	z-index: 1;
}

.mobile-about p {
	margin: 0;
	color: #334155;
	line-height: 1.7;
}

.mobile-about-actions {
	margin-top: 1rem;
}

/* CTA */
.mobile-cta {
	border-radius: 1.35rem;
	padding: 1.75rem 1.35rem;
	background:
		radial-gradient(900px 340px at 18% -10%, rgba(139, 92, 246, 0.38), rgba(139, 92, 246, 0) 60%),
		radial-gradient(760px 320px at 90% 25%, rgba(236, 72, 153, 0.22), rgba(236, 72, 153, 0) 58%),
		linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 100%);
	border: 1px solid rgba(255, 255, 255, 0.13);
	box-shadow: 0 34px 110px rgba(0, 0, 0, 0.62);
}

.mobile-cta h2 {
	margin: 0 0 0.35rem;
	color: rgba(255, 255, 255, 0.96);
	font-size: 1.75rem;
	font-weight: 900;
	letter-spacing: -0.03em;
}

.mobile-cta p {
	margin: 0 0 1.1rem;
	color: rgba(255, 255, 255, 0.78);
	line-height: 1.6;
	font-size: 1.02rem;
}

/* Mobile: don't do hover-lift on buttons */
@media (hover: none) {
	.btn-primary:hover,
	.btn-secondary:hover,
	.btn-outline:hover {
		transform: none;
		box-shadow: none;
	}
}

.mobile-cta-actions {
	display: grid;
	gap: 0.75rem;
}

.mobile-section-dark .btn-secondary.full-width {
	background: rgba(255, 255, 255, 0.12);
	color: rgba(255, 255, 255, 0.95);
	border-color: rgba(255, 255, 255, 0.22);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.mobile-section-dark .btn-secondary.full-width:hover {
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.32);
}

.mobile-cta-meta {
	margin-top: 1rem;
	font-size: 0.92rem;
	color: rgba(255, 255, 255, 0.7);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	align-items: center;
}


/* Featured section background + carousel */
.mobile-featured-section {
	background:
		radial-gradient(900px 380px at 10% -10%, rgba(139, 92, 246, 0.12), rgba(139, 92, 246, 0) 60%),
		linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.mobile-carousel {
	--edge: clamp(1rem, 4vw, 1.5rem);
	display: flex;
	gap: 0.95rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	overflow-y: visible;
	padding: 0.25rem var(--edge) 0.9rem;
	margin: 0 calc(var(--edge) * -1);
	scroll-padding-left: var(--edge);
	overscroll-behavior-x: contain;
}

.mobile-carousel::-webkit-scrollbar {
	display: none;
}

.mobile-carousel {
	scrollbar-width: none;
}

.mobile-carousel-item {
	flex: 0 0 86%;
	scroll-snap-align: start;
}

@media (min-width: 480px) {
	.mobile-carousel-item {
		flex-basis: 72%;
	}
}

@media (min-width: 640px) {
	.mobile-carousel-item {
		flex-basis: 52%;
	}
}

/* Featured vehicle cards: make them feel like mobile cards */
.mobile-card {
	border-radius: 1.1rem;
	border-color: rgba(15, 23, 42, 0.08);
	box-shadow: 0 18px 50px rgba(2, 6, 23, 0.08);
}

.mobile-card:hover {
	transform: none;
}

.mobile-card .inventory-image {
	height: 220px;
	background-color: #0b1220;
}

.mobile-card .inventory-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mobile-card .inventory-details {
	padding: 1rem 1.05rem 1.05rem;
}

.mobile-card .inventory-title,
.inventory-title {
	margin: 0 0 0.35rem;
	font-size: 1.1rem;
	line-height: 1.25;
	letter-spacing: -0.02em;
	color: #0f172a;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mobile-card .inventory-price {
	margin: 0 0 0.9rem;
	font-weight: 800;
	font-size: 1rem;
	color: #111827;
}

.mobile-card .btn-outline.full-width {
	border-radius: 999px;
	padding: 0.95rem 1.25rem;
}

/* Reduce hover-specific visuals on touch devices */
@media (hover: none) {
	.inventory-card:hover {
		transform: none;
		box-shadow: 0 14px 40px rgba(2, 6, 23, 0.06);
	}
	.inventory-card:hover .inventory-overlay {
		opacity: 0;
	}
}

.mobile-section-footer {
	margin-top: 1.25rem;
	display: grid;
	gap: 0.75rem;
}

.mobile-section-footer .btn-primary,
.mobile-section-footer .btn-outline,
.mobile-section-footer .btn-secondary {
	border-radius: 999px;
}



.mobile-empty {
	background: rgba(255, 255, 255, 0.8);
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 1.1rem;
	padding: 1.25rem;
}

/* Small-screen tightening */
@media (max-width: 480px) {
	.mobile-section {
		padding: 2.5rem 0;
	}

	.mobile-section-header h2 {
		font-size: 1.6rem;
	}

	.mobile-section-header h2::after {
		width: 54px;
	}

	.mobile-card .inventory-image {
		height: 200px;
	}
}

.mobile-empty p {
	margin: 0 0 0.9rem;
	color: var(--gray-700);
}

@media (min-width: 769px) {
	/* If someone opens the mobile page on desktop, keep it readable */
	.mobile-hero-content {
		margin: 0 auto;
	}
	.mobile-carousel {
		justify-content: center;
	}
	.mobile-carousel-item {
		flex-basis: 38%;
		max-width: 420px;
	}
}
