/*
 * STC Revisies on the Peakweb parent theme.
 *
 * Dark, classic and technical: a workshop at night, with the red of the SUN
 * test bench as accent. Square buttons, straight images, no shadow on
 * images. Tokens (colours, fonts, sizes, widths, motion) live in theme.json;
 * own classes get the prefix stc-, never pw-. The shop is in shop.css.
 *
 * Moved from Peakweb Base 2.x (klant.css 1.2.4): the look is the same, the
 * selectors follow the Peakweb 3 markup.
 */

/* ---------- Base ---------- */

:root {
	/* Contrast checked: text 16.2:1, muted 8.7:1, link 6.3:1, button 5.3:1. */
	--stc-achtergrond: var(--wp--preset--color--base);
	--stc-vlak: var(--wp--preset--color--surface);
	--stc-kaart: #241f1c;
	--stc-tekst: var(--wp--preset--color--contrast);
	--stc-gedempt: var(--wp--preset--color--muted);
	--stc-lijn: #3a332f;
	--stc-merk: var(--wp--preset--color--accent);
	--stc-merk-donker: #a32614;
	--stc-accent: #f26b55;
	--stc-donker: #0a0908;
	--stc-font-kop: var(--wp--preset--font-family--heading);
	--stc-maat-h1: var(--wp--preset--font-size--x-large);
	--stc-maat-h2: var(--wp--preset--font-size--large);
	--stc-maat-h3: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
	--stc-kop-hoogte: 76px;

	--pw-gutter: clamp(1rem, 4vw, 2.5rem);
	--pw-section-space: clamp(3.5rem, 8vw, 7rem);
	--pw-radius: 0;
	--pw-line: var(--stc-lijn);
	--pw-error: #ff8f7d;
	--pw-focus: 3px solid var(--stc-accent);
	--pw-header-height: var(--stc-kop-hoogte);
}

html {
	background: var(--stc-achtergrond);
	color-scheme: dark;
	scroll-behavior: smooth;
}

p,
ul,
ol,
dl,
figure,
blockquote {
	margin: 0;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-family: var(--stc-font-kop);
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1.12;
	text-transform: uppercase;
}

h1 {
	font-size: var(--stc-maat-h1);
}

h2 {
	font-size: var(--stc-maat-h2);
}

h3 {
	font-size: var(--stc-maat-h3);
}

a {
	color: var(--stc-accent);
	text-underline-offset: 0.2em;
}

a:hover {
	color: var(--stc-tekst);
}

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

.pw-skip-link {
	background: var(--stc-merk);
	color: #fff;
}

