/**
 * Hak4t AI Website OS — frontend styling.
 * Token-gedreven, mobile-first, minimale footprint.
 * Alle kleuren/spacing komen uit CSS-variabelen (zie inline :root in <head>).
 */

.h4-root {
	--h4-primary: #1a1a2e;
	--h4-secondary: #16213e;
	--h4-accent: #0f9d8a;
	--h4-bg: #ffffff;
	--h4-text: #1d1d1f;
	--h4-muted: #6b7280;
	--h4-font-heading: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--h4-font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--h4-font-size: 17px;
	--h4-container: 1200px;
	--h4-radius: 12px;
	--h4-btn-radius: 999px;
	--h4-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	--h4-space: 8px;

	color: var(--h4-text);
	font-family: var(--h4-font-body);
	font-size: var(--h4-font-size);
	line-height: 1.6;
}

.h4-root * {
	box-sizing: border-box;
}

.h4-container {
	width: 100%;
	max-width: var(--h4-container);
	margin: 0 auto;
	padding: 0 calc(var(--h4-space) * 2.5);
}

.h4-container--narrow {
	max-width: 820px;
}

.h4-block {
	padding: calc(var(--h4-space) * 7) 0;
}

.h4-section-title {
	font-family: var(--h4-font-heading);
	font-size: clamp(1.5rem, 3vw, 2.2rem);
	line-height: 1.15;
	margin: 0 0 calc(var(--h4-space) * 3);
	color: var(--h4-primary);
}

.h4-prose p {
	margin: 0 0 1em;
}

/* ---------- Buttons ---------- */
.h4-btn {
	display: inline-block;
	padding: 0.85em 1.6em;
	border-radius: var(--h4-btn-radius);
	font-weight: 600;
	text-decoration: none;
	border: 2px solid transparent;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
	cursor: pointer;
}

.h4-btn--primary {
	background: var(--h4-primary);
	color: #fff;
}

.h4-btn--accent {
	background: var(--h4-accent);
	color: #fff;
}

.h4-btn:hover {
	transform: translateY(-2px);
	box-shadow: var(--h4-shadow);
}

/* ---------- Hero ---------- */
.h4-hero {
	background: linear-gradient(135deg, var(--h4-primary), var(--h4-secondary));
	color: #fff;
	text-align: center;
}

.h4-hero__title {
	font-family: var(--h4-font-heading);
	font-size: clamp(2rem, 6vw, 4rem);
	line-height: 1.05;
	margin: 0 0 0.4em;
}

.h4-hero__subtitle {
	font-size: clamp(1rem, 2.2vw, 1.4rem);
	opacity: 0.92;
	max-width: 38ch;
	margin: 0 auto calc(var(--h4-space) * 4);
}

.h4-hero--split .h4-hero__copy,
.h4-hero--image .h4-hero__copy {
	text-align: left;
}

.h4-hero__form {
	margin-top: calc(var(--h4-space) * 3);
}

/* ---------- Grids ---------- */
.h4-grid {
	display: grid;
	gap: calc(var(--h4-space) * 3);
	grid-template-columns: 1fr;
}

/* ---------- USP ---------- */
.h4-usp__item {
	padding: calc(var(--h4-space) * 3);
	border-radius: var(--h4-radius);
	background: rgba(0, 0, 0, 0.02);
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.h4-usp__item h3 {
	margin-top: 0;
	color: var(--h4-primary);
}

/* ---------- Text + image ---------- */
.h4-text-image {
	display: grid;
	gap: calc(var(--h4-space) * 4);
	align-items: center;
	grid-template-columns: 1fr;
}

.h4-text-image__media img {
	width: 100%;
	height: auto;
	border-radius: var(--h4-radius);
	display: block;
}

/* ---------- Cards (services / projects / blog) ---------- */
.h4-card {
	background: var(--h4-bg);
	border-radius: var(--h4-radius);
	box-shadow: var(--h4-shadow);
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.05);
}

.h4-card__body {
	padding: calc(var(--h4-space) * 3);
}

