/*
Theme Name: Autohuset Kolding
Theme URI: https://autohusetkolding.dk/
Author: Autohuset Kolding
Description: Dark, photo-led theme for Autohuset Kolding – værksted og bilsalg. Reads the cars the import app writes (category "Biler") and lays them out as a sortable car list and a car detail page with gallery, specs and inquiry form. Pages built in Divi keep their copy through a bundled snapshot until they are re-saved with normal blocks.
Version: 1.0.4
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: autohuset-kolding
*/

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("assets/fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("assets/fonts/manrope-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
	--night: #0b0b0b;
	--bg: #1e1e1e;
	--bg-2: #262626;
	--panel: #2d2d2d;
	--paper: #f5f3ef;
	--paper-2: #ebe8e2;
	--paper-ink: #1a1816;
	--paper-muted: #5c574f;
	--text: #f2f0ec;
	--text-2: #d6d2cb;
	--muted: #a8a39c;
	--line: rgba(255, 255, 255, 0.12);
	--line-strong: rgba(255, 255, 255, 0.32);

	--orange: #d3702e;          /* logo orange: fills, large accents */
	--orange-hi: #e08443;       /* hover / small orange text on dark */
	--orange-ink: #160b04;      /* text on orange fills (5.7:1) */
	--orange-deep: #a4501a;     /* orange text on paper (5.1:1) */
	--ok: #4fbf7a;
	--danger: #ff7a6b;

	--font-display: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
	--font-body: "Inter", "Segoe UI", system-ui, sans-serif;

	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 12px;
	--radius-sm: 8px;
	--section: clamp(72px, 9vw, 128px);
	--header-h: 84px;

	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.25);

	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	caret-color: var(--orange);
	scrollbar-color: #4a4a4a var(--night);
}
::selection { background: var(--orange); color: var(--orange-ink); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: #444; border: 3px solid var(--night); border-radius: 12px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--orange-hi); }
:focus-visible { outline: 2px solid var(--orange-hi); outline-offset: 3px; border-radius: 4px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
.accent { font-style: normal; color: var(--orange); }
.muted { color: var(--muted); }
.icon { flex: none; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 16px; top: -60px; z-index: 100;
	background: var(--orange); color: var(--orange-ink); padding: 10px 16px; border-radius: var(--radius-sm);
	font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 12px; color: var(--orange-ink); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 2.875rem); }
.h3 { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem); }

