/* DigiBuild thema – kleuren komen uit Website-instellingen (CSS-variabelen in <head>) */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--db-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--db-text);
	background: var(--db-bg);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--db-accent); }

h1, h2, h3 { color: var(--db-primary); font-weight: 500; line-height: 1.05; margin: 0 0 .5em; }
h1, h2 { text-transform: uppercase; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.6vw, 4.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }

.container { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }
.container.narrow { max-width: 820px; }
.section { padding: clamp(64px, 9vw, 130px) 0; }

.label {
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--db-accent);
	margin-bottom: 1.2em;
}
.label a { text-decoration: none; }

.btn {
	display: inline-block;
	padding: .85em 1.9em;
	border-radius: 999px;
	background: var(--db-button);
	color: var(--db-button-txt);
	text-decoration: none;
	font-weight: 500;
	font-size: .95rem;
	transition: transform .2s ease, opacity .2s ease;
	border: 0;
	cursor: pointer;
}
.btn:hover { color: var(--db-button-txt); opacity: .88; transform: translateY(-1px); }
.btn-small { padding: .6em 1.4em; font-size: .9rem; }
.btn-light { background: #fff; color: var(--db-primary); }
.btn-light:hover { color: var(--db-primary); }

.skip-link, .screen-reader-text {
	position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { left: 16px; top: 16px; width: auto; height: auto; z-index: 100; background: #fff; padding: 8px 12px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(21, 52, 67, .06); }
.admin-bar .site-header { top: 32px; }
.site-header.is-overlay { position: fixed; left: 0; right: 0; top: 0; background: rgba(249, 248, 244, .82); }
.admin-bar .site-header.is-overlay { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header, .admin-bar .site-header.is-overlay { top: 46px; } }
.header-inner {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 24px;
	padding-top: 12px;
	padding-bottom: 12px;
}
.site-header .site-brand { order: -1; text-align: left; justify-self: start; }
.site-header .main-nav { justify-self: center; }
.main-nav .menu { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav .menu a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--db-primary); }
.main-nav .menu a:hover, .main-nav .current-menu-item > a { color: var(--db-accent); }
.site-brand { text-align: left; }
.site-header .site-brand img { max-height: 64px; width: auto; margin: 0; }
.brand-text { font-size: 1.5rem; font-weight: 700; letter-spacing: .04em; text-decoration: none; color: var(--db-primary); text-transform: uppercase; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 22px; }
.header-phone { text-decoration: none; font-weight: 500; color: var(--db-primary); font-size: .95rem; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span:not(.screen-reader-text) { display: block; width: 24px; height: 2px; background: var(--db-primary); margin: 5px 0; transition: transform .2s; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: 100vh;
	overflow: hidden;
	background: linear-gradient(180deg, var(--db-hero-from) 0%, var(--db-hero-to) 100%);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}
.hero-inner { position: relative; flex: 1; display: flex; align-items: flex-end; padding-top: 120px; }
.hero-text {
	position: relative;
	z-index: 2;
	max-width: 320px;
	font-size: 1.15rem;
	line-height: 1.4;
	color: var(--db-primary);
	margin: 0 0 22vh;
}
.hero-img {
	position: absolute;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	max-height: 88%;
	width: auto;
	z-index: 1;
}
.marquee { position: relative; z-index: 3; overflow: hidden; margin-top: -8vw; pointer-events: none; }
.marquee-track {
	display: flex;
	align-items: center;
	gap: 4vw;
	width: max-content;
	animation: db-marquee 40s linear infinite;
}
.marquee-track span:not(.dot) {
	font-size: clamp(5rem, 17vw, 18rem);
	font-weight: 500;
	line-height: .9;
	color: #fff;
	letter-spacing: -0.02em;
}
.marquee-track .dot { width: 3vw; height: 3vw; min-width: 20px; min-height: 20px; border-radius: 50%; background: var(--db-dark); }
@keyframes db-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Over ons ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.about-text strong { color: var(--db-primary); }
.about-text .btn { margin-top: 12px; }

/* ---------- Projecten ---------- */
.projects { padding-top: 0; }
.slider-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.slider-btn {
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15);
	background: #fff; color: var(--db-primary); font-size: 1.1rem; cursor: pointer;
}
.slider-btn:hover { background: var(--db-primary); color: #fff; }
.projects-all { font-weight: 500; text-decoration: none; color: var(--db-primary); }
.slider {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(280px, calc((100% - 48px) / 2.4));
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 8px;
}
.slider::-webkit-scrollbar { display: none; }
.slider .project-card { scroll-snap-align: start; }

.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
.project-card-link { text-decoration: none; display: block; }
.project-card-img { aspect-ratio: 4 / 3; overflow: hidden; background: #e9ecee; display: flex; align-items: center; justify-content: center; }
.project-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project-card-link:hover .project-card-img img { transform: scale(1.04); }
.img-placeholder { color: #8a9aa3; font-size: .9rem; }
.project-card-meta { padding-top: 14px; }
.project-card-title { font-size: 1.35rem; margin: 0; }
.project-card-loc { font-size: .88rem; color: var(--db-accent); }

/* ---------- Band: missie + diensten ---------- */
.band { background: var(--db-band); padding: clamp(40px, 6vw, 80px) 0; }
.mission-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(24px, 4vw, 64px);
	align-items: center;
	background: linear-gradient(180deg, #ffffff 0%, #ffffff 60%, var(--db-mission-to) 150%);
	padding: clamp(24px, 5vw, 72px);
	min-height: 640px;
}
.mission-media img { max-height: 560px; width: auto; margin: 0 auto; }
.mission-card.no-media { grid-template-columns: 1fr; }
.mission-body { align-self: start; max-width: 720px; }
.mission-body h2 { color: var(--db-band); }
.mission-body p:not(.label) { color: var(--db-primary); }

.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 2px;
	margin-top: clamp(40px, 6vw, 80px);
	background: rgba(255,255,255,.18);
}
.service-card { background: var(--db-band); padding: 32px 28px 40px; color: rgba(255,255,255,.8); }
.service-card h3 { color: #fff; font-size: 1.3rem; }
.service-card p { font-size: .95rem; margin: 0; }
.service-icon img { width: 64px; height: 64px; object-fit: contain; margin-bottom: 28px; }

/* ---------- Diensten intro ---------- */
.services-grid-2.no-media { grid-template-columns: 1fr; max-width: 900px; }
.services-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.checklist { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid rgba(21,52,67,.15); }
.checklist li { padding: 14px 0 14px 34px; border-bottom: 1px solid rgba(21,52,67,.15); position: relative; color: var(--db-primary); font-weight: 500; }
.checklist li::before {
	content: ""; position: absolute; left: 4px; top: 50%; width: 7px; height: 13px; margin-top: -9px;
	border: solid var(--db-accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- Referenties ---------- */
.testimonials { text-align: center; }
.testimonial-list { display: grid; gap: 64px; }
.testimonial blockquote {
	margin: 0 auto 24px; max-width: 1100px;
	font-size: clamp(1.4rem, 3vw, 2.6rem); line-height: 1.15; text-transform: uppercase;
	font-weight: 500; color: var(--db-primary);
}
.testimonial figcaption { color: var(--db-text); }
.testimonial { margin: 0; }

/* ---------- CTA + footer ---------- */
.section-cta { background: var(--db-dark); color: #fff; text-align: center; }
.cta-title { color: #fff; max-width: 1000px; margin: 0 auto 36px; }
.section-cta .btn { background: #fff; color: var(--db-dark); }

.site-footer { background: var(--db-dark); color: rgba(255,255,255,.7); padding: 40px 0 24px; border-top: 1px solid rgba(255,255,255,.12); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-head { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { text-decoration: none; color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--db-accent); }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li { margin-bottom: 8px; }
.footer-word {
	font-size: clamp(4rem, 19vw, 20rem); font-weight: 600; line-height: .8; text-align: center;
	color: rgba(255,255,255,.06); margin: 48px 0 16px; letter-spacing: -0.02em; white-space: nowrap;
}
.footer-bottom { font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Losse pagina's ---------- */
.page-head { padding-bottom: 0; }
.project-meta { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 24px 0 40px; }
.project-meta dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--db-accent); }
.project-meta dd { margin: 0; color: var(--db-primary); font-weight: 500; }
.project-hero-img { margin-bottom: 48px; }
.project-hero-img img { width: 100%; }
.entry-content { max-width: 760px; }
.entry-content img { margin: 24px 0; }
.list-item { padding: 24px 0; border-bottom: 1px solid rgba(21,52,67,.12); }
.list-item h2 { font-size: 1.6rem; text-transform: none; }
.pagination { margin-top: 48px; }

/* ---------- Mobiel ---------- */
@media (max-width: 900px) {
	.header-inner { grid-template-columns: auto 1fr auto; }
	.site-brand { text-align: left; order: -1; }
	.site-header .site-brand img { margin: 0; max-height: 44px; }
	.header-phone { display: none; }
	.nav-toggle { display: block; }
	.main-nav { order: 3; }
	.site-header .main-nav { justify-self: end; }
	.main-nav .menu {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; gap: 0; background: #fff; padding: 8px 16px 16px;
		box-shadow: 0 12px 24px rgba(0,0,0,.08);
	}
	.main-nav.is-open .menu { display: flex; }
	.main-nav .menu a { display: block; padding: 12px 0; font-size: 1.05rem; }
	.about-grid, .mission-card, .services-grid-2 { grid-template-columns: 1fr; }
	.mission-card { min-height: 0; }
	.hero-inner { align-items: flex-start; padding-top: 110px; }
	.hero-text { margin: 0; }
	.hero-img { max-height: 55%; }
	.slider { grid-auto-columns: 82%; }
}

/* DB-CONTACT-POPUP – contactformulier als pop-up */
body.db-modal-open { overflow: hidden; }
.db-modal[hidden] { display: none; }
.db-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.db-modal__backdrop { position: absolute; inset: 0; background: rgba(4, 15, 31, .62); }
.db-modal__panel { position: relative; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; padding: clamp(24px, 4vw, 44px); box-shadow: 0 30px 80px rgba(4, 15, 31, .35); animation: dbModalIn .25s ease; }
@keyframes dbModalIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.db-modal__close { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 34px; line-height: 1; color: var(--db-primary); cursor: pointer; padding: 4px 10px; }
.db-modal__close:hover { color: var(--db-accent); }
.db-modal__title { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .9em; }
.db-modal .wpforms-container { margin: 0 !important; }
.db-modal .wpforms-field { padding: 0 0 18px !important; }
.db-modal .wpforms-field-label { font-size: 12px !important; font-weight: 600 !important; letter-spacing: .12em !important; text-transform: uppercase !important; color: #9a9a9a !important; margin: 0 0 8px !important; }
.db-modal .wpforms-required-label { color: #9a9a9a !important; }
.db-modal input[type="text"], .db-modal input[type="email"], .db-modal select, .db-modal textarea { width: 100% !important; max-width: 100% !important; height: auto !important; background: #f3eee6 !important; border: 1px solid #d9d3c8 !important; border-radius: 0 !important; padding: 12px 14px !important; font-family: var(--db-font) !important; font-size: 16px !important; color: var(--db-primary) !important; box-shadow: none !important; }
.db-modal textarea { min-height: 110px !important; resize: vertical; }
.db-modal input:focus, .db-modal select:focus, .db-modal textarea:focus { border-color: var(--db-primary) !important; outline: none !important; }
.db-modal ::placeholder { color: #7d7d7d; opacity: 1; }
.db-modal .wpforms-submit-container { display: flex !important; align-items: center; justify-content: space-between; gap: 16px; padding-top: 4px !important; }
.db-modal .wpforms-submit { background: #2bb5c8 !important; color: #153443 !important; border: 0 !important; border-radius: 0 !important; padding: 14px 26px !important; height: auto !important; font-family: var(--db-font) !important; font-size: 16px !important; font-weight: 600 !important; cursor: pointer; }
.db-modal .wpforms-submit:hover { background: #229fb0 !important; }
.db-modal__note { font-size: 13px; color: #8a8a8a; margin: 0; }
.db-modal .wpforms-confirmation-container-full { background: #f3eee6 !important; border: 0 !important; color: var(--db-primary) !important; padding: 20px !important; margin: 0 !important; }
.db-modal .wpforms-error { font-size: 13px !important; }
/* /DB-CONTACT-POPUP */
