/**
 * DMV Inventory Hero — styles
 * Palette: black / red / white / neutral gray only. No navy, no blue.
 */

.dmv-inventory-hero {
	--dmv-hero-black: #050505;
	--dmv-hero-dark: #121212;
	--dmv-hero-dark-2: #1b1b1d;
	--dmv-hero-red: #c8102e; /* DMV Appliances site red (matches live CTA color) */
	--dmv-hero-deep-red: #6e0919;
	--dmv-hero-white: #ffffff;
	--dmv-hero-gray: #c9c9cd;
	--dmv-hero-muted: #939398;

	position: relative;
	isolation: isolate;
	overflow: hidden;
	width: 100%;
	background: var(--dmv-hero-black);
	color: var(--dmv-hero-white);
	min-height: 560px;
	display: flex;
	align-items: stretch;
	box-sizing: border-box;
}

.dmv-inventory-hero *,
.dmv-inventory-hero *::before,
.dmv-inventory-hero *::after {
	box-sizing: inherit;
}

.dmv-hero-glow {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(60% 70% at 78% 45%, rgba(200, 16, 46, 0.35) 0%, rgba(110, 9, 25, 0.16) 45%, rgba(5, 5, 5, 0) 75%),
		linear-gradient(135deg, var(--dmv-hero-black) 0%, var(--dmv-hero-dark) 60%, var(--dmv-hero-dark-2) 100%);
}

.dmv-hero-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1360px;
	margin: 0 auto;
	padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.25rem, 4vw, 3.5rem);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.dmv-hero-track {
	position: relative;
	perspective: 1400px;
}

.dmv-hero-slide {
	display: grid;
	grid-template-columns: 55% 45%;
	align-items: center;
	gap: clamp(1.5rem, 4vw, 3rem);
}

.dmv-hero-slide[hidden] {
	display: none;
}

/* Text column */
.dmv-hero-copy {
	position: relative;
	z-index: 2;
}

.dmv-hero-eyebrow {
	margin: 0 0 0.85em;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--dmv-hero-gray);
}

.dmv-hero-headline {
	margin: 0 0 0.3em;
	font-weight: 800;
	line-height: 1.02;
	letter-spacing: -0.01em;
	font-size: clamp(2.4rem, 4.6vw, 3.85rem);
	color: var(--dmv-hero-white);
}

.dmv-hero-headline span {
	display: block;
	color: var(--dmv-hero-red);
}

.dmv-hero-product-name {
	margin: 0.6em 0 0;
	font-size: clamp(1.05rem, 1.6vw, 1.35rem);
	font-weight: 600;
	color: var(--dmv-hero-white);
}

.dmv-hero-product-name small {
	display: inline-block;
	margin-left: 0.5em;
	font-size: 0.7em;
	font-weight: 500;
	color: var(--dmv-hero-muted);
}

.dmv-hero-price {
	margin: 0.75em 0;
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
	font-weight: 700;
}

.dmv-hero-price .price {
	color: var(--dmv-hero-white);
}

.dmv-hero-price del {
	opacity: 1;
	margin-right: 0.5em;
	font-size: 0.62em;
	font-weight: 500;
	color: var(--dmv-hero-muted);
	text-decoration: line-through;
}

.dmv-hero-price ins {
	text-decoration: none;
	color: var(--dmv-hero-red);
	font-weight: 800;
}

.dmv-hero-support {
	max-width: 46ch;
	margin: 0.5em 0 1.4em;
	font-size: 0.98rem;
	line-height: 1.5;
	color: var(--dmv-hero-gray);
}

.dmv-hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
}

