/**
 * De Slimme Doos – huisstijl voor de externe configurator.
 *
 * Samengesteld uit assets/css/project.css van de website (ongewijzigd
 * overgenomen): lettertypen, kleur- en typografietokens, basisstijl, knoppen,
 * aantal-stepper. Daarna formuliervelden (zie onderaan).
 * Fontbestanden: ../fonts/ (relatief aan dit bestand).
 * Prefix .eno-* kan behouden of door de ontwikkelaar hernoemd worden.
 */

/* Fonts (self-hosted variable fonts, latin subset) ----------------------- */

@font-face {
	font-family: "Hanken Grotesk";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-latin.woff2") format("woff2");
}

@font-face {
	font-family: "Inter";
	font-style: italic;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter-italic-latin.woff2") format("woff2");
}

/* Tokens ------------------------------------------------------------------ */

:root {
	color-scheme: only light;
	--eno-color-bg: #fcf9f8;
	--eno-color-white: #fff;
	--eno-color-surface-low: #f6f3f2;
	--eno-color-surface: #f0eded;
	--eno-color-surface-high: #e5e2e1;
	--eno-color-surface-dim: #dcd9d9;
	--eno-color-text: #1c1b1b;
	--eno-color-text-muted: #584236;
	--eno-color-outline: #8c7264;
	--eno-color-orange: #f27111;
	--eno-color-orange-dark: #9c4400;
	--eno-color-orange-tint: rgb(242 113 17 / 10%);
	--eno-color-green: #74856c;
	--eno-color-green-bg: #eef1eb;
	--eno-color-green-soft: #d8e7d5;
	--eno-color-green-ink: #3d4a3d;
	--eno-color-kraft-soft: #f4dfcb;
	--eno-color-kraft-ink: #524436;
	--eno-color-star: #facc15;
	--eno-color-status-open: #2f9e55;
	--eno-color-status-open-ink: #23713f;
	--eno-color-status-closed: #a89d96;
	--eno-color-footer: #1c1b1b;

	/* Corrugated-board cross-section, used as a faint texture on colour bands. */
	--eno-corrugated: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='18' viewBox='0 0 40 18'%3E%3Cpath d='M0 9c5-7 15-7 20 0s15 7 20 0M0 .5h40' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E");

	--eno-font-heading: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
	--eno-font-body: "Inter", ui-sans-serif, system-ui, sans-serif;

	--eno-text-display: clamp(2.25rem, 1.4rem + 3.6vw, 3.5rem);
	--eno-text-headline-lg: clamp(2rem, 1.6rem + 1.6vw, 2.5rem);
	--eno-text-headline-md: 1.5rem;
	--eno-text-body-lg: 1.125rem;
	--eno-text-body: 1rem;
	--eno-text-label: 0.875rem;
	--eno-text-small: 0.75rem;

	--eno-radius-sm: 2px;
	--eno-radius: 4px;
	--eno-radius-lg: 8px;

	--eno-shadow-float: 0 10px 30px rgb(0 0 0 / 4%);
	--eno-shadow-sm: 0 1px 2px rgb(0 0 0 / 5%);
	--eno-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 10%), 0 2px 4px -2px rgb(0 0 0 / 10%);
	--eno-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 10%), 0 4px 6px -4px rgb(0 0 0 / 10%);

	--eno-content-width: 1440px;
	--eno-gutter: 1rem;
	/* Content width plus gutters: inner wrappers with padding-inline: var(--eno-gutter)
	   then line up with sections that pad outside --eno-content-width (hero, config bar). */
	--eno-container-width: calc(var(--eno-content-width) + 2 * var(--eno-gutter));
	--eno-ease: cubic-bezier(0.4, 0, 0.2, 1);
	--eno-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 768px) {
	:root {
		--eno-gutter: 1.5rem;
	}
}

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