/* ---------- Buttons ---------- */
.btn {
	--btn-bg: var(--orange);
	--btn-fg: var(--orange-ink);
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
	min-height: 48px; padding: 0.75em 1.35em;
	background: var(--btn-bg); color: var(--btn-fg);
	border: 1.5px solid var(--btn-bg); border-radius: var(--radius-sm);
	font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; line-height: 1.2;
	text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.btn:hover { --btn-bg: var(--orange-hi); color: var(--btn-fg); }
.btn:active { transform: translateY(1px); }
.btn .icon--arrow-up-right, .btn .icon--arrow-right { transition: transform 0.25s var(--ease-out); }
.btn:hover .icon--arrow-up-right { transform: translate(2px, -2px); }
.btn:hover .icon--arrow-right { transform: translateX(3px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { --btn-bg: transparent; --btn-fg: var(--orange-hi); border-color: var(--orange-hi); }
.btn--lg { min-height: 54px; font-size: 1rem; padding-inline: 1.6em; }
.btn--sm { min-height: 38px; font-size: 0.875rem; padding: 0.5em 1em; }
.btn--block { width: 100%; }

.link-arrow {
	display: inline-flex; align-items: center; gap: 0.5em;
	color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong);
}
.link-arrow:hover { text-decoration-color: currentColor; }
.link-arrow .icon { transition: transform 0.25s var(--ease-out); }
.link-arrow:hover .icon { transform: translateX(4px); }

.tag {
	display: inline-block; padding: 0.35em 0.8em; border-radius: 6px;
	background: var(--orange); color: var(--orange-ink);
	font-size: 0.8125rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums;
}

/* ---------- Header ---------- */
.site-header {
	position: absolute; inset: 0 0 auto; z-index: 50;
	height: var(--header-h);
	transition: background-color 0.3s, box-shadow 0.3s, transform 0.35s var(--ease-out);
}
.site-header.is-fixed { position: fixed; background: rgba(11, 11, 11, 0.97); box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { flex: none; display: block; margin-right: auto; }
.brand img { width: auto; height: 56px; }
.admin-bar .site-header { top: 32px; }
.admin-bar .site-header.is-fixed { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } .admin-bar .site-header.is-fixed { top: 0; } }
@media (min-width: 641px) { .nowrap { white-space: nowrap; } }

.nav__list { list-style: none; display: flex; align-items: center; gap: 4px; }
.nav__item { position: relative; }
.nav__link {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 10px 14px; border: 0; background: none; cursor: pointer;
	color: rgba(242, 240, 236, 0.86); font-size: 0.9375rem; font-weight: 500; text-decoration: none;
	border-radius: var(--radius-sm);
}
.nav__link:hover, .nav__toggle[aria-expanded="true"] { color: #fff; }
.nav__item.is-current > .nav__link, .nav__link[aria-current="page"] { color: var(--orange-hi); }
.nav__toggle .icon { transition: transform 0.2s; }
.nav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav__sub {
	list-style: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 230px;
	padding: 8px; background: #141414; border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(-6px);
	transition: opacity 0.2s, transform 0.25s var(--ease-out), visibility 0.2s;
}
.nav__item.is-open .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: 10px 12px; border-radius: 6px; text-decoration: none; font-size: 0.9375rem; color: var(--text-2); }
.nav__sub a:hover, .nav__sub a[aria-current="page"] { background: var(--panel); color: var(--orange-hi); }
.nav__contact { display: none; }

.header-call {
	flex: none; display: inline-flex; align-items: center; gap: 8px;
	min-height: 44px; padding: 8px 16px; border-radius: var(--radius-sm);
	background: var(--orange); color: var(--orange-ink);
	font-weight: 700; font-size: 0.9375rem; text-decoration: none; font-variant-numeric: tabular-nums;
	transition: background-color 0.2s;
}
.header-call:hover { background: var(--orange-hi); color: var(--orange-ink); }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: clamp(600px, 92svh, 860px);
	display: flex; align-items: center;
	padding: calc(var(--header-h) + 48px) 0 140px;
	background: var(--night);
	border-bottom: 3px solid var(--orange);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; filter: grayscale(1) contrast(1.12) brightness(0.62); }
.hero__media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(11, 11, 11, 0.96) 0%, rgba(11, 11, 11, 0.82) 38%, rgba(11, 11, 11, 0.25) 75%, rgba(11, 11, 11, 0.4) 100%),
		linear-gradient(0deg, rgba(11, 11, 11, 0.9) 0%, rgba(11, 11, 11, 0) 35%);
}
.hero__copy { max-width: 640px; }
.hero__title { font-size: clamp(2.5rem, 1.3rem + 4.6vw, 4.5rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.03em; }
.hero__text { margin-top: 24px; max-width: 48ch; color: var(--text-2); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem); }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

.hero__status {
	position: absolute; right: 0; bottom: 0;
	width: min(560px, 52%);
	background: var(--orange); color: var(--orange-ink);
	clip-path: polygon(56px 0, 100% 0, 100% 100%, 0 100%);
}
.hero__status-inner { padding: 22px var(--gutter) 22px 88px; display: grid; gap: 6px; }
.status-line { display: flex; align-items: baseline; gap: 10px; font-size: 0.9375rem; font-weight: 500; }
.status-line__label { font-family: var(--font-display); font-weight: 800; min-width: 74px; }
.status-line .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: 0.35; flex: none; align-self: center; }
.status-line.is-open .dot { opacity: 1; background: #0f3d1f; box-shadow: 0 0 0 3px rgba(15, 61, 31, 0.2); }
.hero__status-addr { margin-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--orange-ink); text-decoration: underline; text-decoration-color: rgba(22, 11, 4, 0.35); }
.hero__status-addr:hover { color: var(--orange-ink); text-decoration-color: currentColor; }