.dmv-hero-cta-primary {
	display: inline-flex;
	align-items: center;
	gap: 0.5em;
	background: var(--dmv-hero-red);
	color: var(--dmv-hero-white);
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	font-size: 0.9rem;
	padding: 0.95em 1.6em;
	border-radius: 3px;
	text-decoration: none;
	box-shadow: 0 8px 24px -8px rgba(200, 16, 46, 0.65);
	transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.dmv-hero-cta-primary:hover,
.dmv-hero-cta-primary:focus-visible {
	background: #ffffff;
	color: var(--dmv-hero-black);
	transform: translateY(-2px);
	box-shadow: 0 10px 28px -8px rgba(200, 16, 46, 0.85);
}

.dmv-hero-cta-secondary {
	display: inline-flex;
	align-items: center;
	color: var(--dmv-hero-white);
	font-weight: 600;
	font-size: 0.9rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 0.95em 1.2em;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 3px;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.dmv-hero-cta-secondary:hover,
.dmv-hero-cta-secondary:focus-visible {
	border-color: var(--dmv-hero-white);
	background: rgba(255, 255, 255, 0.08);
}

.dmv-hero-cta-primary:focus-visible,
.dmv-hero-cta-secondary:focus-visible,
.dmv-hero-arrow:focus-visible,
.dmv-hero-dot:focus-visible {
	outline: 2px solid var(--dmv-hero-white);
	outline-offset: 3px;
}

/* Visual (image) column */
.dmv-hero-visual {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 260px;
}

.dmv-hero-orbit {
	position: absolute;
	inset: 8% 4%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(200, 16, 46, 0.28), rgba(200, 16, 46, 0) 72%);
	filter: blur(2px);
	z-index: 0;
}

.dmv-hero-image {
	position: relative;
	z-index: 1;
	max-width: 100%;
	max-height: 440px;
	width: auto;
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 30px 34px rgba(0, 0, 0, 0.55));
}

/* Slide motion: incoming/active/outgoing states, toggled by JS */
.dmv-hero-copy {
	opacity: 0;
	transform: translateX(-40px);
	transition: opacity 0.8s ease, transform 0.8s ease;
}

.dmv-hero-visual {
	opacity: 0;
	transform: translateX(120px) rotateY(-18deg) rotateZ(1deg) scale(0.92);
	transform-style: preserve-3d;
	transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.dmv-hero-slide.is-active .dmv-hero-copy {
	opacity: 1;
	transform: translateX(0);
}

.dmv-hero-slide.is-active .dmv-hero-visual {
	opacity: 1;
	transform: translateX(0) rotateY(0) rotateZ(0) scale(1);
}

/* Controls */
.dmv-hero-controls {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.25rem;
	margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.dmv-hero-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.04);
	color: var(--dmv-hero-white);
	font-size: 1.4rem;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.dmv-hero-arrow:hover {
	border-color: var(--dmv-hero-red);
	background: var(--dmv-hero-red);
	color: var(--dmv-hero-white);
}

.dmv-hero-dots {
	display: flex;
	align-items: center;
	gap: 0.55rem;
}

.dmv-hero-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.4);
	background: transparent;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.dmv-hero-dot.is-active {
	background: var(--dmv-hero-red);
	border-color: var(--dmv-hero-red);
	transform: scale(1.2);
}

.dmv-hero-admin-notice {
	margin: 1.5rem;
	padding: 1rem 1.25rem;
	background: #1b1b1d;
	color: #fff;
	border-left: 4px solid #c8102e;
	font-size: 0.95rem;
}

.dmv-hero-sr-status {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* Tablet */
@media (max-width: 1024px) {
	.dmv-inventory-hero {
		min-height: unset;
	}

	.dmv-hero-slide {
		grid-template-columns: 1fr 1fr;
		gap: 1.5rem;
	}

	.dmv-hero-image {
		max-height: 340px;
	}
}

/* Mobile: stacked layout */
@media (max-width: 767px) {
	.dmv-inventory-hero {
		min-height: unset;
	}

	.dmv-hero-inner {
		padding: 2.25rem 1.25rem 2rem;
	}

	.dmv-hero-slide {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.dmv-hero-copy {
		order: 1;
	}

	.dmv-hero-visual {
		order: 2;
		min-height: 240px;
	}

	.dmv-hero-image {
		max-height: 280px;
	}

	.dmv-hero-headline {
		font-size: clamp(2rem, 9vw, 2.75rem);
	}

	.dmv-hero-support {
		margin-left: auto;
		margin-right: auto;
	}

	.dmv-hero-actions {
		justify-content: center;
	}
}

@media (max-width: 420px) {
	.dmv-hero-cta-secondary {
		display: none;
	}
}

/* Reduced motion: disable 3D/slide movement, keep simple opacity crossfades */
@media (prefers-reduced-motion: reduce) {
	.dmv-hero-copy,
	.dmv-hero-visual {
		transition: opacity 0.4s ease;
		transform: none !important;
	}
}
