/* Figtree (SIL Open Font License), self-hosted so text doesn't wait for Google Fonts. Latin only; header.php preloads it. */
@font-face {
	font-family: 'Figtree';
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url('fonts/figtree-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: Figtree (Google Fonts, loaded in header.php) */

:root {
  /* Motion: fast, decelerating; "pop" overshoots slightly for exaggerated feedback */
  --ease-out: cubic-bezier(0.2, 0.9, 0.3, 1);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-press: 90ms;
  --dur-fast: 140ms;
  --dur: 200ms;
  --accent-pink: #f8488c;
  --bg-color: #f9f9f9;
  --text-color: #222;
  --accent-color: #d81b60; /* brand pink, deep enough for text on white */
  --pink-soft: #ffe8f1;
  --wa-green: #25D366;
  --card-bg: #ffffff;
  --shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  --radius: 1.25rem;
}

:root{
	--space-unit:  1em;
	--space-xxxxs: calc(0.125*var(--space-unit));
	--space-xxxs:  calc(0.25*var(--space-unit));
	--space-xxs:   calc(0.375*var(--space-unit));
	--space-xs:    calc(0.5*var(--space-unit));
	--space-sm:    calc(0.75*var(--space-unit));
	--space-md:    calc(1.25*var(--space-unit));
	--space-lg:    calc(2*var(--space-unit));
	--space-xl:    calc(3.25*var(--space-unit));
	--space-xxl:   calc(5.25*var(--space-unit));
	--space-xxxl:  calc(8.5*var(--space-unit));
	--space-xxxxl: calc(13.75*var(--space-unit));
	--component-padding: var(--space-md);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  padding: 0;
}
/* No sideways scrolling. Only <html> may use "hidden": on <body> too it would make body a
   scroll box and clip the menu panel on short pages (e.g. contact.php). "clip" doesn't. */
html { overflow-x: hidden; }
body { overflow-x: clip; }

h1, h2, h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}
/* Main heading of an inner page: an <h1> for search engines, sized like the old <h2>. */
h1.page-title { font-size: 1.5em; margin-top: 3px; }

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0px;
}

.content {
	padding-top: 25px;
	padding-left: 20px;
	padding-right: 20px;
}

.content a {
	color:#000;
}

/* Breadcrumbs: muted links, no underline until hover. Only the words underline:
   the model code badge and years are inline-blocks, which text underlines skip. */