/* Hero entrance: the one authored moment */
@media (prefers-reduced-motion: no-preference) {
	.hero__title, .hero__text, .hero__actions { animation: rise 0.9s var(--ease-out) both; }
	.hero__text { animation-delay: 0.08s; }
	.hero__actions { animation-delay: 0.16s; }
	.hero__media img { animation: settle 1.6s var(--ease-out) both; }
	.hero__status { animation: wipe 0.9s 0.25s var(--ease-out) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
@keyframes settle { from { transform: scale(1.06); } }
@keyframes wipe { from { clip-path: polygon(100% 0, 100% 0, 100% 100%, calc(100% - 56px) 100%); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--tight { padding-block: 0 var(--section); }
.section--services, .section--visit { background: var(--bg-2); }
.section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.section-head__lead { margin-top: 14px; color: var(--muted); max-width: 52ch; }
.section-head--split {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
	padding-bottom: 24px; border-bottom: 1px solid transparent;
	border-image: linear-gradient(90deg, transparent 0%, var(--orange) 45%, rgba(211, 112, 46, 0.25) 100%) 1;
}
.section-head--end { text-align: right; margin-left: auto; max-width: 640px; }
.section-head--end .section-head__lead { margin-left: auto; }
.section-head--center { text-align: center; }
.section-head--center .section-head__lead { margin-inline: auto; }

/* ---------- Car cards ---------- */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.car-card {
	position: relative; display: flex; flex-direction: column;
	background: var(--paper); color: var(--paper-ink); border-radius: var(--radius); overflow: hidden;
	transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.car-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.car-card__media { position: relative; aspect-ratio: 3 / 2; background: #d9d5ce; }
.car-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.car-card__clip { position: absolute; inset: 0; overflow: hidden; }
.car-card:hover .car-card__media img { transform: scale(1.04); }
.car-card__noimg { display: grid; place-items: center; height: 100%; color: var(--paper-muted); }
.car-card__media .tag { position: absolute; left: 16px; bottom: -13px; z-index: 1; }
.car-card__body { display: flex; flex-direction: column; flex: 1; padding: 26px 18px 18px; gap: 10px; }
.car-card__title { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.car-card__title a { text-decoration: none; }
.car-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.car-card__title a:hover { color: inherit; }
.car-card__title a:focus-visible { outline: none; }
.car-card:has(a:focus-visible) { outline: 2px solid var(--orange-hi); outline-offset: 3px; }
.car-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--paper-muted); font-size: 0.875rem; font-variant-numeric: tabular-nums; }
.car-card__meta .m { display: inline-flex; align-items: center; gap: 6px; }
.car-card__price {
	margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(26, 24, 22, 0.1);
	font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums; color: var(--paper-ink);
}

.car-browser__bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.car-browser__count { color: var(--muted); }
.car-browser__count strong { color: var(--text); font-family: var(--font-display); font-size: 1.25rem; }
.car-browser__controls { display: flex; gap: 10px; flex-wrap: wrap; }
.select { position: relative; display: inline-flex; align-items: center; }
.select select {
	appearance: none; min-height: 44px; padding: 0 42px 0 16px;
	background: transparent; color: var(--text); border: 1px solid var(--line-strong); border-radius: 999px;
	font: 500 0.9375rem var(--font-body); cursor: pointer;
}
.select select:hover { border-color: var(--orange-hi); }
.select select option { background: var(--bg); color: var(--text); }
.select .icon { position: absolute; right: 16px; pointer-events: none; color: var(--muted); }
.car-card[hidden] { display: none; }

/* ---------- Services ---------- */
.services { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service a {
	position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius);
	color: #fff; text-decoration: none; isolation: isolate;
}
.service img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05) brightness(0.85); transition: filter 0.5s, transform 0.8s var(--ease-out); z-index: -2; }
.service a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.85) 100%); }
.service a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 0 var(--orange); transition: box-shadow 0.3s var(--ease-out); }
.service a:hover img, .service a:focus-visible img { filter: grayscale(0) brightness(0.8); transform: scale(1.05); }
.service a:hover::after, .service a:focus-visible::after { box-shadow: inset 0 0 0 4px var(--orange); }
.service a:hover { color: #fff; }
.service__text { position: absolute; left: 20px; right: 56px; bottom: 20px; display: grid; gap: 4px; }
.service__title { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; line-height: 1.15; letter-spacing: -0.01em; }
.service__sub { font-size: 0.875rem; color: rgba(255, 255, 255, 0.78); }
.service__go { position: absolute; right: 16px; bottom: 20px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: var(--orange-ink); transform: scale(0.85); opacity: 0.9; transition: transform 0.3s var(--ease-out), opacity 0.3s; }
.service a:hover .service__go { transform: none; opacity: 1; }

/* ---------- Reasons ---------- */
.reasons { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(36px, 4vw, 56px) clamp(40px, 6vw, 96px); max-width: 1000px; margin-inline: auto; }
.reason { display: grid; grid-template-columns: 48px 1fr; gap: 20px; align-items: start; }
.reason__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: var(--orange-ink); }
.reason h3 { font-size: 1.25rem; margin-top: 10px; }
.reason p { margin-top: 10px; color: var(--muted); font-size: 0.9375rem; max-width: 46ch; }

