/* HERO Automotive */

.hero-auto {
	--hero-blue: #2563eb;
	--hero-blue-accent: #60a5fa;
	--hero-blue-glow: rgba(37, 99, 235, 0.45);
	--hero-slate-200: #e2e8f0;
	--hero-slate-600: #475569;
	--hero-slate-800: #1e293b;
	--hero-green: #22c55e;
	--hero-plate-yellow: #facc15;
	--hero-plate-border: #eab308;
	--hero-nl-blue: #003399;
	--hero-overlap: clamp(3.5rem, 7vw, 6rem);
	--hero-height: clamp(32rem, 82vh, 52rem);
	--hero-nav-offset: 0px;
	--hero-module-shift: 42%;

	position: relative;
	min-height: calc(var(--hero-height) + var(--hero-nav-offset));
	display: block;
	overflow: visible;
	margin-bottom: var(--hero-overlap);
	isolation: isolate;
	overflow-anchor: none;
	--hero-auto-font: inherit;
	font-family: var(--hero-auto-font, Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
}

.hero-auto *,
.hero-auto *::before,
.hero-auto *::after {
	box-sizing: border-box;
}

/* Background */
.hero-auto__bg {
	position: absolute;
	inset: 0;
	background-image: var(--hero-bg-image);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	z-index: 0;
}

.hero-auto__overlay {
	position: absolute;
	inset: 0;
	background: var(--hero-overlay, rgba(15, 23, 42, 0.6));
	mix-blend-mode: multiply;
	z-index: 1;
}

/* Extra donkere scrim bovenop voor leesbare koptekst */
.hero-auto__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		rgba(15, 23, 42, 0.82) 0%,
		rgba(15, 23, 42, 0.55) 38%,
		rgba(15, 23, 42, 0.35) 65%,
		rgba(15, 23, 42, 0.5) 100%
	);
	z-index: 1;
	pointer-events: none;
}

/* Content */
.hero-auto__inner {
	position: relative;
	z-index: 2;
	width: min(1180px, 94vw);
	min-height: calc(var(--hero-height) + var(--hero-nav-offset));
	margin: 0 auto;
	padding: calc(clamp(3rem, 8vh, 5.5rem) + var(--hero-nav-offset) + 0.75rem) 0 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.hero-auto__intro {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
	padding-bottom: 0.5rem;
}

.hero-auto__header {
	position: relative;
	text-align: center;
	margin-bottom: 0;
	padding: 0 0.5rem;
	width: 100%;
}

/* USP-badges tussen kop en module */
.hero-auto__highlights {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.625rem 0.875rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hero-auto__highlights li {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 1rem;
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 9999px;
	color: #f8fafc;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero-auto__highlights-icon {
	display: inline-flex;
	width: 1rem;
	height: 1rem;
	color: var(--hero-blue-accent);
	flex-shrink: 0;
}

.hero-auto__highlights-icon svg {
	width: 100%;
	height: 100%;
}

/* Lokale scrim direct achter koptekst */
.hero-auto__header::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(900px, 110%);
	height: 140%;
	background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.45) 0%, transparent 72%);
	pointer-events: none;
	z-index: -1;
}

/* Thema-proof: forceer witte koptekst */
.hero-auto h1.hero-auto__title,
.hero-auto .hero-auto__title {
	margin: 0 0 1rem !important;
	font-family: inherit !important;
	font-size: clamp(2rem, 5vw, 3.75rem) !important;
	font-weight: 800 !important;
	line-height: 1.1 !important;
	color: #ffffff !important;
	text-shadow:
		0 2px 4px rgba(0, 0, 0, 0.8),
		0 4px 24px rgba(0, 0, 0, 0.65),
		0 0 40px rgba(0, 0, 0, 0.35) !important;
	letter-spacing: -0.02em;
	-webkit-text-fill-color: #ffffff !important;
}

