/* ==========================================================================
   EYEONECO 2026 - template CSS
   Opbouw: 1 basis  2 header + menu  3 hero (minihero)  4 banden  5 componenten
           6 footer  7 talenswitch  8 mobiel (hamburger)
   ========================================================================== */

/* ---------- 1. Basis ------------------------------------------------------ */
:root {
	--blue: #3e596f;
	--green: #24631e;
	--grey: #e8ebee;
	--text: #231f20;
	--white: #fff;
	--logo-green: #005942;

	--container: 1180px;
	--gutter: clamp(1.25rem, 4vw, 3rem);
	--header-h: 112px;
	--header-h-compact: 80px;
	--radius-card: 2.5rem;
	--shadow-btn: 4px 6px 7px rgba(35, 31, 32, .28);
	--body-weight: 600;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h-compact) + 1rem); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: "Open Sans", Arial, Helvetica, sans-serif;
	font-weight: var(--body-weight);
	font-size: 1rem;
	line-height: 1.55;
	color: var(--text);
	background: var(--white);
	overflow-x: hidden;
}
body.sticky-header { padding-top: var(--header-h); }
img { max-width: 100%; height: auto; }
a { color: var(--green); text-decoration: none; transition: color .2s; }
a:hover, a:focus { color: var(--blue); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.skip-link {
	position: absolute; left: .5rem; top: -4rem; z-index: 2000;
	background: var(--blue); color: #fff; padding: .6rem 1rem; border-radius: .4rem;
}
.skip-link:focus { top: .5rem; color: #fff; }

h1, h2, h3, h4, h5, h6 {
	font-family: inherit;
	font-weight: 800;
	line-height: 1.15;
	color: var(--blue);
	margin: 0 0 .75rem;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2.7vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.3rem); }
h4 { font-size: 1.05rem; }
h2.is-green, h3.is-green { color: var(--green); }
h2.is-dark, h3.is-dark { color: var(--text); }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
li { margin-bottom: .2rem; }
strong, b { font-weight: 800; }
hr { border: 0; border-top: 2px solid var(--grey); margin: 2rem 0; }

.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.sr-only {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- 2. Header + menu ---------------------------------------------- */
.site-header {
	position: relative;
	z-index: 1000;
	background: var(--white);
	transition: box-shadow .25s;
}
.sticky-header .site-header { position: fixed; top: 0; left: 0; right: 0; }
.site-header.is-scrolled { box-shadow: 0 2px 14px rgba(35, 31, 32, .14); }

.header-inner {
	position: relative;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	column-gap: clamp(1.5rem, 3.2vw, 4rem);
	max-width: 1500px;
	margin-inline: auto;
	padding-inline: var(--gutter);
	height: var(--header-h);
	transition: height .25s;
}
.site-header.is-scrolled .header-inner { height: var(--header-h-compact); }

.brand { grid-column: 2; grid-row: 1; display: block; line-height: 0; }
.brand img { display: block; width: clamp(190px, 17vw, 270px); height: auto; border-radius: 0; transition: width .25s; }
.site-header.is-scrolled .brand img { width: clamp(160px, 13vw, 210px); }

.nav-panel { display: contents; }
.nav--left  { grid-column: 1; grid-row: 1; justify-self: end; }
.nav--right { grid-column: 3; grid-row: 1; justify-self: start; }

.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.75rem); }
.menu li { margin: 0; }
.menu > li { position: relative; display: flex; align-items: center; }
.menu > li > a {
	position: relative;
	display: block;
	padding: .6rem 0;
	color: var(--text);
	font-size: clamp(.9rem, 1.1vw, 1rem);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}
.menu > li > a::after {
	content: "";
	position: absolute; left: 0; right: 0; bottom: -.1rem;
	height: 4px; border-radius: 2px;
	background: var(--green);
	transform: scaleX(0); transform-origin: left;
	transition: transform .25s;
}
.menu > li > a:hover, .menu > li > a:focus { color: var(--text); text-decoration: none; }
.menu > li > a:hover::after, .menu > li > a:focus::after { transform: scaleX(.55); }
.menu > li.menu-current > a, .menu > li.menu-parent > a { font-weight: 800; }
.menu > li.menu-current > a::after, .menu > li.menu-parent > a::after { transform: scaleX(1); }