/* ---------- Trade-in band ---------- */
.tradein {
	position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 360px;
	background: var(--night); border-radius: var(--radius); overflow: hidden; isolation: isolate;
}
.tradein__media { position: relative; }
.tradein__media::before { content: ""; position: absolute; inset: 0 -40px 0 0; background: var(--orange); clip-path: polygon(0 0, 100% 0, calc(100% - 120px) 100%, 0 100%); z-index: 0; }
.tradein__media img { position: absolute; inset: 0; width: calc(100% - 22px); height: 100%; object-fit: cover; clip-path: polygon(0 0, 100% 0, calc(100% - 120px) 100%, 0 100%); z-index: 1; }
.tradein__copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 20px; padding: clamp(32px, 5vw, 64px) clamp(24px, 5vw, 64px) clamp(32px, 5vw, 64px) clamp(16px, 2vw, 32px); }
.tradein__copy .h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem); }
.tradein__copy p { color: var(--text-2); max-width: 46ch; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.about__copy { display: grid; gap: 20px; justify-items: start; }
.about__copy p { color: var(--text-2); max-width: 52ch; }
.about__copy .btn { margin-top: 8px; }
.about__media { position: relative; aspect-ratio: 1 / 0.92; }
.about__img { position: absolute; object-fit: cover; border-radius: var(--radius); filter: grayscale(1) contrast(1.05); }
.about__img--a { top: 0; right: 0; width: 72%; height: 62%; border-radius: var(--radius) var(--radius) var(--radius) 48px; }
.about__img--b { left: 0; bottom: 0; width: 52%; height: 64%; object-position: 50% 30%; border: 6px solid var(--bg); border-radius: 48px var(--radius) var(--radius) var(--radius); }

/* ---------- Visit ---------- */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.visit__head { display: grid; gap: 18px; justify-items: start; }
.visit__head p { color: var(--text-2); max-width: 44ch; }
.visit__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.visit__hours { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hours-card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.02); }
.hours-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; margin-bottom: 14px; }
.hours-card h3 .icon { color: var(--orange); }
.hours { list-style: none; display: grid; gap: 8px; font-size: 0.9375rem; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.hours li:last-child { border-bottom: 0; padding-bottom: 0; }
.hours li span:first-child { color: var(--muted); white-space: nowrap; }
.hours li span:last-child { text-align: right; white-space: nowrap; }

/* ---------- Page hero ---------- */
.page-hero {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: clamp(340px, 42vw, 440px);
	display: flex; align-items: flex-end;
	padding: calc(var(--header-h) + 40px) 0 48px; text-align: center;
	background: var(--night); border-bottom: 3px solid var(--orange);
}
.page-hero__media { position: absolute; inset: 0; z-index: -1; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.45) contrast(1.1); }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 11, 0.6) 0%, rgba(11, 11, 11, 0.2) 50%, rgba(11, 11, 11, 0.75) 100%); }
.page-hero__inner { display: grid; justify-items: center; gap: 14px; }
.page-hero__title { font-size: clamp(2.25rem, 1.4rem + 3.4vw, 3.75rem); letter-spacing: -0.03em; }
.page-hero__lead { color: var(--text-2); max-width: 56ch; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: 0.875rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--text-2); text-decoration: none; }
.crumbs a:hover { color: var(--orange-hi); text-decoration: underline; }
.crumbs [aria-current] { color: var(--text); }