body {
	background-color: var(--eno-color-bg);
	color: var(--eno-color-text);
	font-family: var(--eno-font-body);
	font-size: var(--eno-text-body);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

button,
input,
select,
textarea {
	font-family: inherit;
}

h1,
h2,
h3,
h4 {
	font-family: var(--eno-font-heading);
	color: var(--eno-color-text);
}

a {
	color: var(--eno-color-orange);
}

:focus-visible {
	outline: 2px solid var(--eno-color-orange);
	outline-offset: 2px;
}

.eno-icon {
	display: inline-block;
	flex-shrink: 0;
	width: 1.5rem;
	height: 1.5rem;
	fill: currentcolor;
	vertical-align: middle;
}

.eno-icon--sm {
	width: 0.875rem;
	height: 0.875rem;
}

.eno-icon--xs {
	width: 0.875rem;
	height: 0.875rem;
}

/* Buttons and links ------------------------------------------------------- */

.eno-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border: 1px solid var(--eno-color-orange);
	border-radius: var(--eno-radius-sm);
	background-color: var(--eno-color-orange);
	box-shadow: var(--eno-shadow-sm);
	color: var(--eno-color-white);
	font-family: var(--eno-font-body);
	font-size: var(--eno-text-label);
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.05em;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 150ms var(--eno-ease), border-color 150ms var(--eno-ease), box-shadow 150ms var(--eno-ease);
}

.eno-button:hover,
.eno-button:focus-visible {
	border-color: var(--eno-color-orange-dark);
	background-color: var(--eno-color-orange-dark);
	box-shadow: var(--eno-shadow-md);
	color: var(--eno-color-white);
}

.eno-button--lg {
	padding: 0.875rem 2rem;
}

.eno-button--outline {
	border-color: var(--eno-color-outline);
	background-color: transparent;
	box-shadow: none;
	color: var(--eno-color-orange);
}

.eno-button--outline:hover,
.eno-button--outline:focus-visible {
	border-color: var(--eno-color-outline);
	background-color: var(--eno-color-surface-low);
	box-shadow: none;
	color: var(--eno-color-orange);
}

.eno-text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: var(--eno-color-orange);
	font-weight: 500;
	text-decoration: none;
}

.eno-text-link:hover,
.eno-text-link:focus-visible {
	text-decoration: underline;
}

.eno-arrow-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--eno-color-orange);
	font-size: var(--eno-text-body-lg);
	font-weight: 700;
	text-decoration: none;
	transition: color 150ms var(--eno-ease);
}

.eno-arrow-link:hover,
.eno-arrow-link:focus-visible {
	color: var(--eno-color-orange-dark);
}

.eno-arrow-link .eno-icon {
	transition: transform 150ms var(--eno-ease);
}

.eno-arrow-link:hover .eno-icon {
	transform: translateX(4px);
}


/* Aantal-stepper (.eno-qty) ---------------------------------------------- */

/* Quantity stepper */

.eno-qty {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--eno-color-surface-high);
	border-radius: var(--eno-radius);
	background-color: var(--eno-color-white);
}

.eno-qty .eno-qty__button,
.eno-qty .eno-qty__button:focus {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	color: var(--eno-color-text);
	cursor: pointer;
	transition: background-color 150ms var(--eno-ease), color 150ms var(--eno-ease);
}

.eno-qty .eno-qty__button svg {
	width: 1.125rem;
	height: 1.125rem;
}

.eno-qty .eno-qty__button:hover,
.eno-qty .eno-qty__button:focus-visible {
	background-color: var(--eno-color-orange-tint);
	color: var(--eno-color-orange-dark);
}

.eno-qty .eno-qty__button:focus-visible,
.eno-qty .eno-qty__input:focus-visible {
	outline: 2px solid var(--eno-color-orange);
	outline-offset: -2px;
}

.eno-qty .eno-qty__button:disabled {
	background: none;
	color: var(--eno-color-surface-dim);
	cursor: default;
}