.hero-auto .hero-auto__title-accent {
	color: var(--hero-blue-accent) !important;
	-webkit-text-fill-color: var(--hero-blue-accent) !important;
	text-shadow:
		0 2px 4px rgba(0, 0, 0, 0.85),
		0 0 20px rgba(96, 165, 250, 0.45) !important;
}

.hero-auto p.hero-auto__subtitle,
.hero-auto .hero-auto__subtitle {
	margin: 0 auto !important;
	max-width: 42rem;
	font-family: inherit !important;
	font-size: clamp(1rem, 2.2vw, 1.25rem) !important;
	line-height: 1.55 !important;
	color: #e2e8f0 !important;
	-webkit-text-fill-color: #e2e8f0 !important;
	text-shadow:
		0 1px 3px rgba(0, 0, 0, 0.9),
		0 2px 16px rgba(0, 0, 0, 0.6) !important;
}

/* Witte module — overlapt onderkant hero */
.hero-auto__module {
	position: relative;
	z-index: 5;
	flex-shrink: 0;
	width: 100%;
	background: #fff;
	border-radius: 1.125rem;
	box-shadow:
		0 10px 28px rgba(15, 23, 42, 0.1),
		0 4px 12px rgba(15, 23, 42, 0.06),
		0 0 0 1px rgba(15, 23, 42, 0.05);
	overflow: hidden;
	margin-top: -0.5rem;
	transform: translateY(var(--hero-module-shift));
}

/* Tabs */
.hero-auto__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-bottom: 1px solid #e2e8f0;
}

.hero-auto__tab {
	appearance: none;
	border: none;
	background: #f8fafc;
	color: var(--hero-slate-600);
	font-size: 1rem;
	font-weight: 600;
	padding: 0.875rem 1.25rem;
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease;
	position: relative;
}

.hero-auto__tab:hover {
	color: var(--hero-slate-800);
	background: #f1f5f9;
}

.hero-auto__tab.is-active {
	background: #fff;
	color: var(--hero-blue);
}

.hero-auto__tab.is-active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: var(--hero-blue);
}

.hero-auto__tab:focus-visible {
	outline: 2px solid var(--hero-blue);
	outline-offset: -2px;
}

/* Inhoud — shortcode leeft hier */
.hero-auto__content {
	position: relative;
	padding: clamp(1.25rem, 2.5vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
	display: grid;
	grid-template-columns: 1fr;
	align-items: stretch;
}

.hero-auto__panel-intro {
	margin: 0 0 1rem;
	color: var(--hero-slate-800);
	font-size: clamp(0.95rem, 2vw, 1.05rem);
	font-weight: 600;
	line-height: 1.45;
	text-align: center;
	max-width: 40rem;
	margin-left: auto;
	margin-right: auto;
}

.hero-auto__panel {
	grid-area: 1 / 1;
	display: flex;
	flex-direction: column;
	align-self: stretch;
	width: 100%;
	min-height: 100%;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition:
		opacity 0.28s ease,
		transform 0.32s ease,
		visibility 0.28s ease;
	pointer-events: none;
	z-index: 0;
}

.hero-auto__panel.is-active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
	z-index: 2;
}

.hero-auto__panel.is-leaving {
	opacity: 0;
	transform: translateY(-4px);
	z-index: 1;
}

.hero-auto__panel[data-panel="sell"] .hero-auto__trust {
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.hero-auto__panel {
		transition: none;
	}
}

.hero-auto__shortcode {
	width: 100%;
}

.hero-auto__shortcode form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.875rem 1rem;
}

.hero-auto__shortcode label {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0;
}

.hero-auto__shortcode > *:first-child {
	margin-top: 0;
}

.hero-auto__shortcode > *:last-child {
	margin-bottom: 0;
}

/* Verwijder dubbele boxen van shortcode-plugins (maar niet onze kentekenplaat) */
.hero-auto__shortcode > div:not(.hero-auto__plate),
.hero-auto__shortcode > form,
.hero-auto__shortcode > section {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
}

/* Verkopen-tab: shortcode inhoud centreren */
.hero-auto__shortcode--sell {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	text-align: center;
	width: 100%;
	margin-bottom: 0.25rem;
}

