/* Guntro's Wrapdesign
   HTML & PHP by Ferhat Remory (ferhat.io) */

:root {
	--bg: #0b0b0c;
	--bg-alt: #131316;
	--surface: #1a1a1e;
	--surface-hover: #201f23;
	--surface-translucent: rgba(26, 26, 30, 0.9);
	--border: rgba(255, 255, 255, 0.08);
	--text: #f5f5f6;
	--text-muted: #a6a6ac;
	--accent: #ff3d2e;
	--accent-2: #ff8a2b;
	--accent-gradient: linear-gradient(135deg, var(--accent), var(--accent-2));
	--nav-bg: rgba(11, 11, 12, 0.55);
	--nav-bg-scrolled: rgba(11, 11, 12, 0.92);
	--ghost-bg: rgba(255, 255, 255, 0.06);
	--ghost-bg-hover: rgba(255, 255, 255, 0.12);
	--logo-filter: none;
	--radius: 16px;
	--maxw: 1180px;
	--nav-h: 124px;
}

:root[data-theme="light"] {
	--bg: #f7f6f3;
	--bg-alt: #ffffff;
	--surface: #ffffff;
	--surface-hover: #f2f0ec;
	--surface-translucent: rgba(255, 255, 255, 0.92);
	--border: rgba(10, 10, 12, 0.09);
	--text: #17171a;
	--text-muted: #5c5c63;
	--accent: #e0301f;
	--accent-2: #ff8a2b;
	--nav-bg: rgba(247, 246, 243, 0.7);
	--nav-bg-scrolled: rgba(247, 246, 243, 0.94);
	--ghost-bg: rgba(10, 10, 12, 0.05);
	--ghost-bg-hover: rgba(10, 10, 12, 0.09);
	--logo-filter: brightness(0) saturate(100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: 'Inter', Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 0.5em;
}
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 28px;
	border-radius: 999px;
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 600;
	font-size: 15px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn--primary { background: var(--accent-gradient); color: #fff; box-shadow: 0 8px 24px -8px rgba(255, 61, 46, 0.6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(255, 61, 46, 0.75); }
.btn--ghost { background: rgba(255, 255, 255, 0.14); color: #fff; border-color: rgba(255, 255, 255, 0.5); backdrop-filter: blur(8px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.24); border-color: rgba(255, 255, 255, 0.7); transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--accent); border-color: currentColor; padding: 12px 24px; }
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--small { padding: 10px 20px; font-size: 13px; }

/* Nav — contained floating bar (same pattern as guntro.be) */
.site-nav {
	position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
	width: calc(100% - 40px); max-width: var(--maxw); z-index: 100; height: 68px;
	display: flex; align-items: center; padding: 0 10px 0 24px;
	border-radius: 999px; background: var(--nav-bg); border: 1px solid var(--border);
	backdrop-filter: blur(14px); box-shadow: 0 20px 50px -22px rgba(0, 0, 0, 0.55);
	transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-nav.is-scrolled { background: var(--nav-bg-scrolled); box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.6); }
.site-nav__inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.site-nav__brand img { height: 32px; width: auto; filter: var(--logo-filter); transition: filter 0.3s ease; }
.site-nav__links { display: flex; align-items: center; gap: 20px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14px; }
.site-nav__links > a:not(.btn) { color: var(--text-muted); transition: color 0.2s ease; }
.site-nav__links > a:not(.btn):hover, .site-nav__links > a.is-active { color: var(--text); }
.site-nav__back {
	display: inline-flex; align-items: center; gap: 6px;
	color: var(--text-muted) !important; font-size: 13px !important; font-weight: 500 !important;
	padding-right: 14px; margin-right: 4px; border-right: 1px solid var(--border);
}
.site-nav__back:hover { color: var(--accent) !important; }

/* Mobile menu toggle */
.nav-toggle {
	display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
	width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%;
	border: 1px solid var(--border); background: var(--ghost-bg); cursor: pointer;
}
.nav-toggle__bar { width: 16px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
.nav-toggle.is-open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Theme toggle */
.theme-toggle {
	display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
	border-radius: 50%; border: 1px solid var(--border); background: var(--ghost-bg); color: var(--text);
	cursor: pointer; transition: background 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover { background: var(--ghost-bg-hover); transform: translateY(-1px); }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* Hero (cycling background slides pulled from tbl_promo, or a plain fallback) */
.w-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; padding-top: var(--nav-h); overflow: hidden; background: var(--bg-alt); }
.w-hero__track { position: absolute; inset: 0; }
.w-hero__slide {
	position: absolute; inset: 0; background-size: cover; background-position: center;
	opacity: 0; transition: opacity 1.2s ease; transform: scale(1.04);
}
.w-hero__slide.is-active { opacity: 1; }
.w-hero__scrim {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(5,5,6,0.35) 0%, rgba(5,5,6,0.55) 55%, rgba(5,5,6,0.95) 100%);
}
.w-hero--plain .w-hero__scrim { background: linear-gradient(160deg, #17171b 0%, #0b0b0c 100%); }
.w-hero__content { position: relative; padding-bottom: 56px; max-width: 720px; }
.w-hero__kicker {
	display: block; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 12px;
	letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px;
}
.w-hero__content h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); color: #fff; margin-bottom: 0; }
.w-hero__promo {
	margin-top: 18px; color: rgba(245,245,246,0.85); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 15px;
}

/* Generic content section (single text block) */
.w-content { padding: 90px 0; }
.w-content__inner { max-width: 760px; }
.w-content h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--text); }
.w-content p { font-size: 16px; }

/* Project gallery (grid of cards) */
.w-gallery { padding: 20px 0 90px; }
.w-gallery__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.w-gallery__heading h2 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.7rem); color: var(--text); }
.w-gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.w-gallery__grid--tight { grid-template-columns: repeat(2, 1fr); gap: 14px; }
.w-card {
	display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface);
	border: 1px solid var(--border); transition: transform 0.25s ease, border-color 0.25s ease;
}
.w-card:hover { transform: translateY(-5px); border-color: rgba(255,61,46,0.35); }
.w-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.w-card__label { padding: 14px 16px; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14px; color: var(--text); }