/* ---------- Page layout and prose ---------- */
.page-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(40px, 6vw, 88px); align-items: start; }
.prose { max-width: 68ch; color: var(--text-2); font-size: 1.0625rem; line-height: 1.7; }
.prose--center { margin-inline: auto; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { color: var(--text); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-top: 2.2em; }
.prose h3 { color: var(--text); font-size: 1.3rem; margin-top: 1.8em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose h2 + p, .prose h3 + p { margin-top: 0.7em; }
.prose a:not(.btn) { color: var(--orange-hi); text-decoration: underline; }
.prose a:not(.btn):hover { color: #f0a06b; }
.prose strong, .prose b { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--orange); }
.prose figure, .prose .wp-block-image { margin: 2em 0; }
.prose figure img, .prose .wp-block-image img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--orange); color: var(--text); font-size: 1.15rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.prose--light { color: var(--text-2); font-size: 1rem; }

.page-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card { display: grid; gap: 14px; padding: 28px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.aside-card__title { font-size: 1.375rem; }
.aside-card p { color: var(--muted); font-size: 0.9375rem; margin-bottom: 6px; }
.aside-card__hours { margin-top: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.aside-card__hours h3 { font-size: 1rem; margin-bottom: 12px; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__form > .muted { margin: 10px 0 28px; }
.info-list { list-style: none; margin-top: 28px; display: grid; }
.info-list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid transparent; border-image: linear-gradient(90deg, var(--orange) 0%, rgba(211, 112, 46, 0.15) 100%) 1; }
.info-list__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--orange); color: var(--orange-ink); }
.info-list__label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.info-list a, .info-list span:not(.info-list__label):not(.info-list__icon) { font-size: 1.0625rem; color: var(--text); text-decoration: none; }
.info-list a:hover { color: var(--orange-hi); text-decoration: underline; }
.contact__hours { margin-top: 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.map-card { position: relative; display: block; height: clamp(260px, 32vw, 380px); border-radius: var(--radius); overflow: hidden; isolation: isolate; color: var(--text); text-decoration: none; }
.map-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.5); z-index: -1; transition: transform 0.8s var(--ease-out); }
.map-card:hover img { transform: scale(1.03); }
.map-card:hover { color: var(--text); }
.map-card__label { position: absolute; left: clamp(16px, 4vw, 40px); bottom: clamp(16px, 4vw, 40px); display: grid; gap: 6px; justify-items: start; padding: 20px 22px; background: var(--paper); color: var(--paper-muted); border-radius: var(--radius); box-shadow: var(--shadow); }
.map-card__name { font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; color: var(--paper-ink); }
.map-card__label .btn { margin-top: 8px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field__label { font-size: 0.875rem; font-weight: 500; color: var(--text-2); }
.field input, .field textarea {
	width: 100%; min-height: 50px; padding: 12px 16px;
	background: transparent; color: var(--text);
	border: 1px solid var(--line-strong); border-radius: var(--radius);
	font: 400 1rem/1.5 var(--font-body);
	transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.5); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--orange-hi); box-shadow: 0 0 0 3px rgba(211, 112, 46, 0.25); }
