/*
Theme Name: Wolters
Description: Licht maatwerkthema voor Autohandel Wolters in Venlo. Geen paginabouwer, geen externe verzoeken.
Author: Autohandel Wolters
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: wolters
License: GPL-2.0-or-later
*/

/* Archivo, variabel (gewicht 100 tot 900, breedte 62% tot 125%), alleen Latin. SIL Open Font License, zie assets/fonts/OFL.txt. */
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	font-stretch: 62% 125%;
	src: url("assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
		url("assets/fonts/archivo-latin-wdth-normal.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;
}

/*
 * Maatvoering op een 8px-raster.
 * Mobiel tot 768px, tablet vanaf 768px (48em), desktop vanaf 1024px (64em).
 */
:root {
	--white: #ffffff;
	--grey: #f4f5f7;
	--graphite: #14171c;
	--blue: #1f5aa6;
	--muted: #5b6270;
	--muted-dark: #a7adb7;
	--line: #d9dde3;
	--line-card: #e3e6ea;
	--line-field: #8a919c;
	--line-dark: #2a2f37;

	--radius: 6px;
	--gutter: 20px;
	--content: 1200px;
	--measure: 68ch;
	--section: 64px;
	--mobile-bar: 72px;
	--font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

@media (min-width: 48em) {
	:root {
		--gutter: 32px;
	}
}

@media (min-width: 64em) {
	:root {
		--gutter: 40px;
		--section: 96px;
	}
}

/* Basis */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--white);
	color: var(--graphite);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.55;
	font-stretch: 100%;
	overflow-wrap: break-word;
}

@media (min-width: 64em) {
	body {
		font-size: 18px;
	}
}

[id] {
	scroll-margin-top: 16px;
}

