/*
 * Autobedrijf Schoone – main stylesheet.
 *
 * Plain modern CSS, no build step. Organised in cascade layers:
 *   reset → tokens → base → layout → components → sections → utilities
 *
 * Signature details: Archivo with its width axis (expanded, heavy headings),
 * garage blue as the lead colour with yellow as a secondary accent, and "notched" corners
 * (two opposite chamfers) on images, cards and buttons.
 */

@layer reset, tokens, base, layout, components, sections, utilities;

/* ---------------------------------------------------------------- fonts -- */

@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-latin-ext.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Archivo";
	src: url("../fonts/archivo-latin.woff2") format("woff2");
	font-weight: 100 900;
	font-stretch: 62% 125%;
	font-display: swap;
	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;
}

/* Smooth cross-page transitions in supporting browsers. */
@view-transition { navigation: auto; }

/* ---------------------------------------------------------------- reset -- */

@layer reset {
	*, *::before, *::after { box-sizing: border-box; }
	* { margin: 0; }
	html { -webkit-text-size-adjust: none; text-size-adjust: none; }
	body { min-height: 100svh; }
	img, svg, video, picture { display: block; max-width: 100%; }
	img { height: auto; }
	input, button, textarea, select { font: inherit; color: inherit; }
	button { cursor: pointer; background: none; border: 0; padding: 0; }
	ul[class], ol[class] { list-style: none; padding: 0; }
	address { font-style: normal; }
	:target { scroll-margin-block: calc(var(--header-h) + 2rem); }
}

/* --------------------------------------------------------------- tokens -- */

@layer tokens {
	:root {
		color-scheme: light;

		/* Brand */
		--yellow: #ffd51f;        /* secondary accent: thin lines, small details */
		--yellow-strong: #f2c500;
		--blue: #195ba5;          /* lead colour: buttons, CTA band, highlights */
		--blue-strong: #134a89;   /* hover */
		--blue-deep: #0e335e;     /* dark sections */
		--blue-night: #0a1c33;    /* footer */
		--blue-soft: #eaf1fa;
		--blue-on-dark: #9cc1ec;  /* text accents on dark blue */

		/* Neutrals */
		--ink: #111315;
		--graphite: #303030;
		--text: #2c3035;
		--muted: #5c636b;
		--line: #e4e6e9;
		--line-strong: #cdd1d6;
		--mist: #e9ebee;          /* light grey surfaces */
		--paper: #ffffff;

		--font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

		/* Fluid type scale (360px → 1280px) */
		--step--1: clamp(0.82rem, 0.79rem + 0.12vw, 0.89rem);
		--step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
		--step-1: clamp(1.15rem, 1.08rem + 0.35vw, 1.4rem);
		--step-2: clamp(1.35rem, 1.22rem + 0.6vw, 1.8rem);
		--step-3: clamp(1.6rem, 1.36rem + 1.1vw, 2.5rem);
		--step-4: clamp(1.95rem, 1.5rem + 2vw, 3.5rem);
		--step-5: clamp(2.3rem, 1.55rem + 3.4vw, 5rem);
		--step-6: clamp(2.6rem, 1.2rem + 6.6vw, 7.25rem);

		/* Fluid space scale */
		--space-2xs: clamp(0.375rem, 0.35rem + 0.12vw, 0.5rem);
		--space-xs: clamp(0.5rem, 0.45rem + 0.25vw, 0.75rem);
		--space-s: clamp(0.75rem, 0.65rem + 0.5vw, 1.125rem);
		--space-m: clamp(1.25rem, 1.05rem + 1vw, 1.875rem);
		--space-l: clamp(2rem, 1.6rem + 2vw, 3.25rem);
		--space-xl: clamp(3rem, 2.2rem + 4vw, 6rem);
		--space-2xl: clamp(4rem, 2.8rem + 6vw, 8rem);

		--gutter: clamp(16px, 4vw, 40px);
		--max: 1240px;
		--header-h: 76px;

		/* Space around the divider line under a page header: a third of the section spacing. */
		--hero-gap-above: calc(var(--space-xl) / 3);
		--hero-gap-below: calc(var(--space-2xl) / 3);

		--notch: 14px;
		--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
		--shadow: 0 1px 2px rgb(17 19 21 / 0.06), 0 12px 32px -12px rgb(17 19 21 / 0.25);
	}

	@media (max-width: 1023px) {
		:root { --header-h: 64px; }
	}
}

/* ----------------------------------------------------------------- base -- */