.hero-auto__shortcode--sell > * {
	width: 100% !important;
	max-width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	text-align: center !important;
}

.hero-auto__shortcode--sell form,
.hero-auto__shortcode--sell > div:not(.hero-auto__plate),
.hero-auto__shortcode--sell > section,
.hero-auto__shortcode--sell > article {
	display: flex !important;
	flex-wrap: wrap;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.75rem;
	width: 100% !important;
	max-width: 100% !important;
	margin-left: auto !important;
	margin-right: auto !important;
	float: none !important;
}

/* Shortcode-input die door JS is omgebouwd tot NL-kentekenplaat */
.hero-auto__shortcode .hero-auto__plate {
	flex: 1 1 240px;
	width: auto !important;
	min-width: min(100%, 240px);
	max-width: 26rem;
}

/* Rij met kentekenplaat + zoekknop (door JS opgebouwd) */
.hero-auto__plate-row {
	display: flex !important;
	flex-wrap: nowrap;
	align-items: stretch !important;
	justify-content: center !important;
	gap: 0.75rem;
	width: 100% !important;
	max-width: 32rem;
	margin-left: auto !important;
	margin-right: auto !important;
}

.hero-auto__plate-row .hero-auto__plate,
.hero-auto__shortcode .hero-auto__plate-row .hero-auto__plate {
	flex: 1 1 auto !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: 100% !important;
}

.hero-auto__plate-row button,
.hero-auto__plate-row input[type="submit"],
.hero-auto__plate-row a {
	flex: 0 0 auto !important;
	width: auto !important;
	min-width: 3.5rem;
	margin: 0 !important;
}

.hero-auto__shortcode .hero-auto__plate .hero-auto__plate-input,
.hero-auto__shortcode .hero-auto__plate input {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
	flex: 1 1 auto !important;
	width: 100% !important;
	min-width: 0 !important;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
	border-radius: 0 !important;
	margin: 0 !important;
	height: auto !important;
	text-align: center !important;
	font-size: clamp(1.25rem, 4vw, 1.75rem) !important;
	font-weight: 800 !important;
	font-family: inherit !important;
	color: #0f172a !important;
	-webkit-text-fill-color: #0f172a !important;
	letter-spacing: 0.12em !important;
	text-transform: uppercase !important;
	padding: 0.75rem 0.5rem !important;
}

.hero-auto__shortcode .hero-auto__plate input::placeholder {
	color: rgba(15, 23, 42, 0.35) !important;
	-webkit-text-fill-color: rgba(15, 23, 42, 0.35) !important;
	letter-spacing: 0.12em !important;
	font-weight: 800 !important;
}

.hero-auto__shortcode--sell button[type="submit"],
.hero-auto__shortcode--sell input[type="submit"],
.hero-auto__shortcode--sell button[class*="zoek"],
.hero-auto__shortcode--sell button[class*="search"],
.hero-auto__shortcode--sell a[class*="zoek"],
.hero-auto__shortcode--sell a[class*="search"] {
	flex: 0 0 auto !important;
}

/* Panel layout — trust signals onderaan */
.hero-auto__buy,
.hero-auto__sell {
	display: flex;
	flex-direction: column;
	flex: 1;
	min-height: 100%;
	width: 100%;
}

.hero-auto__panel-body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