/* Masonry gallery (photo cards with a title overlay, natural aspect ratios) */
.gallery-masonry { column-count: 3; column-gap: 22px; }
.gallery-card {
	position: relative; display: block; break-inside: avoid; margin-bottom: 22px;
	border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface);
}
.gallery-card img { width: 100%; display: block; transition: transform 0.5s ease; }
.gallery-card:hover img { transform: scale(1.06); }
.gallery-card__overlay {
	position: absolute; inset: 0;
	background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.82) 100%);
	display: flex; align-items: flex-end; padding: 18px;
}
.gallery-card__title { color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 14px; line-height: 1.3; }
@media (max-width: 900px) { .gallery-masonry { column-count: 2; } }
@media (max-width: 640px) { .gallery-masonry { column-count: 1; } }

/* Service overview cards (diensten) */
.w-services { padding: 20px 0 90px; }
.w-services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.w-service-card {
	display: block; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	overflow: hidden; transition: transform 0.25s ease, border-color 0.25s ease;
}
.w-service-card:hover { transform: translateY(-6px); border-color: rgba(255,61,46,0.4); }
.w-service-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.w-service-card__body { padding: 20px 22px 24px; }
.w-service-card__body h2 { font-size: 1.05rem; color: var(--accent); margin-bottom: 8px; }
.w-service-card__body p { font-size: 14px; margin-bottom: 0; }

/* Info blocks (contact) */
.w-info { padding: 20px 0 90px; }
.w-info__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.w-info__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.w-info__card h2 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 12px; }
.w-info__card p, .w-info__card a { color: var(--text); font-size: 15px; line-height: 1.8; margin: 0; }
.w-info__card a:hover { color: var(--accent); }

/* Form (offerte) */
.w-form { max-width: 720px; }
.w-form label { display: block; font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 13px; color: var(--text-muted); margin: 18px 0 6px; }
.w-form label:first-child { margin-top: 0; }
.w-form input[type="text"], .w-form input[type="email"], .w-form textarea {
	width: 100%; padding: 13px 16px; border-radius: 10px; border: 1px solid var(--border);
	background: var(--surface); color: var(--text); font-size: 15px; font-family: inherit;
}
.w-form textarea { min-height: 130px; resize: vertical; }
.w-form__radios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 20px; margin-top: 8px; }
.w-form__radio { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); cursor: pointer; }
.w-form__radio input { accent-color: var(--accent); width: 16px; height: 16px; }
.w-form button[type="submit"] { margin-top: 24px; }
.w-form__success { font-size: 17px; color: var(--text); }

/* Prose (privacy / conditions) */
.w-prose { max-width: 780px; }
.w-prose h2 { margin-top: 1.6em; }
.w-prose p, .w-prose li { color: var(--text-muted); font-size: 15px; line-height: 1.8; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Footer */
.site-footer { padding: 60px 0 0; background: var(--bg); border-top: 1px solid var(--border); }
.site-footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-bottom: 40px; }
.site-footer__logo { height: 36px; width: auto; filter: var(--logo-filter); }
.site-footer__links a { color: var(--text-muted); font-size: 14px; margin-right: 18px; }
.site-footer__links a:hover { color: var(--accent); }
.site-footer__social img { height: 22px; width: auto; opacity: 0.85; }
.site-footer__copyright { text-align: center; padding: 20px 0; font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--border); }