/* Submenu (dropdown) - nu nog ongebruikt, werkt zodra er subpagina's zijn */
.sub-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 1.6rem; height: 1.6rem; margin-left: .15rem; padding: 0;
	background: none; border: 0; cursor: pointer; color: var(--text);
}
.sub-toggle::before { content: "\f107"; font: normal 1.1rem/1 FontAwesome; transition: transform .2s; }
li.is-open > .sub-toggle::before { transform: rotate(180deg); }
.menu li > ul {
	display: none;
	position: absolute; top: 100%; left: -1rem; z-index: 5;
	min-width: 15rem; margin: 0; padding: .75rem; list-style: none;
	background: var(--white);
	border-radius: 1.5rem 0 1.5rem 0;
	box-shadow: 0 14px 32px rgba(35, 31, 32, .16);
}
.menu li li > a {
	display: block; padding: .55rem 1rem; border-radius: .5rem;
	color: var(--text); font-size: .95rem; font-weight: 600; text-decoration: none;
}
.menu li li > a:hover, .menu li li > a:focus { background: var(--grey); text-decoration: none; color: var(--text); }
.menu li li.menu-current > a { color: var(--green); font-weight: 800; }
@media (min-width: 992px) {
	.menu li:hover > ul, .menu li:focus-within > ul, .menu li.is-open > ul { display: block; }
}

/* Rechtsboven: talenswitch (en op mobiel de hamburgerknop) */
.header-tools {
	position: absolute; top: .7rem; right: var(--gutter);
	display: flex; align-items: center; gap: .9rem;
}
.nav-toggle { display: none; }