.h4-card__link {
	color: var(--h4-accent);
	font-weight: 600;
	text-decoration: none;
}

/* ---------- Timeline ---------- */
.h4-timeline__item {
	display: grid;
	grid-template-columns: 90px 1fr;
	gap: calc(var(--h4-space) * 2);
	padding: calc(var(--h4-space) * 2) 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.h4-timeline__year {
	font-weight: 700;
	color: var(--h4-accent);
}

/* ---------- Steps ---------- */
.h4-steps__item {
	display: grid;
	grid-template-columns: 48px 1fr;
	gap: calc(var(--h4-space) * 2);
	align-items: start;
	margin-bottom: calc(var(--h4-space) * 3);
}

.h4-steps__num {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--h4-accent);
	color: #fff;
	display: grid;
	place-items: center;
	font-weight: 700;
}

/* ---------- FAQ ---------- */
.h4-faq__item {
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	padding: calc(var(--h4-space) * 2) 0;
}

.h4-faq__item summary {
	cursor: pointer;
	font-weight: 600;
	color: var(--h4-primary);
}

.h4-faq__answer {
	margin-top: var(--h4-space);
	color: var(--h4-muted);
}

/* ---------- Testimonials ---------- */
.h4-testimonial {
	padding: calc(var(--h4-space) * 3);
	border-radius: var(--h4-radius);
	background: rgba(0, 0, 0, 0.02);
	border-left: 4px solid var(--h4-accent);
}

/* ---------- CTA banner ---------- */
.h4-cta-banner {
	background: var(--h4-accent);
	color: #fff;
	text-align: center;
	border-radius: var(--h4-radius);
	padding: calc(var(--h4-space) * 6) calc(var(--h4-space) * 3);
}

.h4-cta-banner .h4-btn--primary {
	background: #fff;
	color: var(--h4-primary);
}

/* ---------- Stats ---------- */
.h4-stats {
	display: grid;
	gap: calc(var(--h4-space) * 3);
	grid-template-columns: 1fr;
	text-align: center;
}

.h4-stat__num {
	display: block;
	font-family: var(--h4-font-heading);
	font-size: clamp(2rem, 5vw, 3.2rem);
	font-weight: 800;
	color: var(--h4-accent);
}

.h4-stat__label {
	color: var(--h4-muted);
}

/* ---------- Logo slider ---------- */
.h4-logo-slider {
	display: flex;
	flex-wrap: wrap;
	gap: calc(var(--h4-space) * 4);
	align-items: center;
	justify-content: center;
	opacity: 0.75;
}

.h4-logo-slider img {
	max-height: 48px;
	width: auto;
}

/* ---------- Forms ---------- */
.h4-form__row {
	margin-bottom: calc(var(--h4-space) * 2);
	display: flex;
	flex-direction: column;
	gap: calc(var(--h4-space) * 0.75);
}

.h4-form label {
	font-weight: 600;
}

.h4-form__req {
	color: #d33;
}

.h4-form input,
.h4-form textarea {
	width: 100%;
	padding: 0.75em 0.9em;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: calc(var(--h4-radius) / 2);
	font: inherit;
}

.h4-form input:focus,
.h4-form textarea:focus {
	outline: 2px solid var(--h4-accent);
	outline-offset: 1px;
	border-color: var(--h4-accent);
}

.h4-form__success {
	padding: calc(var(--h4-space) * 2);
	background: rgba(15, 157, 138, 0.12);
	border-radius: calc(var(--h4-radius) / 2);
	color: var(--h4-primary);
}

/* honeypot veld verbergen */
.h4-form .h4-hp {
	position: absolute !important;
	left: -9999px !important;
}

/* ---------- Reveal-on-scroll animatie ---------- */
.h4-reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.6s ease, transform 0.6s ease;
	will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
	.h4-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}

	.h4-btn:hover {
		transform: none;
	}
}

/* ---------- Canvas (volledige takeover) ---------- */
body.h4-canvas {
	margin: 0;
}

.h4-site {
	display: flex;
	min-height: 100vh;
	flex-direction: column;
}