@layer base {
	html { scroll-behavior: smooth; }

	body {
		font-family: var(--font);
		font-size: var(--step-0);
		line-height: 1.6;
		color: var(--text);
		background: var(--paper);
		-webkit-font-smoothing: antialiased;
		font-synthesis: none;
	}

	h1, h2, h3, h4 {
		color: var(--ink);
		font-weight: 800;
		font-stretch: 112%;
		line-height: 1.08;
		letter-spacing: -0.01em;
		text-wrap: balance;
	}

	p, li, dd { text-wrap: pretty; }

	a {
		color: var(--blue);
		text-decoration-thickness: 1px;
		text-underline-offset: 0.2em;
	}
	a:hover { text-decoration-thickness: 2px; }

	:focus-visible {
		outline: 3px solid var(--blue);
		outline-offset: 3px;
	}

	::selection { background: var(--blue); color: #fff; }

	strong, b { font-weight: 700; color: var(--ink); }

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

/* --------------------------------------------------------------- layout -- */

@layer layout {
	.wrap {
		width: min(100% - 2 * var(--gutter), var(--max));
		margin-inline: auto;
	}

	.section { padding-block: var(--space-2xl); }
	.section--mist { background: var(--mist); }
	.section--dark {
		background: var(--blue-deep);
		color: #c9d6e6;

		& :focus-visible { outline-color: var(--yellow); }

		& :is(h1, h2, h3, strong) { color: #fff; }
	}

	.split {
		display: grid;
		gap: var(--space-xl);
		padding-block: var(--space-xl);

		@media (min-width: 960px) {
			grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
			align-items: start;
		}
	}
	.split__aside {
		@media (min-width: 960px) {
			position: sticky;
			top: calc(var(--header-h) + var(--space-m));
		}
	}
	/* Several cards (call card + contact form): taller than the screen, so not sticky. */
	.split__aside--stack {
		display: grid;
		gap: var(--space-m);

		@media (min-width: 960px) { position: static; }
	}

}

/* ----------------------------------------------------------- components -- */

@layer components {
	.skip-link {
		position: absolute;
		left: var(--gutter);
		top: -100px;
		z-index: 100;
		padding: 0.75em 1.25em;
		background: var(--ink);
		color: #fff;
		font-weight: 700;

		&:focus { top: 0.75rem; }
	}

	.icon {
		width: 1.25em;
		height: 1.25em;
		flex: none;
	}

	/* Two opposite chamfered corners: the signature shape. */
	.notch {
		--n: var(--notch);
		clip-path: polygon(0 0, calc(100% - var(--n)) 0, 100% var(--n), 100% 100%, var(--n) 100%, 0 calc(100% - var(--n)));
	}
	.notch--lg { --n: clamp(20px, 3vw, 44px); }

	.eyebrow {
		display: flex;
		align-items: center;
		gap: 0.75em;
		font-size: var(--step--1);
		font-weight: 700;
		font-stretch: 105%;
		letter-spacing: 0.14em;
		text-transform: uppercase;
		color: var(--muted);
		line-height: 1.3;

		&::before {
			content: "";
			width: 1.75em;
			height: 3px;
			background: var(--blue);
			flex: none;
		}
	}
	.eyebrow--light { color: var(--blue-on-dark); &::before { background: var(--yellow); } }
	.eyebrow--on-blue { color: #fff; &::before { background: var(--yellow); } }

	.lead {
		font-size: var(--step-1);
		line-height: 1.5;
		color: var(--text);
		max-width: 46ch;
	}

	.h2 {
		font-size: var(--step-4);
		font-stretch: 116%;
		letter-spacing: -0.02em;
	}

	/* Buttons */
	.btn {
		--n: 10px;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 0.6em;
		padding: 0.85em 1.35em;
		border: 2px solid transparent;
		font-weight: 700;
		font-stretch: 108%;
		line-height: 1.1;
		text-decoration: none;
		white-space: nowrap;
		transition: background-color 0.2s, color 0.2s, border-color 0.2s;

		& .icon { width: 1.15em; height: 1.15em; transition: translate 0.2s var(--ease); }
	}
	.btn--primary {
		clip-path: polygon(0 0, calc(100% - var(--n)) 0, 100% var(--n), 100% 100%, var(--n) 100%, 0 calc(100% - var(--n)));
		background: var(--blue);
		color: #fff;

		&:hover { background: var(--blue-strong); }
	}
	.btn--ghost {
		padding-inline: 0.25em;
		color: var(--ink);

		&:hover .icon { translate: 4px 0; }
		&:hover span, &:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
	}
	.btn--outline {
		border-color: var(--ink);
		color: var(--ink);

		&:hover { background: var(--ink); color: #fff; }
	}
	.btn--lg { font-size: var(--step-1); padding: 0.8em 1.3em; }
	.btn--block { display: flex; width: 100%; }

	.icon-btn {
		display: inline-grid;
		place-items: center;
		width: 44px;
		height: 44px;
		color: var(--ink);

		& .icon { width: 26px; height: 26px; }
		&:hover { background: var(--mist); }
	}

	.actions {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		gap: var(--space-s) var(--space-m);
	}

	/* Small "spec sheet" line: premium detail */
	.spec-list {
		display: flex;
		flex-wrap: wrap;
		gap: 0.35em 1.1em;
		font-size: var(--step--1);
		font-weight: 600;
		letter-spacing: 0.06em;
		text-transform: uppercase;
		color: var(--muted);

		& li { display: flex; align-items: center; gap: 0.6em; }
		& li::before {
			content: "";
			width: 5px;
			height: 5px;
			background: var(--yellow-strong);
			rotate: 45deg;
		}
	}

	.check-list {
		display: grid;
		gap: 0.7em;

		& li { display: flex; gap: 0.75em; align-items: flex-start; }
		& .icon {
			width: 1.5em;
			height: 1.5em;
			padding: 0.25em;
			margin-top: 0.05em;
			background: var(--blue);
			color: #fff;
			stroke-width: 3;
		}
	}

	.chips {
		display: flex;
		flex-wrap: wrap;
		gap: 0.5rem;

		& a {
			display: inline-block;
			padding: 0.5em 0.95em;
			border: 1px solid var(--line-strong);
			color: var(--ink);
			font-size: var(--step--1);
			font-weight: 600;
			text-decoration: none;
			transition: background-color 0.2s, border-color 0.2s;

			&:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
		}
	}

	.hours {
		display: grid;
		gap: 0.35em;
		font-variant-numeric: tabular-nums;

		& div { display: flex; justify-content: space-between; gap: 1.5em; }
		& dt { color: inherit; }
		& dd { margin: 0; font-weight: 600; }
	}
	.hours--compact { font-size: var(--step--1); }

	/* Facts strip */
	.facts {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1px;
		background: var(--line);

		@media (min-width: 760px) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	}
	.facts__item {
		display: grid;
		align-content: start;
		gap: 0.35em;
		padding: var(--space-m);
		background: var(--paper);
	}
	.facts__value {
		font-size: var(--step-4);
		font-weight: 800;
		font-stretch: 120%;
		line-height: 1;
		color: var(--ink);
		letter-spacing: -0.02em;
	}
	.facts__label {
		font-size: var(--step--1);
		line-height: 1.35;
		color: var(--muted);
	}

	.facts--overlap {
		position: relative;
		background: #24496f;

		& .facts__item { background: var(--blue-deep); border-top: 3px solid var(--yellow); }
		& .facts__value { color: #fff; }
		& .facts__label { color: var(--blue-on-dark); }

		@media (min-width: 1024px) {
			width: min(100% - var(--space-xl), 940px);
			margin: calc(-1 * var(--space-xl)) 0 0 auto;
		}
	}

	/* Prose (legacy/editorial content) */
	.prose {
		max-width: 70ch;

		& > * + * { margin-top: 1em; }
		& > :first-child { margin-top: 0; }
		& :is(h2, h3, h4) { margin-top: 1.6em; }
		& h2 { font-size: var(--step-3); }
		& h3 { font-size: var(--step-2); }
		& h4 { font-size: var(--step-1); }
		& :is(h2, h3, h4) + * { margin-top: 0.6em; }
		& ul, & ol { padding-left: 1.25em; }
		& li + li { margin-top: 0.35em; }
		& li::marker { color: var(--blue); }

		/* Plain content lists: blue chevron squares. Lists with a class
		   (e.g. Gravity Forms fields) keep their own styling. */
		& ul:not([class]) {
			display: grid;
			gap: 0.55em;
			padding-left: 0;
			list-style: none;

			& > li { position: relative; margin: 0; padding-left: 2em; }
			& > li::before {
				content: "";
				position: absolute;
				left: 0;
				top: 0.2em;
				width: 1.25em;
				height: 1.25em;
				background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") center / 0.8em no-repeat;
				clip-path: polygon(0 0, calc(100% - 4px) 0, 100% 4px, 100% 100%, 4px 100%, 0 calc(100% - 4px));
			}
		}
		& img { margin-block: var(--space-m); }
		& table { border-collapse: collapse; }
		& td { padding: 0.2em 1.25em 0.2em 0; vertical-align: top; }
	}

	.legacy-gallery {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
		gap: var(--space-s);

		& img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; }
	}

	.gallery {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
		gap: var(--space-s);
		padding-bottom: var(--space-xl);

		& img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
	}

	.contact-card {
		display: grid;
		gap: var(--space-s);
		padding: var(--space-m);
		background: var(--mist);
		border-top: 4px solid var(--blue);
	}
	.contact-card__title {
		font-size: var(--step-2);
		font-weight: 800;
		font-stretch: 112%;
		line-height: 1.1;
		color: var(--ink);
	}
	.contact-card__address {
		display: flex;
		gap: 0.5em;
		font-size: var(--step--1);
		color: var(--muted);
	}
	.contact-card--form {
		scroll-margin-top: calc(var(--header-h) + var(--space-m));
		background: var(--paper);
		border: 1px solid var(--line);
		border-top: 4px solid var(--blue);
	}

	/* Replaces the contact form while it is switched off (inc/data/contact-form.php). */
	.form-fallback {
		display: grid;
		gap: var(--space-s);
		padding: var(--space-m);
		background: var(--mist);
		border-left: 4px solid var(--yellow);
	}
	.contact-card .form-fallback { padding: 0; background: none; border: 0; }

	.breadcrumbs {
		margin-bottom: var(--space-m);
		font-size: var(--step--1);
		color: var(--muted);

		& a { color: inherit; text-decoration: none; &:hover { color: var(--ink); text-decoration: underline; } }
		& .breadcrumb_last { color: var(--ink); font-weight: 600; }
	}
}

/* ------------------------------------------------------------- sections -- */

@layer sections {

	/* Header ------------------------------------------------------------ */

	.site-header {
		position: sticky;
		top: 0;
		z-index: 50;
		background: rgb(255 255 255 / 0.88);
		backdrop-filter: blur(14px) saturate(1.6);
		border-bottom: 1px solid transparent;
		transition: border-color 0.2s, box-shadow 0.2s;

		&[data-scrolled] {
			border-bottom-color: var(--line);
			box-shadow: 0 6px 24px -18px rgb(17 19 21 / 0.5);
		}
	}
	.site-header__bar {
		display: flex;
		align-items: center;
		gap: var(--space-m);
		height: var(--header-h);
	}
	.brand { flex: none; }
	.brand__logo {
		height: clamp(26px, 2.2vw + 14px, 36px);
		width: auto;
	}
	.site-header__actions {
		display: flex;
		align-items: center;
		gap: var(--space-xs);
		margin-left: auto;
	}
	.site-header__call {
		@media (max-width: 639px) { display: none; }
	}
	.site-header__toggle {
		@media (min-width: 1024px) { display: none; }
	}

	/* Navigation: inline on desktop, a slide-in popover sheet on mobile (no JS needed). */
	.site-nav__link {
		display: flex;
		align-items: center;
		gap: 0.3em;
		color: var(--ink);
		font-weight: 650;
		text-decoration: none;
	}
	.site-nav__sub a {
		display: grid;
		gap: 0.1em;
		text-decoration: none;
		color: var(--ink);

		& strong { font-weight: 700; }
		& small { font-size: var(--step--1); color: var(--muted); }
	}

	@media (min-width: 1024px) {
		.site-nav {
			/* Undo the UA popover styles: on desktop the nav is always shown. */
			display: block;
			position: static;
			inset: auto;
			width: auto;
			height: auto;
			margin: 0 auto;
			padding: 0;
			border: 0;
			overflow: visible;
			background: none;
			color: inherit;
		}
		.site-nav__head, .site-nav__foot { display: none; }
		.site-nav__list { display: flex; gap: 0.25rem; }
		.site-nav__item { position: relative; }
		.site-nav__link {
			position: relative;
			padding: 0.6em 0.95em;

			&::after {
				content: "";
				position: absolute;
				inset: auto 0.95em 0.2em;
				height: 3px;
				background: var(--blue);
				scale: 0 1;
				transform-origin: left;
				transition: scale 0.25s var(--ease);
			}
			&:hover::after, &[aria-current]::after { scale: 1 1; }
		}
		.site-nav__chevron { width: 1em; height: 1em; transition: rotate 0.2s; }
		.has-children:is(:hover, :focus-within) .site-nav__chevron { rotate: 180deg; }

		.site-nav__panel {
			position: absolute;
			top: 100%;
			left: 50%;
			width: 360px;
			padding-top: 10px;
			translate: -50% 6px;
			opacity: 0;
			visibility: hidden;
			transition: opacity 0.2s, translate 0.2s var(--ease), visibility 0.2s;
		}
		.has-children:is(:hover, :focus-within) .site-nav__panel {
			opacity: 1;
			visibility: visible;
			translate: -50% 0;
		}
		.site-nav__sub {
			display: grid;
			padding: 0.5rem;
			background: var(--paper);
			border: 1px solid var(--line);
			border-top: 3px solid var(--blue);
			box-shadow: var(--shadow);

			& a {
				padding: 0.7rem 0.9rem;
				border-left: 3px solid transparent;
				transition: background-color 0.15s, border-color 0.15s;

				&:hover, &[aria-current] { background: var(--blue-soft); border-left-color: var(--blue); }
			}
		}
	}

	@media (max-width: 1023px) {
		.site-nav {
			inset: 0 0 0 auto;
			width: min(420px, 100%);
			height: 100dvh;
			max-height: none;
			margin: 0;
			padding: 0 var(--gutter) var(--space-m);
			border: 0;
			background: var(--paper);
			color: var(--text);
			overflow-y: auto;
			overscroll-behavior: contain;
			flex-direction: column;
			gap: var(--space-m);

			translate: 100% 0;
			transition: translate 0.35s var(--ease), overlay 0.35s allow-discrete, display 0.35s allow-discrete;

			&:popover-open {
				display: flex;
				translate: 0 0;

				@starting-style { translate: 100% 0; }
			}
			&::backdrop {
				background: rgb(17 19 21 / 0.5);
				backdrop-filter: blur(3px);
			}
		}
		.site-nav__head {
			display: flex;
			align-items: center;
			justify-content: space-between;
			min-height: var(--header-h);
			border-bottom: 1px solid var(--line);
		}
		.site-nav__list { display: grid; }
		.site-nav__item { border-bottom: 1px solid var(--line); }
		.site-nav__link {
			padding-block: 0.7em;
			font-size: var(--step-2);
			font-weight: 800;
			font-stretch: 112%;

			&[aria-current] { box-shadow: inset 4px 0 0 var(--blue); padding-left: 0.6em; color: var(--blue); }
		}
		.site-nav__chevron { display: none; }
		.site-nav__sub {
			display: grid;
			grid-template-columns: 1fr 1fr;
			gap: 0.25rem 1rem;
			padding-bottom: 1rem;

			& a { padding: 0.4em 0; }
			& small { display: none; }
		}
		.site-nav__foot {
			display: grid;
			gap: var(--space-s);
			margin-top: auto;
		}
		.site-nav__hours {
			display: grid;
			font-size: var(--step--1);
			color: var(--muted);

			& span { display: flex; justify-content: space-between; }
			& b { color: var(--ink); font-variant-numeric: tabular-nums; }
		}
	}

	/* Home hero ------------------------------------------------------------ */

	.hero-home { padding-top: var(--space-xl); }
	.hero-home__grid {
		display: grid;
		gap: var(--space-l) var(--space-xl);

		@media (min-width: 1024px) {
			grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
			align-items: end;
		}
	}
	.hero-home__heading .eyebrow { margin-bottom: var(--space-m); }

	.display {
		font-size: var(--step-6);
		font-weight: 800;
		font-stretch: 125%;
		line-height: 0.92;
		letter-spacing: -0.02em;

		& .display__line { display: block; }
		& .display__line + .display__line { margin-top: 0.08em; }
		& .display__line--sub { font-size: 0.75em; }
		& mark {
			color: var(--blue);
			background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 100% / 100% 0.07em;
			padding-bottom: 0.06em;
		}
	}

	.hero-home__intro {
		display: grid;
		gap: var(--space-m);
		padding-top: var(--space-m);
		border-top: 1px solid var(--line-strong);

		@media (min-width: 1024px) { padding-bottom: 0.6em; }
	}

	.hero-home__stage { margin-top: var(--space-xl); }
	.hero-home__media img {
		width: 100%;
		aspect-ratio: 4 / 3;
		object-fit: cover;

		@media (min-width: 760px) { aspect-ratio: 21 / 9; }
	}

	/* Section head ---------------------------------------------------------- */

	.section-head {
		display: grid;
		gap: var(--space-s);
		margin-bottom: var(--space-l);
	}
	.section-head--split {
		@media (min-width: 900px) {
			grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
			align-items: end;
			gap: var(--space-xl);

			& > p { padding-bottom: 0.4em; }
		}
		& > p { color: var(--muted); max-width: 48ch; }
	}
	.section-head div { display: grid; gap: var(--space-s); }

	/* Brand cards ----------------------------------------------------------- */

	.brand-cards {
		display: grid;
		gap: var(--space-l) var(--space-m);

		@media (min-width: 900px) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	}
	.brand-card {
		position: relative;
		display: grid;
		gap: var(--space-m);
		align-content: start;

		&:hover img { scale: 1.04; }
		&:hover .brand-card__title a { background-size: 100% 0.12em; }
		&:hover .brand-card__more .icon { translate: 4px 0; }
	}
	.brand-card__media {
		overflow: hidden;
		background: var(--mist);

		& img {
			width: 100%;
			aspect-ratio: 4 / 3;
			object-fit: cover;
			transition: scale 0.6s var(--ease);
		}
	}
	.brand-card__body {
		display: grid;
		gap: var(--space-xs);

		& p:not(.eyebrow) { color: var(--muted); }
	}
	.brand-card__title {
		font-size: var(--step-3);
		font-stretch: 120%;

		& a {
			color: var(--ink);
			text-decoration: none;
			background: linear-gradient(var(--blue), var(--blue)) no-repeat 0 100% / 0 0.12em;
			transition: background-size 0.3s var(--ease);

			/* Whole card is clickable. */
			&::after { content: ""; position: absolute; inset: 0; }
		}
	}
	.brand-card__more {
		display: inline-flex;
		align-items: center;
		gap: 0.4em;
		margin-top: var(--space-2xs);
		font-weight: 700;
		color: var(--blue);

		& .icon { transition: translate 0.2s var(--ease); }
	}

	/* Work grid --------------------------------------------------------------- */

	.work-grid {
		display: grid;
		gap: 1px;
		background: var(--line-strong);
		border: 1px solid var(--line-strong);

		@media (min-width: 560px) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
		@media (min-width: 960px) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	}
	.work-tile a {
		position: relative;
		display: grid;
		gap: var(--space-xs);
		height: 100%;
		padding: var(--space-l) var(--space-m) var(--space-m);
		background: var(--paper);
		color: var(--text);
		text-decoration: none;
		transition: background-color 0.25s;

		&:hover { background: var(--blue-deep); color: var(--blue-on-dark); }
		&:hover .work-tile__icon { background: #fff; color: var(--blue); }
		&:hover .work-tile__num { color: var(--blue-on-dark); }
		&:hover .work-tile__title { color: #fff; }
		&:hover .work-tile__arrow { opacity: 1; translate: 0 0; }
	}
	.work-tile__num {
		position: absolute;
		top: var(--space-s);
		right: var(--space-m);
		font-size: var(--step--1);
		font-weight: 700;
		letter-spacing: 0.1em;
		color: var(--muted);
		font-variant-numeric: tabular-nums;
	}
	.work-tile__icon {
		--n: 8px;
		width: 52px;
		height: 52px;
		padding: 13px;
		margin-bottom: var(--space-xs);
		background: var(--blue);
		color: #fff;
		transition: background-color 0.25s, color 0.25s;
		clip-path: polygon(0 0, calc(100% - var(--n)) 0, 100% var(--n), 100% 100%, var(--n) 100%, 0 calc(100% - var(--n)));
	}
	.work-tile__title {
		font-size: var(--step-2);
		font-weight: 800;
		font-stretch: 112%;
		color: var(--ink);
		transition: color 0.25s;
	}
	.work-tile__text { font-size: var(--step--1); }
	.work-tile__arrow {
		position: absolute;
		right: var(--space-m);
		bottom: var(--space-m);
		color: var(--yellow);
		opacity: 0;
		translate: -6px 0;
		transition: opacity 0.25s, translate 0.25s var(--ease);
	}

	/* Why Schoone (dark) ------------------------------------------------------ */

	.why__grid {
		display: grid;
		gap: var(--space-xl);

		@media (min-width: 960px) {
			grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
			align-items: center;
		}
	}
	.why__copy { display: grid; gap: var(--space-m); }
	.why__points {
		display: grid;
		gap: var(--space-m);
		margin-top: var(--space-s);

		@media (min-width: 600px) { grid-template-columns: 1fr 1fr; }

		& li { display: flex; gap: var(--space-s); }
		& .icon { width: 28px; height: 28px; color: var(--blue); margin-top: 0.1em; }
		& strong { display: block; font-size: var(--step-1); font-stretch: 108%; margin-bottom: 0.2em; }
		& p { font-size: var(--step--1); line-height: 1.55; }
	}
	.why__media img {
		width: 100%;
		aspect-ratio: 4 / 5;
		object-fit: cover;

		@media (max-width: 959px) { aspect-ratio: 16 / 10; }
	}

	/* BOVAG score --------------------------------------------------------------- */

	.score__grid {
		display: grid;
		gap: var(--space-l) var(--space-xl);

		@media (min-width: 900px) {
			grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
			align-items: center;
		}
	}
	.score__value { display: grid; gap: var(--space-s); }
	.score__number {
		font-size: clamp(6rem, 3rem + 13vw, 14rem);
		font-weight: 800;
		font-stretch: 125%;
		line-height: 0.8;
		letter-spacing: -0.05em;
		color: var(--blue);
		background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 100% / 100% 0.06em;
		padding-bottom: 0.08em;
		justify-self: start;
		padding-right: 0.05em;
	}
	.score__caption {
		font-weight: 600;
		color: var(--muted);
		max-width: 24ch;
	}
	.score__copy {
		display: grid;
		gap: var(--space-m);

		& > p { color: var(--muted); max-width: 60ch; }
	}

	/* Call to action ------------------------------------------------------------ */

	.cta-call {
		position: relative;
		overflow: hidden;
		padding-block: var(--space-xl);
		background: var(--blue);
		color: #e3edf9;

		& :focus-visible { outline-color: #fff; }

		/* Subtle diagonal hatch on the right. */
		&::before {
			content: "";
			position: absolute;
			inset: 0 0 0 55%;
			background: repeating-linear-gradient(-55deg, rgb(255 255 255 / 0.07) 0 2px, transparent 2px 16px);
			mask-image: linear-gradient(to right, transparent, #000 40%);
			pointer-events: none;
		}
	}
	.cta-call__grid {
		position: relative;
		display: grid;
		gap: var(--space-l);

		@media (min-width: 960px) {
			grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
			align-items: end;
		}
	}
	.cta-call__copy {
		display: grid;
		gap: var(--space-s);

		& p:not(.eyebrow) { max-width: 46ch; }
	}
	.cta-call__title { font-size: var(--step-4); font-stretch: 118%; letter-spacing: -0.02em; color: #fff; }
	.cta-call__action { display: grid; gap: var(--space-s); }
	.cta-call__number {
		display: inline-flex;
		align-items: center;
		gap: 0.3em;
		justify-self: start;
		font-size: clamp(2rem, 1rem + 3.6vw, 4rem);
		font-weight: 800;
		font-stretch: 108%;
		white-space: nowrap;
		letter-spacing: -0.03em;
		line-height: 1;
		color: #fff;
		text-decoration: none;
		font-variant-numeric: tabular-nums;

		& .icon { width: 0.75em; height: 0.75em; stroke-width: 2.5; }
		& .icon { color: var(--yellow); }
		&:hover span { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 0.06em; text-underline-offset: 0.14em; }
	}
	.cta-call__alt {
		font-size: var(--step--1);

		& a { color: #fff; font-weight: 600; }
	}

	/* Page hero ----------------------------------------------------------------- */

	.page-hero {
		padding-block: var(--space-l) var(--hero-gap-above);
		border-bottom: 1px solid var(--line);
	}

	/* Content right below a page header (or below its USP bar) starts close to the line. */
	.page-hero + .section,
	.page-hero + .usp-bar + .section {
		padding-top: var(--hero-gap-below);
	}
	.page-hero__grid {
		display: grid;
		gap: var(--space-l) var(--space-xl);
	}
	.page-hero--image .page-hero__grid {
		@media (min-width: 960px) {
			grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
			align-items: center;
		}
	}
	.page-hero__copy {
		display: grid;
		gap: var(--space-m);
		align-content: start;

		& .breadcrumbs { margin-bottom: 0; }
	}
	.page-hero__title {
		font-size: var(--step-5);
		font-stretch: 120%;
		letter-spacing: -0.03em;
		line-height: 0.98;
		max-width: 16ch;
	}
	.page-hero__media img {
		width: 100%;
		aspect-ratio: 4 / 3;
		object-fit: cover;
	}

	/* USP bar (landing pages) --------------------------------------------------- */

	.usp-bar {
		background: var(--mist);
		border-bottom: 1px solid var(--line);
		color: var(--ink);
	}
	.usp-bar__list {
		display: flex;
		flex-wrap: wrap;
		gap: 0.5rem var(--space-l);
		padding-block: 1rem;
		font-weight: 600;
		font-size: var(--step--1);

		& li { display: flex; align-items: center; gap: 0.5em; }
		& .icon { color: var(--blue); stroke-width: 3; }
	}

	.related { padding-top: 0; display: grid; gap: var(--space-s); }

	/* Footer ------------------------------------------------------------------- */

	.site-footer {
		padding-top: var(--space-xl);
		background: var(--blue-night);
		color: #9fb0c4;
		font-size: var(--step--1);

		/* Room for the fixed mobile call bar, so it never covers the last footer line. */
		@media (max-width: 767px) { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

		& a { color: #e6edf5; text-decoration: none; &:hover { color: var(--yellow); } }
		& :focus-visible { outline-color: var(--yellow); }
	}
	.site-footer__grid {
		display: grid;
		gap: var(--space-l);
		padding-bottom: var(--space-l);

		@media (min-width: 640px) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
		@media (min-width: 1024px) { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); }
	}
	.site-footer__brand { display: grid; gap: var(--space-s); align-content: start; max-width: 36ch; }
	.site-footer__name {
		font-size: var(--step-2);
		font-weight: 800;
		font-stretch: 118%;
		line-height: 1.1;
		color: #fff;
	}
	.site-footer__title {
		margin-bottom: var(--space-s);
		font-weight: 800;
		line-height: 1.2;
		font-size: var(--step--1);
		font-stretch: 105%;
		letter-spacing: 0.14em;
		text-transform: uppercase;
		color: #fff;
	}
	.site-footer__list {
		display: grid;
		gap: 0.5em;
		align-content: start;

		& a { display: inline-flex; align-items: center; gap: 0.35em; }
		& .icon { width: 1em; height: 1em; }
	}
	.site-footer .hours dd { color: #e6edf5; }
	.site-footer__areas {
		padding-block: var(--space-m);
		border-top: 1px solid #1d3352;

		& ul { display: flex; flex-wrap: wrap; gap: 0.35em 1.25em; list-style: none; padding: 0; }
		& a { color: #8ea2ba; }
	}
	.site-footer__bottom {
		display: flex;
		flex-wrap: wrap;
		justify-content: space-between;
		gap: var(--space-s);
		padding-block: var(--space-m);
		border-top: 1px solid #1d3352;
	}
	.site-footer__legal { display: flex; gap: var(--space-m); }

	/* Mobile call bar ------------------------------------------------------------ */

	.callbar {
		position: fixed;
		inset: auto 0 0;
		z-index: 40;
		display: grid;
		grid-template-columns: 2fr 1fr;
		padding-bottom: env(safe-area-inset-bottom);
		background: var(--blue-night);
		box-shadow: 0 -8px 24px -12px rgb(17 19 21 / 0.5);

		@media (min-width: 768px) { display: none; }

		& a {
			display: flex;
			align-items: center;
			justify-content: center;
			gap: 0.5em;
			min-height: 64px;
			font-weight: 800;
			font-stretch: 110%;
			text-decoration: none;
		}
	}
	.callbar__call { background: var(--blue); color: #fff; }
	.callbar__route { color: #fff; }
}

/* ------------------------------------------------------------ utilities -- */

@layer utilities {
	/* Scroll-driven reveal, only where supported and motion is welcome. */
	@media (prefers-reduced-motion: no-preference) {
		@supports (animation-timeline: view()) {
			[data-reveal] {
				animation: reveal linear both;
				animation-timeline: view();
				animation-range: entry 0% entry 35%;
			}
		}
	}
	@keyframes reveal {
		from { opacity: 0; translate: 0 28px; }
	}

	/* Anchor a cropped photo to its left edge, e.g. the storefront so the
	   "Schoone" letters on the wall are never cut off. */
	.focus-left { object-position: left center; }

	.visually-hidden {
		position: absolute !important;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

/* ------------------------------------------------------ plugin overrides --
 * Deliberately outside the cascade layers: plugin stylesheets are unlayered,
 * and unlayered CSS always wins over layered CSS.
 */

/* Gravity Forms submit button (contact form): same look as .btn--primary. */
.gform_wrapper .gform_footer .gform_button {
	--n: 10px;
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	width: auto;
	margin: 0;
	padding: 0.9em 1.5em;
	border: 0;
	clip-path: polygon(0 0, calc(100% - var(--n)) 0, 100% var(--n), 100% 100%, var(--n) 100%, 0 calc(100% - var(--n)));
	background: var(--blue);
	color: #fff;
	font: inherit;
	font-size: var(--step-0);
	font-weight: 700;
	font-stretch: 108%;
	line-height: 1.1;
	cursor: pointer;
	transition: background-color 0.2s;

	/* Send arrow */
	&::after {
		content: "";
		width: 1.1em;
		height: 1.1em;
		background: currentColor;
		mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
		transition: translate 0.2s var(--ease);
	}
	&:hover { background: var(--blue-strong); }
	&:hover::after { translate: 3px 0; }
	&:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
	&:disabled { opacity: 0.6; cursor: progress; }
}
.gform_wrapper .gform_footer { margin-top: var(--space-m); padding: 0; }