/* Buy tab */
.hero-auto__buy-form {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

.hero-auto__buy-action {
	width: 100%;
}

.hero-auto__cta--fallback {
	margin-top: 0.25rem;
}

.hero-auto__cta--fallback[hidden] {
	display: none !important;
}

.hero-auto__fields {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.875rem 1rem;
}

.hero-auto__field {
	position: relative;
	display: flex;
	align-items: center;
}

.hero-auto__field-icon {
	position: absolute;
	left: 0.875rem;
	width: 1.125rem;
	height: 1.125rem;
	color: #94a3b8;
	pointer-events: none;
	z-index: 1;
}

.hero-auto__field-icon svg {
	width: 100%;
	height: 100%;
}

.hero-auto__field select {
	width: 100%;
	appearance: none;
	border: 1px solid #e2e8f0;
	background-color: #f8fafc;
	color: var(--hero-slate-800);
	border-radius: 0.75rem;
	padding: 0.875rem 2rem 0.875rem 2.5rem;
	font-size: 0.95rem;
	font-weight: 500;
	cursor: pointer;
	transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.875rem center;
}

.hero-auto__field select:focus {
	outline: none;
	border-color: var(--hero-blue);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* CTA button */
.hero-auto__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	width: 100%;
	border: none;
	border-radius: 0.75rem;
	padding: 1rem 1.5rem;
	background: var(--hero-blue);
	color: #fff;
	font-size: 1.05rem;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 10px 30px var(--hero-blue-glow);
	transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.hero-auto__cta svg {
	width: 1.25rem;
	height: 1.25rem;
	flex-shrink: 0;
}

.hero-auto__cta:hover {
	background: #1d4ed8;
	box-shadow: 0 14px 36px var(--hero-blue-glow);
	transform: translateY(-1px);
}

.hero-auto__cta:active {
	transform: translateY(0);
}

.hero-auto__cta--inline {
	width: auto;
	min-width: 11rem;
	white-space: nowrap;
	padding: 1rem 1.75rem;
}

/* Sell tab — 50/50 kolommen */
.hero-auto__sell-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(1rem, 2.5vw, 2rem);
	align-items: center;
}

.hero-auto__sell-copy {
	text-align: left;
}

.hero-auto__sell-heading {
	margin: 0 0 0.5rem !important;
	font-family: inherit !important;
	font-size: clamp(1.15rem, 2.4vw, 1.35rem) !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: var(--hero-slate-800) !important;
	-webkit-text-fill-color: var(--hero-slate-800) !important;
}

.hero-auto__sell-subtext {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--hero-slate-600);
}

.hero-auto__sell-action {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	width: 100%;
}

.hero-auto__sell-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin: 0;
}

/* Dutch license plate */
.hero-auto__plate {
	display: flex;
	align-items: stretch;
	border: 3px solid var(--hero-plate-border);
	border-radius: 0.375rem;
	overflow: hidden;
	background: var(--hero-plate-yellow);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	min-width: min(100%, 280px);
}

.hero-auto__plate-nl {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	background: var(--hero-nl-blue);
	color: #fff;
	flex-shrink: 0;
	padding: 0.25rem 0;
}

.hero-auto__plate-nl-text {
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	line-height: 1;
}

.hero-auto__plate-stars {
	font-size: 0.28rem;
	line-height: 1.1;
	letter-spacing: -0.05em;
	opacity: 0.9;
	max-width: 1.5rem;
	word-break: break-all;
	text-align: center;
}

.hero-auto__plate-input {
	flex: 1;
	border: none;
	background: transparent;
	text-align: center;
	font-size: clamp(1.25rem, 4vw, 1.75rem);
	font-weight: 800;
	color: #0f172a;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0.75rem 0.5rem;
	min-width: 0;
}

.hero-auto__plate-input:focus {
	outline: none;
}

.hero-auto__plate-input::placeholder {
	color: rgba(15, 23, 42, 0.35);
	letter-spacing: 0.12em;
}

/* USP checkmarks */
.hero-auto__trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5rem 1.25rem;
	margin: auto 0 0;
	padding: 0.75rem 0 0;
	list-style: none;
	width: 100%;
	border-top: 1px solid #e2e8f0;
	flex-shrink: 0;
}

.hero-auto__trust li {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--hero-slate-800);
	line-height: 1.3;
}

.hero-auto__trust-check {
	display: inline-flex;
	flex-shrink: 0;
	width: 1.125rem;
	height: 1.125rem;
	color: var(--hero-green);
}