.h4-site .h4-main {
	flex: 1 0 auto;
}

/* ---------- Site header ---------- */
.h4-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--h4-bg, #fff);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

.h4-header__inner {
	display: flex;
	align-items: center;
	gap: calc(var(--h4-space) * 3);
	min-height: 72px;
}

.h4-header__brand {
	display: inline-flex;
	align-items: center;
	text-decoration: none;
	flex-shrink: 0;
}

.h4-header__logo {
	max-height: 44px;
	width: auto;
	display: block;
}

.h4-header__name {
	font-family: var(--h4-font-heading);
	font-weight: 800;
	font-size: 1.25rem;
	color: var(--h4-primary);
}

.h4-nav {
	display: none;
	flex: 1;
}

.h4-nav__list {
	display: flex;
	gap: calc(var(--h4-space) * 0.5);
	list-style: none;
	margin: 0;
	padding: 0;
	align-items: center;
}

.h4-nav__item { position: relative; }

.h4-nav__item > a {
	display: inline-block;
	padding: 0.6em 0.85em;
	color: var(--h4-text);
	text-decoration: none;
	font-weight: 600;
	border-radius: calc(var(--h4-radius) / 2);
}

.h4-nav__item > a:hover {
	color: var(--h4-accent);
	background: rgba(0, 0, 0, 0.04);
}

.h4-nav__sub-toggle {
	background: none;
	border: 0;
	cursor: pointer;
	color: var(--h4-muted);
	font-size: 0.8em;
	padding: 0.4em;
}

