/*
	vdspoel.nl — eigen, licht/fris design (fase 3)
	Vervangt het HTML5 UP "Dimension"-sjabloon door een doorlopende scrollpagina.
	Geen externe fonts/iconenbibliotheken: alles inline, voor snelheid.

	Kleurrichting: bos & heide (Veluwe). Mosgroen/dennengroen als hoofdkleur
	(het bos), een gedempt heidepaars als accent (de heideheuvels), en warme
	zandtinten als ondergrond (de bospaden). Bewust maar drie families, geen
	generiek "webkleuren"-palet.
*/

/* Lettertype wordt geladen via <link rel="stylesheet"> + preconnect in de <head>
   van index.html (sneller dan @import, en ondersteunt font-display: swap). */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, div, span, h1, h2, h3, h4, h5, h6, p, blockquote, ul, ol, li,
form, label, table, tr, td, th, article, aside, figure, figcaption,
footer, header, nav, section, img, iframe { margin: 0; padding: 0; border: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; }

/* ---------- Tokens ---------- */
:root {
	--bg: #e7ead8;
	--bg-rgb: 231,234,216;
	--bg-alt: #d8dfc3;
	--bg-alt-rgb: 216,223,195;
	--surface: #ffffff;
	--text: #2b2820;
	/* Was #6b6f54 — haalde 4,26:1 op --bg en 3,79:1 op --bg-alt (eis 4,5:1 voor tekst).
	   Verdonkerd naar #5a5e45: 5,5:1 op --bg, 4,89:1 op --bg-alt. Audit sept 2026, punt 5. */
	--text-muted: #5a5e45;
	--primary: #55642e;
	--primary-dark: #38401f;
	--accent: #7a5738;
	--accent-deep: #4a331f;
	--border: #c4cba8;
	--radius: 12px;
	--shadow: 0 4px 18px rgba(43,40,32,0.08);
	--shadow-hover: 0 10px 28px rgba(43,40,32,0.14);
	--max-width: 1180px;
	--font: "Source Sans Pro", -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); }

body {
	font-family: var(--font);
	background: var(--bg);
	color: var(--text);
	font-size: 17px;
	line-height: 1.65;
	font-weight: 400;
}

