/**
 * Codezi theme styles — mobile-first.
 *
 * Basis = mobiel. Grotere schermen bouwen erop verder via min-width breakpoints:
 *   - 600px+  : 2-koloms rasters
 *   - 768px+  : horizontale navigatie
 *   - 1000px+ : volledige desktop-layout (hero/verhaal/contact 2-koloms, timeline horizontaal)
 */

:root {
	--bg: #0B1512;
	--bg-2: #08120F;
	--bg-3: #060B09;
	--card: #0E1917;
	--card-hover: #142621;
	--form-bg: #14231E;
	--input-bg: #0B1512;
	--text: #F3EFE4;
	--muted: #A9B8B1;
	--muted-2: #93A69E;
	--muted-3: #7A8A82;
	--accent: #4FD69E;
	--water: #5FB4C4;
	--border: rgba(243, 239, 228, 0.08);
	--border-2: rgba(243, 239, 228, 0.1);
	--border-3: rgba(243, 239, 228, 0.14);

	--serif: 'Spectral', Georgia, serif;
	--sans: 'Manrope', system-ui, sans-serif;

	--maxw: 1400px;
	--gutter: 24px;
	--section-y: 120px; /* verticale ruimte tussen secties (mobiel) */
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--sans);
	background: var(--bg);
	color: var(--text);
	overflow-x: hidden;
	line-height: 1.6;
}

::selection { background: #3EAE8A; color: #0B1512; }

a,
a:link,
a:visited {
	color: inherit;
}

img { max-width: 100%; }

.container {
	max-width: var(--maxw);
	margin: 0 auto;
}

/* Kicker / labels boven titels */
.kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 18px;
}

.kicker__line {
	width: 28px;
	height: 1px;
	background: var(--accent);
	display: inline-block;
}

/* Titels */
.section-title {
	font-family: var(--serif);
	font-weight: 500;
	font-size: 28px;
	line-height: 1.2;
	margin: 0;
	color: var(--text);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	background: var(--accent);
	color: #0B1512;
	text-decoration: none;
	font-size: 15.5px;
	font-weight: 700;
	padding: 16px 30px;
	border-radius: 100px;
	border: none;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(79, 214, 158, 0.35);
}

/* Knop-links: donkere tekst afdwingen, ook in :link/:visited status. */
a.btn:link,
a.btn:visited {
	color: #0B1512;
}

.btn--sm {
	font-size: 14.5px;
	padding: 11px 24px;
}

.btn--ghost {
	background: transparent;
	color: var(--text);
	gap: 8px;
	font-weight: 600;
	padding: 16px 6px;
}

.btn--ghost:hover {
	transform: none;
	box-shadow: none;
	gap: 12px;
	color: #7FBBA4;
}

/* ---------- HEADER / NAV (mobiel: toggle) ---------- */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px var(--gutter);
	background: rgba(11, 21, 18, 0.86);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
}

.site-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--text);
}

.site-brand img {
	width: 36px;
	height: 36px;
	object-fit: contain;
}

.site-brand__name {
	font-family: var(--serif);
	font-size: 20px;
	font-weight: 600;
	letter-spacing: 0.01em;
}