img,
svg {
	display: block;
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
h4 {
	margin: 0 0 16px;
	font-weight: 700;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

h1 {
	font-size: clamp(36px, 25.16px + 3.012vw, 56px);
	line-height: 1.08;
}

h2 {
	font-size: clamp(28px, 21.49px + 1.807vw, 40px);
	line-height: 1.15;
}

h3,
h4 {
	font-size: 20px;
	line-height: 1.25;
}

p {
	margin: 0 0 16px;
}

p:last-child {
	margin-bottom: 0;
}

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

a:hover {
	text-decoration-thickness: 2px;
}

/* Losse links: geen onderstreping, wel bij hover en focus. */
.plain-link {
	text-decoration: none;
}

.plain-link:hover,
.plain-link:focus-visible {
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

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

.section--dark :focus-visible,
.site-footer :focus-visible,
.mobile-bar :focus-visible {
	outline-color: var(--white);
}

main:focus {
	outline: none;
}

address {
	font-style: normal;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -160px;
	z-index: 100;
	padding: 12px 16px;
	background: var(--graphite);
	color: var(--white);
	border-radius: var(--radius);
	font-weight: 600;
}

.skip-link:focus {
	top: 16px;
	outline-color: var(--blue);
}

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

.prose {
	max-width: var(--measure);
}

.nowrap {
	white-space: nowrap;
}

/* Knoppen */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 10px 24px;
	border: 2px solid var(--blue);
	border-radius: var(--radius);
	font: inherit;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button .icon {
	flex: none;
	width: 18px;
	height: 18px;
}

.button--primary {
	background: var(--blue);
	color: var(--white);
}

.button:disabled {
	cursor: progress;
}

.button--primary:hover:not(:disabled) {
	background: var(--graphite);
	border-color: var(--graphite);
}

.button--secondary {
	background: var(--white);
	color: var(--blue);
}

.button--secondary:hover {
	background: var(--grey);
}

.button--light {
	background: var(--white);
	border-color: var(--white);
	color: var(--graphite);
}

.button--light:hover {
	background: var(--grey);
	border-color: var(--grey);
}

.button-row {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 32px;
}

.button-row .button {
	width: 100%;
}

@media (min-width: 48em) {
	.button-row {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: stretch;
	}

	.button-row .button {
		width: auto;
	}
}

/* Logo: de kleine regels zijn precies even breed als WOLTERS. */

.logo {
	/* Gemeten in Archivo: tekstbreedte plus spatiëring gelijk aan WOLTERS. */
	--logo-top-ls: 0.463em;
	--logo-sub-ls: 0.1402em;
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	line-height: 1;
	text-transform: uppercase;
	color: var(--graphite);
	white-space: nowrap;
}

.logo__top,
.logo__sub {
	font-weight: 600;
}

.logo__top {
	font-size: 11px;
	letter-spacing: var(--logo-top-ls);
	margin-right: calc(-1 * var(--logo-top-ls));
}

.logo__name {
	margin: 4px -0.02em 4px 0;
	font-size: 32px;
	font-weight: 800;
	font-stretch: 68%;
	letter-spacing: 0.02em;
}

.logo__sub {
	font-size: 10px;
	letter-spacing: var(--logo-sub-ls);
	margin-right: calc(-1 * var(--logo-sub-ls));
}

/* Header */

.site-header {
	position: relative;
	background: var(--white);
	border-bottom: 1px solid var(--line-card);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 80px;
	padding-block: 16px;
}

.site-header__logo {
	display: inline-block;
	text-decoration: none;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 24px;
}

.site-nav__list {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 4px 12px;
	color: var(--graphite);
	font-weight: 600;
	text-decoration: none;
	border-radius: var(--radius);
	transition: background-color 0.15s ease;
}

.site-nav__list a:hover {
	background: var(--grey);
}

.menu-toggle {
	display: none;
}

@media (max-width: 47.999em) {
	.js .menu-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		min-height: 44px;
		min-width: 44px;
		padding: 0 12px;
		background: var(--white);
		border: 1px solid var(--line);
		border-radius: var(--radius);
		color: var(--graphite);
		font: inherit;
		font-size: 16px;
		font-weight: 600;
		cursor: pointer;
	}

	.menu-toggle__bars,
	.menu-toggle__bars::before,
	.menu-toggle__bars::after {
		display: block;
		width: 18px;
		height: 2px;
		background: currentColor;
		border-radius: 1px;
	}

	.menu-toggle__bars {
		position: relative;
	}

	.menu-toggle__bars::before,
	.menu-toggle__bars::after {
		content: "";
		position: absolute;
		left: 0;
	}

	.menu-toggle__bars::before {
		top: -6px;
	}

	.menu-toggle__bars::after {
		top: 6px;
	}

	.menu-open .menu-toggle__bars {
		background: transparent;
	}

	.menu-open .menu-toggle__bars::before {
		top: 0;
		transform: rotate(45deg);
	}

	.menu-open .menu-toggle__bars::after {
		top: 0;
		transform: rotate(-45deg);
	}

	.site-header__inner {
		flex-wrap: wrap;
	}

	.site-nav {
		flex-basis: 100%;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding-bottom: 8px;
	}

	.js .site-nav {
		display: none;
	}

	.js.menu-open .site-nav {
		display: flex;
	}

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

	.site-nav__list a {
		display: flex;
		min-height: 48px;
		padding-inline: 0;
		border-bottom: 1px solid var(--line-card);
		border-radius: 0;
	}
}

/* Secties */

.section,
.hero {
	padding-block: var(--section);
}

.section--grey {
	background: var(--grey);
}

.section--dark {
	background: var(--graphite);
	color: var(--white);
}

.section--dark a:not(.button) {
	color: var(--white);
}

/* Openingsblok */

.hero__lead {
	max-width: 60ch;
	font-size: 19px;
}

@media (min-width: 64em) {
	.hero__lead {
		font-size: 20px;
	}
}

.hero--text .hero__text {
	max-width: 820px;
}

.hero--media .hero__inner {
	display: grid;
	gap: 40px;
}

.hero__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--radius);
	background: var(--grey);
}