/* Scroll to top */
.scroll-top {
	position: fixed; right: 24px; bottom: 24px; width: 46px; height: 46px; border-radius: 50%;
	border: 1px solid var(--border); background: var(--surface-translucent); color: var(--text); font-size: 18px;
	cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px);
	transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease; z-index: 90;
}
.scroll-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.scroll-top:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Responsive */
@media (max-width: 900px) {
	.w-content__inner { max-width: 100%; }
	.w-gallery__grid { grid-template-columns: repeat(2, 1fr); }
	.w-info__grid { grid-template-columns: 1fr; }
	.w-form__radios { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
	.site-nav { padding: 0 8px 0 18px; }
	.nav-toggle { display: flex; }
	.site-nav__links {
		position: absolute; top: calc(100% + 10px); left: 0; right: 0;
		flex-direction: column; align-items: stretch; gap: 2px;
		background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 10px;
		box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.45);
		opacity: 0; pointer-events: none; transform: translateY(-8px);
		transition: opacity 0.22s ease, transform 0.22s ease;
	}
	.site-nav__links.is-open { opacity: 1; pointer-events: auto; transform: none; }
	.site-nav__links > a:not(.btn) { display: block; padding: 13px 14px; border-radius: 12px; }
	.site-nav__links > a:not(.btn):hover { background: var(--ghost-bg); }
	.site-nav__back { border-right: none; border-bottom: 1px solid var(--border); padding: 13px 14px 14px; margin: 0 0 4px; border-radius: 12px; }
	.theme-toggle { margin: 6px 2px; }
	.site-nav__links .btn--primary { width: 100%; justify-content: center; margin-top: 6px; }

	.w-hero { min-height: 50vh; }
	.w-content, .w-gallery, .w-info { padding: 50px 0; }
	.w-gallery__grid, .w-info__grid { grid-template-columns: 1fr; }
	.w-form__radios { grid-template-columns: 1fr; }
	.site-footer__inner { flex-direction: column; align-items: flex-start; }
}

/* Lightbox (click a photo to enlarge it in place, instead of navigating to the image file) */
.lightbox-overlay {
	position: fixed; inset: 0; z-index: 1000;
	background: rgba(5, 5, 6, 0.92);
	display: flex; align-items: center; justify-content: center;
	padding: 40px;
	opacity: 0; pointer-events: none;
	transition: opacity 0.25s ease;
}
.lightbox-overlay.is-open { opacity: 1; pointer-events: auto; }
.lightbox-overlay img {
	max-width: 100%; max-height: 100%; display: block;
	border-radius: 12px;
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
	transform: scale(0.96);
	transition: transform 0.25s ease;
}
.lightbox-overlay.is-open img { transform: scale(1); }
.lightbox-close {
	position: absolute; top: 24px; right: 24px;
	width: 44px; height: 44px; border-radius: 50%;
	background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3);
	color: #fff; font-size: 22px; line-height: 1; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }
@media (max-width: 640px) {
	.lightbox-overlay { padding: 16px; }
	.lightbox-close { top: 12px; right: 12px; width: 38px; height: 38px; }
}

/* Category filters (projecten gallery) */
.gallery-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 36px;
}
.gallery-filters__item {
	display: inline-flex;
	align-items: center;
	padding: 10px 20px;
	border-radius: 999px;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text-muted);
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 600;
	font-size: 14px;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.gallery-filters__item:hover {
	background: var(--surface-hover);
	border-color: var(--accent);
	color: var(--text);
	transform: translateY(-1px);
}
.gallery-filters__item.is-active {
	background: var(--accent-gradient);
	border-color: transparent;
	color: #fff;
}
@media (max-width: 640px) {
	.gallery-filters { gap: 8px; margin-bottom: 28px; }
	.gallery-filters__item { padding: 8px 16px; font-size: 13px; }
}

/* Pagination (projecten gallery) */
.pagination__meta {
	text-align: center;
	color: var(--text-muted);
	font-size: 14px;
	margin: 40px 0 16px;
}
.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}
.pagination__page,
.pagination__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--surface);
	border: 1px solid var(--border);
	color: var(--text);
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 600;
	font-size: 14px;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.pagination__page:hover,
.pagination__arrow:hover {
	background: var(--surface-hover);
	border-color: var(--accent);
	transform: translateY(-2px);
}
.pagination__page.is-active {
	background: var(--accent-gradient);
	border-color: transparent;
	color: #fff;
}
.pagination__arrow.is-disabled {
	opacity: 0.35;
	pointer-events: none;
}
.pagination__ellipsis {
	color: var(--text-muted);
	padding: 0 4px;
	font-weight: 600;
}
@media (max-width: 640px) {
	.pagination__page,
	.pagination__arrow { min-width: 38px; height: 38px; font-size: 13px; }
}

/* Cookie consent banner */
.cookie-banner {
	position: fixed;
	left: 20px;
	right: 20px;
	bottom: 20px;
	max-width: 560px;
	margin: 0 auto;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 22px 26px;
	box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
	z-index: 2000;
	transform: translateY(140%);
	transition: transform 0.3s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__inner p { margin: 0 0 16px; font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.cookie-banner__inner a { color: var(--accent); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) {
	.cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px 20px; }
}

/* Testimonials */
.w-testimonials { padding: 20px 0 100px; }
.w-testimonials__stars { color: var(--accent-2); font-size: 18px; letter-spacing: 2px; }
.w-testimonials__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 22px;
}
.w-testimonial {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 26px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.w-testimonial__stars { color: var(--accent-2); font-size: 15px; letter-spacing: 2px; }
.w-testimonial p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.7; flex-grow: 1; }
.w-testimonial__author {
	font-family: 'Space Grotesk', sans-serif;
	font-weight: 600;
	font-size: 14px;
	color: var(--text-muted);
}
.w-testimonial__author::before { content: '— '; }