.nav-toggle {
	display: block;
	background: none;
	border: none;
	color: var(--text);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.main-nav {
	position: fixed;
	top: 64px;
	left: 0;
	right: 0;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
	padding: 28px var(--gutter);
	background: rgba(11, 21, 18, 0.98);
	border-bottom: 1px solid var(--border);
	display: none;
}

.main-nav.is-open { display: flex; }

.main-nav a {
	color: var(--text);
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	opacity: 0.85;
	transition: opacity 0.2s ease;
}

.main-nav a:hover { opacity: 1; }

.main-nav a.btn { color: #0B1512; opacity: 1; }

/* ---------- HERO ---------- */
.hero {
	position: relative;
	padding: 120px var(--gutter) 72px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	align-items: center;
	max-width: var(--maxw);
	margin: 0 auto;
}

.hero__title {
	font-family: var(--serif);
	font-weight: 500;
	font-size: 40px;
	line-height: 1.08;
	letter-spacing: -0.01em;
	margin: 0 0 24px;
	color: var(--text);
	max-width: 620px;
}

.hero__intro {
	font-size: 17px;
	line-height: 1.6;
	color: var(--muted);
	max-width: 460px;
	margin: 0 0 32px;
}

.hero__actions {
	display: flex;
	gap: 16px;
	align-items: center;
	flex-wrap: wrap;
}

.hero__media {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	border-radius: 28px;
	overflow: hidden;
	border: 1px solid var(--border-2);
}

/* Gedeelde media / afbeelding placeholder */
.media {
	position: relative;
	overflow: hidden;
	border-radius: 24px;
	border: 1px solid var(--border-2);
	background: linear-gradient(135deg, #14231E, #0B1512);
}

.media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.media__placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 24px;
	font-size: 14px;
	color: var(--muted-3);
}

/* ---------- VERHAAL ---------- */
.story {
	scroll-margin-top: 88px;
	padding: var(--section-y) var(--gutter);
	max-width: var(--maxw);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	align-items: center;
}

.story__media {
	aspect-ratio: 3 / 4;
}

.story p {
	font-size: 16px;
	line-height: 1.75;
	color: var(--muted);
	margin: 0 0 20px;
}

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

.story .section-title { margin-bottom: 24px; }

/* ---------- PROBLEMEN ---------- */
.problems {
	padding: var(--section-y) var(--gutter);
	background: radial-gradient(120% 140% at 15% 0%, #16332F 0%, #0D1A1C 45%, #08120F 100%);
}

.problems__head {
	max-width: 560px;
	margin-bottom: 48px;
}

.grid-2 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1px;
	background: var(--border-2);
	border-radius: 20px;
	overflow: hidden;
}

.grid-2--bordered { border: 1px solid var(--border-2); }

.cell {
	background: var(--card);
	padding: 32px;
	transition: background 0.25s ease;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cell:hover { background: var(--card-hover); }

.cell__num {
	font-family: var(--serif);
	font-size: 15px;
	color: var(--accent);
	margin: 0;
}

.cell__title {
	font-size: 20px;
	font-weight: 600;
	color: var(--text);
	margin: 0;
}

.cell__desc {
	font-size: 15.5px;
	line-height: 1.6;
	color: var(--muted-2);
	margin: 0;
}

/* ---------- AANPAK ---------- */
.approach {
	scroll-margin-top: 88px;
	padding: var(--section-y) var(--gutter);
	max-width: var(--maxw);
	margin: 0 auto;
}

.approach__head {
	max-width: 560px;
	margin: 0 auto 48px;
	text-align: center;
}

.timeline {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.timeline__line {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 6px;
	width: 2px;
	background: var(--border-3);
}

.step {
	flex: 1;
	position: relative;
	padding: 0 0 0 40px;
}

.step__dot {
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 6px rgba(79, 214, 158, 0.15);
	position: absolute;
	top: 4px;
	left: 0;
}

.step__head {
	display: flex;
	align-items: baseline;
	gap: 12px;
	margin-bottom: 10px;
}

.step__num {
	font-family: var(--serif);
	font-size: 26px;
	color: var(--accent);
}

.step__title {
	font-size: 19px;
	font-weight: 600;
	margin: 0;
	color: var(--text);
}

.step__desc {
	font-size: 15px;
	line-height: 1.6;
	color: var(--muted-2);
	margin: 0;
}

/* ---------- PROJECTEN ---------- */
.projects {
	scroll-margin-top: 88px;
	padding: var(--section-y) var(--gutter);
	background: var(--bg-2);
}

.projects__head {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-bottom: 40px;
	gap: 20px;
}

.projects__head-note {
	font-size: 14px;
	color: var(--muted-3);
	max-width: 320px;
	margin: 0;
}

.grid-3 {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

.project-card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 20px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
}

.project-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: 0;
	border: none;
}

.project-card__body {
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	flex: 1;
}

.project-card__sector {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 6px;
}

.project-card__name {
	font-family: var(--serif);
	font-size: 22px;
	font-weight: 500;
	margin: 0;
	color: var(--text);
}

.project-card__facts {
	display: flex;
	flex-direction: column;
	gap: 10px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--muted);
}

.project-card__facts strong { color: var(--text); }

.project-card__link,
a.project-card__link:link,
a.project-card__link:visited {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--accent);
	text-decoration: none;
	font-size: 14.5px;
	font-weight: 700;
	transition: gap 0.2s ease;
}

.project-card__link:hover { gap: 12px; }

/* ---------- DIENSTEN ---------- */
.services {
	scroll-margin-top: 88px;
	padding: var(--section-y) var(--gutter);
	max-width: var(--maxw);
	margin: 0 auto;
}

.services__head {
	max-width: 560px;
	margin-bottom: 40px;
}

/* ---------- CONTACT ---------- */
.contact {
	padding: var(--section-y) var(--gutter);
	background: radial-gradient(120% 140% at 85% 100%, #16332F 0%, #0D1A1C 45%, #08120F 100%);
}

.contact__grid {
	max-width: var(--maxw);
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: 48px;
	align-items: start;
}

.contact__title {
	font-family: var(--serif);
	font-weight: 500;
	font-size: 32px;
	line-height: 1.15;
	margin: 0 0 24px;
	color: var(--text);
}

.contact__intro {
	font-size: 16px;
	line-height: 1.7;
	color: var(--muted);
	max-width: 440px;
	margin: 0 0 32px;
}

.contact__details {
	display: flex;
	flex-direction: column;
	gap: 18px;
	font-size: 15.5px;
}

.contact__details a,
.contact__details div {
	color: var(--text);
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 12px;
}

.contact__details a:hover { color: var(--water); }

.contact__details span { opacity: 0.5; }

.contact__social {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 28px;
}

.contact__social-label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--muted-3);
}