.hero-auto__trust-check svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* Floating contact buttons */
.hero-auto__float {
	position: fixed;
	right: clamp(0.75rem, 2vw, 1.5rem);
	top: 50%;
	transform: translateY(-50%);
	z-index: 100;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.hero-auto__float-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.25rem;
	height: 3.25rem;
	border-radius: 50%;
	text-decoration: none;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s, box-shadow 0.2s;
}

.hero-auto__float-btn svg {
	width: 1.35rem;
	height: 1.35rem;
}

.hero-auto__float-btn:hover {
	transform: scale(1.06);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.hero-auto__float-btn--light {
	background: #fff;
	color: var(--hero-slate-800);
}

.hero-auto__float-btn--whatsapp {
	background: var(--hero-green);
	color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
	.hero-auto {
		--hero-nav-offset-fallback: 5.5rem;
		/* Kleinere verschuiving = minder loze ruimte tussen subtekst en module */
		--hero-module-shift: 20%;
		--hero-overlap: clamp(3.5rem, 14vw, 5.5rem);
	}

	/* Meer lucht boven de titel */
	.hero-auto__inner {
		padding-top: calc(max(var(--hero-nav-offset, 0px), var(--hero-nav-offset-fallback)) + 2rem);
	}

	/* Minder lucht onder titel/subtekst */
	.hero-auto__intro {
		padding-bottom: 0.25rem;
		gap: 0.5rem;
	}

	.hero-auto h1.hero-auto__title,
	.hero-auto .hero-auto__title {
		margin-bottom: 0.625rem !important;
	}

	.hero-auto__fields {
		grid-template-columns: 1fr;
	}

	.hero-auto__sell-grid {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.hero-auto__sell-copy {
		text-align: center;
	}

	.hero-auto__sell-row {
		flex-direction: column;
		align-items: stretch;
	}

	/* Ingebouwde module: plaat op volle breedte, knop eronder */
	.hero-auto__plate,
	.hero-auto__shortcode .hero-auto__plate {
		flex: 1 1 100%;
		width: 100% !important;
		min-width: 0;
		max-width: 100%;
	}

	.hero-auto__shortcode--sell form,
	.hero-auto__shortcode--sell > div:not(.hero-auto__plate),
	.hero-auto__shortcode--sell > section,
	.hero-auto__shortcode--sell > article {
		flex-direction: column;
		align-items: stretch !important;
	}

	.hero-auto__shortcode--sell button[type="submit"],
	.hero-auto__shortcode--sell input[type="submit"],
	.hero-auto__shortcode--sell button[class*="zoek"],
	.hero-auto__shortcode--sell button[class*="search"],
	.hero-auto__shortcode--sell a[class*="zoek"],
	.hero-auto__shortcode--sell a[class*="search"] {
		flex: 1 1 auto !important;
		width: 100% !important;
	}

	/* Plaat-rij (shortcode): plaat breed, zoekknop compact ernaast */
	.hero-auto__plate-row {
		flex-direction: row;
		flex-wrap: nowrap;
	}

	.hero-auto__plate-row .hero-auto__plate,
	.hero-auto__shortcode .hero-auto__plate-row .hero-auto__plate {
		flex: 1 1 auto !important;
		width: auto !important;
		min-width: 0 !important;
	}

	.hero-auto__plate-row button,
	.hero-auto__plate-row button[type="submit"],
	.hero-auto__plate-row input[type="submit"],
	.hero-auto__plate-row a {
		flex: 0 0 auto !important;
		width: auto !important;
		min-width: 3.5rem;
	}

	.hero-auto__cta--inline {
		width: 100%;
	}

	.hero-auto__float {
		top: auto;
		bottom: 1.25rem;
		right: 1rem;
		transform: none;
		flex-direction: row;
	}

	.hero-auto__float-btn {
		width: 2.75rem;
		height: 2.75rem;
	}

	.hero-auto__float-btn svg {
		width: 1.15rem;
		height: 1.15rem;
	}
}

@media (max-width: 480px) {
	.hero-auto__trust {
		flex-direction: column;
		align-items: center;
	}
}