/* ---------- 3. Hero (minihero-module, parallax) ---------------------------- */
.hero-wrap { background: transparent; }
.minihero { min-height: 18rem; }
.minihero-overlay { background: linear-gradient(90deg, rgba(0, 0, 0, .28) 0%, rgba(0, 0, 0, .1) 60%, rgba(0, 0, 0, .05) 100%); }
.minihero-text {
	position: absolute; inset: 0;
	left: 0; top: 0; transform: none;
	width: auto; max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding: clamp(2rem, 5vw, 4rem) var(--gutter);
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	grid-template-rows: auto 1fr auto;
	column-gap: 3rem;
	text-align: left;
	font-size: 1rem;
	color: #fff;
}
.minihero-text h1 {
	grid-column: 1; grid-row: 1;
	margin: 0; padding: 0;
	font-size: clamp(2rem, 4.2vw, 3.4rem); font-weight: 800; line-height: 1.1;
	letter-spacing: 0; color: #fff;
	text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.minihero-text p.pfirst {
	grid-column: 1; grid-row: 3; align-self: end;
	max-width: 34rem; margin: 1.5rem 0 0; padding: 0;
	font-size: 1rem; font-weight: 600; line-height: 1.55; letter-spacing: 0; color: #fff;
	text-shadow: 0 1px 10px rgba(0, 0, 0, .45);
}
.minihero-text p.psecond {
	grid-column: 2; grid-row: 3; align-self: end;
	max-width: 24rem; margin: 1.5rem 0 0; padding: 0;
	font-size: clamp(1.5rem, 2.8vw, 2.3rem); font-weight: 400; line-height: 1.2; letter-spacing: 0; color: #fff;
	text-shadow: 0 2px 14px rgba(0, 0, 0, .4);
}
.minihero-text a.button { /* knoppen in de hero: zelfde look als .btn */
	background: var(--green); border-radius: 999px; box-shadow: var(--shadow-btn);
	font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; padding: 1rem 2.1rem;
}

/* ---------- 4. Banden (blokken 2-8) ---------------------------------------- */
.band { padding-block: clamp(2.75rem, 6vw, 5rem); }
.band--white { background: var(--white); }
.band--grey { background: var(--grey); }
.band > .container > :last-child { margin-bottom: 0; }
/* Ruimte boven koppen die op andere inhoud volgen */
.band .container > * + h2 { margin-top: 2.75rem; }
.band .container > * + h3 { margin-top: 2rem; }
.band h2 + .cols, .band h2 + .steps, .band h2 + .partners, .band h2 + .intro { margin-top: 1.75rem; }
/* Na een grijze band direct een witte (of omgekeerd) is de bedoeling; twee witte na elkaar krijgen minder lucht */
.band--white + .band--white { padding-top: 0; }

/* ---------- 5. Componenten (voor gebruik in de editor) ---------------------- */
/* Label boven een kop: <p class="label">Platform voor milieudata</p> */
.label {
	margin: 0 0 .5rem;
	font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
	color: var(--green);
}

/* Knoppen: <a class="btn">, <a class="btn btn--green"> */
.btn, a.btn {
	display: inline-block;
	min-width: 11rem;
	padding: 1rem 2.2rem;
	border: 0; border-radius: 999px;
	background: var(--blue); color: #fff;
	font: 700 .72rem/1 "Open Sans", Arial, sans-serif;
	letter-spacing: .16em; text-transform: uppercase; text-align: center; text-decoration: none;
	box-shadow: var(--shadow-btn);
	cursor: pointer;
	transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover, .btn:focus, a.btn:hover, a.btn:focus {
	color: #fff; text-decoration: none;
	transform: translateY(-2px); box-shadow: 4px 9px 10px rgba(35, 31, 32, .28);
}
.btn--green, a.btn--green { background: var(--green); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; margin: 1.5rem 0 0; }

/* Intro: label + kop links, tekst met groene lijn rechts
   <div class="intro"><div class="intro__head"><p class="label">..</p><h2>..</h2></div><div class="intro__body"><p>..</p></div></div> */
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: start; }
.intro__head h2 { margin-bottom: 0; }
.intro__body { padding-left: 1.25rem; border-left: 3px solid var(--green); }
.intro__body > :last-child { margin-bottom: 0; }
.highlight { color: var(--green); font-weight: 800; }

/* Hero-split voor de homepagina: tekst links, afbeelding rechts, knoppen eronder
   <div class="hero-split"><div class="hero-split__text">..</div><div class="hero-split__media"><img ..></div>
   <div class="hero-split__actions">..</div></div> */
.hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: center; }
.hero-split__media img { display: block; width: 100%; border-radius: 0; }
.hero-split__actions { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; }
.hero-split__actions > * { justify-self: start; }
.hero-split__actions > :last-child { justify-self: center; }
.hero-split h1 { margin-bottom: 1.5rem; }
.hero-split__text > :last-child { margin-bottom: 0; }