.contact__social-links {
	display: flex;
	align-items: center;
	gap: 14px;
}

.contact__social-links a,
.contact__social-links a:link,
.contact__social-links a:visited {
	display: inline-flex;
	color: var(--text);
	transition: color 0.2s ease, transform 0.2s ease;
}

.contact__social-links a:hover {
	color: var(--accent);
	transform: translateY(-2px);
}

/* Honeypot-veld voor spam — visueel en voor screenreaders verborgen. */
.czi-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.contact__form {
	background: var(--form-bg);
	border: 1px solid var(--border);
	border-radius: 24px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.field {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.field label {
	font-size: 13px;
	color: var(--muted);
}

.field input,
.field textarea {
	background: var(--input-bg);
	border: 1px solid var(--border-3);
	border-radius: 10px;
	padding: 13px 16px;
	color: var(--text);
	font-size: 15px;
	font-family: var(--sans);
}

.field textarea { resize: vertical; }

/* Verstuurknop: auto-breedte, rechts uitgelijnd (niet meerekken met het formulier). */
.contact__form .btn {
	align-self: flex-end;
	margin-top: 8px;
}

.field input:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--accent);
}

/* Akkoord-checkbox (privacy) — checkbox mag niet de invoerveld-stijl krijgen. */
.field--consent label {
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--muted);
	cursor: pointer;
}

.field--consent input[type="checkbox"] {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	margin-top: 2px;
	padding: 0;
	background: var(--input-bg);
	accent-color: var(--accent);
}

.field--consent a {
	color: var(--accent);
	text-decoration: underline;
}

.form-note {
	padding: 32px 0;
	text-align: center;
}

.form-note__title {
	font-family: var(--serif);
	font-size: 22px;
	color: var(--text);
	margin-bottom: 10px;
}

.form-note p {
	font-size: 15px;
	color: var(--muted);
	margin: 0;
}

/* ---------- FOOTER ---------- */
.site-footer {
	padding: 32px var(--gutter);
	background: var(--bg-3);
	border-top: 1px solid rgba(243, 239, 228, 0.06);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
}