@media (min-width: 64em) {
	.hero--media .hero__inner {
		grid-template-columns: 7fr 5fr;
		align-items: center;
		gap: 64px;
	}
}

/* Feitenstrook */

.facts {
	background: var(--grey);
}

.facts__list {
	display: grid;
	margin: 0;
	padding: 0;
	list-style: none;
}

.facts__item {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 64px;
	padding-block: 16px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	border-bottom: 1px solid var(--line);
}

.facts__item:last-child {
	border-bottom: 0;
}

.facts__item > .icon {
	flex: none;
	width: 20px;
	height: 20px;
	color: var(--blue);
}

.facts__item a {
	display: inline;
	padding-block: 12px;
}

.facts__item a .icon {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-left: 6px;
	vertical-align: -1px;
}

@media (min-width: 48em) {
	.facts__list {
		grid-template-columns: repeat(3, 1fr);
	}

	.facts__item {
		min-height: 88px;
		padding: 16px 24px;
		border-bottom: 0;
		border-left: 1px solid var(--line);
	}

	.facts__item:first-child {
		padding-left: 0;
		border-left: 0;
	}

	.facts__item:last-child {
		padding-right: 0;
	}
}

/* Over ons */

@media (min-width: 64em) {
	.about {
		display: grid;
		grid-template-columns: repeat(12, 1fr);
		column-gap: 24px;
		align-items: start;
	}

	.about__title {
		grid-column: 1 / span 5;
		margin: 0;
	}

	.about__text {
		grid-column: 6 / span 7;
		/* Bovenkant hoofdletters van kop (40px) en eerste tekstregel (18px) op één lijn. */
		margin-top: 1.5px;
	}
}

/* Kaarten */

.cards {
	display: grid;
	gap: 16px;
	margin: 32px 0 0;
	padding: 0;
	list-style: none;
}

.card {
	padding: 24px;
	background: var(--white);
	border: 1px solid var(--line-card);
	border-radius: var(--radius);
}

.card__title {
	font-size: 20px;
}

.services-group {
	margin-top: 48px;
}

.services-group__image {
	width: 100%;
	max-width: 560px;
	aspect-ratio: 3 / 2;
	margin-top: 32px;
	object-fit: cover;
	border-radius: var(--radius);
	background: var(--line-card);
}

@media (min-width: 64em) {
	.services-group__intro {
		display: grid;
		grid-template-columns: repeat(12, 1fr);
		column-gap: 24px;
		align-items: center;
	}

	.services-group__text {
		grid-column: 1 / span 7;
	}

	.services-group__image {
		grid-column: 8 / span 5;
		max-width: none;
		margin-top: 0;
	}
}

@media (min-width: 48em) {
	.cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 64em) {
	.cards {
		grid-template-columns: repeat(3, 1fr);
		gap: 24px;
	}

	.card {
		padding: 32px;
	}

	.services-group {
		margin-top: 64px;
	}
}

/* Voorraad */

.offer {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.offer .button {
	width: 100%;
}

@media (min-width: 48em) {
	.offer {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 48px;
	}

	.offer .button {
		width: auto;
		flex: none;
	}
}

/* Contact */

.contact {
	display: grid;
	gap: 48px;
	margin-top: 32px;
}

.contact__list {
	margin: 16px 0 32px;
	padding: 0;
	list-style: none;
}

.contact__list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.contact__list li + li {
	margin-top: 16px;
}

.contact__list .icon {
	flex: none;
	width: 20px;
	height: 20px;
	/* Midden van het icoon op het midden van de eerste tekstregel. */
	margin-top: calc((1.55em - 20px) / 2);
	color: var(--blue);
}

.contact__list a {
	display: inline-block;
	padding-block: 8px;
	margin-block: -8px;
}

.hours__title {
	margin-top: 48px;
}

.hours {
	max-width: 400px;
	margin: 0;
}

.hours__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding-block: 8px;
	border-bottom: 1px solid var(--line-card);
	white-space: nowrap;
}