.eno-qty .eno-qty__input,
.eno-qty .eno-qty__input:focus {
	width: 2.75rem;
	min-width: 0;
	height: 2.5rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-inline: 1px solid var(--eno-color-surface-high);
	border-radius: 0;
	background: none;
	color: var(--eno-color-text);
	font: 600 var(--eno-text-body) / 1 var(--eno-font-body);
	text-align: center;
	appearance: textfield;
	-moz-appearance: textfield;
}

.eno-qty .eno-qty__input::-webkit-inner-spin-button,
.eno-qty .eno-qty__input::-webkit-outer-spin-button {
	margin: 0;
	appearance: none;
	-webkit-appearance: none;
}

/* Dark buttons (on orange) ------------------------------------------------ */

.eno-button--dark {
	border-color: var(--eno-color-footer);
	background-color: var(--eno-color-footer);
	color: var(--eno-color-white);
}

.eno-button--dark:hover,
.eno-button--dark:focus-visible {
	border-color: #000;
	background-color: #000;
	color: var(--eno-color-white);
}

.eno-button--outline-dark {
	border-color: var(--eno-color-footer);
	background-color: transparent;
	box-shadow: none;
	color: var(--eno-color-footer);
}

.eno-button--outline-dark:hover,
.eno-button--outline-dark:focus-visible {
	border-color: var(--eno-color-footer);
	background-color: rgb(28 27 27 / 8%);
	box-shadow: none;
	color: var(--eno-color-footer);
}


/* Formuliervelden --------------------------------------------------------
   Op de website worden formulieren door WPForms opgemaakt (variabelen in
   project.css, sectie "Forms (WPForms)", meegeleverd in referentie-volledige-css/).
   Hieronder dezelfde waarden als losse klassen, voor gebruik buiten WPForms.
   Waarden komen 1-op-1 uit de WPForms-variabelen; alleen de klassenamen zijn nieuw. */

.eno-field-label {
	display: block;
	margin-bottom: 0.5rem;
	color: var(--eno-color-text);
	font-size: var(--eno-text-label);
	font-weight: 600;
	line-height: 1.4;
}

.eno-field-label .eno-required {
	color: var(--eno-color-orange-dark);
}

.eno-field-hint {
	margin-top: 0.375rem;
	color: var(--eno-color-text-muted);
	font-size: 0.8125rem;
	line-height: 1.4;
}

.eno-input,
.eno-select,
.eno-textarea {
	box-sizing: border-box;
	width: 100%;
	height: 3rem;
	padding: 0 0.875rem;
	border: 1px solid var(--eno-color-surface-dim);
	border-radius: var(--eno-radius);
	background-color: var(--eno-color-white);
	color: var(--eno-color-text);
	font-family: var(--eno-font-body);
	font-size: 1rem;
	transition: border-color 150ms var(--eno-ease), box-shadow 150ms var(--eno-ease);
}

.eno-textarea {
	height: auto;
	min-height: 9rem;
	padding-block: 0.75rem;
	line-height: 1.6;
}

.eno-input:hover,
.eno-select:hover,
.eno-textarea:hover {
	border-color: var(--eno-color-outline);
}

.eno-input:focus,
.eno-select:focus,
.eno-textarea:focus {
	border-color: var(--eno-color-orange);
	box-shadow: 0 0 0 3px var(--eno-color-orange-tint);
	outline: 0;
}

.eno-input::placeholder,
.eno-textarea::placeholder {
	color: var(--eno-color-outline);
	opacity: 1;
}

.eno-input.is-error,
.eno-select.is-error,
.eno-textarea.is-error {
	border-color: #b3261e;
}

.eno-field-error {
	margin-top: 0.375rem;
	color: #b3261e;
	font-size: 0.8125rem;
}

.eno-field-success {
	padding: 1.25rem 1.5rem;
	border: 1px solid var(--eno-color-green-soft);
	border-left: 4px solid var(--eno-color-green);
	border-radius: var(--eno-radius);
	background-color: var(--eno-color-green-bg);
	color: var(--eno-color-green-ink);
}
