/* ==========================================================================
   Pagina's: tekstpagina (page.php), Over ons, Contact, 404.
   Ontwerp: 02-ontwerp/canvas/Tekst, Contact, Staten (+ Desktop-*).
   ========================================================================== */

/* ---------- 1. Tekstpagina ---------- */
.page-text { padding-top: var(--s-4); padding-bottom: var(--s-8); }
.page-text__header .page-title { margin-top: var(--s-3); }

/* Leeskolom: iets grotere regelafstand zoals in het ontwerp (1.75). */
/* Lettergrootte, regelhoogte en marges: gedeelde .entry-content-stijl in main.css. */
.page-text__content {
	color: #333333;
	overflow-wrap: break-word;
}
.page-text__content h1,
.page-text__content h2,
.page-text__content h3,
.page-text__content h4 {
	margin: 1.6em 0 12px;
	font-family: var(--f-display);
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: var(--c-ink);
}
/* h1 in de tekst: /disclaimer heeft er een in de WordPress-inhoud (1-op-1 gelaten). */
.page-text__content h1,
.page-text__content h2,
.page-text__content h3 { font-size: 22px; line-height: 26px; }
.page-text__content h4 { font-size: 18px; line-height: 22px; }
.page-text__content h2 strong,
.page-text__content h3 strong { font-weight: inherit; }
/* Over ons: "<strong>Onze recepten<br></strong>" in de WordPress-tekst geeft anders een lege regel. */
.page-text__content h2 br,
.page-text__content h3 br { display: none; }
.page-text__content > :first-child { margin-top: 0; }
.page-text__content strong { color: var(--c-ink); }
.page-text__content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.page-text__content th,
.page-text__content td { padding: var(--s-2) var(--s-3); border-bottom: 1px solid var(--c-border-light); text-align: left; vertical-align: top; }
.page-text__content img { max-width: 100%; height: auto; }

/* Privacy heeft een eigen <div class="entry-content"> in de tekst: geen dubbele marges. */
.page-text__content .entry-content { margin: 0; }

@media (min-width: 1024px) {
	.page-text { padding-top: var(--s-8); padding-bottom: var(--s-12); }
	.page-text__header .page-title { margin-top: var(--s-4); }
}

/* WooCommerce-pagina's: brede kolom; de winkel regelt de rest. */
.page-text--shop { max-width: calc(1120px + 2 * var(--gutter)); }

/* ---------- 2. Over ons ---------- */
.about { padding-top: var(--s-4); padding-bottom: var(--s-8); }
.about .breadcrumbs { margin-bottom: var(--s-3); }

.about__grid { display: flex; flex-direction: column; }
.about__title { margin: 0 0 var(--s-4); }

.about__photo {
	margin: 0 0 var(--s-6);
	max-width: 480px;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--r-lg);
	background: var(--c-placeholder);
}
.about__img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 1024px) {
	.about { max-width: calc(1040px + 2 * var(--gutter)); padding-top: var(--s-8); padding-bottom: var(--s-12); }
	.about .breadcrumbs { margin-bottom: var(--s-6); }
	.about__grid {
		display: grid;
		grid-template-columns: 360px minmax(0, 1fr);
		grid-template-rows: auto 1fr;
		grid-template-areas:
			"photo title"
			"photo text";
		column-gap: var(--s-12);
		align-items: start;
	}
	.about__title { grid-area: title; margin: 0 0 var(--s-6); }
	.about__photo {
		grid-area: photo;
		position: sticky;
		top: var(--s-6);
		margin: 0;
		max-width: none;
	}
	.about__content { grid-area: text; }
}

/* ---------- 3. Contact ---------- */
.contact-form {
	margin: var(--s-6) 0 var(--s-8);
	padding: 18px;
	border: 1px solid #e6e8ec;
	border-radius: var(--r-lg);
	scroll-margin-top: var(--s-4);
}
.contact-form:focus { outline: none; }
.contact-form__title {
	margin: 0 0 var(--s-4);
	font-family: var(--f-display);
	font-size: 22px;
	line-height: 26px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}
.contact-form__form { display: flex; flex-direction: column; gap: 14px; }
.contact-form__row { display: flex; flex-direction: column; gap: 14px; }

.contact-form__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.contact-form__label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--c-dark); }
.contact-form__input {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 1px solid #cccccc;
	border-radius: var(--r-md);
	background: #fff;
	color: var(--c-ink);
	font-size: 16px; /* 16px: iOS zoomt anders in */
	-webkit-appearance: none;
	appearance: none;
}
.contact-form__input::placeholder { color: var(--c-muted); opacity: 1; }
.contact-form__input:focus { outline: none; border-color: var(--c-navy); box-shadow: 0 0 0 1px var(--c-navy); }
.contact-form__input--area { height: auto; min-height: 140px; padding: 12px 16px; line-height: 24px; resize: vertical; }