.hours__row:first-child {
	border-top: 1px solid var(--line-card);
}

.hours dt {
	font-weight: 400;
}

.hours dd {
	margin: 0;
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.contact__form {
	max-width: 640px;
}

@media (min-width: 64em) {
	.contact {
		grid-template-columns: 5fr 7fr;
		gap: 64px;
	}
}

/* Formulier */

.form {
	margin-top: 16px;
}

.form__intro,
.form__privacy {
	font-size: 15px;
	color: var(--muted);
}

.form__intro {
	margin-bottom: 20px;
}

.form__privacy {
	margin-top: 16px;
}

.field {
	margin-bottom: 20px;
}

.field label {
	display: block;
	margin-bottom: 8px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
}

.field input,
.field textarea {
	display: block;
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	background: var(--white);
	color: var(--graphite);
	border: 1px solid var(--line-field);
	border-radius: var(--radius);
	font: inherit;
	line-height: 1.4;
}

.field textarea {
	min-height: 144px;
	resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
	outline: 2px solid var(--blue);
	outline-offset: -1px;
	border-radius: var(--radius);
}

.field [aria-invalid="true"] {
	border-color: var(--blue);
	box-shadow: inset 0 0 0 1px var(--blue);
}

.field__error {
	margin: 8px 0 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--graphite);
}

.field__error::before {
	content: "! ";
	color: var(--blue);
	font-weight: 800;
}

.field--hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.notice {
	margin: 16px 0 24px;
	padding: 16px 20px;
	border-radius: var(--radius);
	border-left: 6px solid var(--blue);
	background: var(--grey);
}

.notice:focus {
	outline: 3px solid var(--blue);
	outline-offset: 2px;
}

.notice ul {
	margin: 8px 0 0;
	padding-left: 20px;
}

.notice li a {
	display: inline-block;
	padding-block: 4px;
}

/* Losse pagina's */

.page-content h1 {
	margin-bottom: 24px;
}

.page-content h2 {
	margin-top: 40px;
	font-size: 24px;
}

.page-content ul {
	padding-left: 20px;
	margin: 0 0 16px;
}

.page-content li {
	margin-bottom: 8px;
}

/* Footer */

.site-footer {
	background: var(--graphite);
	color: var(--muted-dark);
	font-size: 15px;
	line-height: 1.55;
}

.site-footer .logo {
	color: var(--white);
}

.site-footer a {
	display: inline-block;
	padding-block: 4px;
	margin-block: -4px;
	color: var(--white);
	text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
	text-decoration: underline;
	text-decoration-thickness: 1px;
}

.site-footer__inner {
	display: grid;
	gap: 24px;
	padding-block: 48px;
}

.site-footer__group {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.site-footer__bottom {
	border-top: 1px solid var(--line-dark);
	font-size: 14px;
}

.site-footer__bottom .container {
	padding-block: 24px;
}

@media (min-width: 48em) {
	.site-footer__inner {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Vaste belbalk op mobiel */

.mobile-bar {
	display: none;
}

@media (max-width: 47.999em) {
	body {
		padding-bottom: calc(var(--mobile-bar) + env(safe-area-inset-bottom, 0px));
	}

	.mobile-bar {
		position: fixed;
		inset: auto 0 0;
		z-index: 50;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
		background: var(--graphite);
		border-top: 1px solid var(--line-dark);
	}

	.mobile-bar__button {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 8px;
		min-height: 52px;
		border-radius: var(--radius);
		font-weight: 600;
		text-decoration: none;
		background: var(--blue);
		color: var(--white);
		border: 2px solid var(--blue);
	}

	.mobile-bar__button + .mobile-bar__button {
		background: var(--white);
		border-color: var(--white);
		color: var(--blue);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition: none !important;
	}
}