/* Small heading above a title. */
.pw-hero__label,
.stc-label {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	color: var(--stc-accent);
	font-family: var(--stc-font-kop);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

/* Running text: list items with a red dash. */
:is(.pw-prose, .pw-content) p + p,
:is(.pw-prose, .pw-content) p + ul,
:is(.pw-prose, .pw-content) ul + p {
	margin-top: 1em;
}

:is(.pw-prose, .pw-content) ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

:is(.pw-prose, .pw-content) li {
	position: relative;
	padding: 0.45rem 0 0.45rem 1.75rem;
	border-bottom: 1px solid var(--stc-lijn);
}

:is(.pw-prose, .pw-content) li::before {
	content: "";
	position: absolute;
	top: 1.05em;
	left: 0;
	width: 0.9rem;
	height: 2px;
	background: var(--stc-merk);
}

/* Pages with only text (privacy statement, terms). */
.pw-content > h1 {
	margin-bottom: 1rem;
}

.pw-content h2 {
	margin-top: 2rem;
	font-size: var(--stc-maat-h3);
}

.pw-content h2 + p {
	margin-top: 0.5rem;
}

/* ---------- Focus ---------- */

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

/* ---------- Buttons: square ---------- */

.pw-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .button,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0.7rem 1.5rem;
	border: 2px solid var(--stc-merk);
	border-radius: 2px;
	background: var(--stc-merk);
	color: #fff;
	font-family: var(--stc-font-kop);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.2;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pw-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce .button:hover {
	background: var(--stc-merk-donker);
	border-color: var(--stc-merk-donker);
	color: #fff;
}

.pw-button--secondary {
	background: transparent;
	border-color: var(--stc-tekst);
	color: var(--stc-tekst);
}

.pw-button--secondary:hover {
	background: var(--stc-tekst);
	border-color: var(--stc-tekst);
	color: var(--stc-achtergrond);
}

/* ---------- Top bar ---------- */

.stc-topbalk {
	background: var(--stc-donker);
	border-bottom: 1px solid var(--stc-lijn);
	font-size: 0.875rem;
}

.stc-topbalk__binnen {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 40px;
}

.stc-topbalk__lijst {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.stc-topbalk a {
	color: var(--stc-tekst);
	text-decoration: none;
}

.stc-topbalk a:hover {
	color: var(--stc-accent);
}

.stc-topbalk__label {
	margin-right: 0.35rem;
	color: var(--stc-gedempt);
	font-family: var(--stc-font-kop);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.stc-topbalk__mand {
	flex: none;
	font-family: var(--stc-font-kop);
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* On small screens no top bar; the cart is in the menu then. */
@media (max-width: 899px) {
	.stc-topbalk {
		display: none;
	}
}

@media (min-width: 900px) {
	.stc-menu-mand {
		display: none;
	}
}

/* ---------- Header (sticky, with a soft shadow) ---------- */

.pw-header,
.pw-sticky-header .pw-header.is-scrolled {
	background: rgb(18 16 15 / 0.94);
	border-bottom: 1px solid var(--stc-lijn);
	box-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
}

@supports (backdrop-filter: blur(8px)) {
	.pw-header {
		background: rgb(18 16 15 / 0.82);
		backdrop-filter: blur(8px);
	}
}

.pw-header__inner {
	gap: 1.5rem;
	min-height: var(--stc-kop-hoogte);
}

.pw-header__brand {
	display: block;
	flex: none;
}

.pw-header__brand .stc-logo {
	width: auto;
	max-width: none;
	height: 40px;
	max-height: none;
}

.pw-nav {
	align-items: center;
	gap: 2rem;
}

.pw-nav__list {
	gap: 1.75rem;
}

.pw-nav__list a {
	position: relative;
	display: inline-block;
	padding-block: 0.5rem;
	color: var(--stc-tekst);
	font-family: var(--stc-font-kop);
	font-size: 1.1rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	text-decoration: none;
}

.pw-nav__list .current-menu-item > a {
	text-decoration: none;
}

.pw-nav__list a::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0.15rem;
	left: 0;
	height: 2px;
	background: var(--stc-merk);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.25s ease;
}

.pw-nav__list a:hover::after,
.pw-nav__list .current-menu-item > a::after,
.pw-nav__list [aria-current="page"]::after {
	transform: scaleX(1);
}

.pw-nav__button {
	min-height: 44px;
	padding-inline: 1.15rem;
}

.pw-header__toggle {
	align-items: center;
	gap: 0.6rem;
	min-height: 44px;
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--stc-lijn);
	border-radius: 2px;
	color: var(--stc-tekst);
	font-family: var(--stc-font-kop);
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.stc-menuknop__streep,
.stc-menuknop__streep::before,
.stc-menuknop__streep::after {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	transition: transform 0.2s ease;
}

.stc-menuknop__streep {
	position: relative;
}

.stc-menuknop__streep::before,
.stc-menuknop__streep::after {
	content: "";
	position: absolute;
	left: 0;
}

.stc-menuknop__streep::before {
	top: -6px;
}

.stc-menuknop__streep::after {
	top: 6px;
}

.pw-header__toggle[aria-expanded="true"] .stc-menuknop__streep {
	background: transparent;
}

.pw-header__toggle[aria-expanded="true"] .stc-menuknop__streep::before {
	transform: translateY(6px) rotate(45deg);
}

.pw-header__toggle[aria-expanded="true"] .stc-menuknop__streep::after {
	transform: translateY(-6px) rotate(-45deg);
}

/* The menu folds away below 900px (the parent theme does that below 64rem). */
@media (min-width: 900px) {
	.pw-header__inner {
		flex-wrap: nowrap;
	}

	.pw-header__toggle {
		display: none;
	}

	.pw-nav {
		display: flex;
		flex-basis: auto;
		margin-left: 0;
		padding-bottom: 0;
	}

	.pw-nav__list {
		flex-direction: row;
	}
}

@media (max-width: 899px) {
	/* Fixed space above the logo, also when the menu opens. */
	.pw-header__inner {
		flex-wrap: wrap;
		align-content: flex-start;
		min-height: 0;
		padding-block: 16px;
		row-gap: 0;
	}

	.pw-header__toggle {
		display: inline-flex;
		margin-left: auto;
	}

	.pw-nav {
		display: none;
	}

	.pw-nav.is-open,
	.no-js .pw-nav {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		width: 100%;
		padding-block: 0.5rem 1.5rem;
	}

	.pw-nav__list {
		flex-direction: column;
		gap: 0;
	}

	.pw-nav__list li {
		border-bottom: 1px solid var(--stc-lijn);
	}

	.pw-nav__list a {
		display: block;
		padding-block: 0.85rem;
		font-size: 1.25rem;
	}

	.pw-nav__list a::after {
		display: none;
	}
}

/* ---------- Sections ---------- */

.pw-section {
	position: relative;
}

.pw-section + .pw-section {
	padding-top: 0;
}

.pw-section__header {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 44rem;
	margin-bottom: 2.5rem;
}

.pw-section__title {
	margin: 0;
	font-size: var(--stc-maat-h2);
}

h1.pw-section__title {
	font-size: var(--stc-maat-h1);
}

.pw-section__intro {
	max-width: 40rem;
	color: var(--stc-gedempt);
	font-size: 1.1em;
}

.pw-section > .pw-container > .pw-button {
	margin-top: 2.5rem;
}

/* Hero, full screen: text left in the dark, the glow of the test bench right. */
.pw-hero--full {
	display: flex;
	align-items: center;
	min-height: min(88vh, 860px);
	padding-block: clamp(6rem, 14vw, 10rem);
	overflow: hidden;
	isolation: isolate;
	color: inherit;
}

.pw-hero--full .pw-hero__inner {
	width: 100%;
	padding-block: 0;
}

.pw-hero--full .pw-hero__media {
	z-index: -2;
}

.pw-hero--full .pw-hero__media::after {
	display: none;
}

.pw-hero--full .pw-hero__image {
	max-width: none;
	object-fit: cover;
	object-position: 72% center;
}

.pw-hero--full::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(90deg, rgb(10 9 8 / 0.92) 0%, rgb(10 9 8 / 0.72) 42%, rgb(10 9 8 / 0.15) 75%, rgb(10 9 8 / 0) 100%),
		linear-gradient(0deg, var(--stc-achtergrond) 0%, rgb(18 16 15 / 0) 22%);
}

.pw-hero__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
	max-width: 62rem;
}

.pw-hero--full .pw-hero__text {
	max-width: 58rem;
}

.pw-hero__title {
	margin: 0;
	font-size: var(--stc-maat-h1);
}

.pw-hero--full .pw-hero__title {
	line-height: 0.98;
}

.pw-hero__intro {
	max-width: 38rem;
	margin: 0;
	color: var(--stc-tekst);
	font-size: 1.15em;
}

.pw-hero__actions {
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.pw-hero__actions:not(:has(*)) {
	display: none;
}

@media (max-width: 699px) {
	.pw-hero--full {
		align-items: flex-end;
		min-height: 82vh;
	}

	.pw-hero--full .pw-hero__image {
		object-position: 80% center;
	}

	.pw-hero--full::before {
		background: linear-gradient(0deg, rgb(10 9 8 / 0.96) 0%, rgb(10 9 8 / 0.82) 55%, rgb(10 9 8 / 0.35) 100%);
	}
}

.stc-hero--kort {
	min-height: min(64vh, 620px);
}

/* The image fills the whole hero, so the next section gets its own space. */
.pw-hero--full + .pw-section:not(.pw-key-figures) {
	padding-top: var(--pw-section-space);
}

.stc-hero--kort .pw-hero__image {
	object-position: center;
}

.stc-hero--kort::before {
	background:
		linear-gradient(90deg, rgb(10 9 8 / 0.94) 0%, rgb(10 9 8 / 0.8) 50%, rgb(10 9 8 / 0.45) 100%),
		linear-gradient(0deg, var(--stc-achtergrond) 0%, rgb(18 16 15 / 0) 25%);
}

/* Hero without image (top of the shop). */
.pw-hero__inner {
	gap: 2rem;
}

.stc-kop {
	padding-top: clamp(4rem, 9vw, 7rem);
	border-bottom: 1px solid var(--stc-lijn);
	background:
		radial-gradient(60% 120% at 100% 0%, rgb(200 50 31 / 0.18) 0%, rgb(200 50 31 / 0) 70%),
		var(--stc-achtergrond);
}

.stc-kop + .pw-section {
	padding-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* Key figures: a strip like the instrument panel of the test bench. */
.pw-key-figures {
	padding-block: 0;
}

.pw-key-figures + .pw-section {
	padding-top: var(--pw-section-space);
}

.pw-figures__list {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0;
	border-block: 1px solid var(--stc-lijn);
}

.pw-figures__item {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1.75rem 1.5rem;
}

.pw-figures__item + .pw-figures__item {
	border-left: 1px solid var(--stc-lijn);
}

.pw-figures__number {
	margin: 0;
	color: var(--stc-tekst);
	font-family: var(--stc-font-kop);
	font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
	font-weight: 700;
	line-height: 1.05;
	text-transform: uppercase;
}

.pw-figures__text {
	margin: 0;
	color: var(--stc-gedempt);
	font-size: 0.95rem;
}

@media (max-width: 759px) {
	.pw-figures__list {
		grid-template-columns: 1fr;
	}

	.pw-figures__item {
		padding-inline: 0;
	}

	.pw-figures__item + .pw-figures__item {
		border-top: 1px solid var(--stc-lijn);
		border-left: 0;
	}
}

/* Services: numbered cards, the whole card is clickable. */
.stc-kaarten {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: 1px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--stc-lijn);
	border: 1px solid var(--stc-lijn);
}

.stc-kaart {
	position: relative;
	display: flex;
	padding: clamp(1.75rem, 3vw, 2.5rem);
	background: var(--stc-vlak);
	transition: background-color 0.25s ease;
}

.stc-kaart:hover {
	background: var(--stc-kaart);
}

.stc-kaart__tekst {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.75rem;
	padding-right: 2rem;
	color: var(--stc-gedempt);
}

.stc-kaart__titel {
	color: var(--stc-tekst);
}

.stc-kaart__link {
	color: inherit;
	text-decoration: none;
}

.stc-kaart__link::after {
	content: "";
	position: absolute;
	inset: 0;
}

.stc-kaart__link:hover,
.stc-kaart__link:focus-visible {
	color: var(--stc-accent);
}

/* Visible cue that the whole card is clickable. */
.stc-kaart__meer {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin-top: auto;
	padding-top: 1rem;
	color: var(--stc-accent);
	font-family: var(--stc-font-kop);
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.stc-kaart__meer svg {
	flex: none;
	transition: transform 0.2s ease;
}

.stc-kaart--link {
	cursor: pointer;
	box-shadow: inset 0 -3px 0 transparent;
	transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.stc-kaart--link:hover {
	box-shadow: inset 0 -3px 0 var(--stc-merk);
}

.stc-kaart--link:hover .stc-kaart__meer {
	color: var(--stc-tekst);
}

.stc-kaart--link:hover .stc-kaart__meer svg {
	transform: translateX(4px);
}

.stc-kaart:focus-within {
	outline: 3px solid var(--stc-accent);
	outline-offset: -3px;
}

.stc-kaart__link:focus-visible {
	outline: none;
}

/* Features */
.pw-features__list {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: 2rem 2.5rem;
}

.pw-features__item {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--stc-lijn);
	color: var(--stc-gedempt);
}

.pw-features__title {
	margin: 0;
	color: var(--stc-tekst);
	font-size: var(--stc-maat-h3);
}

.pw-features__text {
	color: var(--stc-gedempt);
}

/* Text and image: straight images, no shadow. */
.pw-text-image__inner {
	gap: clamp(2rem, 5vw, 5rem);
	grid-template-columns: minmax(0, 1fr);
}

.pw-text-image--image-left .pw-text-image__media {
	order: 0;
}

@media (min-width: 960px) {
	.pw-text-image__inner {
		grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	}

	.pw-text-image--image-left .pw-text-image__inner {
		grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	}

	.pw-text-image--image-left .pw-text-image__media {
		order: -1;
	}
}

.pw-text-image__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
}

.pw-text-image__text .pw-prose {
	align-self: stretch;
	color: var(--stc-gedempt);
}

.pw-text-image__text .pw-button {
	margin-top: 0.5rem;
}

.pw-text-image__media {
	position: relative;
}

.pw-text-image__media::after {
	content: "";
	position: absolute;
	right: -0.75rem;
	bottom: -0.75rem;
	width: 40%;
	height: 40%;
	border-right: 2px solid var(--stc-merk);
	border-bottom: 2px solid var(--stc-merk);
	pointer-events: none;
}

.pw-text-image--image-left .pw-text-image__media::after {
	right: auto;
	left: -0.75rem;
	border-right: 0;
	border-left: 2px solid var(--stc-merk);
}

.pw-text-image__media img {
	width: 100%;
	max-height: 680px;
	object-fit: cover;
}

@media (max-width: 959px) {
	.pw-text-image__media::after {
		display: none;
	}
}

/* Fault finder: pick a symptom, see cause and approach (radios + :has(), no JavaScript). */
.stc-wijzer {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	background: var(--stc-vlak);
	border: 1px solid var(--stc-lijn);
}

.stc-wijzer__keuzes {
	min-width: 0;
	margin: 0;
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 0;
	border-right: 1px solid var(--stc-lijn);
}

.stc-wijzer__vraag {
	float: left;
	width: 100%;
	margin-bottom: 1rem;
	padding: 0;
	color: var(--stc-gedempt);
	font-family: var(--stc-font-kop);
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.stc-wijzer__keuze {
	clear: both;
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-bottom: 0.5rem;
	padding: 0.85rem 1rem;
	border: 1px solid var(--stc-lijn);
	background: var(--stc-achtergrond);
	color: var(--stc-tekst);
	font-family: var(--stc-font-kop);
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.2;
	text-transform: uppercase;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.stc-wijzer__keuze:last-child {
	margin-bottom: 0;
}

.stc-wijzer__keuze input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	border: 2px solid var(--stc-gedempt);
	border-radius: 0;
	background: transparent;
	appearance: none;
	cursor: pointer;
}

.stc-wijzer__keuze input:checked {
	border-color: var(--stc-merk);
	background: var(--stc-merk);
	box-shadow: inset 0 0 0 3px var(--stc-achtergrond);
}

.stc-wijzer__keuze:hover {
	border-color: #5a514b;
}

.stc-wijzer__keuze:has(input:checked) {
	border-color: var(--stc-merk);
	background: var(--stc-kaart);
}

.stc-wijzer__keuze:has(input:focus-visible) {
	outline: 3px solid var(--stc-accent);
	outline-offset: 2px;
}

.stc-wijzer__keuze input:focus-visible {
	outline: none;
}

.stc-wijzer__panelen {
	padding: clamp(1.5rem, 4vw, 3rem);
}

.stc-wijzer__paneel {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1.25rem;
}

.stc-wijzer__paneel + .stc-wijzer__paneel {
	margin-top: 2rem;
	padding-top: 2rem;
	border-top: 1px solid var(--stc-lijn);
}

.stc-wijzer__titel {
	font-size: var(--stc-maat-h3);
}

.stc-wijzer__blok {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	padding-left: 1rem;
	border-left: 2px solid var(--stc-merk);
	color: var(--stc-gedempt);
}

.stc-wijzer__kop {
	color: var(--stc-accent);
	font-family: var(--stc-font-kop);
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.stc-wijzer__voetnoot {
	max-width: 44rem;
	margin-top: 2.5rem;
	color: var(--stc-gedempt);
	font-size: 0.95rem;
}

@supports selector(:has(*)) {
	.stc-wijzer__paneel {
		display: none;
	}

	.stc-wijzer__paneel + .stc-wijzer__paneel {
		margin-top: 0;
		padding-top: 0;
		border-top: 0;
	}

	.stc-wijzer:has([data-stc-paneel="1"]:checked) .stc-wijzer__paneel--1,
	.stc-wijzer:has([data-stc-paneel="2"]:checked) .stc-wijzer__paneel--2,
	.stc-wijzer:has([data-stc-paneel="3"]:checked) .stc-wijzer__paneel--3,
	.stc-wijzer:has([data-stc-paneel="4"]:checked) .stc-wijzer__paneel--4,
	.stc-wijzer:has([data-stc-paneel="5"]:checked) .stc-wijzer__paneel--5,
	.stc-wijzer:has([data-stc-paneel="6"]:checked) .stc-wijzer__paneel--6,
	.stc-wijzer:has([data-stc-paneel="7"]:checked) .stc-wijzer__paneel--7,
	.stc-wijzer:has([data-stc-paneel="8"]:checked) .stc-wijzer__paneel--8 {
		display: flex;
	}

	@media (prefers-reduced-motion: no-preference) {
		.stc-wijzer__paneel {
			animation: stc-binnen 0.35s ease both;
		}
	}
}

@media (max-width: 799px) {
	.stc-wijzer {
		grid-template-columns: 1fr;
	}

	.stc-wijzer__keuzes {
		border-right: 0;
		border-bottom: 1px solid var(--stc-lijn);
	}
}

/* Featured products: heading and button on one row. */
.stc-producten__kop {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 2.5rem;
}

.stc-producten__kop .pw-section__header {
	margin-bottom: 0;
}

/* Steps */
.pw-steps {
	padding-top: var(--pw-section-space) !important;
	background: var(--stc-vlak);
	border-block: 1px solid var(--stc-lijn);
}

.pw-steps + .pw-section {
	padding-top: var(--pw-section-space);
}

.pw-steps__list {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 2rem;
}

.pw-steps__item {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--stc-lijn);
}

.pw-steps__label {
	margin: 0;
	color: var(--stc-accent);
	font-family: var(--stc-font-kop);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.pw-steps__title {
	margin: 0;
	color: var(--stc-tekst);
	font-size: var(--stc-maat-h3);
}

.pw-steps__text {
	color: var(--stc-gedempt);
}

@media (max-width: 999px) {
	.pw-steps__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 2.5rem 2rem;
	}
}

@media (max-width: 599px) {
	.pw-steps__list {
		grid-template-columns: 1fr;
	}
}

/* FAQ */
.pw-faq__list {
	border-top: 1px solid var(--stc-lijn);
}

.pw-faq__item {
	border-bottom: 1px solid var(--stc-lijn);
}

.pw-faq__question {
	position: relative;
	display: block;
	padding: 1.25rem 3rem 1.25rem 0;
	color: var(--stc-tekst);
	font-family: var(--stc-font-kop);
	font-size: var(--stc-maat-h3);
	font-weight: 600;
	line-height: 1.25;
	text-transform: uppercase;
}

.pw-faq__question::before,
.pw-faq__question::after,
.pw-faq__item[open]:not(.is-closing) > .pw-faq__question::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0.25rem;
	width: 16px;
	height: 2px;
	background: var(--stc-merk);
	transition: transform 0.2s ease;
}

.pw-faq__question::after {
	transform: rotate(90deg);
}

.pw-faq__item[open]:not(.is-closing) > .pw-faq__question::after {
	transform: rotate(0deg);
}

.pw-faq__question:hover {
	color: var(--stc-accent);
}

.pw-faq__answer {
	padding: 0 0 1.5rem;
	color: var(--stc-gedempt);
}

/* CTA: a red panel with diagonal stripes, like a warning label in the workshop. */
.pw-cta--accent,
.pw-cta--soft {
	background: none;
	color: inherit;
}

.pw-cta .pw-cta__inner {
	position: relative;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: flex-start;
	justify-content: flex-start;
	gap: 1.25rem;
	width: calc(100% - 2 * var(--pw-gutter));
	max-width: var(--pw-wide);
	padding: clamp(2.5rem, 6vw, 4.5rem);
	overflow: hidden;
	isolation: isolate;
}

.pw-cta--accent .pw-cta__inner {
	background: var(--stc-merk);
	color: #fff;
}

.pw-cta--accent .pw-cta__inner::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: -1;
	width: min(38%, 22rem);
	background: repeating-linear-gradient(-45deg, rgb(0 0 0 / 0.16) 0 14px, rgb(0 0 0 / 0) 14px 28px);
}

.pw-cta--soft .pw-cta__inner {
	background: var(--stc-vlak);
	border: 1px solid var(--stc-lijn);
}

.pw-cta__text {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	max-width: none;
}

.pw-cta .pw-section__title {
	max-width: 36rem;
}

.pw-cta__body {
	max-width: 38rem;
	font-size: 1.1em;
}

.pw-cta__actions {
	gap: 0.75rem;
	margin-top: 0.5rem;
}

.pw-cta__actions:not(:has(*)) {
	display: none;
}

.pw-cta--accent .pw-button--primary {
	background: #fff;
	border-color: #fff;
	color: var(--stc-merk-donker);
}

.pw-cta--accent .pw-button--primary:hover {
	background: var(--stc-achtergrond);
	border-color: var(--stc-achtergrond);
	color: #fff;
}

.pw-cta--accent .pw-button--secondary {
	border-color: #fff;
	color: #fff;
}

.pw-cta--accent .pw-button--secondary:hover {
	background: #fff;
	color: var(--stc-merk-donker);
}

.pw-cta--accent :focus-visible {
	outline-color: #fff;
}

/* Contact */
.pw-contact__inner {
	gap: clamp(2rem, 5vw, 4.5rem);
	grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
	.stc-contact--twee {
		grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	}
}

.pw-contact__info {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.pw-contact .pw-section__header {
	gap: 1.5rem;
	max-width: none;
	margin-bottom: 0;
}

.pw-contact .pw-section__title {
	font-size: var(--stc-maat-h2);
}

.pw-contact .pw-section__title::after {
	display: none;
}

.stc-gegevens-lijst {
	display: grid;
	gap: 0;
	margin: 0;
	border-top: 1px solid var(--stc-lijn);
}

.stc-gegevens-lijst > div {
	display: grid;
	grid-template-columns: 9rem 1fr;
	gap: 1rem;
	padding-block: 1rem;
	border-bottom: 1px solid var(--stc-lijn);
}

.stc-gegevens-lijst dt {
	color: var(--stc-gedempt);
	font-family: var(--stc-font-kop);
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.stc-gegevens-lijst dd {
	margin: 0;
	overflow-wrap: anywhere;
}

@media (max-width: 479px) {
	.stc-gegevens-lijst > div {
		grid-template-columns: 1fr;
		gap: 0.15rem;
	}
}

.stc-contact__formulier {
	padding: clamp(1.5rem, 4vw, 2.75rem);
	background: var(--stc-vlak);
	border: 1px solid var(--stc-lijn);
}

/* Map: loads only after a click. */
.pw-embed {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 0.75rem;
	min-height: 240px;
	margin-top: 0;
	padding: 1.5rem;
	background: var(--stc-vlak);
	border: 1px solid var(--stc-lijn);
}

.pw-embed.is-loaded {
	padding: 0;
}

.pw-embed__load {
	order: -1;
}

.pw-embed__notice {
	color: var(--stc-gedempt);
	font-size: 0.9rem;
}

/* ---------- Form (Peakweb form and WooCommerce) ---------- */

.pw-form__fields {
	gap: 1.25rem 1rem;
	margin-bottom: 1.25rem;
}

.pw-form__field {
	gap: 0.4rem;
	min-width: 0;
}

.pw-form input:not([type="checkbox"], [type="radio"]),
.pw-form select,
.pw-form textarea,
.woocommerce form .input-text,
.woocommerce form select,
.woocommerce-page form .input-text,
.woocommerce .quantity .qty {
	width: 100%;
	min-height: 48px;
	padding: 0.65rem 0.85rem;
	border: 1px solid #5a514b;
	border-radius: 2px;
	background: var(--stc-achtergrond);
	color: var(--stc-tekst);
	font: inherit;
}

.pw-form textarea {
	min-height: 9rem;
}

.pw-form input:focus,
.pw-form select:focus,
.pw-form textarea:focus,
.woocommerce form .input-text:focus {
	border-color: var(--stc-accent);
	outline: 2px solid var(--stc-accent);
	outline-offset: 0;
}

.pw-form__choice input {
	width: 1.125rem;
	height: 1.125rem;
	accent-color: var(--stc-merk);
}

.pw-form [aria-invalid="true"] {
	border-color: var(--pw-error);
	outline: 0;
}

.pw-form__field-error {
	font-weight: 600;
}

.pw-form__field--notice {
	color: var(--stc-gedempt);
}

.pw-form__error {
	margin: 0 0 1rem;
	font-weight: 600;
}

.pw-form__success {
	margin: 0 0 1rem;
	padding: 1rem;
	border-left: 3px solid var(--stc-merk);
	background: var(--stc-kaart);
	font-weight: 600;
}

/* ---------- Page not found ---------- */

.pw-not-found {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 1rem;
}

.pw-not-found__title {
	margin: 0;
}

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

.pw-footer {
	margin-top: var(--pw-section-space);
	padding-top: clamp(3rem, 6vw, 4.5rem);
	background: var(--stc-donker);
	border-top: 3px solid var(--stc-merk);
	color: var(--stc-gedempt);
	font-size: 0.975rem;
}

.pw-footer__grid {
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 2.5rem;
	padding-bottom: 3rem;
}

.stc-voet__kolom {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.stc-voet__kop {
	color: var(--stc-tekst);
	font-family: var(--stc-font-kop);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.pw-footer__text {
	margin: 0;
	color: inherit;
}

.stc-voet__adres {
	font-style: normal;
	line-height: 1.9;
}

.pw-footer a {
	color: var(--stc-tekst);
	text-decoration: none;
}

.pw-footer a:hover {
	color: var(--stc-accent);
	text-decoration: underline;
}

.pw-footer__menu,
.pw-footer__social {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.stc-voet__onder {
	padding-block: 1.25rem;
	border-top: 1px solid var(--stc-lijn);
	font-size: 0.875rem;
}

.pw-footer__legal {
	margin: 0;
	padding: 0;
	border: 0;
	color: inherit;
}

.stc-voet__scheiding {
	margin-inline: 0.4rem;
}

/* ---------- Signature move: the hero text comes in calmly ---------- */

@media (prefers-reduced-motion: no-preference) {
	.pw-hero--full .pw-hero__text > * {
		animation: stc-binnen 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	}

	.pw-hero--full .pw-hero__text > :nth-child(2) {
		animation-delay: 0.08s;
	}

	.pw-hero--full .pw-hero__text > :nth-child(3) {
		animation-delay: 0.16s;
	}

	.pw-hero--full .pw-hero__text > :nth-child(4) {
		animation-delay: 0.24s;
	}
}

@keyframes stc-binnen {
	from {
		opacity: 0;
		transform: translateY(16px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* Reduced motion: the parent theme stops all transitions and animations. */