.site-footer__brand {
	display: flex;
	align-items: center;
	gap: 10px;
}

.site-footer__brand img {
	width: 26px;
	height: 26px;
	object-fit: contain;
}

.site-footer__brand span {
	font-family: var(--serif);
	font-size: 15px;
	color: var(--text);
}

.site-footer__copy {
	font-size: 13.5px;
	color: #8A9A93; /* contrastvriendelijk op de donkere footer (WCAG AA) */
	margin: 0;
}

.site-footer__links a,
.site-footer__links a:link,
.site-footer__links a:visited {
	font-size: 13.5px;
	color: #8A9A93;
	text-decoration: none;
	transition: color 0.2s ease;
}

.site-footer__links a:hover {
	color: var(--accent);
}

/* ---------- BLOG / PAGINA'S ---------- */
.page-shell {
	max-width: 820px;
	margin: 0 auto;
	padding: 120px var(--gutter) 80px;
}

.page-shell--wide { max-width: var(--maxw); }

.entry-title {
	font-family: var(--serif);
	font-weight: 500;
	font-size: 34px;
	line-height: 1.15;
	margin: 0 0 24px;
	color: var(--text);
}

.entry-meta {
	font-size: 14px;
	color: var(--muted-3);
	margin-bottom: 32px;
}

.entry-content {
	font-size: 17px;
	line-height: 1.75;
	color: var(--muted);
}

.entry-content h2,
.entry-content h3 {
	font-family: var(--serif);
	color: var(--text);
}

.entry-content a { color: var(--accent); }

.post-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}

.post-card {
	background: var(--card);
	border: 1px solid var(--border);
	border-radius: 20px;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.post-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 44px rgba(0, 0, 0, 0.4);
}

.post-card a { text-decoration: none; color: inherit; }

.post-card__media {
	aspect-ratio: 16 / 9;
	background: var(--card-hover);
}

.post-card__media img { width: 100%; height: 100%; object-fit: cover; }

.post-card__body { padding: 24px; }

.post-card__title {
	font-family: var(--serif);
	font-size: 21px;
	font-weight: 500;
	margin: 0 0 10px;
	color: var(--text);
}

.post-card__excerpt {
	font-size: 15px;
	line-height: 1.6;
	color: var(--muted-2);
	margin: 0;
}

/* ---------- UITGEKNIPTE FOTO OP GROEN OVAAL (zoals codezi.be) ---------- */
/* De foto's zijn transparante PNG's; het groen valt achter het onderwerp. */
.hero .hero__media,
.story .story__media {
	position: relative;
	overflow: hidden;
	border: none;
	padding: 0;
	background: var(--accent);
	border-radius: 50%;
	box-shadow: 1px 3px 16px rgba(0, 0, 0, 0.3);
}

.hero .hero__media {
	aspect-ratio: 7 / 5; /* werkstation (liggend) */
	width: 100%;
	max-width: 520px;
	margin-inline: auto;
}

.story .story__media {
	aspect-ratio: 1 / 1;
	max-width: 440px;
	border-radius: 62% 38% 58% 42% / 58% 42% 58% 42%;
	order: 2; /* mobiel/tablet: portret ná de verhaaltekst (desktop hersteld op 1000px) */
}

/* De uitgeknipte foto vult de vorm; transparante delen tonen het groen. */
.hero .hero__media > img,
.story .story__media > img {
	width: 100%;
	height: 100%;
}

/* Portret: volledige uitknip zichtbaar (contain), gepositioneerd binnen het
   groene vlak; transparante achtergrond toont het groen rond de silhouet. */
.story .story__media > img {
	object-fit: contain;
	object-position: 62% center;
}

