/*
 * Vinnbilar site shell (owner: site-shell builder).
 * Ported from theme einfalt-vinnbilar: theme.json (tokens, element styles), assets/css/site.css
 * (base, header, footer, hero, buttons, forms, front page) and plugin einfalt-vinnbilar-core
 * (assets/inquiry.css, blocks/contact-page/style.css). Vehicle, leasing and tyre rules live
 * in vehicles.css and tyres.css. System font stack only (no web fonts).
 *
 * Direction: a light, calm showroom. White pages, one dark band at the top, red only as a signature
 * (the eyebrow line, the active-nav underline, badges, the focus ring). One shell (.vinn-shell: one max
 * width, one gutter, one left edge) for the header, every hero, section and the footer. One button system.
 */

/* ── Tokens ─────────────────────────────────────────────────────────── */
:root {
	/* Palette */
	--vinn-dark: #0e0e12;
	--vinn-dark-2: #26262d; /* hover on dark buttons */
	--vinn-red: #c0392b;
	--vinn-red-dark: #9f2f24;
	--vinn-red-soft: rgba(192, 57, 43, 0.1);
	--vinn-canvas: #fff;
	--vinn-surface: #eeeff2;
	--vinn-surface-soft: #f5f5f7;
	--vinn-studio-top: #f7f7f9; /* "Vinnbilar studio" backdrop: top */
	--vinn-studio-backdrop: #eeeff2; /* "Vinnbilar studio" backdrop: card and gallery media sit on this colour */
	--vinn-line: #e3e4e7;
	--vinn-line-strong: #c9cacd;
	--vinn-contrast-high: #535457;
	--vinn-contrast-medium: #6b6d70;
	--vinn-contrast-low: #d8d8db;
	--vinn-success: #197e10;
	--vinn-error: #cc1922;

	/* Type: system stack, one scale */
	--vinn-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	--vinn-fs-small: 0.875rem;
	--vinn-fs-body: clamp(1rem, 1rem + (100vw - 20rem) * 0.0017857, 1.125rem);
	--vinn-fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
	--vinn-fs-h3: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
	--vinn-fs-h2: clamp(1.75rem, 1.35rem + 1.6vw, 2.625rem);
	--vinn-fs-h1: clamp(2.125rem, 1.5rem + 2.6vw, 3.5rem);
	--vinn-fs-display: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);

	/* Spacing (theme.json scale, kept for the other stylesheets) */
	--vinn-space-20: 0.25rem;
	--vinn-space-30: 0.5rem;
	--vinn-space-40: clamp(0.75rem, 0.5vw + 0.625rem, 1rem);
	--vinn-space-50: clamp(1rem, 1.25vw + 0.75rem, 2.25rem);
	--vinn-space-60: clamp(2rem, 2.75vw + 1.4375rem, 4.75rem);
	--vinn-space-70: clamp(3rem, 3vw + 2.375rem, 6rem);
	--vinn-space-80: clamp(5rem, 7.5vw + 3.5rem, 12.5rem);
	--vinn-gap: var(--vinn-space-40);
	--vinn-content-size: 760px;
	--vinn-wide-size: 1440px;

	/* One shell: 80rem max, one gutter (16px on phones, 48px on desktop) */
	--vinn-page-gutter: clamp(1rem, 4vw, 3rem);
	--vinn-gutter: var(--vinn-page-gutter);
	--vinn-shell-max: 80rem;
	--vinn-shell: min(100% - (2 * var(--vinn-page-gutter)), var(--vinn-shell-max));

	/* Shapes, shadows, motion */
	--vinn-radius-sm: 0.375rem;
	--vinn-radius-md: 0.625rem;
	--vinn-radius-lg: 0.875rem;
	--vinn-radius-xl: 1.25rem;
	--vinn-shadow-card: 0 1px 2px rgba(14, 14, 18, 0.04), 0 10px 30px rgba(14, 14, 18, 0.06);
	--vinn-shadow-raised: 0 18px 56px rgba(14, 14, 18, 0.16);
	--vinn-ease: cubic-bezier(0.2, 0.7, 0.3, 1);
	--vinn-transition: 180ms cubic-bezier(0.25, 0.1, 0.25, 1);

	/* Header and buttons */
	--vinn-header-height: 4.5rem;
	--vinn-button-h: 3rem;
	--vinn-button-h-lg: 3.5rem;
	--vinn-chip-bg: rgba(255, 255, 255, 0.62);
	--vinn-chip-bg-strong: rgba(255, 255, 255, 0.94);
	--vinn-chip-text: #0e0e12;
}

/* ── Base ───────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--vinn-header-height) + 1rem);
}

body {
	background: var(--vinn-canvas);
	color: var(--vinn-dark);
	font-family: var(--vinn-font);
	font-size: var(--vinn-fs-body);
	font-weight: 400;
	line-height: 1.55;
	margin: 0;
	min-width: 20rem;
	overflow-x: clip;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img {
	height: auto;
	max-width: 100%;
}

button,
input,
select,
textarea {
	font: inherit;
}

button,
select {
	cursor: pointer;
}

:where(a) {
	color: var(--vinn-dark);
	text-decoration: none;
}

:where(a:hover) {
	color: var(--vinn-red);
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 3px solid var(--vinn-red);
	outline-offset: 3px;
}

::selection {
	background: var(--vinn-dark);
	color: var(--vinn-canvas);
}

h1,
h2,
h3 {
	text-wrap: balance;
}

h1 {
	font-size: var(--vinn-fs-h1);
	font-weight: 500;
	letter-spacing: -0.03em;
	line-height: 1.04;
}

h2 {
	font-size: var(--vinn-fs-h2);
	font-weight: 500;
	letter-spacing: -0.025em;
	line-height: 1.1;
}

h3 {
	font-size: var(--vinn-fs-h3);
	font-weight: 600;
	letter-spacing: -0.015em;
	line-height: 1.2;
}

address {
	font-style: normal;
}

.vinn-num {
	font-variant-numeric: tabular-nums;
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

/* body raises specificity so a stylesheet that restates .screen-reader-text (also with the old clip) cannot
   hide the focused link. */
body .screen-reader-text:focus,
body .skip-link.screen-reader-text:focus {
	background: var(--vinn-canvas);
	border-radius: var(--vinn-radius-md);
	box-shadow: var(--vinn-shadow-raised);
	clip: auto;
	clip-path: none;
	color: var(--vinn-dark);
	display: block;
	font-weight: 700;
	height: auto;
	left: 1rem;
	margin: 0;
	overflow: visible;
	padding: 0.75rem 1rem;
	top: 1rem;
	width: auto;
	z-index: 100000;
}

/* ── Layout helpers ─────────────────────────────────────────────────── */
.vinn-shell {
	margin-inline: auto;
	width: var(--vinn-shell);
}