.cf-turnstile { min-height: 65px; }
.form__foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 4px; }
.form__note { font-size: 0.8125rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.9375rem; }
.notice--ok { background: rgba(79, 191, 122, 0.12); border: 1px solid rgba(79, 191, 122, 0.5); color: #bdebcf; }
.notice--ok .icon { color: var(--ok); }
.notice--error { background: rgba(255, 122, 107, 0.1); border: 1px solid rgba(255, 122, 107, 0.5); color: #ffd1cb; }

/* ---------- Car detail ---------- */
.car-top { padding: calc(var(--header-h) + 20px) 0 20px; background: var(--night); border-bottom: 3px solid var(--orange); }
.car-top .crumbs ol { justify-content: flex-start; }
.section--car { padding-top: clamp(32px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 80px); }
.car-detail { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.car-gallery { display: grid; gap: 12px; min-width: 0; }
.car-gallery__main { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #111; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; aspect-ratio: 3 / 2; }
.car-gallery__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s; }
.car-gallery__main img.is-loading { opacity: 0.4; }
.car-gallery__count { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(11, 11, 11, 0.8); color: var(--text); font-size: 0.8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.car-gallery__thumbs { list-style: none; display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scroll-snap-type: x mandatory; }
.car-gallery__thumbs li { flex: 0 0 auto; scroll-snap-align: start; }
.car-gallery__thumbs button { display: block; width: 104px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; background: #111; cursor: pointer; opacity: 0.6; transition: opacity 0.2s, border-color 0.2s; }
.car-gallery__thumbs button:hover { opacity: 1; }
.car-gallery__thumbs button.is-active { opacity: 1; border-color: var(--orange); }
.car-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.car-gallery__empty { display: grid; place-items: center; gap: 8px; aspect-ratio: 3 / 2; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }

.car-panel { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; padding: clamp(24px, 3vw, 32px); background: var(--paper); color: var(--paper-ink); border-radius: var(--radius); }
.car-panel__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.15; }
.car-panel__price { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.625rem); letter-spacing: -0.02em; line-height: 1; color: var(--orange-deep); font-variant-numeric: tabular-nums; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: rgba(26, 24, 22, 0.1); border: 1px solid rgba(26, 24, 22, 0.1); border-radius: var(--radius-sm); overflow: hidden; }
.fact { padding: 14px 16px; background: var(--paper); }
.fact dt { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--paper-muted); }
.fact dt .icon { color: var(--orange-deep); }
.fact dd { margin: 4px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.car-panel__actions { display: grid; gap: 10px; }
.car-panel .btn--ghost { --btn-fg: var(--paper-ink); border-color: rgba(26, 24, 22, 0.3); }
.car-panel .btn--ghost:hover { --btn-fg: var(--orange-deep); border-color: var(--orange-deep); }
.car-panel__note { display: flex; gap: 10px; font-size: 0.875rem; color: var(--paper-muted); }
.car-panel__note .icon { color: var(--orange-deep); margin-top: 2px; }
.car-panel__note a { color: var(--orange-deep); font-weight: 600; }

.car-info { display: grid; grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.spec-list { margin: 20px 0 0; display: grid; }
.spec-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.spec-list dt { color: var(--muted); }
.spec-list dd { margin: 0; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.car-info__text .prose { margin-top: 16px; }
.inquiry { margin-top: 0; padding: clamp(24px, 3vw, 36px); background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.car-info__text .prose + .inquiry, .car-info__text h2 + .prose + .inquiry { margin-top: 40px; }
.inquiry > .muted { margin: 8px 0 22px; }
.section--more { background: var(--bg-2); }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 5, 5, 0.96); color: var(--text); }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.8); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1600px); max-height: 84vh; object-fit: contain; border-radius: var(--radius-sm); }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(11, 11, 11, 0.6); cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.lightbox__btn:hover { border-color: var(--orange-hi); color: var(--orange-hi); }
.lightbox__close { top: 20px; right: 20px; }
.lightbox__prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: 0.875rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Posts ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; background: var(--paper); color: var(--paper-ink); border-radius: var(--radius); overflow: hidden; }
.post-card__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(1); transition: filter 0.4s; }
.post-card:hover .post-card__media img { filter: none; }
.post-card__body { display: grid; gap: 10px; padding: 20px; }
.post-card__title { font-size: 1.25rem; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { color: var(--orange-deep); }
.post-card p { color: var(--paper-muted); font-size: 0.9375rem; }
.post-meta { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--muted); }
.post-card .post-meta { color: var(--paper-muted); }
.pagination, .nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; font-weight: 600; }
.page-numbers.current { background: var(--orange); border-color: var(--orange); color: var(--orange-ink); }