/* Placeholder (als er nog geen foto is). */
.hero .hero__media > .media__placeholder,
.story .story__media > .media__placeholder {
	background: linear-gradient(135deg, #14231E, #0B1512);
	border-radius: inherit;
}

/* =====================================================================
   BREAKPOINTS (mobile-first: naar boven opbouwen)
   ===================================================================== */

/* 600px+ : rasters naar 2 kolommen */
@media (min-width: 600px) {
	.grid-2 { grid-template-columns: repeat(2, 1fr); }
	.grid-3,
	.post-list { grid-template-columns: repeat(2, 1fr); }

	.projects__head {
		flex-direction: row;
		justify-content: space-between;
		align-items: flex-end;
		flex-wrap: wrap;
		gap: 24px;
	}

	.projects__head > div { max-width: 560px; }
}

/* 768px+ : horizontale navigatie */
@media (min-width: 768px) {
	:root { --gutter: 40px; --section-y: 150px; }

	.site-header { padding: 20px var(--gutter); }

	.nav-toggle { display: none; }

	.main-nav {
		position: static;
		flex-direction: row;
		align-items: center;
		gap: 32px;
		padding: 0;
		background: none;
		border: none;
		display: flex;
	}

	.main-nav a { font-size: 15px; opacity: 0.7; }

	.hero__title { font-size: 48px; }
	.section-title { font-size: 32px; }
	.contact__title { font-size: 38px; }
	.entry-title { font-size: 40px; }
}

/* 1000px+ : volledige desktop-layout */
@media (min-width: 1000px) {
	:root { --gutter: 56px; --section-y: 200px; }

	.site-header { padding: 22px var(--gutter); }

	.site-brand img { width: 40px; height: 40px; }
	.site-brand__name { font-size: 21px; }

	.hero {
		padding: 230px var(--gutter) 120px;
		grid-template-columns: 1fr 0.85fr;
		gap: 64px;
	}

	.hero__title { font-size: 60px; margin-bottom: 28px; }
	.hero__intro { font-size: 19px; margin-bottom: 40px; }

	.story {
		grid-template-columns: 0.9fr 1.1fr;
		gap: 72px;
	}

	.story .story__media { order: 0; } /* desktop: portret weer links */

	.story p { font-size: 17px; }

	.problems__head { margin-bottom: 64px; }

	.approach__head { margin-bottom: 72px; }

	.timeline { flex-direction: row; gap: 32px; }

	.timeline__line {
		top: 6px;
		left: 0;
		right: 0;
		bottom: auto;
		width: auto;
		height: 2px;
	}

	.step { padding: 32px 24px 0; }
	.step__dot { top: 0; }

	.projects__head { margin-bottom: 56px; }
	.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 32px; }
	.post-list { grid-template-columns: repeat(3, 1fr); }

	.services__head { margin-bottom: 56px; }

	.contact__grid {
		grid-template-columns: 1fr 1fr;
		gap: 80px;
	}

	.contact__title { font-size: 42px; }
	.contact__form { padding: 40px; }

	.section-title { font-size: 38px; }

	.cell { padding: 40px; }

	.page-shell { padding: 160px var(--gutter) 120px; }
	.entry-title { font-size: 44px; }
}

/* =====================================================================
   ANIMATIES — enkel als de bezoeker geen "verminderde beweging" wenst
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {

	@keyframes czi-fade-up {
		from { opacity: 0; transform: translateY(24px); }
		to   { opacity: 1; transform: translateY(0); }
	}

	/* Hero: zachte entree bij het laden, met lichte stagger. */
	.hero .kicker,
	.hero__title,
	.hero__intro,
	.hero__actions,
	.hero__media {
		opacity: 0;
		animation: czi-fade-up 0.7s ease forwards;
	}

	.hero .kicker  { animation-delay: 0.05s; }
	.hero__title   { animation-delay: 0.15s; }
	.hero__intro   { animation-delay: 0.28s; }
	.hero__actions { animation-delay: 0.40s; }
	.hero__media   { animation-delay: 0.30s; }

	/* Scroll-onthulling: JS voegt .reveal toe, en .is-visible bij in beeld komen. */
	.reveal {
		opacity: 0;
		transform: translateY(28px);
		transition: opacity 0.6s ease, transform 0.6s ease;
	}

	.reveal.is-visible {
		opacity: 1;
		transform: none;
	}
}