h1, h2, h3, h4 { font-weight: 700; line-height: 1.25; color: var(--text); }
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1rem 0; color: var(--text); }
p:last-child { margin-bottom: 0; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

.skip-link {
	position: absolute; top: -100px; left: 1rem; z-index: 1000;
	background: var(--primary-dark); color: #ffffff; font-weight: 700;
	padding: 0.75rem 1.25rem; border-radius: 0 0 8px 8px; transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

.eyebrow {
	display: inline-block;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--accent-deep);
	margin-bottom: 0.6rem;
}

.section { padding: 4.5rem 0; background: var(--bg); }
.section--alt { background: var(--bg-alt); }
.section--surface { background: var(--surface); }
.section-head { max-width: 640px; margin: 0 0 2.5rem 0; }
.section-head p { color: var(--text-muted); }

@media screen and (max-width: 736px) {
	body { font-size: 16px; }
	h1 { font-size: 1.9rem; }
	h2 { font-size: 1.5rem; }
	.section { padding: 3rem 0; }
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.85rem 1.6rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
	white-space: nowrap;
	touch-action: manipulation;
}
.btn-primary { background: var(--primary); color: #ffffff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn-outline { background: transparent; color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
.btn-outline:hover { background: rgba(85,100,46,0.08); }
.btn-light { background: #ffffff; color: var(--primary-dark); box-shadow: var(--shadow); }
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }

/* Grote uitgelichte knop (bv. Roompot-boekknop in Reserveer) — mag op smalle
   schermen wrappen i.p.v. van het scherm af te lopen (fix: audit sept 2026, punt 1) */
.btn-cta-large { font-size: 1.05rem; padding: 1rem 2rem; }
@media screen and (max-width: 480px) {
	.btn-cta-large { white-space: normal; text-align: center; width: 100%; font-size: 1rem; padding: 0.9rem 1.25rem; }
}

/* ---------- Header ---------- */
#site-header {
	position: sticky;
	top: 0;
	z-index: 500;
	background: rgba(var(--bg-rgb), 0.92);
	backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
#site-header.is-scrolled { border-color: var(--border); box-shadow: 0 2px 12px rgba(43,42,37,0.06); }
#site-header .inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0.9rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.05rem; color: var(--primary-dark); }
.brand svg { flex-shrink: 0; }

#site-nav { display: flex; align-items: center; gap: 1.75rem; }
#site-nav a { font-weight: 600; font-size: 0.95rem; color: var(--text); border-bottom: 2px solid transparent; padding-bottom: 2px; transition: color 0.15s ease, border-color 0.15s ease; }
#site-nav a:hover { color: var(--primary); border-color: var(--primary); }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; background: none; border: none; padding: 0.65rem; min-width: 44px; min-height: 44px; }
#nav-backdrop { display: none; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content:''; display:block; width:24px; height:2px; background:var(--text); margin:5px 0; transition: transform 0.2s ease, opacity 0.2s ease; }

@media screen and (max-width: 900px) {
	#site-nav { position: fixed; z-index: 2; inset: 64px 0 auto 0; background: var(--surface); flex-direction: column; align-items: flex-start; padding: 1.5rem; gap: 1.1rem; box-shadow: 0 12px 24px rgba(0,0,0,0.1); transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease; }
	#site-nav.is-open { opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto; }
	.header-cta .btn-primary { display: none; }
	.nav-toggle { display: block; }
	/* Overlay achter het opengeklapte menu: zonder dit bleef de pagina eronder
	   zichtbaar én klikbaar (audit sept 2026, punt 6). z-index 50: moet boven
	   .hero-content (z-index:2) uitkomen (die "lekt" door naar de root-stacking-
	   context omdat .hero zelf geen eigen stacking context vormt), maar onder
	   #site-header (500) en #mobile-cta (400) blijven. */
	#nav-backdrop {
		display: block; position: fixed; inset: 0; z-index: 50;
		background: rgba(20,26,15,0.45);
		opacity: 0; visibility: hidden; pointer-events: none;
		transition: opacity 0.2s ease, visibility 0.2s ease;
	}
	#nav-backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
}

/* ---------- Hero ---------- */
/* Achtergrondfoto was een montage van twee losse foto's (buiten + woonkamer)
   met een zichtbare, harde naad er middenin — bevestigd via pixelsampling.
   Vervangen door de bestaande, foutloze buitenfoto (dezelfde die als
   og:image en in de Huisje-galerij wordt gebruikt, dus al live) zodat er
   één samenhangend beeld staat.
   Lighthouse-bevinding L-01 (LCP 3,1s door de hero-afbeelding): de foto
   bleek dit sitebrede formaat (1200×900, 637KB) te gebruiken terwijl hij als
   CSS-achtergrond ook nog eens laat wordt ontdekt door de browser. Opgelost
   met een apart, sterker gecomprimeerd desktop/tablet-bestand (213KB) en een
   kleinere, extra gecomprimeerde mobiele variant (80KB, zie media query
   hieronder) — samen met bijpassende <link rel="preload" fetchpriority="high">
   in de <head> van index.html/bedankt.html, zodat de browser het juiste
   bestand meteen bij het laden van de pagina opvraagt in plaats van pas na
   het verwerken van dit stylesheet. */
.hero {
	position: relative;
	min-height: 82vh;
	display: flex;
	align-items: flex-end;
	background: #22301c url('../../images/Huisje/huisje_hoenderloo_buiten-hero.webp') center 65%/cover no-repeat;
}
.hero::after {
	content: '';
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(24,32,18,0.20) 0%, rgba(14,18,11,0.78) 100%);
}
.hero-content { position: relative; z-index: 2; width: 100%; padding: 3rem 1.5rem 3.5rem; max-width: var(--max-width); margin: 0 auto; color: #ffffff; }
.hero-content h1 { color: #ffffff; font-size: 3rem; max-width: 720px; }
.hero-content .lead { color: rgba(255,255,255,0.9); font-size: 1.15rem; max-width: 560px; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.75rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hero-badge {
	display: inline-flex; align-items: center; gap: 0.4rem;
	background: rgba(255,255,255,0.14);
	border: 1px solid rgba(255,255,255,0.35);
	color: #fff;
	font-size: 0.82rem; font-weight: 600;
	padding: 0.4rem 0.85rem; border-radius: 999px;
}

@media screen and (max-width: 736px) {
	.hero {
		min-height: 78vh;
		/* Kleinere, extra gecomprimeerde variant (750px breed, 80KB i.p.v. 213KB)
		   voor telefoons — zelfde breakpoint als de preload-media-query in de
		   <head>, zodat browser en CSS altijd hetzelfde bestand kiezen. */
		background-image: url('../../images/Huisje/huisje_hoenderloo_buiten-hero-mobile.webp');
	}
	.hero-content h1 { font-size: 2.1rem; }
}

/* ---------- Facility / feature cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.card {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1.5rem;
	box-shadow: var(--shadow);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
/* h3 toegevoegd naast h4: de "Kenmerken"-kop in Huisje is nu een h3 i.p.v. h4
   (koppenstructuur sloeg een niveau over — audit sept 2026, punt 9). Zelfde
   opmaak als voorheen, ongeacht welk kopniveau hier gebruikt wordt. */
.card h3, .card h4 { margin-bottom: 0.4rem; color: var(--primary-dark); font-size: 1.05rem; font-weight: 700; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ---------- Two-column layout (Huisje) ---------- */
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: start; }
/* min-width:0 op de kolommen voorkomt dat een grid-kolom breder blijft dan de
   beschikbare ruimte door de standaard min-content-breedte van de geneste
   .gallery-grid — anders ontstaat er bij smalle schermen (~320px) een paar
   pixels horizontale overflow op de pagina. */
.two-col > * { min-width: 0; }
@media screen and (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Gallery grid ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.7rem; }
.gallery-grid img, .thumb {
	width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
	border-radius: 8px; cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-grid img:hover, .thumb:hover { transform: scale(1.03); box-shadow: var(--shadow-hover); }

.thumb-btn {
	border: none; background: none; padding: 0; margin: 0; display: block; width: 100%; cursor: pointer; touch-action: manipulation;
	/* min-width:0 voorkomt dat de intrinsieke (natuurlijke) breedte van de
	   afbeelding erin het grid-item groter probeert te houden dan de
	   toegewezen kolombreedte — grid-items hebben standaard min-width:auto,
	   wat de minmax(150px,1fr)-instelling op .gallery-grid kon overrulen en
	   op smalle schermen (~320px) een paar pixels pagina-overflow gaf. */
	min-width: 0;
}

/* ---------- Omgeving cards ---------- */
.omgeving-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.omgeving-card {
	display: block; background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.omgeving-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.omgeving-card img { width: 100%; height: 150px; object-fit: cover; }
.omgeving-card-body { padding: 1.1rem 1.2rem 1.3rem; }
/* Was h4 direct na de h2 "Omgeving" (koppenstructuur sloeg een niveau over —
   audit sept 2026, punt 9); nu h3, met dezelfde opmaak als voorheen. */
.omgeving-card-body h3 { color: var(--primary-dark); margin-bottom: 0.35rem; font-size: 1.05rem; font-weight: 700; }
.omgeving-card-body p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* ---------- Rating card ---------- */
.rating-card {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	box-shadow: var(--shadow); padding: 1.5rem 1.75rem; margin-bottom: 2.5rem;
	display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem;
}
.rating-score { font-size: 2.4rem; font-weight: 700; color: var(--primary-dark); line-height: 1; }
.rating-score span { font-size: 1.1rem; font-weight: 400; color: var(--text-muted); }
.rating-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.rating-tag { background: var(--bg-alt); border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.82rem; font-weight: 600; color: var(--primary-dark); }
.rating-note { flex-basis: 100%; font-size: 0.82rem; color: var(--text-muted); }

/* ---------- FAQ accordion ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-of-type { border-top: 1px solid var(--border); }
.faq-question {
	width: 100%; text-align: left; background: none; border: none;
	display: flex; align-items: center; justify-content: space-between;
	padding: 1.15rem 0.25rem; font-weight: 700; font-size: 1.02rem; color: var(--text);
}
.faq-question .icon-plus { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.faq-question .icon-plus::before, .faq-question .icon-plus::after {
	content: ''; position: absolute; background: var(--primary); border-radius: 2px;
}
.faq-question .icon-plus::before { width: 100%; height: 2px; top: 9px; left: 0; }
.faq-question .icon-plus::after { width: 2px; height: 100%; left: 9px; top: 0; transition: transform 0.2s ease; }
.faq-item.is-open .icon-plus::after { transform: rotate(90deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; overflow: hidden; transition: grid-template-rows 0.25s ease; }
.faq-answer-inner { min-height: 0; overflow: hidden; }
.faq-answer-inner p { margin: 0; padding: 0 0.25rem 1.2rem; color: var(--text-muted); }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }

/* ---------- Reserveer ---------- */
.reserveer-card {
	background: var(--surface); border: 2px solid var(--primary); border-radius: var(--radius);
	box-shadow: var(--shadow); padding: 2.5rem; max-width: 720px; margin: 0 auto; text-align: center;
}
.savings-badge {
	display: inline-block; background: var(--accent-deep); color: #ffffff; font-weight: 700;
	font-size: 0.85rem; padding: 0.4rem 1rem; border-radius: 999px; margin-bottom: 1rem;
}
.notice-warning {
	background: #ece0c4; color: #5c4423; border-left: 4px solid var(--accent);
	padding: 0.85em 1em; border-radius: 8px; font-weight: 600; text-align: left; margin-top: 1.5rem;
}

/* ---------- Contact / form ---------- */
.fields { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-bottom: 1.1rem; }
.field { flex: 1 1 100%; }
.field.half { flex: 1 1 calc(50% - 0.55rem); }
label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 0.4rem; color: var(--text); }
input[type="text"], input[type="email"], textarea {
	/* Rand op --text-muted i.p.v. --border: die laatste haalde maar 1,69:1 contrast
	   tegen de witte achtergrond (WCAG-eis 3:1 voor UI-componenten) — audit sept 2026, punt 2 */
	width: 100%; border: 1px solid var(--text-muted); border-radius: 8px; background: var(--surface);
	padding: 0.7rem 0.9rem; font: inherit; color: var(--text); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
	outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(85,100,46,0.15);
}
textarea { resize: vertical; min-height: 110px; }
.actions { display: flex; gap: 0.8rem; margin-top: 0.5rem; }
.actions input[type="submit"] {
	border: none; background: var(--primary); color: #fff; font-weight: 700; font-size: 0.95rem;
	padding: 0.85rem 1.6rem; border-radius: 999px; transition: background-color 0.15s ease;
}
.actions input[type="submit"]:hover { background: var(--primary-dark); }
.actions input[type="submit"]:disabled { opacity: 0.6; cursor: default; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.map-frame iframe { width: 100%; height: 100%; min-height: 300px; }

@media screen and (max-width: 560px) {
	.field.half { flex: 1 1 100%; }
}

/* ---------- Footer ---------- */
#site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.85); padding: 2.5rem 0; text-align: center; }
#site-footer a { color: #ffffff; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.4); }
#site-footer p { margin-bottom: 0.5rem; }
#site-footer .fine-print { font-size: 0.8rem; color: var(--bg-alt); }
/* Focus-outline in --accent (bruin) heeft maar 1,69:1 contrast op deze donkere achtergrond
   (WCAG-eis 3:1) — hier overschreven naar --bg-alt, dat wel 7,9:1 haalt. Audit sept 2026, punt 4. */
#site-footer a:focus-visible { outline-color: var(--bg-alt); }

/* ---------- Sticky mobile booking bar ---------- */
#mobile-cta {
	display: none;
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 400;
	background: var(--surface); border-top: 1px solid var(--border);
	box-shadow: 0 -6px 18px rgba(0,0,0,0.08);
	padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom)) 1rem; text-align: center;
}
#mobile-cta .btn { width: 100%; }
@media screen and (max-width: 736px) {
	#mobile-cta { display: block; }
	body { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
}

/* ---------- Lightbox (ongewijzigd gedrag) ---------- */
#lightbox-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(14,18,11,0.93); z-index: 9999; justify-content: center; align-items: center; cursor: zoom-out; overscroll-behavior: contain; }
#lightbox-overlay img { max-width: 90%; max-height: 90%; border-radius: 8px; box-shadow: 0 0 30px rgba(0,0,0,0.5); }
/* Padding omhoog van 0.25rem: klikzone was 31-41,5px breed, onder de 44px-eis (audit sept 2026, punt 7) */
.lightbox-btn { background: none; border: none; padding: 0.65rem; min-width: 44px; min-height: 44px; line-height: 1; cursor: pointer; touch-action: manipulation; }

/* ---------- Accessibility ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
	outline: 3px solid var(--accent); outline-offset: 2px;
}

/* Sticky header/overlays mogen focus niet verbergen; scroll-padding op html regelt dit al. */

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