.empty { display: grid; justify-items: center; gap: 20px; text-align: center; padding: 40px 0; color: var(--text-2); }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg); padding-top: clamp(56px, 7vw, 88px); }
.site-footer__mark { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(16px, 3vw, 40px); margin-bottom: clamp(40px, 5vw, 64px); }
.site-footer__mark img { width: clamp(180px, 22vw, 260px); }
.site-footer__rule { height: 2px; background: linear-gradient(90deg, rgba(211, 112, 46, 0), var(--orange)); }
.site-footer__rule:last-child { background: linear-gradient(90deg, var(--orange), rgba(211, 112, 46, 0)); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 0.9fr; gap: clamp(28px, 4vw, 56px); padding-bottom: clamp(48px, 6vw, 72px); }
.site-footer__title { font-size: 1.0625rem; color: var(--orange-hi); margin-bottom: 18px; }
.contact-list { list-style: none; display: grid; gap: 12px; font-size: 0.9375rem; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { color: var(--orange); margin-top: 3px; }
.contact-list a { color: var(--text-2); text-decoration: none; }
.contact-list a:hover { color: var(--orange-hi); text-decoration: underline; }
.site-footer .hours { font-size: 0.875rem; }
.link-list { list-style: none; display: grid; gap: 10px; font-size: 0.9375rem; }
.link-list a { color: var(--text-2); text-decoration: none; }
.link-list a:hover { color: var(--orange-hi); text-decoration: underline; }
/* Approvals: logos keep their own colours, so they sit on white plates. */
.certs {
	display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 48px;
	max-width: 1000px; margin: clamp(48px, 6vw, 80px) auto 0; padding-top: clamp(32px, 4vw, 48px);
	border-top: 1px solid var(--line);
}
.certs__text h3 { font-size: 1.25rem; }
.certs__text p { margin-top: 8px; color: var(--muted); font-size: 0.9375rem; max-width: 40ch; }
.certs__list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; }
.cert {
	display: grid; place-items: center; height: 76px; padding: 14px 20px;
	background: #fff; border-radius: var(--radius-sm);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 20px -10px rgba(0, 0, 0, 0.6);
}
.cert img { width: auto; height: auto; max-width: 100%; max-height: 48px; }
.site-footer__certs { display: flex; justify-content: center; padding-block: 0 clamp(40px, 5vw, 56px); }
.certs__list--footer { justify-content: center; gap: 10px; }
.certs__list--footer .cert { height: 60px; padding: 10px 16px; box-shadow: none; }
.certs__list--footer .cert img { max-height: 40px; }
/* A mark that ships with its own rounded plate fills the slot instead of sitting inside ours. */
.cert--badge, .certs__list--footer .cert--badge { padding: 0; background: none; border-radius: 0; aspect-ratio: 303 / 152; }
.cert--badge img, .certs__list--footer .cert--badge img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.site-footer__base { background: var(--orange); color: var(--orange-ink); }
.site-footer__base-inner { display: flex; justify-content: center; align-items: center; gap: 20px; min-height: 52px; font-size: 0.875rem; font-weight: 500; flex-wrap: wrap; padding-block: 12px; }
.social { display: flex; gap: 12px; }
.social a { color: var(--orange-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.services { grid-template-columns: repeat(2, 1fr); }
	.service a { aspect-ratio: 16 / 11; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.visit { grid-template-columns: 1fr; }
	.header-call span { display: none; }
	.header-call { padding: 8px 12px; }
}

@media (max-width: 960px) {
	:root { --header-h: 72px; }
	.brand img { height: 40px; }
	.menu-toggle {
		display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
		border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: transparent; cursor: pointer;
	}
	.menu-toggle__close { display: none; }
	.menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
	.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }
	.nav {
		position: fixed; inset: var(--header-h) 0 0; z-index: 49;
		display: flex; flex-direction: column; gap: 24px;
		padding: 16px var(--gutter) 32px; background: var(--night); overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity 0.25s, transform 0.3s var(--ease-out), visibility 0.25s;
	}
	.nav.is-open { opacity: 1; visibility: visible; transform: none; }
	.nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav__list > li { border-bottom: 1px solid var(--line); }
	.nav__link { width: 100%; justify-content: space-between; padding: 16px 4px; font-size: 1.125rem; font-family: var(--font-display); font-weight: 700; }
	.nav__sub { position: static; min-width: 0; padding: 0 0 12px; background: none; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
	.nav__item.is-open .nav__sub { display: block; }
	.nav__sub a { padding: 12px 8px; font-size: 1rem; }
	.nav__contact { display: grid; gap: 12px; margin-top: auto; color: var(--muted); font-size: 0.9375rem; }
	body.nav-open { overflow: hidden; }
	.site-header.nav-is-open { position: fixed; background: var(--night); }

	.hero { padding-bottom: 180px; }
	.hero__status { width: 100%; clip-path: polygon(40px 0, 100% 0, 100% 100%, 0 100%); }
	.hero__status-inner { padding-left: 64px; }

	.tradein { grid-template-columns: 1fr; }
	.tradein__media { height: 220px; }
	.tradein__media::before, .tradein__media img { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%); }
	.tradein__media::before { inset: 0 0 -12px 0; }
	.tradein__media img { width: 100%; }
	.tradein__copy { padding: 28px 24px 36px; }

	.about { grid-template-columns: 1fr; }
	.about__media { max-width: 560px; }
	.page-layout, .contact, .car-detail, .car-info { grid-template-columns: 1fr; }
	.page-aside, .car-panel { position: static; }
	.section-head--end { text-align: left; margin-left: 0; }
	.section-head--end .section-head__lead { margin-left: 0; }
}

@media (max-width: 640px) {
	.certs__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
	.cert, .certs__list--footer .cert { height: 60px; padding: 8px 10px; }
	.cert img, .certs__list--footer .cert img { max-height: 36px; }
	.cert--badge, .certs__list--footer .cert--badge { padding: 0; aspect-ratio: auto; box-shadow: none; }
	.cert--badge img, .certs__list--footer .cert--badge img { max-height: none; }
	.reasons { grid-template-columns: 1fr; }
	.certs { grid-template-columns: 1fr; }
	.services { grid-template-columns: 1fr; gap: 12px; }
	.service a { aspect-ratio: 16 / 9; }
	.car-grid { grid-template-columns: 1fr; }
	.visit__hours, .contact__hours { grid-template-columns: 1fr; }
	.form__row { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.hero__actions .btn { flex: 1 1 100%; }
	.header-call { display: none; }
	.car-browser__controls, .car-browser__controls .select, .car-browser__controls select { width: 100%; }
	.lightbox__prev, .lightbox__next { top: auto; bottom: 16px; transform: none; }
	.lightbox__count { bottom: 32px; }
}

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

@media print {
	.site-header, .site-footer, .hero__status, .inquiry, .lightbox { display: none !important; }
	body { background: #fff; color: #000; }
}
.section--cars-list { padding-top: clamp(32px, 4vw, 56px); }