.h4-nav__dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 240px;
	background: var(--h4-bg, #fff);
	border-radius: var(--h4-radius);
	box-shadow: var(--h4-shadow);
	border: 1px solid rgba(0, 0, 0, 0.06);
	padding: calc(var(--h4-space) * 1.5);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

.h4-nav__item:hover > .h4-nav__dropdown,
.h4-nav__item:focus-within > .h4-nav__dropdown,
.h4-nav__item.is-open > .h4-nav__dropdown {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.h4-nav__dropdown ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.h4-nav__dropdown a {
	display: flex;
	justify-content: space-between;
	gap: 1em;
	padding: 0.55em 0.8em;
	color: var(--h4-text);
	text-decoration: none;
	border-radius: calc(var(--h4-radius) / 2);
}

.h4-nav__dropdown a:hover {
	background: rgba(0, 0, 0, 0.04);
	color: var(--h4-accent);
}

.h4-nav__count {
	color: var(--h4-muted);
	font-size: 0.85em;
}

/* Mega-menu: brede dropdown in kolommen */
.h4-nav__dropdown.h4-mega {
	min-width: 560px;
	max-width: 720px;
}

.h4-mega ul {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0 calc(var(--h4-space) * 2);
}

@media (min-width: 1100px) {
	.h4-mega ul { grid-template-columns: repeat(3, 1fr); }
}

.h4-header__actions {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: calc(var(--h4-space) * 2);
}

.h4-header__cart {
	position: relative;
	display: inline-flex;
	color: var(--h4-text);
	padding: 0.4em;
}

.h4-header__cart-count {
	position: absolute;
	top: -4px;
	right: -6px;
	min-width: 18px;
	height: 18px;
	border-radius: 999px;
	background: var(--h4-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	display: grid;
	place-items: center;
	padding: 0 4px;
}

.h4-nav-toggle {
	display: inline-flex;
	flex-direction: column;
	gap: 5px;
	margin-left: auto;
	background: none;
	border: 0;
	padding: 10px;
	cursor: pointer;
}

.h4-nav-toggle span {
	width: 24px;
	height: 2px;
	background: var(--h4-text);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.h4-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.h4-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.h4-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobiel: uitklapbaar menu */
@media (max-width: 979px) {
	.h4-nav.is-open {
		display: block;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--h4-bg, #fff);
		border-bottom: 1px solid rgba(0, 0, 0, 0.08);
		box-shadow: var(--h4-shadow);
		padding: calc(var(--h4-space) * 2);
	}

	.h4-nav.is-open .h4-nav__list {
		flex-direction: column;
		align-items: stretch;
	}

	.h4-nav.is-open .h4-nav__dropdown {
		position: static;
		opacity: 1;
		visibility: hidden;
		display: none;
		transform: none;
		box-shadow: none;
		border: 0;
		padding-left: calc(var(--h4-space) * 2);
	}

	.h4-nav.is-open .h4-nav__item.is-open .h4-nav__dropdown {
		display: block;
		visibility: visible;
	}

	.h4-nav.is-open .h4-mega ul { grid-template-columns: 1fr; }
	.h4-header__cta { display: none; }
}

@media (min-width: 980px) {
	.h4-nav { display: block; }
	.h4-nav-toggle { display: none; }
	.h4-nav__sub-toggle { display: none; }
}

/* ---------- Site footer ---------- */
.h4-footer {
	background: var(--h4-primary);
	color: rgba(255, 255, 255, 0.85);
	padding: calc(var(--h4-space) * 8) 0 calc(var(--h4-space) * 3);
	margin-top: calc(var(--h4-space) * 8);
}

.h4-footer a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.h4-footer a:hover { color: #fff; text-decoration: underline; }

.h4-footer__grid {
	display: grid;
	gap: calc(var(--h4-space) * 5);
	grid-template-columns: 1fr;
}

@media (min-width: 760px) {
	.h4-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.h4-footer__logo {
	max-height: 40px;
	width: auto;
	margin-bottom: calc(var(--h4-space) * 2);
	filter: brightness(0) invert(1);
}

.h4-footer__name {
	font-family: var(--h4-font-heading);
	font-weight: 800;
	font-size: 1.2rem;
	color: #fff;
}

.h4-footer__col h3 {
	color: #fff;
	font-size: 1rem;
	margin: 0 0 calc(var(--h4-space) * 1.5);
}

.h4-footer__col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.h4-footer__col li { margin-bottom: 0.5em; }

.h4-footer__bottom {
	margin-top: calc(var(--h4-space) * 6);
	padding-top: calc(var(--h4-space) * 3);
	border-top: 1px solid rgba(255, 255, 255, 0.15);
	font-size: 0.9em;
	color: rgba(255, 255, 255, 0.6);
}

/* ---------- Blogkaarten & paginering ---------- */
.h4-post-card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.h4-post-card__date {
	color: var(--h4-muted);
	font-size: 0.85em;
}

.h4-post-card h3 { margin: 0.3em 0 0.5em; }
.h4-post-card h3 a { color: var(--h4-primary); text-decoration: none; }
.h4-post-card h3 a:hover { color: var(--h4-accent); }

.h4-pagination {
	margin-top: calc(var(--h4-space) * 4);
}

.h4-pagination ul {
	display: flex;
	gap: var(--h4-space);
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}

.h4-pagination a,
.h4-pagination .current {
	display: inline-block;
	padding: 0.4em 0.85em;
	border-radius: calc(var(--h4-radius) / 2);
	text-decoration: none;
	color: var(--h4-text);
	border: 1px solid rgba(0, 0, 0, 0.12);
}

.h4-pagination .current {
	background: var(--h4-primary);
	color: #fff;
	border-color: var(--h4-primary);
}

/* ---------- Pagina-titel & hoofdcontent ---------- */
.h4-page-title {
	font-family: var(--h4-font-heading);
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	color: var(--h4-primary);
	margin: 0 0 0.6em;
}

.h4-woo img { max-width: 100%; height: auto; }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
	.h4-grid--2 { grid-template-columns: repeat(2, 1fr); }
	.h4-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
	.h4-grid--3 { grid-template-columns: repeat(3, 1fr); }
	.h4-grid--4 { grid-template-columns: repeat(4, 1fr); }
	.h4-stats { grid-template-columns: repeat(4, 1fr); }
	.h4-text-image { grid-template-columns: 1fr 1fr; }
	.h4-text-image--reverse .h4-text-image__media { order: 2; }
	.h4-hero--split .h4-hero__copy { max-width: 40rem; margin: 0 auto; }
}