.contact-form__error { font-size: 14px; line-height: 20px; color: var(--c-error); }
.contact-form__error:empty { display: none; }
.has-error .contact-form__input { border: 2px solid var(--c-error); }
.has-error .contact-form__input:focus { box-shadow: none; }

/* Honeypot: buiten beeld, niet display:none (sommige bots slaan die over). */
.contact-form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.contact-form__privacy { margin: 0; font-size: 14px; line-height: 19px; color: var(--c-muted); }
.contact-form__privacy a,
.contact-form__again a { color: var(--c-link); font-weight: 700; text-decoration: none; }
.contact-form__privacy a:hover,
.contact-form__again a:hover { text-decoration: underline; }
.contact-form__submit { width: 100%; }
.contact-form__submit:disabled { opacity: 0.6; cursor: wait; }
.contact-form__again { margin: var(--s-4) 0 0; font-size: 15px; }

/* Meldingen (Staten: "Formulier: fout en gelukt"). */
.notice {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0 0 var(--s-4);
	padding: 14px;
	border-radius: 14px;
	background: var(--c-soft);
	font-size: 15px;
	line-height: 22px;
	color: var(--c-dark);
}
.notice p { margin: 0; }
.notice__icon { flex-shrink: 0; margin-top: 0; }
.notice--success .notice__icon,
.notice--success b { color: var(--c-success); }
.notice--error { background: #fdf3f2; }
.notice--error .notice__icon { color: var(--c-error); }

.contact-details h2 { margin-top: 0; }
.contact-details__list {
	display: grid;
	gap: 12px;
	margin: 0 0 var(--s-4);
	padding: 18px 20px;
	border-radius: 16px;
	background: var(--c-soft);
	font-size: 15px;
	line-height: 22px;
}
.contact-details__list dt { color: var(--c-muted); }
.contact-details__list dd { margin: 0; color: var(--c-dark); }
.contact-details__note { font-size: 14px; line-height: 21px; color: var(--c-muted); }

@media (min-width: 768px) {
	.contact-form { padding: 24px 28px; }
	.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
	.contact-form__submit { width: auto; align-self: flex-start; min-width: 200px; }
	.contact-details__list { grid-template-columns: 160px 1fr; gap: 10px 20px; padding: 22px 26px; }
	.contact-details__list > div { display: contents; }
}

/* ---------- 4. 404 ---------- */
.not-found { padding-bottom: 0; text-align: center; }
.not-found__kicker { margin: var(--s-8) 0 0; }
.not-found__title { margin-top: var(--s-2); }
.not-found .page-text__content { max-width: 560px; margin-inline: auto; }
.search-form--404 { max-width: 560px; margin: var(--s-6) auto 0; }

.not-found__themes { margin-top: var(--s-12); }
.not-found__heading {
	margin: 0 0 var(--s-4);
	font-family: var(--f-display);
	font-size: 22px;
	line-height: 26px;
	font-weight: 700;
	letter-spacing: 0.5px;
	text-transform: uppercase;
}

/* Ronde categoriefoto's: mobiel horizontaal scrollen, desktop één rij (zoals de homepage). */
.round-themes {
	display: flex;
	gap: 14px;
	margin: 0 calc(-1 * var(--gutter));
	padding: 0 var(--gutter) var(--s-2);
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x proximity;
	scroll-padding-inline: var(--gutter);
	scrollbar-width: none;
}
.round-themes::-webkit-scrollbar { display: none; }
.round-themes__item { flex: 0 0 auto; scroll-snap-align: start; }
.round-themes__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--s-2);
	width: 86px;
	color: var(--c-ink);
	text-decoration: none;
}
.round-themes__photo {
	display: block;
	width: 86px;
	aspect-ratio: 1;
	overflow: hidden;
	border-radius: 50%;
	background: var(--c-placeholder);
}
.round-themes__photo img { width: 100%; height: 100%; object-fit: cover; }
.round-themes__label { font-size: 14px; line-height: 18px; font-weight: 600; text-align: center; }
@media (hover: hover) {
	.round-themes__link:hover .round-themes__label { color: var(--c-navy); text-decoration: underline; text-underline-offset: 3px; }
}
.round-themes__link:focus-visible { outline: none; }
.round-themes__link:focus-visible .round-themes__photo { outline: 2px solid var(--c-navy); outline-offset: 3px; }

@media (min-width: 1024px) {
	.not-found__kicker { margin-top: var(--s-12); }
	.not-found__themes { margin-top: var(--s-16); }
	.not-found__heading { margin-bottom: 28px; font-size: 28px; line-height: 32px; text-align: center; }
	.round-themes {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: minmax(0, 1fr);
		gap: var(--s-6);
		max-width: 1200px;
		margin: 0 auto;
		padding: 0;
		overflow: visible;
	}
	.round-themes__link { width: auto; gap: var(--s-3); }
	.round-themes__photo { width: 100%; max-width: 150px; }
	.round-themes__label { font-size: 15px; line-height: 20px; }
}