/* Vertical rhythm of WordPress flow groups: children touch, then one block gap between them. */
:where(.vinn-stack) > * {
	margin-block: 0;
}

:where(.vinn-stack) > * + * {
	margin-block-start: var(--vinn-gap);
}

.vinn-section {
	padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.vinn-section--compact {
	padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.vinn-surface {
	background: var(--vinn-surface-soft);
}

.vinn-eyebrow {
	align-items: center;
	color: var(--vinn-contrast-high);
	display: flex;
	font-size: 0.75rem;
	font-weight: 600;
	gap: 0.75rem;
	letter-spacing: 0.12em;
	line-height: 1.3;
	margin: 0 0 1rem;
	text-transform: uppercase;
}

.vinn-eyebrow::before {
	background: var(--vinn-red);
	content: "";
	display: block;
	flex: none;
	height: 2px;
	width: 1.75rem;
}

.vinn-lead {
	color: var(--vinn-contrast-high);
	font-size: var(--vinn-fs-lead);
	line-height: 1.5;
}

.vinn-muted {
	color: var(--vinn-contrast-medium);
}

.vinn-card {
	background: var(--vinn-canvas);
	border: 1px solid var(--vinn-line);
	border-radius: var(--vinn-radius-lg);
	box-shadow: var(--vinn-shadow-card);
	overflow: hidden;
}

.vinn-arrow {
	display: inline-block;
	margin-left: 0.35em;
	transition: transform 240ms var(--vinn-ease);
}

/* ── Buttons: one height, one border, one text size ─────────────────── */
.vinn-buttons {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.vinn-buttons--center {
	justify-content: center;
}

.vinn-button,
.wp-element-button {
	align-items: center;
	background-color: var(--vinn-dark);
	border: 1px solid transparent;
	border-radius: var(--vinn-radius-md);
	color: var(--vinn-canvas);
	cursor: pointer;
	display: inline-flex;
	font-family: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	gap: 0.5rem;
	justify-content: center;
	letter-spacing: 0.005em;
	line-height: 1.2;
	min-height: var(--vinn-button-h);
	padding: 0.625rem 1.375rem;
	text-align: center;
	text-decoration: none;
	transition: background-color var(--vinn-transition), border-color var(--vinn-transition), color var(--vinn-transition);
	word-break: break-word;
}

.vinn-button:hover,
.wp-element-button:hover {
	background-color: var(--vinn-dark-2);
	color: var(--vinn-canvas);
}

.vinn-button svg,
.wp-element-button svg {
	flex: none;
	height: 1.125rem;
	width: 1.125rem;
}

.vinn-button.vinn-button--light {
	background-color: var(--vinn-canvas);
	color: var(--vinn-dark);
}

.vinn-button.vinn-button--light:hover {
	background-color: #e9eaed;
	color: var(--vinn-dark);
}

.vinn-button.vinn-button--outline {
	background-color: transparent;
	border-color: rgba(14, 14, 18, 0.28);
	border-color: color-mix(in srgb, currentColor 30%, transparent);
	color: inherit;
}

.vinn-button.vinn-button--outline:hover {
	background-color: rgba(14, 14, 18, 0.04);
	background-color: color-mix(in srgb, currentColor 7%, transparent);
	border-color: currentColor;
	color: inherit;
}

.vinn-button.vinn-button--lg {
	font-size: 1rem;
	min-height: var(--vinn-button-h-lg);
	padding-inline: 1.75rem;
}

.vinn-button.vinn-button--block {
	width: 100%;
}

/* ── Header ─────────────────────────────────────────────────────────── */
/* Light pages: a white bar that stays at the top. Pages with a dark hero (overlayHeader): a transparent
   bar with light text over the hero, dark glass once scrolled. The background lives on ::before, so the
   bar itself never gets a backdrop-filter (that would trap the fixed full-screen menu inside it). */
.vinn-site-header {
	--vinn-hdr-fg: var(--vinn-dark);
	--vinn-hdr-muted: rgba(14, 14, 18, 0.7);
	--vinn-hdr-line: rgba(14, 14, 18, 0.16);
	--vinn-hdr-hover: rgba(14, 14, 18, 0.05);
	color: var(--vinn-hdr-fg);
	position: sticky;
	top: 0;
	width: 100%;
	z-index: 100;
}

.vinn-site-header::before {
	/* Nearly opaque, so dark content scrolling under the bar does not show through as smudges. */
	background: rgba(255, 255, 255, 0.97);
	background-origin: border-box;
	-webkit-backdrop-filter: blur(16px) saturate(1.4);
	backdrop-filter: blur(16px) saturate(1.4);
	border-bottom: 1px solid var(--vinn-line);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	transition: background-color 240ms var(--vinn-ease), border-color 240ms var(--vinn-ease);
	z-index: 0;
}

.einfalt-vinnbilar--overlay-header .vinn-site-header {
	--vinn-hdr-fg: var(--vinn-canvas);
	--vinn-hdr-muted: rgba(255, 255, 255, 0.8);
	--vinn-hdr-line: rgba(255, 255, 255, 0.28);
	--vinn-hdr-hover: rgba(255, 255, 255, 0.1);
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
}

.einfalt-vinnbilar--overlay-header .vinn-site-header::before {
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	background-color: transparent;
	background-image: linear-gradient(rgba(14, 14, 18, 0.5), rgba(14, 14, 18, 0));
	border-bottom-color: transparent;
}

.einfalt-vinnbilar--overlay-header.einfalt-vinnbilar--scrolled .vinn-site-header::before {
	-webkit-backdrop-filter: blur(18px) saturate(1.2);
	backdrop-filter: blur(18px) saturate(1.2);
	background-color: rgba(14, 14, 18, 0.95);
	background-image: none;
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

.vinn-header-inner {
	align-items: center;
	column-gap: 1.5rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	min-height: var(--vinn-header-height);
	position: relative;
	z-index: 1;
}

.vinn-header-brand {
	align-items: center;
	display: flex;
	grid-column: 1;
	grid-row: 1;
	justify-self: start;
	min-width: 0;
}

.vinn-header-brand a {
	display: block;
	line-height: 0;
}

.vinn-header-brand img {
	display: block;
	height: 2.75rem;
	width: auto;
}

.vinn-header-nav {
	grid-column: 2;
	grid-row: 1;
	justify-self: center;
	min-width: 0;
}

.vinn-nav {
	align-items: center;
	display: flex;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.vinn-nav__item {
	flex: 0 0 auto;
	margin: 0;
}

.vinn-nav__link {
	align-items: center;
	border-radius: var(--vinn-radius-sm);
	color: var(--vinn-hdr-muted);
	display: inline-flex;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1;
	min-height: 2.75rem;
	padding: 0 0.8rem;
	position: relative;
	text-decoration: none;
	transition: color var(--vinn-transition);
	white-space: nowrap;
}

.vinn-nav__link::after {
	background: var(--vinn-red);
	border-radius: 2px;
	bottom: 0.45rem;
	content: "";
	height: 2px;
	left: 0.8rem;
	position: absolute;
	right: 0.8rem;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 450ms var(--vinn-ease);
}

.vinn-nav__link:hover,
.vinn-nav__link:focus-visible,
.current-menu-item > .vinn-nav__link {
	color: var(--vinn-hdr-fg);
}

.current-menu-item > .vinn-nav__link::after {
	transform: scaleX(1);
}

.vinn-header-actions {
	align-items: center;
	display: flex;
	gap: 0.5rem;
	grid-column: 3;
	grid-row: 1;
	justify-content: flex-end;
	justify-self: end;
}

.vinn-header-action {
	align-items: center;
	color: var(--vinn-hdr-fg);
	display: inline-flex;
	font-size: 0.875rem;
	font-weight: 600;
	gap: 0.5rem;
	position: relative;
	text-decoration: none;
	white-space: nowrap;
}

.vinn-header-action:hover {
	color: var(--vinn-hdr-fg);
}

.vinn-header-action svg {
	display: block;
	flex: 0 0 auto;
	height: 1.125rem;
	width: 1.125rem;
}

/* Phone: a number pill on desktop, a round button on phones. */
.vinn-header-call {
	border: 1px solid var(--vinn-hdr-line);
	border-radius: 999px;
	font-size: 0.9375rem;
	font-variant-numeric: tabular-nums;
	height: 2.75rem;
	letter-spacing: 0.01em;
	padding: 0 1.1rem 0 0.95rem;
	transition: background-color var(--vinn-transition), border-color var(--vinn-transition);
}

.vinn-header-call:hover {
	background: var(--vinn-hdr-hover);
	border-color: var(--vinn-hdr-fg);
}

/* Cart chip (tyres): only while the cart holds something. */
.vinn-header-chip {
	align-items: center;
	border-radius: 999px;
	color: var(--vinn-hdr-fg);
	display: inline-flex;
	justify-content: center;
}

.vinn-header-chip--circle {
	border: 1px solid var(--vinn-hdr-line);
	flex: 0 0 auto;
	height: 2.75rem;
	padding: 0;
	width: 2.75rem;
}

.vinn-header-chip--circle:hover {
	background: var(--vinn-hdr-hover);
}

.vinn-header-chip--circle .vinn-header-action__label {
	display: none;
}

.vinn-cart-link.is-empty {
	display: none;
}

.vinn-cart-count {
	align-items: center;
	background: var(--vinn-red);
	border-radius: 999px;
	color: var(--vinn-canvas);
	display: inline-flex;
	font-size: 0.6875rem;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	justify-content: center;
	line-height: 1;
	min-width: 1.15rem;
	padding: 0.2rem 0.35rem;
}

.vinn-cart-count.is-empty {
	display: none;
}

.vinn-header-chip--circle .vinn-cart-count {
	position: absolute;
	right: -0.2rem;
	top: -0.2rem;
}

.vinn-menu-toggle,
.vinn-menu-close {
	align-items: center;
	background: none;
	border: 0;
	border-radius: 999px;
	color: var(--vinn-hdr-fg);
	display: none;
	height: 2.75rem;
	justify-content: center;
	padding: 0;
	width: 2.75rem;
}

.vinn-menu-toggle svg,
.vinn-menu-close svg {
	fill: currentColor;
	height: 1.5rem;
	width: 1.5rem;
}

@media (min-width: 1024px) {
	.vinn-menu,
	.vinn-menu__content {
		display: contents;
	}

	.vinn-menu-toggle,
	.vinn-menu-close,
	.vinn-header-overlay-tools {
		display: none !important;
	}
}

/* Phones and tablets: logo, call, cart, menu; the menu is a full-screen dark sheet with the contacts. */
@media (max-width: 1023px) {
	:root {
		--vinn-header-height: 4rem;
	}

	.vinn-site-header {
		padding-left: env(safe-area-inset-left, 0px);
		padding-right: env(safe-area-inset-right, 0px);
	}

	.einfalt-vinnbilar--overlay-header .vinn-site-header {
		padding-top: env(safe-area-inset-top, 0px);
	}

	.vinn-header-inner {
		column-gap: 0.5rem;
		display: flex;
	}

	.vinn-header-brand {
		margin-right: auto;
		order: 1;
	}

	.vinn-header-brand img {
		height: 2.5rem;
	}

	.vinn-header-actions {
		order: 2;
	}

	.vinn-header-nav {
		order: 3;
	}

	.vinn-header-call {
		height: 2.75rem;
		justify-content: center;
		padding: 0;
		width: 2.75rem;
	}

	.vinn-header-call__number {
		display: none;
	}

	.vinn-menu-toggle {
		display: flex;
		margin-right: -0.5rem;
	}

	.vinn-menu {
		display: none;
	}

	.vinn-menu.is-open {
		-webkit-overflow-scrolling: touch;
		background: var(--vinn-dark);
		color: var(--vinn-canvas);
		display: flex;
		flex-direction: column;
		height: 100vh;
		height: 100dvh;
		inset: 0;
		overflow: auto;
		position: fixed;
		width: 100%;
		z-index: 2000;
	}

	.vinn-menu__content {
		display: flex;
		flex: 1 1 auto;
		flex-direction: column;
		margin-inline: auto;
		padding: max(5.25rem, calc(env(safe-area-inset-top, 0px) + 4.5rem)) 0 max(2rem, env(safe-area-inset-bottom, 0px));
		width: var(--vinn-shell);
	}

	.vinn-menu .vinn-nav {
		align-items: stretch;
		flex-direction: column;
		gap: 0;
		width: 100%;
	}

	.vinn-menu .vinn-nav__link,
	.vinn-menu .vinn-nav__link:hover,
	.vinn-menu .vinn-nav__link:focus-visible {
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		border-radius: 0;
		color: var(--vinn-canvas);
		display: flex;
		font-size: clamp(1.75rem, 8vw, 2.5rem);
		font-weight: 500;
		letter-spacing: -0.03em;
		line-height: 1;
		min-height: 0;
		padding: 0.85rem 0;
	}

	.vinn-menu .vinn-nav__link::after {
		display: none;
	}

	.vinn-menu .current-menu-item > .vinn-nav__link::before {
		background: var(--vinn-red);
		border-radius: 50%;
		content: "";
		height: 0.5rem;
		margin-right: 0.75rem;
		width: 0.5rem;
	}

	.vinn-menu .vinn-nav__link:focus-visible {
		outline: 3px solid var(--vinn-red);
		outline-offset: 4px;
	}

	.vinn-menu-close {
		background: rgba(255, 255, 255, 0.1);
		color: var(--vinn-canvas);
		display: flex;
		position: absolute;
		right: max(var(--vinn-page-gutter), env(safe-area-inset-right, 0px));
		top: max(0.625rem, env(safe-area-inset-top, 0px));
		z-index: 3;
	}

	.vinn-header-overlay-tools {
		display: flex;
		flex-direction: column;
		gap: 1.25rem;
		margin-top: 2rem;
	}

	.vinn-menu-actions {
		display: grid;
		gap: 0.625rem;
	}

	.vinn-menu-actions .vinn-button {
		min-height: var(--vinn-button-h-lg);
		width: 100%;
	}

	.vinn-menu-actions .vinn-button--outline {
		color: var(--vinn-canvas);
	}

	.vinn-menu-contact {
		display: grid;
		list-style: none;
		margin: 0;
		padding: 0;
	}

	.vinn-menu-contact a,
	.vinn-header-overlay-tools .vinn-header-action {
		color: rgba(255, 255, 255, 0.78);
		font-size: 1rem;
		font-weight: 500;
	}

	/* 44px tap targets, like every other control in the menu. */
	.vinn-menu-contact a {
		align-items: center;
		display: inline-flex;
		min-height: 2.75rem;
	}

	.vinn-menu-contact a:hover,
	.vinn-header-overlay-tools .vinn-header-action:hover {
		color: var(--vinn-canvas);
	}

	.vinn-header-overlay-tools .vinn-header-chip {
		align-self: flex-start;
		gap: 0.5rem;
	}

	html.einfalt-vinnbilar--menu-open,
	html.einfalt-vinnbilar--menu-open body {
		overflow: hidden;
	}

	html.einfalt-vinnbilar--menu-open .vinn-header-nav {
		z-index: 3;
	}

	html.einfalt-vinnbilar--menu-open .vinn-site-header::before,
	html.einfalt-vinnbilar--menu-open .vinn-header-brand,
	html.einfalt-vinnbilar--menu-open .vinn-header-actions,
	html.einfalt-vinnbilar--menu-open .vinn-menu-toggle {
		opacity: 0;
		pointer-events: none;
	}
}

/* ── Covers: front-page hero and dark image sections (core/cover) ───── */
.vinn-cover {
	align-items: center;
	display: flex;
	justify-content: center;
	min-height: 430px;
	overflow: hidden;
	overflow: clip;
	padding: 0;
	position: relative;
}

.vinn-cover__image {
	border: 0;
	height: 100%;
	inset: 0;
	margin: 0;
	max-width: none;
	object-fit: cover;
	position: absolute;
	width: 100%;
	z-index: 0;
}

.vinn-cover__dim {
	background: var(--vinn-dark);
	inset: 0;
	opacity: 0.62;
	position: absolute;
	z-index: 1;
}

.vinn-cover__inner {
	color: inherit;
	position: relative;
	width: 100%;
	z-index: 2;
}

/* Home hero: short enough that the newest cars start on the first screen. */
.vinn-hero {
	align-items: flex-end;
	background: var(--vinn-dark);
	color: var(--vinn-canvas);
	margin: 0;
	min-height: clamp(34rem, 66vh, 42rem);
}

/* Scrim for text contrast over the photo (bottom-up on phones, left-to-right on desktop). */
.vinn-hero::after {
	background: linear-gradient(to top, rgba(14, 14, 18, 0.92) 0, rgba(14, 14, 18, 0.74) 42%, rgba(14, 14, 18, 0.4) 70%, rgba(14, 14, 18, 0.3) 100%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
	z-index: 1;
}

.vinn-hero .vinn-cover__image {
	object-position: 50% 60%;
}

.vinn-hero-content {
	color: var(--vinn-canvas);
	padding-block: calc(var(--vinn-header-height) + 2.5rem) clamp(1.75rem, 3.5vw, 2.75rem);
	position: relative;
	z-index: 2;
}

.vinn-hero-copy {
	max-width: 44rem;
}

.vinn-hero-copy > * {
	margin-block: 0;
}

.vinn-hero .vinn-eyebrow {
	color: rgba(255, 255, 255, 0.86);
}

.vinn-hero h1 {
	color: var(--vinn-canvas);
	font-size: var(--vinn-fs-display);
	letter-spacing: -0.035em;
	line-height: 1;
	max-width: 13ch;
}

.vinn-hero .vinn-lead {
	color: rgba(255, 255, 255, 0.88);
	margin-top: 1.25rem;
	max-width: 34rem;
}

.vinn-hero .vinn-buttons {
	margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.vinn-hero .vinn-button--outline {
	color: var(--vinn-canvas);
}

/* Shortcuts for the three buyer types, on the hero's bottom edge. */
.vinn-shortcuts ul {
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 2.25rem;
	list-style: none;
	margin: clamp(1.75rem, 4vw, 3rem) 0 0;
	padding: 1.25rem 0 0;
}

.vinn-shortcuts a {
	align-items: center;
	color: rgba(255, 255, 255, 0.9);
	display: inline-flex;
	font-size: 0.9375rem;
	font-weight: 600;
	min-height: 2.75rem;
}

.vinn-shortcuts a:hover {
	color: var(--vinn-canvas);
}

.vinn-dark-section {
	background: var(--vinn-dark);
	color: var(--vinn-canvas);
	min-height: clamp(26rem, 44vw, 34rem);
}

.vinn-dark-section :where(h1, h2, h3, h4, p, a:not(.vinn-button)) {
	color: var(--vinn-canvas);
}

.vinn-dark-section .vinn-eyebrow {
	color: rgba(255, 255, 255, 0.82);
}

.vinn-dark-section .vinn-lead {
	color: rgba(255, 255, 255, 0.9);
}

.vinn-cover__copy > * {
	margin-block: 0;
	max-width: 36rem;
}

.vinn-cover__copy > h2 {
	margin-bottom: 1rem;
}

.vinn-cover__copy .vinn-buttons {
	margin-top: 1.75rem;
}

/* ── Sections and section heads ─────────────────────────────────────── */
.vinn-section__head {
	align-items: flex-end;
	display: flex;
	gap: 1rem 2rem;
	justify-content: space-between;
	margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.vinn-section__head h2 {
	margin: 0;
}

.vinn-section__head .vinn-eyebrow {
	margin-bottom: 0.75rem;
}

.vinn-section__head > a,
.vinn-section__more {
	align-items: center;
	color: var(--vinn-dark);
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 0.9375rem;
	font-weight: 600;
	min-height: 2.75rem;
	white-space: nowrap;
}

.vinn-section__lead {
	color: var(--vinn-contrast-high);
	font-size: 1.0625rem;
	margin: 0.75rem 0 0;
	max-width: 40rem;
}

/* Front page: the newest cars, a swipe row on phones. */
.vinn-home-cars {
	padding-top: clamp(2.25rem, 4vw, 3.5rem);
}

.vinn-home-cars .vinn-buttons--center {
	margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

/* Services: four compact cards, the whole card is the link. */
.vinn-services {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.vinn-service {
	background: var(--vinn-canvas);
	border: 1px solid var(--vinn-line);
	border-radius: var(--vinn-radius-lg);
	display: flex;
	flex-direction: column;
	padding: 1.5rem 1.5rem 1.375rem;
	position: relative;
	transition: border-color var(--vinn-transition), box-shadow 240ms var(--vinn-ease);
}

.vinn-service__icon {
	align-items: center;
	background: var(--vinn-surface-soft);
	border: 1px solid var(--vinn-line);
	border-radius: var(--vinn-radius-md);
	color: var(--vinn-dark);
	display: inline-flex;
	height: 2.75rem;
	justify-content: center;
	margin-bottom: 1.25rem;
	width: 2.75rem;
}

.vinn-service__icon svg {
	height: 1.375rem;
	width: 1.375rem;
}

.vinn-service h3 {
	font-size: 1.125rem;
	margin: 0 0 0.4rem;
}

.vinn-service h3 a {
	color: inherit;
}

.vinn-service h3 a::after {
	border-radius: inherit;
	content: "";
	inset: 0;
	position: absolute;
}

.vinn-service h3 a:focus-visible {
	outline: none;
}

.vinn-service:has(a:focus-visible) {
	outline: 3px solid var(--vinn-red);
	outline-offset: 3px;
}

.vinn-service p {
	color: var(--vinn-contrast-high);
	flex: 1 1 auto;
	font-size: 0.9375rem;
	line-height: 1.5;
	margin: 0;
}

.vinn-service__more {
	color: var(--vinn-dark);
	font-size: 0.875rem;
	font-weight: 600;
	margin-top: 1.25rem;
}

/* "How it works" steps, shared by the front page and the sourcing page. */
.vinn-steps {
	counter-reset: vinn-step;
	display: grid;
	gap: clamp(1.25rem, 3vw, 2.5rem);
	grid-template-columns: repeat(3, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.vinn-step {
	border-top: 1px solid var(--vinn-line-strong);
	counter-increment: vinn-step;
	display: grid;
	gap: 0.5rem;
	padding-top: 1.25rem;
}

.vinn-step::before {
	color: var(--vinn-contrast-medium);
	content: counter(vinn-step, decimal-leading-zero);
	font-size: 0.8125rem;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	letter-spacing: 0.08em;
	margin-bottom: 0.5rem;
}

.vinn-step h3 {
	font-size: 1.1875rem;
	margin: 0;
}

.vinn-step p {
	color: var(--vinn-contrast-high);
	margin: 0;
}

/* Contact card on the front page: light, with the phone as the big figure. Red stays a signature. */
.vinn-cta {
	align-items: end;
	background: var(--vinn-surface-soft);
	border: 1px solid var(--vinn-line);
	border-radius: var(--vinn-radius-xl);
	color: var(--vinn-dark);
	display: grid;
	gap: clamp(1.5rem, 4vw, 4rem);
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	padding: clamp(1.75rem, 5vw, 4rem);
}

.vinn-cta__copy > * {
	margin-block: 0;
}

.vinn-cta h2 {
	max-width: 18ch;
}

.vinn-cta__copy p:not(.vinn-eyebrow) {
	color: var(--vinn-contrast-high);
	margin-top: 1rem;
	max-width: 32rem;
}

.vinn-cta__phone {
	align-items: center;
	color: var(--vinn-dark);
	display: inline-flex;
	font-size: clamp(1.75rem, 1.25rem + 1.8vw, 2.5rem);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	gap: 0.75rem;
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.vinn-cta__phone svg {
	flex: none;
	height: 0.8em;
	width: 0.8em;
}

/* ── The salesperson: face, name and role where customers make contact ── */
.vinn-person {
	align-items: center;
	display: flex;
	gap: 0.875rem;
}

.vinn-person__photo {
	aspect-ratio: 1;
	background: var(--vinn-surface-soft);
	border-radius: 50%;
	flex: none;
	height: auto;
	object-fit: cover;
}

.vinn-person__text {
	display: grid;
	line-height: 1.3;
	margin: 0;
}

.vinn-person__text strong {
	font-weight: 600;
}

.vinn-person__text span {
	color: var(--vinn-contrast-medium);
	font-size: 0.875rem;
}

.vinn-person__text a {
	color: inherit;
	font-weight: 700;
	margin-top: 0.25rem;
	text-decoration: none;
}

.vinn-cta .vinn-person {
	margin: 1rem 0 1.5rem;
}

.vinn-contact-form > .vinn-person {
	margin: -0.5rem 0 1.5rem;
}

.vinn-contact-card__person {
	align-items: center;
	display: flex;
	gap: 1rem;
	margin-bottom: 1rem;
}

.vinn-contact-card__person .vinn-eyebrow {
	margin: 0 0 0.25rem;
}

.vinn-contact-card .vinn-contact-card__person h2 {
	margin: 0;
}

/* ── Dark page hero (404, search, archives, leasing, shop, contact, sourcing) ── */
.vinn-page-hero {
	background: var(--vinn-dark);
	color: var(--vinn-canvas);
	padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 5vw, 4rem);
}

.einfalt-vinnbilar--overlay-header .vinn-page-hero {
	padding-top: calc(var(--vinn-header-height) + clamp(2rem, 5vw, 4rem));
}

.vinn-page-hero .vinn-eyebrow {
	color: rgba(255, 255, 255, 0.74);
}

.vinn-page-hero h1 {
	color: inherit;
	font-size: var(--vinn-fs-h1);
	margin: 0 0 1rem;
	max-width: 22ch;
}

.vinn-page-hero p:not(.vinn-eyebrow) {
	color: rgba(255, 255, 255, 0.74);
	font-size: var(--vinn-fs-lead);
	max-width: 44rem;
}

.vinn-page-hero--fill {
	align-items: center;
	display: flex;
	min-height: max(32rem, 68svh);
}

.vinn-page-hero--fill > .vinn-shell {
	width: var(--vinn-shell);
}

.vinn-page-hero .vinn-button--outline {
	color: var(--vinn-canvas);
}

.vinn-page-hero .vinn-buttons {
	margin-top: 1.75rem;
}

.vinn-page-hero--compact {
	padding-block: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 4vw, 3rem);
}

.einfalt-vinnbilar--overlay-header .vinn-page-hero--compact {
	padding-top: calc(var(--vinn-header-height) + clamp(1.5rem, 3.5vw, 2.75rem));
}

.vinn-page-hero--compact h1 {
	margin-bottom: 0.5rem;
}

.vinn-page-hero__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	margin-top: 1.5rem;
}

.vinn-page-hero__actions > * {
	margin: 0;
}

.vinn-page-hero__actions a:not(.vinn-button):not(.wp-element-button) {
	color: rgba(255, 255, 255, 0.86);
	font-size: 0.9375rem;
	font-weight: 600;
}

.vinn-page-hero__actions a:not(.vinn-button):not(.wp-element-button):hover {
	color: var(--vinn-canvas);
}

/* Search form inside the dark hero. */
.vinn-search-form {
	margin-top: 1.5rem;
	max-width: 34rem;
}

.vinn-search-form__inner {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.24);
	border-radius: var(--vinn-radius-md);
	display: flex;
	padding: 0.25rem;
}

.vinn-search-form__inner:focus-within {
	border-color: rgba(255, 255, 255, 0.6);
}

.vinn-search-form__input {
	background: transparent;
	border: 0;
	color: var(--vinn-canvas);
	flex: 1 1 auto;
	font-size: 1rem;
	min-height: 2.75rem;
	min-width: 0;
	padding: 0.5rem 0.85rem;
}

.vinn-search-form__input::placeholder {
	color: rgba(255, 255, 255, 0.6);
}

.vinn-search-form__input:focus,
.vinn-search-form__input:focus-visible {
	outline: none;
}

.vinn-search-form__button {
	background: var(--vinn-canvas);
	border: 0;
	border-radius: calc(var(--vinn-radius-md) - 0.2rem);
	color: var(--vinn-dark);
	flex: 0 0 auto;
	font-size: 0.9375rem;
	font-weight: 600;
	margin: 0;
	padding: 0.65rem 1.1rem;
}

.vinn-search-form__button:hover {
	background: #e9eaed;
}

/* ── Forms ──────────────────────────────────────────────────────────── */
.vinn-form-grid {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vinn-field {
	display: grid;
	gap: 0.45rem;
}

.vinn-field--full {
	grid-column: 1 / -1;
}

.vinn-field label {
	font-size: 0.875rem;
	font-weight: 600;
}

.vinn-field :where(input, select, textarea) {
	background: var(--vinn-canvas);
	border: 1px solid var(--vinn-contrast-low);
	border-radius: var(--vinn-radius-md);
	color: var(--vinn-dark);
	font-size: 1rem;
	min-height: var(--vinn-button-h);
	padding: 0.75rem 0.9rem;
	width: 100%;
}

.vinn-field textarea {
	min-height: 9rem;
	resize: vertical;
}

.vinn-field :where(input, select, textarea):focus {
	border-color: var(--vinn-dark);
	outline: 2px solid var(--vinn-dark);
	outline-offset: 0;
}

/* ── Inquiry form and dialog (plugin assets/inquiry.css) ────────────── */
.vinn-inquiry {
	background: var(--vinn-canvas);
	border: 0;
	border-radius: var(--vinn-radius-xl);
	box-shadow: 0 24px 60px rgb(14 14 18 / 0.25);
	color: var(--vinn-dark);
	margin: auto;
	max-height: min(92dvh, 46rem);
	max-width: 34rem;
	overflow: auto;
	overscroll-behavior: contain;
	padding: clamp(1.5rem, 4vw, 2.25rem);
	width: min(100% - 2rem, 34rem);
}

.vinn-inquiry[open] {
	animation: vinn-dialog-in 220ms var(--vinn-ease);
}

.vinn-inquiry::backdrop {
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
	background: rgb(14 14 18 / 0.55);
}

@keyframes vinn-dialog-in {
	from {
		opacity: 0;
		transform: translateY(8px) scale(0.985);
	}
}

@keyframes vinn-sheet-in {
	from {
		transform: translateY(100%);
	}
}

.vinn-inquiry__head {
	align-items: start;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	margin-bottom: 1.25rem;
}

.vinn-inquiry__title {
	font-size: clamp(1.375rem, 2.5vw, 1.625rem);
	margin: 0;
}

.vinn-inquiry__vehicle {
	color: var(--vinn-contrast-medium);
	margin: 0.25rem 0 0;
}

.vinn-inquiry__close {
	background: var(--vinn-surface-soft);
	border: 0;
	border-radius: 50%;
	color: var(--vinn-contrast-high);
	cursor: pointer;
	flex: none;
	height: 2.75rem;
	margin: -0.375rem -0.375rem 0 0;
	padding: 0.625rem;
	width: 2.75rem;
}

.vinn-inquiry__close:hover {
	background: var(--vinn-surface);
	color: var(--vinn-dark);
}

.vinn-inquiry__close svg {
	display: block;
	height: 100%;
	width: 100%;
}

.vinn-inquiry__form {
	display: grid;
	gap: 1rem;
	position: relative;
}

.vinn-inquiry__row {
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vinn-inquiry__field {
	display: grid;
	gap: 0.375rem;
	margin: 0;
}

.vinn-inquiry__field label {
	color: var(--vinn-contrast-high);
	font-size: 0.875rem;
	font-weight: 600;
}

.vinn-inquiry__optional {
	color: var(--vinn-contrast-medium);
	font-weight: 400;
}

.vinn-inquiry__field :where(input, textarea) {
	background: var(--vinn-canvas);
	border: 1px solid var(--vinn-contrast-low);
	border-radius: var(--vinn-radius-md);
	color: inherit;
	font: inherit;
	font-size: 1rem;
	min-height: var(--vinn-button-h);
	padding: 0.7rem 0.85rem;
	transition: border-color var(--vinn-transition);
	width: 100%;
}

.vinn-inquiry__field :where(input, textarea):hover {
	border-color: var(--vinn-line-strong);
}

.vinn-inquiry__field :where(input, textarea):focus-visible {
	border-color: var(--vinn-dark);
	outline: 2px solid var(--vinn-dark);
	outline-offset: 0;
}

.vinn-inquiry__field textarea {
	min-height: 7rem;
	resize: vertical;
}

.vinn-inquiry__field :where(input, textarea):disabled {
	background: var(--vinn-surface-soft);
	color: var(--vinn-contrast-medium);
}

/* Off-screen rather than hidden, so scripted form fillers still reach it. */
.vinn-inquiry__honeypot {
	height: 0;
	left: -9999px;
	margin: 0;
	overflow: hidden;
	position: absolute;
	width: 0;
}

.vinn-inquiry__status {
	border-radius: var(--vinn-radius-md);
	font-weight: 600;
	margin: 0;
}

.vinn-inquiry__status:empty {
	display: none;
}

.vinn-inquiry__status[data-state="success"] {
	background: #e8f5e6;
	color: var(--vinn-success);
	padding: 0.7rem 0.85rem;
}

.vinn-inquiry__status[data-state="error"] {
	background: #fdecea;
	color: #a8261b;
	padding: 0.7rem 0.85rem;
}

.vinn-inquiry__form .vinn-inquiry__submit {
	min-height: 3.25rem;
	width: 100%;
}

.vinn-inquiry__form .vinn-inquiry__submit:disabled {
	cursor: progress;
	opacity: 0.6;
}

.vinn-inquiry__fallback {
	color: var(--vinn-contrast-medium);
	font-size: 0.9375rem;
	margin: 0;
	text-align: center;
}

.vinn-inquiry__fallback a,
.vinn-inquiry__done-call a {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
}

/* After sending: a confirmation panel in place of the fields. */
.vinn-inquiry__form.is-done > :not(.vinn-inquiry__done) {
	display: none;
}

.vinn-inquiry__done {
	display: grid;
	gap: 0.75rem;
	justify-items: center;
	padding: 1.5rem 0 0.5rem;
	text-align: center;
}

.vinn-inquiry__done[hidden] {
	display: none;
}

.vinn-inquiry__done:focus {
	outline: none;
}

.vinn-inquiry__done-icon {
	align-items: center;
	background: #e8f5e6;
	border-radius: 50%;
	color: var(--vinn-success);
	display: inline-flex;
	height: 3.5rem;
	justify-content: center;
	width: 3.5rem;
}

.vinn-inquiry__done-icon svg {
	height: 1.75rem;
	width: 1.75rem;
}

.vinn-inquiry__done-text {
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0.25rem 0 0;
	max-width: 24rem;
}

.vinn-inquiry__done-call {
	color: var(--vinn-contrast-medium);
	margin: 0;
}

.vinn-inquiry__done-close {
	display: none;
	margin-top: 0.5rem;
	min-width: 10rem;
}

dialog .vinn-inquiry__done-close {
	display: inline-flex;
}

/* ── Contact and sourcing pages ─────────────────────────────────────── */
.vinn-contact-page,
.vinn-sourcing-page {
	background: var(--vinn-canvas);
}

.vinn-contact-form {
	scroll-margin-top: calc(var(--vinn-header-height) + 1rem);
}

.vinn-contact-grid {
	align-items: start;
	display: grid;
	gap: clamp(1.25rem, 3vw, 2.5rem);
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.vinn-contact-card,
.vinn-contact-form {
	border-radius: var(--vinn-radius-xl);
	padding: clamp(1.5rem, 4vw, 2.5rem);
}

.vinn-contact-card {
	background: var(--vinn-surface-soft);
	border: 1px solid var(--vinn-line);
}

.vinn-contact-form {
	background: var(--vinn-canvas);
	border: 1px solid var(--vinn-line);
	box-shadow: var(--vinn-shadow-card);
}

.vinn-contact-card h2,
.vinn-contact-form h2 {
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
	margin: 0 0 0.5rem;
}

.vinn-contact-card > p:not(.vinn-eyebrow),
.vinn-contact-form > p {
	color: var(--vinn-contrast-high);
	margin: 0 0 1.5rem;
}

.vinn-contact-list {
	border-top: 1px solid var(--vinn-line);
	display: grid;
	list-style: none;
	margin: 0;
	padding: 0;
}

.vinn-contact-list li {
	border-bottom: 1px solid var(--vinn-line);
	padding: 0.85rem 0;
}

.vinn-contact-list li > p {
	margin: 0;
}

.vinn-contact-list span {
	color: var(--vinn-contrast-medium);
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	margin-bottom: 0.2rem;
	text-transform: uppercase;
}

.vinn-contact-list a {
	font-weight: 600;
}

.vinn-contact-list__phone {
	font-size: 1.375rem;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.01em;
}

/* Sourcing page: the form first, the steps beside it. */
.vinn-sourcing .vinn-contact-grid {
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}

.vinn-sourcing__steps {
	padding-top: clamp(0.5rem, 2vw, 1.5rem);
}

.vinn-sourcing__steps h2 {
	font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
	margin: 0 0 1.75rem;
}

.vinn-sourcing__steps .vinn-steps {
	grid-template-columns: 1fr;
}

.vinn-sourcing__more {
	color: var(--vinn-contrast-high);
	margin: 2rem 0 0;
}

.vinn-sourcing__more a {
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* ── Footer ─────────────────────────────────────────────────────────── */
.vinn-site-footer {
	background: var(--vinn-dark);
	border-top: 1px solid rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.7);
	font-size: 0.9375rem;
	padding-block: clamp(3.5rem, 6vw, 5.5rem) 2rem;
}

.vinn-site-footer a {
	color: rgba(255, 255, 255, 0.84);
}

.vinn-site-footer a:hover {
	color: var(--vinn-canvas);
}

.vinn-footer-grid {
	display: grid;
	gap: 2.5rem 3rem;
	grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
}

.vinn-footer-brand img {
	display: block;
	height: 3.25rem;
	width: auto;
}

.vinn-footer-brand p {
	margin: 1.25rem 0 0;
	max-width: 30rem;
}

.vinn-footer-heading {
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	margin: 0 0 1.25rem;
	text-transform: uppercase;
}

.vinn-footer-phone {
	display: inline-block;
	font-size: 1.375rem;
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	letter-spacing: -0.01em;
	margin-bottom: 0.85rem;
}

.vinn-site-footer .vinn-footer-phone {
	color: var(--vinn-canvas);
}

.vinn-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vinn-footer-links li + li {
	margin-top: 0.6rem;
}

.vinn-footer-links a[rel~="noopener"]::after {
	content: " ↗";
	font-size: 0.75em;
	opacity: 0.7;
}

.vinn-footer-bottom {
	align-items: center;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.8125rem;
	gap: 0.75rem 1.5rem;
	justify-content: space-between;
	margin-top: clamp(2.5rem, 5vw, 4.5rem);
	padding-top: 1.5rem;
}

.vinn-footer-bottom p {
	margin: 0;
}

.vinn-footer-bottom a {
	color: rgba(255, 255, 255, 0.6);
}

/* ── Quiet motion ───────────────────────────────────────────────────── */
/* site.js marks [data-reveal] blocks below the first screen .is-pending and swaps it for .is-in once. */
[data-reveal]:not(ul):not(ol),
:is(ul, ol)[data-reveal] > * {
	transition: opacity 420ms var(--vinn-ease), transform 420ms var(--vinn-ease);
	transition-delay: calc(var(--vinn-reveal-i, 0) * 60ms);
}

[data-reveal].is-pending:not(ul):not(ol),
:is(ul, ol)[data-reveal].is-pending > * {
	opacity: 0;
	transform: translateY(12px);
}

@media (hover: hover) {
	.vinn-service:hover {
		border-color: var(--vinn-line-strong);
		box-shadow: var(--vinn-shadow-card);
	}

	.vinn-service:hover .vinn-arrow,
	.vinn-section__more:hover .vinn-arrow,
	.vinn-shortcuts a:hover .vinn-arrow {
		transform: translateX(3px);
	}
}

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (min-width: 64rem) {
	/* Desktop: the photo stays clear on the right, the text side is darkened. */
	.vinn-hero::after {
		background:
			linear-gradient(to right, rgba(14, 14, 18, 0.84) 0, rgba(14, 14, 18, 0.62) 36%, rgba(14, 14, 18, 0.12) 66%, rgba(14, 14, 18, 0) 80%),
			linear-gradient(to top, rgba(14, 14, 18, 0.55) 0, rgba(14, 14, 18, 0) 38%);
	}
}

/* Laptop screens 720–800px tall: a tighter hero, so the top of the first car cards still shows. */
@media (min-width: 48rem) and (max-height: 50rem) {
	.vinn-hero {
		min-height: 0;
	}

	.vinn-hero-content {
		padding-block: calc(var(--vinn-header-height) + 1.5rem) 1.75rem;
	}

	.vinn-hero h1 {
		font-size: min(var(--vinn-fs-display), 8.5vh);
	}

	.vinn-hero .vinn-buttons,
	.vinn-shortcuts ul {
		margin-top: 1.5rem;
	}

	.vinn-shortcuts ul {
		padding-top: 0.75rem;
	}

	.vinn-home-cars {
		padding-top: 2rem;
	}
}

@media (max-width: 64rem) {
	.vinn-services {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vinn-footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vinn-footer-brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 52rem) {
	.vinn-contact-grid,
	.vinn-sourcing .vinn-contact-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.vinn-cta {
		align-items: start;
		grid-template-columns: minmax(0, 1fr);
	}

	.vinn-steps {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Newest cars on the home page: a swipe row wherever vehicles.css lays the grid out in one column (48rem),
   so the next card peeks in and the page stays short. */
@media (max-width: 48rem) {
	.einfalt-vinnbilar--front .vinn-home-cars .vinn-vehicle-grid {
		display: grid;
		gap: 0.75rem;
		grid-auto-columns: min(86%, 22rem);
		grid-auto-flow: column;
		grid-template-columns: none;
		margin-inline: calc(-1 * var(--vinn-page-gutter));
		overflow-x: auto;
		overscroll-behavior-x: contain;
		padding: 0 var(--vinn-page-gutter) 0.5rem;
		scroll-padding-inline: var(--vinn-page-gutter);
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.einfalt-vinnbilar--front .vinn-home-cars .vinn-vehicle-grid::-webkit-scrollbar {
		display: none;
	}

	.einfalt-vinnbilar--front .vinn-home-cars .vinn-vehicle-grid > * {
		scroll-snap-align: start;
	}

	.einfalt-vinnbilar--front .vinn-home-cars .vinn-vehicle-grid > .vinn-empty-state {
		grid-column: auto;
	}
}

@media (max-width: 47.99rem) {
	.vinn-hero {
		min-height: 0;
	}

	.vinn-hero-content {
		padding-block: calc(var(--vinn-header-height) + 2.75rem) 1.5rem;
	}

	.vinn-hero .vinn-lead {
		margin-top: 0.875rem;
	}

	.vinn-hero .vinn-cover__image {
		object-position: 50% 50%;
	}

	/* Two equal buttons side by side. */
	.vinn-hero .vinn-buttons {
		display: grid;
		gap: 0.625rem;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vinn-hero .vinn-button {
		padding-inline: 0.75rem;
	}

	/* Shortcuts become a swipe row of pills. */
	.vinn-shortcuts ul {
		border-top: 0;
		flex-wrap: nowrap;
		gap: 0.5rem;
		margin: 1.25rem calc(-1 * var(--vinn-page-gutter)) 0;
		overflow-x: auto;
		padding: 0 var(--vinn-page-gutter);
		scrollbar-width: none;
	}

	.vinn-shortcuts ul::-webkit-scrollbar {
		display: none;
	}

	.vinn-shortcuts li {
		flex: none;
	}

	.vinn-shortcuts a {
		background: rgba(255, 255, 255, 0.1);
		border: 1px solid rgba(255, 255, 255, 0.22);
		border-radius: 999px;
		font-size: 0.875rem;
		min-height: 2.5rem;
		padding: 0 1rem;
	}

	.vinn-shortcuts .vinn-arrow {
		display: none;
	}

	.vinn-section__head {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.25rem;
		margin-bottom: 1.25rem;
	}

	.vinn-section__head .vinn-section__lead {
		display: none;
	}

	.vinn-cta .vinn-buttons > *,
	.vinn-page-hero .vinn-buttons > .vinn-button {
		flex: 1 1 14rem;
	}

	/* The cars row ends in a "Sí allar bilar" button, so the head link would only crowd the title. */
	.vinn-home-cars .vinn-section__more {
		display: none;
	}

	/* Services: compact rows (icon, title, line). */
	.vinn-services {
		gap: 0.625rem;
		grid-template-columns: minmax(0, 1fr);
	}

	.vinn-service {
		column-gap: 1rem;
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		padding: 1rem 1.125rem;
	}

	.vinn-service__icon {
		grid-row: 1 / span 2;
		margin: 0;
	}

	.vinn-service h3 {
		align-self: end;
		font-size: 1.0625rem;
		margin: 0;
	}

	.vinn-service p {
		font-size: 0.875rem;
	}

	.vinn-service__more {
		display: none;
	}

	.vinn-dark-section {
		min-height: 24rem;
	}

	.vinn-cover__inner {
		padding-block: 3rem;
	}

	.vinn-footer-grid {
		gap: 2rem;
		grid-template-columns: minmax(0, 1fr);
	}

	/* Phone first on phones: the contact column before the links. */
	.vinn-footer-contact {
		order: -1;
	}

	.vinn-footer-brand {
		order: -2;
	}

	.vinn-footer-links {
		column-gap: 1.5rem;
	}

	.vinn-footer-col:not(.vinn-footer-contact) .vinn-footer-links {
		columns: 2;
	}

	.vinn-footer-col:not(.vinn-footer-contact) .vinn-footer-links li + li {
		margin-top: 0;
	}

	.vinn-footer-col:not(.vinn-footer-contact) .vinn-footer-links li {
		padding-bottom: 0.6rem;
	}

	.vinn-footer-bottom {
		align-items: flex-start;
		flex-direction: column;
	}

	.vinn-form-grid {
		grid-template-columns: 1fr;
	}

	.vinn-field--full {
		grid-column: auto;
	}
}

/* Phones: the inquiry dialog is a bottom sheet. */
@media (max-width: 40rem) {
	.vinn-inquiry {
		border-radius: var(--vinn-radius-xl) var(--vinn-radius-xl) 0 0;
		margin: auto 0 0;
		max-height: 92dvh;
		max-width: 100%;
		padding: 1.5rem 1.25rem max(1.25rem, env(safe-area-inset-bottom, 0px));
		width: 100%;
	}

	.vinn-inquiry[open] {
		animation: vinn-sheet-in 260ms var(--vinn-ease);
	}

	.vinn-inquiry__row {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}

	[data-reveal].is-pending:not(ul):not(ol),
	:is(ul, ol)[data-reveal].is-pending > * {
		opacity: 1;
		transform: none;
	}
}