/* Kolommen: <div class="cols cols-2|cols-3|cols-4">, met .has-rules voor verticale lijnen */
.cols { display: grid; gap: 2rem clamp(1.5rem, 4vw, 3.5rem); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols.has-rules > * + * { border-left: 2px solid var(--white); padding-left: clamp(1.5rem, 4vw, 3.5rem); }
.band--white .cols.has-rules > * + * { border-left-color: var(--grey); }
.cols > * > :last-child { margin-bottom: 0; }
.cols.has-rules > * { display: flex; flex-direction: column; align-items: flex-start; }
.cols.has-rules > * > p { margin-bottom: 1.5rem; }
.cols.has-rules > * > .btn { margin-top: auto; }

/* Stappen met kaartjes en pijlen
   <div class="steps"><div class="card"><i class="fa fa-files-o"></i><h3>Structureren</h3><p>..</p></div>
   <span class="steps__arrow"><i class="fa fa-arrow-right"></i></span><div class="card">..</div> .. </div> */
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 1rem clamp(.75rem, 2vw, 1.75rem); }
.card {
	height: 100%;
	padding: 2rem 1.75rem 2.25rem;
	background: var(--white);
	border-radius: var(--radius-card) 0 var(--radius-card) 0;
	text-align: center;
	color: var(--blue);
}
.card .fa { display: block; margin: 0 0 1rem; font-size: 3.4rem; line-height: 1; color: #1b7f5c; }
.card h3 { margin: 0 0 .35rem; font-size: .85rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.card p { margin: 0; font-weight: 600; }
.steps__arrow { font-size: 1.8rem; line-height: 1; color: var(--green); }
.steps__arrow .fa { margin: 0; }

/* Partners: <div class="partners"><div class="partner"><p><strong>Naam</strong> tekst <a class="link-ext" href="">Ga naar de website</a></p><img ..></div>..</div> */
.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3.5rem clamp(2rem, 6vw, 5rem); }
.partner { padding-top: 1rem; border-top: 2px solid var(--text); }
.partner:nth-child(even) { border-top-color: var(--green); }
.partner img { display: block; max-height: 4.5rem; width: auto; margin-top: 1.25rem; border-radius: 0; }
.logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; }
.logos img { max-height: 3.5rem; width: auto; border-radius: 0; }

/* Links met pijltje: <a class="link-ext"> (extern) en <a class="more"> (meer lezen) */
a.link-ext { color: var(--text); font-weight: 800; }
a.link-ext::after { content: "\f08e"; margin-left: .4em; font: normal .85em/1 FontAwesome; }
a.more { font-weight: 800; color: var(--green); }
a.more::after { content: " >>"; }

/* Lijsten */
ul.checks { list-style: none; padding-left: 0; }
ul.checks li { position: relative; padding-left: 1.6rem; }
ul.checks li::before { content: "\f00c"; position: absolute; left: 0; top: .15em; font: normal 1em/1 FontAwesome; color: var(--green); }

/* Afbeeldingen in content */
.band img { border-radius: 0; }
.img-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.img-row img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* CTA-band "Zelf aan de slag?" */
.band--cta h2 { color: var(--text); }
.band--cta p { max-width: 42rem; }

/* ---------- 6. Footer ----------------------------------------------------- */
.site-footer { background: var(--blue); color: #fff; padding: clamp(2.25rem, 5vw, 3.5rem) 0 1.5rem; font-weight: 400; font-size: .92rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus { text-decoration: underline; color: #fff; }
.footer-cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem clamp(2rem, 6vw, 5rem); }
.footer-logo { margin: 0 0 1rem; }
.footer-logo img { display: block; width: 8.5rem; height: auto; border-radius: 0; }
.footer-title, .site-footer h2, .site-footer h3 {
	margin: 0 0 1rem;
	font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: #fff;
}
.footer-list, .site-footer ul { list-style: none; margin: 0; padding: 0; }
.footer-list li, .site-footer li { position: relative; padding-left: .9rem; margin-bottom: .35rem; }
.footer-list li::before, .site-footer li::before { content: "\2022"; position: absolute; left: 0; }
.footer-list li > ul { display: none; }
.site-footer .sub-toggle { display: none; }
.footer-bottom {
	margin-top: 2rem; padding-top: 1.25rem;
	text-align: center; font-size: .75rem;
	border-top: 1px solid rgba(255, 255, 255, .18);
}

/* ---------- 7. Talenswitch (languagebaker) --------------------------------- */
.lang-switch .flagwrapper { margin: 0; display: flex; align-items: center; gap: .4rem; }
.lang-switch .languagebaker { display: block; }
.lang-switch .languagebaker a { display: block; line-height: 0; }
.lang-switch .flag { display: block; width: 26px; max-width: 26px; height: auto; border-radius: 3px; }
.lang-switch .languagebaker a img { opacity: .55; transition: opacity .2s; }
.lang-switch .languagebaker a:hover img, .lang-switch .languagebaker a:focus img, .lang-switch .languagebaker a.current img { opacity: 1; }
.lang-switch .languagebaker a.current img { outline: 2px solid var(--green); outline-offset: 2px; }