.breadcrumbs { display: inline; }
.content a.breadcrumb {
	display: inline-block;
	color: #666;
	text-decoration: none;
	text-underline-offset: 3px;
	transition: color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
.content a.breadcrumb:hover { color: #111; text-decoration: underline; }
.crumb-sep { color: #bbb; margin: 0 4px; }
/* In breadcrumbs the model code reads as plain text, not a pink badge */
.breadcrumb .model-code {
	display: inline;
	padding: 0;
	border: 0;
	color: inherit;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: normal;
	vertical-align: baseline;
	margin: 0 0 0 0.3em;
}

/* Header: big logo on the homepage, compact on inner pages so the content starts higher */
.header {
	background: #000;
	padding: 6px 0;
}
.logo-link { display: block; width: max-content; margin: 0 auto; }
.site-logo {
	display: block;
	height: 84px;
	width: auto;
	opacity: 0.95;
	/* The logo artwork has its own dark brick box; fade its edges into the black header */
	-webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
	        mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
}
.header--home { padding: 0; }
.header--home .site-logo { height: 160px; }

.brand-logo {
	height: 18px;
	opacity: 0.8;
	vertical-align: middle;
	margin-top: -1px;
	margin-right: 6px;
}

.card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  transition: box-shadow var(--dur) var(--ease-out);
}

.card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

button {
  background-color: var(--accent-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out);
}

button:hover {
  background-color: #b0154e;
}

a {
  color: var(--accent-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.thumbimg {
	max-width: 210px;
	max-height: 220px;
	height: auto; /* keep the aspect ratio when max-width shrinks it */
}

li {
	list-style: none;
}

/* ---------- Navigation (templates/nav.php + js/nav.js) ---------- */
.site-nav {
	--nav-accent: var(--accent-pink);
	background: #111;
	position: sticky; /* stays at the top while scrolling long galleries */
	top: 0;
	z-index: 900;
}

.site-nav ul { list-style: none; }
.site-nav button {
	background: none;
	border-radius: 0;
	color: inherit;
	font: inherit;
	padding: 0;
	cursor: pointer;
}
.site-nav button:hover { background: none; }
.site-nav [hidden] { display: none !important; }

.nav-bar {
	display: flex;
	align-items: stretch;
	height: 45px;
	padding: 0 8px;
}

.site-nav .nav-brand-btn,
.nav-link > a {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 16px;
	margin-right: 24px;
	color: #fff;
	font-weight: 500;
	white-space: nowrap;
	text-decoration: none;
	opacity: 0.9;
}
.nav-brand-btn:hover, .nav-link > a:hover,
.nav-brand.is-open .nav-brand-btn { opacity: 1; text-decoration: none; }
.nav-brand.is-open .nav-brand-btn { background: #000; }
.nav-brand-btn:focus-visible, .site-nav a:focus-visible, .site-nav button:focus-visible {
	outline: 2px solid var(--nav-accent);
	outline-offset: -2px;
}

.nav-caret {
	width: 0;
	height: 0;
	margin-left: 10px;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid var(--nav-accent);
	transition: transform var(--dur) var(--ease-pop);
}
.nav-brand.is-open .nav-caret { transform: rotate(180deg); }

/* Desktop mega panel: models on the left, the active model's products on the right */
.nav-panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	max-width: 960px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 230px 1fr;
	background: #fff;
	color: var(--text-color);
	border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
	overflow: hidden;
}
.nav-drawer-head { display: none; }

.nav-models {
	grid-column: 1;
	grid-row: 1;
	background: #f3f3f3;
	padding: 12px 0;
}
.nav-model {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 18px;
	color: var(--text-color) !important;
	font-weight: 500;
	border-left: 3px solid transparent;
}
.nav-model:hover { text-decoration: none; }
.nav-model.is-active { background: #fff; border-left-color: var(--nav-accent); }
.nav-model[aria-current="page"] { font-weight: 600; }
.nav-arrow { color: #999; margin-left: 8px; }

.nav-products {
	grid-column: 2;
	grid-row: 1;
	display: none;
	padding: 16px 22px 20px;
	max-height: max(320px, calc(100vh - 230px)); /* screen height below the header + nav */
	overflow-y: auto;
}
.nav-products.is-active { display: block; }

.nav-group + .nav-group { margin-top: 14px; }
.nav-group-title {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #888;
	margin-bottom: 6px;
}
.nav-group ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 4px 12px;
}
.nav-group a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 5px 6px;
	border-radius: 8px;
	color: var(--text-color) !important;
	font-size: 14px;
	line-height: 1.3;
}
.nav-group a:hover { background: #f3f3f3; text-decoration: none; }
.nav-group a[aria-current="page"] { background: var(--pink-soft); font-weight: 600; }
.nav-group img, .nav-noicon {
	flex: 0 0 60px;
	width: 60px;
	height: 40px;
	object-fit: cover;
	border-radius: 6px;
	background: #e9e9e9;
}

.nav-viewall {
	display: inline-block;
	margin-top: 14px;
	font-size: 14px;
	font-weight: 600;
	color: var(--text-color) !important;
	border-bottom: 1px solid #999;
}
.nav-viewall:hover { text-decoration: none; }

.nav-overlay { display: none; }

/* Mobile: the panel becomes a side drawer with drill-down levels */
@media all and (max-width: 800px) {
	.nav-bar { padding: 0 0 0 12px; overflow-x: auto; } /* first item lines up with the page content (24px) */
	.site-nav .nav-brand-btn, .nav-link > a { padding: 0 12px; margin-right: 4px; }

	.nav-panel {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		right: auto;
		width: 85%;
		max-width: 380px;
		margin: 0;
		display: block;
		border-radius: 0;
		background: #1c1c1c;
		color: #eee;
		overflow-y: auto;
		overscroll-behavior: contain;
		z-index: 1000;
		transform: translateX(-100%);
		transition: transform 220ms var(--ease-out);
	}
	.nav-brand.is-open .nav-panel { transform: none; }

	.nav-drawer-head {
		display: flex;
		align-items: center;
		gap: 8px;
		position: sticky;
		top: 0;
		z-index: 1;
		min-height: 54px;
		padding: 0 8px 0 16px;
		background: #111;
		border-bottom: 1px solid #333;
	}
	.nav-drawer-title { flex: 1; font-weight: 600; font-size: 17px; }
	.nav-back { color: var(--nav-accent) !important; font-weight: 500; padding: 12px 8px 12px 0 !important; white-space: nowrap; }
	.nav-back:not([hidden]) + .nav-drawer-title { font-size: 15px; }
	.nav-close { font-size: 20px; padding: 10px 12px !important; }

	.nav-models { background: none; padding: 6px 0; }
	.nav-model {
		color: #eee !important;
		padding: 14px 18px;
		border-left: 0;
		border-bottom: 1px solid #2c2c2c;
		background: none !important;
	}
	.nav-arrow { color: var(--nav-accent); font-size: 20px; }

	.nav-panel[data-level="products"] .nav-models { display: none; }
	.nav-panel:not([data-level="products"]) .nav-products { display: none !important; }
	.nav-products { max-height: none; padding: 10px 12px 24px; }

	.nav-group-title { color: #999; padding: 8px 6px 4px; }
	.nav-group ul { grid-template-columns: 1fr; gap: 2px; }
	.nav-group a { color: #eee !important; padding: 8px 6px; }
	.nav-group a:hover { background: #2a2a2a; }
	.nav-group a[aria-current="page"] { background: #3a1426; }
	.nav-group img, .nav-noicon { background: #333; }
	.nav-viewall { color: #eee !important; margin: 16px 6px 0; }

	.nav-overlay {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.5);
		backdrop-filter: blur(3px);
		z-index: 950;
	}
	body.nav-locked { overflow: hidden; }
}

/* Vehicle model code badge, e.g. "BP", "KF Facelift" (lib/helpers.php model_label) */
.model-code {
	display: inline-block;
	padding: 0.05em 0.5em;
	border: 1.5px solid currentColor;
	border-radius: 999px;
	color: #d81b60; /* deeper than the logo pink so small text stays readable on white (5:1) */
	font-size: 0.82em;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0.02em;
	vertical-align: 0.08em;
	white-space: nowrap;
	margin: 0 0.1em 0 0.35em;
}
/* On dark backgrounds use the bright logo pink */
@media (max-width: 800px) {
	.nav-panel .model-code { color: var(--accent-pink); }
}

/* In the menu's model list the years go on their own line under the name */
.nav-model small.yearmade { display: block; margin: 1px 0 0; }

/* inline-block: link underlines never run under the years (same as the code badge) */
small.yearmade {
	display: inline-block;
	white-space: nowrap;
	margin-left: 0.6em;
	font-size:11px;
}

div.one-model {
	width: 46%;
	display: inline-block;
	text-align: center;
	margin: 2%;
	margin-bottom: 40px;
}

div.one-model a {
	color:#000
}

div.one-model img {
	width: 90%;
	height: auto;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	margin-bottom: 10px;
	transition: transform var(--dur) var(--ease-pop), box-shadow var(--dur) var(--ease-out);
}

div.one-model a:hover img {
	transform: translateY(-6px) scale(1.02);
	box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}
div.one-model a:active img {
	transform: translateY(-2px) scale(0.97);
	transition-duration: var(--dur-press);
}

div.product-list {
	display: flex;
	flex-wrap: wrap; /* Allows items to flow to the next line */
	list-style: none; /* Useful if using a list */
	padding: 0;
	margin-left: -10px;
	margin-right: -10px;
}

div.subtitle {
	margin-top: 18px;
	margin-bottom: 6px;
	padding-left: 10px;
	border-left: 4px solid var(--accent-pink);
	font-size: 20px;
	font-weight: bold;
	line-height: 1.2;
	scroll-margin-top: 70px; /* clear of the sticky menu when jumped to */
}

div.one-product {
	min-width: 0; /* let the card shrink to its column; the photo's size must not widen it */
	flex: 0 0 32%; /* Shorthand for flex-grow: 0, flex-shrink: 0, flex-basis: 33.3333% */
	/* Add other styling for visual representation */
	box-sizing: border-box; /* Ensures padding/border is included in the width calculation */
	/* outline: 1px solid; */
	padding-top: 20px;
	padding-bottom: 20px;
	text-align: center;
	line-height: 18px;
}

div.one-product.sub {
	/* padding-left: 25px;
	margin-bottom: 3px; */
}

div.one-product a {
	color: #222;
	font-weight: 500;
	transition: color var(--dur-fast) var(--ease-out);
	font-size: 15px;
}

div.one-product a:hover {
	color: var(--accent-color);
	text-decoration: none;
}

.clear {
	clear: both
}

.small-product-thumbnail {
	width: 200px; /* Desired thumbnail width */
	height: 115px; /* Desired thumbnail height */
	overflow: hidden; /* Ensures any cropped parts are hidden */
	border-radius: var(--radius);
	margin:0 auto;
	margin-bottom: 8px;
	transition: transform var(--dur) var(--ease-pop), box-shadow var(--dur) var(--ease-out);
}

.small-product-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* or 'contain' */
	border-radius: var(--radius);
	transition: transform 300ms var(--ease-out);
}

/* Card lifts (main action) while the photo zooms inside its frame (secondary action) */
div.one-product a:hover .small-product-thumbnail {
	transform: translateY(-4px);
	box-shadow: 0 12px 22px rgba(0, 0, 0, 0.28);
}
div.one-product a:hover .small-product-thumbnail img { transform: scale(1.08); }
div.one-product a:active .small-product-thumbnail {
	transform: translateY(-1px) scale(0.96);
	transition-duration: var(--dur-press);
}

@media all and (min-width:0px) and (max-width: 800px) {

	div.one-model {
		width: 46%;
		margin-bottom: 22px;
		font-size: 14px;
		line-height: 1.35;
	}
	div.one-model img { width: 100%; border-radius: 14px; }

	.header .site-logo { height: 52px; }
	.header--home .site-logo { height: 120px; }

	.card {
		padding: 1.5rem;
	}

	div.one-product {
		flex: 0 0 46%; /* Shorthand for flex-grow: 0, flex-shrink: 0, flex-basis: 33.3333% */
		padding-left: 15px;
	}
	
	.small-product-thumbnail {
		width: 98%; 
		aspect-ratio: 10/7;
	}
}


/* ---------- Page loader (header.php + js/loader.js) ---------- */
/* The whole page dims while the next page loads; html.is-loading turns it on. */
.page-dim {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
html.is-loading .page-dim {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease, visibility 0s;
}
html.is-loading body { cursor: progress; }

/* Techy HUD spinner in the logo pink: outer arc, counter-rotating tick ring, fast inner arc + core. */
.loader {
  --loader-pink: #f8488c;
  --loader-size: 64px;
  position: absolute;
  top: calc(50% - var(--loader-size) / 2);
  left: calc(50% - var(--loader-size) / 2);
  width: var(--loader-size);
  height: var(--loader-size);
  border-radius: 50%;
  border: 2px solid rgba(248, 72, 140, 0.15);
  border-top-color: var(--loader-pink);
  border-right-color: var(--loader-pink);
  filter: drop-shadow(0 0 6px rgba(248, 72, 140, 0.8));
  animation: loader-spin 1.1s linear infinite;
}
/* Tick ring (36 segments), turning slowly the other way */
.loader::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--loader-pink) 0 4deg, transparent 4deg 10deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 4px));
  opacity: 0.8;
  animation: loader-spin 3.2s linear infinite reverse;
}
/* Fast inner arc around a glowing core */
.loader::after {
  content: "";
  position: absolute;
  inset: 17px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: var(--loader-pink);
  border-left-color: var(--loader-pink);
  background: radial-gradient(circle, #fff 0 1.5px, var(--loader-pink) 2.5px 4px, transparent 5px);
  animation: loader-spin 0.6s linear infinite;
}
/* "LOADING" label under the spinner */
.page-dim::after {
  content: "LOADING";
  position: absolute;
  top: calc(50% + 46px);
  left: 0;
  right: 0;
  text-align: center;
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0.45em;
  text-indent: 0.45em; /* keeps the spaced text visually centred */
  color: #f8488c;
  text-shadow: 0 0 8px rgba(248, 72, 140, 0.9);
  animation: loader-blink 1.4s ease-in-out infinite;
}
@keyframes loader-spin {
  to { transform: rotate(360deg); }
}
@keyframes loader-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .page-dim, html.is-loading .page-dim { transition: none; }
  .loader, .loader::before, .loader::after { animation-duration: 3s; }
  .page-dim::after { animation: none; }
}


/* ---------- Motion & feedback (snappy timing, exaggerated feedback, secondary action) ---------- */
html { -webkit-tap-highlight-color: transparent; } /* our own press states replace the grey flash */

/* Pressed state on anything tappable: a quick, visible squish */
button:active,
.nav-brand-btn:active,
.nav-link > a:active,
.nav-model:active,
.nav-group a:active,
.nav-viewall:active,
.nav-back:active,
.nav-close:active,
a.breadcrumb:active {
	transform: scale(0.95);
	transition: transform var(--dur-press) var(--ease-out);
}

/* Nav bar: pink underline grows in from the centre on hover / when open */
.site-nav .nav-brand-btn, .nav-link > a { position: relative; }
.site-nav .nav-brand-btn::after, .nav-link > a::after {
	content: "";
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 6px;
	height: 2px;
	border-radius: 2px;
	background: var(--accent-pink);
	transform: scaleX(0);
	transition: transform var(--dur) var(--ease-pop);
}
.site-nav .nav-brand-btn:hover::after, .nav-link > a:hover::after,
.nav-brand.is-open .nav-brand-btn::after { transform: scaleX(1); }

/* Desktop panel: drops in fast */
@media (min-width: 801px) {
	.nav-brand.is-open .nav-panel { animation: nav-drop var(--dur) var(--ease-out); }
}
@keyframes nav-drop {
	from { opacity: 0; transform: translateY(-8px); }
}

/* Secondary action: products cascade in when a list appears (index set in templates/nav.php) */
.nav-products.is-entering .nav-group li,
.nav-products.is-entering .nav-group-title,
.nav-products.is-entering .nav-viewall,
.nav-models.is-entering li {
	animation: nav-item-in 220ms var(--ease-out) both;
	animation-delay: calc(min(var(--i, 0), 14) * 18ms);
}
@keyframes nav-item-in {
	from { opacity: 0; transform: translateY(6px); }
}

/* Model rows: arrow nudges toward where you're going; product icons pop */
.nav-arrow { display: inline-block; transition: transform var(--dur) var(--ease-pop); }
.nav-model:hover .nav-arrow, .nav-model.is-active .nav-arrow { transform: translateX(4px); }
.nav-group img { transition: transform var(--dur) var(--ease-pop); }
.nav-group a:hover img { transform: scale(1.1); }
.nav-group a { transition: background-color var(--dur-fast) var(--ease-out), transform var(--dur-press) var(--ease-out); }

/* Mobile drill-down: the next level slides in from the side it comes from */
@media (max-width: 800px) {
	.nav-panel[data-anim="forward"] .nav-products.is-active { animation: nav-slide-in-right 220ms var(--ease-out); }
	.nav-panel[data-anim="back"] .nav-models { animation: nav-slide-in-left 220ms var(--ease-out); }
}
@keyframes nav-slide-in-right { from { opacity: 0; transform: translateX(28px); } }
@keyframes nav-slide-in-left  { from { opacity: 0; transform: translateX(-28px); } }

/* Gallery: thumbnails brighten and pop on hover, squish when tapped */
.thumbimg {
	transition: transform var(--dur) var(--ease-pop), filter var(--dur-fast) var(--ease-out), opacity 260ms var(--ease-out);
	position: relative;
}
a:hover > .thumbimg { transform: scale(1.04); filter: brightness(1.08); z-index: 1; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25); }
a:active > .thumbimg { transform: scale(0.96); transition-duration: var(--dur-press); }

/* Secondary action: photos fade in as they finish loading (js/ui.js adds .is-loaded) */
html.js .thumbimg:not(.is-loaded),
html.js .small-product-thumbnail img:not(.is-loaded) { opacity: 0; }
html.img-fallback .thumbimg, html.img-fallback .small-product-thumbnail img { opacity: 1 !important; }

/* Loader: spinner pops in with the dim */
html.is-loading .loader { animation: loader-pop 260ms var(--ease-pop), loader-spin 1.1s linear infinite; }
@keyframes loader-pop { from { transform: scale(0.5); opacity: 0; } }

/* Keyboard focus: clear pink ring */
:focus-visible { outline: 2px solid var(--accent-pink); outline-offset: 2px; }

/* People who ask for less motion get instant state changes (the spinner keeps turning, slower) */
@media (prefers-reduced-motion: reduce) {
	*:not(.loader), *:not(.loader)::before, *:not(.loader)::after {
		animation-duration: 1ms !important;
		animation-delay: 0ms !important;
		transition-duration: 1ms !important;
	}
}


/* ---------- Buttons ---------- */
.wa-icon { width: 1.2em; height: 1.2em; flex: none; }
.btn-wa, .btn-primary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none !important;
	white-space: nowrap;
	transition: transform var(--dur) var(--ease-pop), box-shadow var(--dur) var(--ease-out), filter var(--dur-fast);
}
.btn-wa { background: var(--wa-green); color: #fff !important; box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35); }
.btn-primary { background: #111; color: #fff !important; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); }
.btn-wa:hover, .btn-primary:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22); }
.btn-wa:active, .btn-primary:active { transform: scale(0.96); transition-duration: var(--dur-press); }
.btn-wa--small { padding: 7px 14px; font-size: 14px; }
.btn-wa--block { display: flex; width: 100%; min-width: 0; }
.btn-wa--block span { overflow: hidden; text-overflow: ellipsis; }
.btn-wa--big { padding: 15px 20px; font-size: 18px; }

/* WhatsApp in the menu bar (#5): pill on desktop, round icon on small phones */
.nav-wa-item { margin-left: auto; display: flex; align-items: center; padding-right: 8px; }
.site-nav .nav-wa {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	padding: 0 14px;
	border-radius: 999px;
	background: var(--wa-green);
	color: #fff;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	transition: transform var(--dur-press) var(--ease-out), filter var(--dur-fast);
}
.site-nav .nav-wa:hover { filter: brightness(1.08); }
.site-nav .nav-wa:active { transform: scale(0.92); }
@media (max-width: 480px) {
	.nav-hide-xs { display: none; }
	.site-nav .nav-wa { width: 34px; height: 34px; padding: 0; justify-content: center; }
	.site-nav .nav-wa .wa-icon { width: 20px; height: 20px; }
}

/* ---------- Home intro (#10) ---------- */
.intro { text-align: center; padding: 10px 8px 26px; }
.intro h1 { font-size: clamp(24px, 5.2vw, 34px); line-height: 1.2; margin-bottom: 8px; }
.intro p { color: #555; margin-bottom: 16px; }
.intro-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
#models { scroll-margin-top: 60px; }

/* ---------- Model page (#12) ---------- */
.model-head, .product-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
}
.product-head { margin-bottom: 14px; }
.product-head h2, .model-head h2, .product-head h1, .model-head h1 { margin-bottom: 0; }
.jump-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.jump-links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border-radius: 999px;
	background: #f3f3f3;
	color: #222 !important;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none !important;
	transition: background-color var(--dur-fast), transform var(--dur-press) var(--ease-out);
}
.jump-links a span { font-size: 12px; color: #888; font-weight: 500; }
.jump-links a:hover { background: var(--pink-soft); }
.jump-links a:active { transform: scale(0.95); }
html { scroll-behavior: smooth; }

/* ---------- Product page ---------- */
/* Includes checklist (#8): "- " lines in info.txt */
.product-description { line-height: 1.6; color: #333; }
.product-description h2 { font-size: 1.1em; margin: 0 0 8px; color: #111; }
.product-description p { margin: 0 0 10px; }
.product-description p:last-child { margin-bottom: 0; }
.info-list { margin: 8px 0 6px; padding: 0; }
.info-list li { position: relative; padding-left: 30px; margin: 6px 0; }
.info-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--pink-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23d81b60' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Gallery (#7): even tiles, cropped to 4:3; tapping still opens the full photo */
.gallery-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.gallery-head small { color: #777; }
.gallery-show-all { padding: 3px 11px; border-radius: 999px; font-size: 13px; background: #111; }
.gallery-show-all[hidden] { display: none; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; }
.gallery-grid a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #eee; }
.gallery-grid .thumbimg {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
}
.gallery-grid a:hover > .thumbimg { box-shadow: none; }

/* Prev / next + "More for" (#9) */
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 2rem; }
.prev-next a {
	display: block;
	padding: 12px 16px;
	border-radius: 14px;
	background: var(--card-bg);
	box-shadow: var(--shadow);
	color: #222 !important;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none !important;
	transition: transform var(--dur) var(--ease-pop), box-shadow var(--dur);
}
.prev-next a:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0, 0, 0, 0.1); }
.prev-next a:active { transform: scale(0.97); }
.prev-next a span { display: block; font-size: 12px; font-weight: 500; color: #888; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 2px; }
.prev-next .next { grid-column: 2; text-align: right; }
.more-card h2 { margin-bottom: 4px; font-size: 1.17em; }
.more-card .see-all { display: inline-block; margin-top: 4px; font-weight: 600; color: var(--accent-color) !important; }

/* Sticky enquiry bar on phones (#6) */
.wa-sticky { display: none; }
@media (max-width: 800px) {
	.product-head .btn-wa { display: none; } /* the sticky bar replaces it */
	.wa-sticky {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 800;
		padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
		background: rgba(255, 255, 255, 0.92);
		-webkit-backdrop-filter: blur(8px);
		        backdrop-filter: blur(8px);
		border-top: 1px solid #eee;
	}
	body:has(.wa-sticky) { padding-bottom: 72px; }
	.gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
	.gallery-grid a { border-radius: 6px; }
	.prev-next a { padding: 10px 12px; font-size: 14px; }
}

/* ---------- Footer (#13) ---------- */
.site-footer { background: #111; color: #aaa; margin-top: 40px; padding-top: 36px; font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; padding: 0 20px; }
.site-footer a { color: #ddd; }
.site-footer a:hover { color: #fff; }
.footer-brand img {
	display: block;
	height: 70px;
	width: auto;
	margin-bottom: 8px;
	-webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
	        mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
}
.footer-brand p { margin-bottom: 12px; }
.footer-title { color: #fff; font-weight: 600; margin-bottom: 8px; }
.site-footer li { margin: 5px 0; }
.site-footer li span { color: #777; }
.footer-bottom { border-top: 1px solid #222; margin-top: 28px; padding: 16px 20px; font-size: 13px; color: #777; }
@media (max-width: 800px) {
	.footer-inner { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}

/* ---------- Contact page (#15) ---------- */
.contact-lead { color: #555; margin: 6px 0 18px; }
.contact-links { display: grid; gap: 10px; margin-top: 18px; }
.contact-link {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 14px;
	border: 1px solid #eee;
	border-radius: 14px;
	color: #222 !important;
	text-decoration: none !important;
	transition: background-color var(--dur-fast), transform var(--dur-press) var(--ease-out);
}
.contact-link:hover { background: #fafafa; }
.contact-link:active { transform: scale(0.98); }
.contact-link img { border-radius: 8px; }
.contact-link span { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.contact-link small { color: #888; }
.contact-link i { font-style: normal; font-size: 22px; color: #bbb; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.contact-info-block { padding: 12px 14px; border: 1px solid #eee; border-radius: 14px; background: #fafafa; }
.contact-info-block h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: #777; text-transform: uppercase; letter-spacing: .04em; }
.contact-info-block p { margin: 0; }
.contact-hours { margin: 0; }
.contact-hours div { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.contact-hours dt { color: #444; white-space: nowrap; }
.contact-hours dd { margin: 0; font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) { .contact-info { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- Photo filter chips (product pages, js/gallery-filter.js) ---------- */
.gallery-filters { padding: 1rem 1.25rem; }
.chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0; }
.chip-label { min-width: 54px; font-size: 13px; font-weight: 600; color: #666; }
.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 12px;
	border: 1px solid #e3e3e3;
	border-radius: 999px;
	background: #fff;
	color: #222;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast), transform var(--dur-press) var(--ease-out);
}
.chip span { font-size: 12px; color: #6b6b6b; }
.chip:hover { background: var(--pink-soft); border-color: #f5c0d6; }
.chip:active { transform: scale(0.94); }
.chip[aria-pressed="true"] { background: var(--accent-color); border-color: var(--accent-color); color: #fff; }
.chip[aria-pressed="true"] span { color: #ffd2e4; }
.filter-status { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; color: #555; }
.chip-reset { padding: 4px 12px; border-radius: 999px; font-size: 13px; background: #111; }
.gallery-grid > a[hidden], .card[hidden] { display: none !important; }

/* ---------- "Your car colour" swatch row (js/car-colour.js) ---------- */
.car-colour {
	margin: 18px 0 22px;
	padding: 14px 18px 12px;
	border-radius: 16px;
	background: #f6f6f7;
	border: 1px solid #ececee;
}
.content > .car-colour { margin: 0 0 22px; }
.car-colour-label { display: block; font-size: 13px; font-weight: 600; color: #666; margin-bottom: 10px; }
.car-colour-name { color: var(--accent-color); }
.car-colour-dots { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 14px; }
/* Each swatch: a glossy paint dot (the <i>), with its name underneath on phones */
.swatch {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: #555;
	cursor: pointer;
}
.swatch:hover { background: none; }
.swatch i {
	display: block;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	/* Spun-metal look: light and dark rays radiating from the centre, over the paint colour (--paint) */
	background:
		radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.16) 0, rgba(255, 255, 255, 0) 10%),
		conic-gradient(from -12deg,
			rgba(255, 255, 255, 0.08) 0deg, rgba(0, 0, 0, 0.08) 45deg,
			rgba(255, 255, 255, 0.07) 90deg, rgba(0, 0, 0, 0.08) 135deg,
			rgba(255, 255, 255, 0.08) 180deg, rgba(0, 0, 0, 0.08) 225deg,
			rgba(255, 255, 255, 0.07) 270deg, rgba(0, 0, 0, 0.08) 315deg,
			rgba(255, 255, 255, 0.08) 360deg),
		var(--paint);
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px #d6d6d6, inset 0 0 0 1px rgba(0, 0, 0, 0.2);
	transition: transform var(--dur-press) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
/* Snowflake White Pearl: flat, no metal effect */
.swatch[data-colour="snowflake_white"] i { background: var(--paint); }
.swatch:hover i { transform: scale(1.1); }
.swatch:active i { transform: scale(0.92); }
.swatch[aria-pressed="true"] i { transform: scale(1.12); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent-pink), inset 0 0 0 1px rgba(0, 0, 0, 0.2); }
.swatch { width: 78px; }
.swatch-name { display: block; font-size: 11px; line-height: 1.2; font-weight: 600; text-align: center; max-width: 78px; color: #666; text-wrap: balance; }
.swatch[aria-pressed="true"] .swatch-name { color: var(--accent-color); }
.swatch-any {
	align-self: flex-start;
	width: auto;
	margin-top: 1px;
	height: 36px;
	padding: 0 14px;
	border: 1px solid #d6d6d6;
	border-radius: 999px;
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	color: #444;
	justify-content: center;
}
.swatch-any:hover { background: #fff; border-color: #bdbdbd; }
.swatch-any[aria-pressed="true"] { border-color: var(--accent-pink); box-shadow: 0 0 0 1px var(--accent-pink); }
@media (max-width: 800px) {
	.car-colour { padding: 12px 12px 10px; }
	/* 4 per row so 7 colours + "Any" fit in 2 rows */
	.car-colour-dots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 2px; }
	.swatch { width: auto; min-width: 0; }
	.swatch-name { font-size: 10px; max-width: none; }
	.swatch-any { justify-self: center; height: 34px; margin-top: 0; padding: 0 12px; font-size: 12px; }
}
.car-colour-note { margin: 8px 0 0; font-size: 14px; color: #8a5a00; background: #fff8e1; border-radius: 10px; padding: 8px 12px; }
.chip-row[hidden] { display: none; }