/* ---------- 8. Responsive -------------------------------------------------- */
@media (max-width: 1100px) {
	.footer-cols { grid-template-columns: 1fr 1fr; }
	.footer-col--brand { grid-column: 1 / -1; }
}

@media (max-width: 991px) {
	:root { --header-h: 72px; --header-h-compact: 72px; }
	body.menu-open { overflow: hidden; }

	/* Header: logo links, talenswitch + hamburger rechts */
	.header-inner { display: flex; justify-content: space-between; padding-inline: 1.25rem; }
	.brand img, .site-header.is-scrolled .brand img { width: 160px; }
	.header-tools { position: static; margin-left: auto; gap: 1.1rem; }

	.nav-toggle {
		display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
		width: 44px; height: 44px; padding: 0 9px;
		background: none; border: 0; cursor: pointer;
	}
	.nav-toggle__bar { display: block; height: 3px; border-radius: 2px; background: var(--blue); transition: transform .25s, opacity .2s; }
	body.menu-open .nav-toggle__bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
	body.menu-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
	body.menu-open .nav-toggle__bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

	/* Schermvullend menupaneel onder de koptekst, items links uitgelijnd */
	.nav-panel {
		display: none;
		position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
		z-index: 999;
		padding: 1rem 1.25rem 3rem;
		background: var(--white);
		overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
		border-top: 1px solid var(--grey);
	}
	body.menu-open .nav-panel { display: block; }
	.nav--left, .nav--right { justify-self: auto; }
	.menu { display: block; }
	.menu > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--grey); }
	.menu > li > a { flex: 1; padding: .85rem 0; font-size: 1.3rem; font-weight: 700; white-space: normal; }
	.menu > li > a::after { display: none; }
	.menu > li.menu-current > a, .menu > li.menu-parent > a { color: var(--green); font-weight: 800; }
	.sub-toggle { width: 2.75rem; height: 2.75rem; }
	.sub-toggle::before { font-size: 1.5rem; }
	.menu li > ul {
		position: static; flex-basis: 100%;
		min-width: 0; margin: 0 0 .75rem; padding: 0 0 0 1rem;
		border-left: 3px solid var(--green); border-radius: 0; box-shadow: none; background: none;
	}
	.menu li.is-open > ul { display: block; }
	.menu li li > a { padding: .6rem .5rem; font-size: 1.05rem; }

	/* Hero: tekst onder elkaar */
	.minihero { min-height: 22rem; }
	.minihero-text { display: flex; flex-direction: column; justify-content: flex-end; gap: .25rem; padding-block: 1.75rem; }
	.minihero-text h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
	.minihero-text p.pfirst, .minihero-text p.psecond { margin-top: .75rem; max-width: none; }
	.minihero-text p.psecond { font-size: 1.4rem; }
}

@media (max-width: 860px) {
	.intro, .hero-split, .cols-2, .cols-3, .cols-4, .partners { grid-template-columns: 1fr; }
	.hero-split__actions { grid-template-columns: 1fr; gap: 1.25rem; }
	.hero-split__actions > :last-child { justify-self: start; }
	.cols.has-rules > * + * { border-left: 0; padding-left: 0; margin-left: 0; border-top: 2px solid var(--white); padding-top: 1.5rem; }
	.band--white .cols.has-rules > * + * { border-top-color: var(--grey); }
	.steps { grid-template-columns: 1fr; }
	.steps__arrow { justify-self: center; transform: rotate(90deg); }
	.img-row { grid-template-columns: 1fr; }
	.footer-cols { grid-template-columns: 1fr; }
	.btn-row { gap: 1rem; }
}

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

@media print {
	.site-header, .site-footer, .nav-toggle, .skip-link { display: none !important; }
	body.sticky-header { padding-top: 0; }
	.minihero { height: auto !important; min-height: 0; }
}
