/*
Theme Name: DG Rubber Profiles
Theme URI: https://dgrubberprofiles.nl
Author: Coddin
Description: Maatwerk Gutenberg-blokthema voor DG Rubber Profiles. Bevat een rubberprofielen-catalogus (CPT + Secure Custom Fields), sectie-patronen en een offerte-configurator-blok. 1:1 nagebouwd van het originele React-ontwerp.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dgrubber
Tags: full-site-editing, block-theme, business, custom-colors
*/

/* ==========================================================================
   Fonts
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   Base helpers (DG design system)
   ========================================================================== */
:root {
	--dg-dark: #052127;
	--dg-primary: #054040;
	--dg-secondary: #0e6256;
	--dg-emerald: #34d399;
	--dg-radius: 1rem;
	--dg-radius-lg: 1.5rem;
	--dg-shadow: 0 10px 30px -10px rgba(5, 33, 39, 0.25);
}

body { -webkit-font-smoothing: antialiased; }

img { max-width: 100%; height: auto; display: block; }

.dg-gradient-primary { background: linear-gradient(135deg, var(--dg-primary) 0%, var(--dg-secondary) 100%); }
.dg-gradient-dark { background: linear-gradient(135deg, var(--dg-dark) 0%, var(--dg-primary) 100%); }

/* Dotted background pattern */
.dg-dots { position: relative; }
.dg-dots::before {
	content: ""; position: absolute; inset: 0; opacity: 0.10; pointer-events: none;
	background-image: radial-gradient(circle at 2px 2px, #fff 1px, transparent 0);
	background-size: 40px 40px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.dg-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
	padding: 0.9rem 1.75rem; border-radius: 0.75rem; font-weight: 600; text-decoration: none;
	transition: all 0.2s ease; cursor: pointer; border: 0; line-height: 1;
}
.dg-btn svg { width: 1.15em; height: 1.15em; }
.dg-btn-primary { background: linear-gradient(135deg, var(--dg-primary), var(--dg-secondary)); color: #fff; }
.dg-btn-primary:hover { opacity: 0.9; color: #fff; }
.dg-btn-white { background: #fff; color: var(--dg-primary); box-shadow: 0 10px 25px rgba(0,0,0,0.2); }
.dg-btn-white:hover { background: #f3f4f6; color: var(--dg-primary); }
.dg-btn-ghost {
	background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.2);
	backdrop-filter: blur(4px);
}
.dg-btn-ghost:hover { background: rgba(255,255,255,0.2); color: #fff; }
.dg-btn-outline { background: #fff; color: var(--dg-primary); border: 2px solid var(--dg-primary); }
.dg-btn-outline:hover { background: #f9fafb; }

/* Override theme.json global link color/underline on our buttons (higher specificity) */
a.dg-btn, a.dg-btn:hover, a.dg-btn:focus { text-decoration: none; }
a.dg-btn-primary, a.dg-btn-primary:hover, a.dg-btn-ghost, a.dg-btn-ghost:hover { color: #fff; }
a.dg-btn-white, a.dg-btn-white:hover, a.dg-btn-outline, a.dg-btn-outline:hover { color: var(--dg-primary); }

/* ==========================================================================
   Block styles (native core blocks -> DG look, client-editable)
   ========================================================================== */
/* Button: DG Wit */
.wp-block-button.is-style-dg-wit > .wp-block-button__link {
	background: #fff !important; background-image: none !important; color: var(--dg-primary) !important;
	box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}
.wp-block-button.is-style-dg-wit > .wp-block-button__link:hover { background: #f3f4f6 !important; }
/* Button: DG Transparant */
.wp-block-button.is-style-dg-transparant > .wp-block-button__link {
	background: rgba(255,255,255,0.1) !important; background-image: none !important; color: #fff !important;
	border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(4px);
}
.wp-block-button.is-style-dg-transparant > .wp-block-button__link:hover { background: rgba(255,255,255,0.2) !important; }

/* Paragraph: pill label */
.is-style-dg-eyebrow {
	display: inline-block; padding: 0.5rem 1rem; border-radius: 9999px;
	background: rgba(5,64,64,0.1); color: var(--dg-primary);
	font-size: 0.875rem; font-weight: 500;
}
.is-style-dg-eyebrow-licht {
	display: inline-block; padding: 0.5rem 1rem; border-radius: 9999px;
	background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9);
	font-size: 0.875rem; font-weight: 500;
}
/* Paragraph: USP chip with check */
.is-style-dg-chip {
	display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem;
	border-radius: 9999px; background: rgba(255,255,255,0.1); color: #fff; font-weight: 500;
	backdrop-filter: blur(4px);
}
.is-style-dg-chip::before { content: "✓"; color: var(--dg-emerald); font-weight: 700; }

/* Cards (group + media-text) */
.is-style-dg-card {
	background: #fff; border-radius: var(--dg-radius-lg); overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08); transition: box-shadow 0.3s;
}
.is-style-dg-card:hover { box-shadow: var(--dg-shadow); }
.is-style-dg-card-grijs {
	background: #f9fafb; border-radius: var(--dg-radius-lg);
	transition: box-shadow 0.3s;
}
.wp-block-group.is-style-dg-card-grijs { padding: 2rem; }
.is-style-dg-card-grijs:hover { box-shadow: var(--dg-shadow); }
/* Service media-text card: rounded image + aligned content */
.wp-block-media-text.is-style-dg-card-grijs .wp-block-media-text__media img { border-radius: 0.75rem; }
.wp-block-media-text.is-style-dg-card-grijs .wp-block-media-text__content { padding-right: 1.5rem; }
/* Group: process step (numbered) */
.wp-block-group.is-style-dg-stap { text-align: center; }
.wp-block-group.is-style-dg-stap .wp-block-heading { margin-bottom: 0.5rem; }
/* Process steps: diamond number + icon circle + connected white cards */
.dg-process-grid { position: relative; }
.dg-step {
	position: relative; background: #fff; border: 1px solid #e5e7eb; border-radius: 1.5rem;
	padding: 2.75rem 1.25rem 1.75rem; text-align: center; z-index: 1;
}
.dg-step-diamond {
	position: absolute; top: -1.1rem; left: 50%; margin-left: -1.1rem;
	width: 2.2rem; height: 2.2rem; border-radius: 0.5rem;
	background: linear-gradient(135deg, var(--dg-primary), var(--dg-secondary));
	transform: rotate(45deg); display: flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 12px -4px rgba(0,0,0,0.3);
}
.dg-step-diamond span { transform: rotate(-45deg); color: #fff; font-weight: 700; font-size: 0.9rem; line-height: 1; }
.dg-step-icon {
	width: 5rem; height: 5rem; border-radius: 9999px; margin: 0 auto 1.25rem;
	background: linear-gradient(135deg, rgba(5,64,64,0.1), rgba(14,98,86,0.1));
	display: flex; align-items: center; justify-content: center;
}
.dg-step-icon svg { width: 2.25rem; height: 2.25rem; color: var(--dg-primary); stroke: var(--dg-primary); }
/* Connecting line behind the cards (desktop only) */
@media (min-width: 1024px) {
	/* Forceer exact 5 gelijke kolommen: auto-fill zou bij brede schermen een lege
	   6e kolom maken, waardoor de kaarten naar links schuiven en de lijn overschiet. */
	.wp-block-group.dg-process-grid.is-layout-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
	.dg-process-grid::before {
		content: ""; position: absolute; top: 5.4rem; left: 9%; right: 9%; height: 2px;
		background: linear-gradient(to right, var(--dg-primary), var(--dg-secondary)); opacity: 0.25; z-index: 0;
	}
}
/* Green action link (services / applications / categories) */
.dg-link { color: var(--dg-secondary) !important; font-weight: 600; text-decoration: none; }
.dg-link:hover { text-decoration: underline; }
.dg-link-light { color: #6ee7b7 !important; font-weight: 600; text-decoration: none; }
.dg-link-light:hover { text-decoration: underline; }
/* Category card footer link row */
.dg-card-footer { border-top: 1px solid #e5e7eb; padding: 1rem 1.25rem; }

/* Maak de hele assortiment-card klikbaar via de bestaande "Bekijk details"-link
   (stretched-link: het ::after overdekt de hele card). Eén echte link, dus
   toegankelijk en goed voor SEO. */
.is-style-dg-card { position: relative; }
.is-style-dg-card a.dg-link-light::after {
	content: ""; position: absolute; inset: 0; z-index: 2;
}
.is-style-dg-card:hover { cursor: pointer; }

/* Subtiele zoom op de cover-afbeelding bij hover (card heeft overflow:hidden). */
.is-style-dg-card .wp-block-cover__image-background { transition: transform 0.5s ease; }
.is-style-dg-card:hover .wp-block-cover__image-background { transform: scale(1.05); }

/* Cover: media card */
.wp-block-cover.is-style-dg-media { border-radius: var(--dg-radius-lg); overflow: hidden; }
.wp-block-cover.is-style-dg-media img.wp-block-cover__image-background { transition: transform 0.5s ease; }
.wp-block-cover.is-style-dg-media:hover img.wp-block-cover__image-background { transform: scale(1.08); }

/* ==========================================================================
   Header / navigation
   ========================================================================== */
.dg-topbar { background: var(--dg-dark); color: rgba(255,255,255,0.8); font-size: 0.875rem; }
.dg-topbar a { color: rgba(255,255,255,0.8); text-decoration: none; }
.dg-topbar a:hover { color: #fff; }
.dg-tb-contact { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }
.dg-tb-item { display: inline-flex; align-items: center; gap: 0.45rem; }
.dg-tb-ico { display: inline-flex; }
.dg-tb-ico svg { width: 1rem; height: 1rem; }

/* De hele header (de template-part-wrapper) plakt bovenaan tijdens het scrollen.
   Sticky moet op de wrapper, want die zit in .wp-site-blocks dat de volledige
   paginahoogte beslaat — op .dg-header zelf werkt het niet (ouder is te kort). */
.wp-block-template-part:has(> .dg-site-header) { position: sticky; top: 0; z-index: 50; }
.dg-site-header { background: #fff; }

.dg-header { background: #fff; transition: box-shadow 0.35s ease, padding 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.dg-header .dg-logo img { height: 2.5rem; width: auto; transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1); }

/* Zodra er gescrold is (class via assets/dg-header.js): topbar schuift weg,
   de balk wordt compacter en krijgt een schaduw. */
.dg-topbar { overflow: hidden; max-height: 4rem; transition: max-height 0.35s ease, padding 0.35s ease; }
.dg-site-header.dg-scrolled .dg-topbar { max-height: 0; padding-top: 0 !important; padding-bottom: 0 !important; }
.dg-site-header.dg-scrolled .dg-header { box-shadow: 0 6px 20px rgba(5,33,39,0.12); padding-top: 0.4rem; padding-bottom: 0.4rem; }
.dg-site-header.dg-scrolled .dg-header .dg-logo img { height: 2.5rem; }
.dg-nav a:not(.dg-btn) { color: #374151; text-decoration: none; font-weight: 500; padding: 0.5rem 1rem; border-radius: 0.5rem; transition: background 0.2s; }
.dg-nav a:not(.dg-btn):hover { background: #f3f4f6; }
.dg-nav a.current { background: rgba(5,64,64,0.1); color: var(--dg-primary); }

/* ==========================================================================
   Section helpers
   ========================================================================== */
.dg-eyebrow {
	display: inline-block; padding: 0.5rem 1rem; border-radius: 9999px;
	background: rgba(5,64,64,0.1); color: var(--dg-primary);
	font-size: 0.875rem; font-weight: 500; margin-bottom: 1rem;
}
.dg-eyebrow.is-light { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9); }

/* Center pill labels when the paragraph is set to align center */
.is-style-dg-eyebrow.has-text-align-center,
.is-style-dg-eyebrow-licht.has-text-align-center {
	display: block; width: fit-content; margin-left: auto; margin-right: auto;
}

.dg-badge {
	display: inline-block; padding: 0.25rem 0.75rem; border-radius: 9999px;
	background: rgba(5,64,64,0.1); color: var(--dg-primary); font-size: 0.75rem; font-weight: 600;
}

/* Cards */
.dg-card {
	background: #fff; border-radius: var(--dg-radius-lg); overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08); transition: box-shadow 0.3s, transform 0.3s;
}
.dg-card:hover { box-shadow: var(--dg-shadow); }

/* Image with overlay caption (category / applications) */
.dg-media-card { position: relative; border-radius: var(--dg-radius-lg); overflow: hidden; display: block; }
.dg-media-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.dg-media-card:hover img { transform: scale(1.1); }
.dg-media-card .dg-media-overlay {
	position: absolute; inset: 0;
	background: linear-gradient(to top, rgba(5,33,39,0.85), transparent 60%);
}
.dg-media-card .dg-media-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem; color: #fff; }

/* ==========================================================================
   Hero (front page)
   ========================================================================== */
.dg-hero { position: relative; overflow: hidden; min-height: 85vh; display: flex; flex-direction: column; justify-content: center; }
/* Scrim/vignette-overlay (zoals referentie: #052127/90 -> transparent),
   linksonder donker voor tekstcontrast, fade naar transparant richting de foto. */
.dg-hero::after {
	content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	background: linear-gradient(to top right, rgba(5,33,39,0.92) 0%, rgba(5,33,39,0) 55%);
}
.dg-hero > .wp-block-columns { position: relative; z-index: 2; }
.dg-hero .dg-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; max-width: none !important; width: 100%; margin: 0; z-index: 3; }
.dg-hero .dg-wave svg { width: 100%; height: 5rem; display: block; }
.dg-float-card {
	background: #fff; border-radius: var(--dg-radius); padding: 1.5rem;
	box-shadow: 0 20px 40px -12px rgba(0,0,0,0.3);
}

/* Hero image + overlapping float card */
.dg-hero-media { position: relative; }
.dg-hero-media img { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4); }
.dg-hero-float {
	position: absolute; bottom: -1.25rem; left: -1.25rem; z-index: 2;
	box-shadow: 0 20px 40px -12px rgba(0,0,0,0.35);
}
@media (max-width: 781px) {
	.dg-hero-float { position: static; bottom: auto; left: auto; margin-top: 1rem; }
}

/* Chips (USP pills) */
.dg-chip {
	display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem;
	border-radius: 9999px; background: rgba(255,255,255,0.1); color: #fff; font-weight: 500;
	backdrop-filter: blur(4px);
}
.dg-chip svg { color: var(--dg-emerald); }

/* ==========================================================================
   Profiel detail
   ========================================================================== */
.dg-spec-row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid #e5e7eb; }
.dg-spec-row:last-child { border-bottom: 0; }
.dg-spec-row .label { color: #6b7280; font-size: 0.875rem; }
.dg-spec-row .value { color: #111827; font-size: 0.875rem; font-weight: 500; text-align: right; }

.dg-usecase { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem; background: #f9fafb; border-radius: 0.75rem; }
.dg-usecase svg { color: var(--dg-primary); flex-shrink: 0; margin-top: 0.15rem; }

.dg-check-list { list-style: none; margin: 0; padding: 0; }
.dg-check-list li { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0; }
.dg-check-list li::before { content: "✓"; color: var(--dg-primary); font-weight: 700; }

/* Customer examples */
.dg-testimonial { background: #f9fafb; border-radius: var(--dg-radius-lg); overflow: hidden; display: flex; flex-wrap: wrap; }
.dg-testimonial .thumb { width: 10rem; flex-shrink: 0; }
.dg-testimonial .thumb img { width: 100%; height: 100%; object-fit: cover; }
.dg-testimonial .body { padding: 1.5rem; flex: 1 1 260px; }
.dg-result { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: #047857; font-weight: 500; background: #ecfdf5; padding: 0.5rem 0.75rem; border-radius: 0.5rem; }

/* ==========================================================================
   WhatsApp floating button
   ========================================================================== */
.dg-whatsapp {
	position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 60;
	width: 3.5rem; height: 3.5rem; border-radius: 9999px; background: #25D366;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 10px 25px rgba(0,0,0,0.25); transition: transform 0.2s;
}
.dg-whatsapp:hover { transform: scale(1.1); }
.dg-whatsapp svg { width: 2rem; height: 2rem; fill: #fff; }

/* ==========================================================================
   Utility
   ========================================================================== */
.dg-stat-number { font-size: 2.25rem; font-weight: 700; line-height: 1; }
.has-text-white, .has-white-color { color: #fff; }
.dg-muted-white { color: rgba(255,255,255,0.75); }

/* Configurator: `hidden` is authoritative over inline/flex display (steps + nav buttons) */
.dg-configurator [hidden] { display: none !important; }
.dg-configurator .dg-conf-step:not([hidden]) { display: flex; flex-direction: column; gap: 1.5rem; }

/* Configurator form fields */
.dg-fld { display: flex; flex-direction: column; gap: 0.35rem; }
.dg-fld > span { font-weight: 500; font-size: 0.9rem; color: #374151; }
.dg-fld input, .dg-fld select, .dg-fld textarea {
	width: 100%; padding: 0.7rem 0.9rem; border: 1px solid #d1d5db; border-radius: 0.6rem;
	font: inherit; color: #111827; background: #fff;
}
.dg-fld input:focus, .dg-fld select:focus, .dg-fld textarea:focus {
	outline: none; border-color: var(--dg-primary); box-shadow: 0 0 0 3px rgba(5,64,64,0.12);
}
.dg-opt:hover { border-color: #cbd5e1 !important; }

.dg-hide-mobile { display: none; }

/* Profiel-detail responsive grids */
@media (min-width: 1024px) {
	.dg-hide-mobile { display: block; }
	.dg-profiel .dg-grid-2 { grid-template-columns: 1fr 1fr !important; }
	.dg-profiel .dg-detail-grid { grid-template-columns: 2fr 1fr !important; }
	.dg-gradient-dark .dg-detail-grid { grid-template-columns: 1fr 1fr !important; }
	.dg-proj { grid-template-columns: 1fr 1fr !important; }
	.dg-contact-grid { grid-template-columns: 1fr 1fr !important; }
}
.dg-proj:nth-child(even) > div:first-child { order: 2; }

@media (max-width: 781px) {
	/* Logo constant op mobiel: niet krimpen/groeien bij scrollen */
	.dg-header .dg-logo img,
	.dg-site-header.dg-scrolled .dg-header .dg-logo img { height: 2.5rem; }
	/* Zwarte topbar volledig weg na omlaag scrollen */
	.dg-site-header.dg-scrolled .dg-topbar { max-height: 0; padding-top: 0; padding-bottom: 0; }
	/* Compacte topbar: alleen icoontjes (nummer + envelop), geen openingstijden */
	.dg-topbar .dg-tb-txt,
	.dg-topbar .dg-tb-hours { display: none; }
	.dg-topbar .dg-tb-ico svg { width: 1.15rem; height: 1.15rem; }
	.dg-tb-contact { gap: 1.25rem; }
	.dg-testimonial .thumb { width: 100%; height: 12rem; }
}

/* ==========================================================================
   Kennisbank (CPT kennisartikel)
   ========================================================================== */
.dg-kennis-hero-inner { max-width: 46rem; }

/* Filterbalk onder de hero met duidelijke ruimte ertussen. */
.dg-kennis-hero { padding-bottom: 4rem !important; }
.dg-kennis-content { margin-top: 0; padding-top: 2.5rem !important; position: relative; z-index: 2; }

.dg-kennis-bar {
	background: #fff; border-radius: 1rem; padding: 0.75rem 1rem;
	box-shadow: 0 12px 32px -14px rgba(5,33,39,0.28);
	display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.dg-kennis-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.dg-kennis-pill {
	padding: 0.5rem 1rem; border-radius: 9999px; font-size: 0.9rem; font-weight: 600;
	color: #374151; text-decoration: none; transition: background 0.2s, color 0.2s; white-space: nowrap;
}
.dg-kennis-pill:hover { background: #f3f4f6; }
.dg-kennis-pill.is-active { background: var(--dg-primary); color: #fff; }
.dg-kennis-search {
	display: flex; align-items: center; gap: 0.5rem; background: #f3f4f6;
	border-radius: 9999px; padding: 0.5rem 1rem; flex: 1; min-width: 14rem; max-width: 22rem;
}
.dg-kennis-search input { border: 0; background: transparent; outline: none; width: 100%; font-size: 0.9rem; color: #111827; }
.dg-kennis-search .dg-kennis-ico { width: 1rem; height: 1rem; color: #6b7280; flex: none; }

.dg-kennis-sectitle {
	font-size: 1.25rem; font-weight: 700; color: var(--dg-dark);
	margin: 2.75rem 0 1.25rem; display: flex; align-items: center; gap: 0.5rem;
}
.dg-kennis-spark { color: var(--dg-secondary); }

.dg-kennis-meta { display: flex; gap: 1rem; align-items: center; font-size: 0.8rem; color: #6b7280; }
.dg-kennis-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.dg-kennis-ico { width: 0.95rem; height: 0.95rem; }

.dg-kennis-media { position: relative; display: block; overflow: hidden; background: #e5e7eb; }
.dg-kennis-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.dg-kennis-badge {
	position: absolute; top: 0.75rem; left: 0.75rem; background: #fff; color: var(--dg-primary);
	font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
	padding: 0.25rem 0.6rem; border-radius: 0.4rem; box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.dg-kennis-excerpt { color: #4b5563; font-size: 0.95rem; margin: 0; }
.dg-kennis-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.dg-kennis-author { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: #374151; font-weight: 500; }
.dg-kennis-author-light { font-size: 0.8rem; color: #6b7280; }
.dg-kennis-avatar {
	width: 1.75rem; height: 1.75rem; border-radius: 9999px; background: var(--dg-primary); color: #fff;
	display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700;
}

/* Uitgelicht artikel */
.dg-kennis-featured {
	display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 1.25rem;
	overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.dg-kennis-featured-media { position: relative; display: block; min-height: 18rem; }
.dg-kennis-featured-media .dg-kennis-media { position: absolute; inset: 0; height: 100%; }
.dg-kennis-featured:hover .dg-kennis-media img { transform: scale(1.04); }
.dg-kennis-featured-body { padding: 2rem; display: flex; flex-direction: column; gap: 0.75rem; justify-content: center; }
.dg-kennis-featured-title { font-size: 1.6rem; line-height: 1.2; margin: 0; }
.dg-kennis-featured-title a { color: var(--dg-dark); text-decoration: none; }
.dg-kennis-featured-title a:hover { color: var(--dg-primary); }

/* Grid met kaarten */
.dg-kennis-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .dg-kennis-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .dg-kennis-grid { grid-template-columns: repeat(3, 1fr); } }

.dg-kennis-card {
	display: flex; flex-direction: column; background: #fff; border-radius: 1rem; overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08); text-decoration: none; color: inherit;
	transition: box-shadow 0.3s, transform 0.3s;
}
.dg-kennis-card:hover { box-shadow: var(--dg-shadow); transform: translateY(-2px); }
.dg-kennis-card .dg-kennis-media { height: 11rem; }
.dg-kennis-card:hover .dg-kennis-media img { transform: scale(1.05); }
.dg-kennis-card-body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.dg-kennis-card-title { font-size: 1.1rem; font-weight: 700; color: var(--dg-dark); line-height: 1.3; }
.dg-kennis-card .dg-kennis-excerpt { flex: 1; }
.dg-kennis-card .dg-kennis-foot { margin-top: auto; }

.dg-kennis-empty { text-align: center; color: #6b7280; padding: 2rem 0; }

/* CTA-blok */
.dg-kennis-cta { color: #fff; }
.dg-kennis-cta .is-style-dg-white .wp-block-button__link { background: #fff; color: var(--dg-primary); font-weight: 600; }
.dg-kennis-cta .is-style-dg-white .wp-block-button__link:hover { background: #f3f4f6; }
.dg-kennis-cta .is-style-dg-outline-light .wp-block-button__link {
	background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.35); font-weight: 600;
}
.dg-kennis-cta .is-style-dg-outline-light .wp-block-button__link:hover { background: rgba(255,255,255,0.18); }

/* Enkel artikel */
.dg-kennis-artikel-cat a {
	display: inline-block; background: rgba(255,255,255,0.15); color: #fff !important;
	font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
	padding: 0.3rem 0.75rem; border-radius: 9999px; text-decoration: none;
}
.dg-kennis-meta--single { color: rgba(255,255,255,0.85); gap: 1.5rem; }
.dg-kennis-artikel-image img { border-radius: 1.25rem; width: 100%; }
.dg-kennis-artikel-body { line-height: 1.7; }

@media (max-width: 781px) {
	.dg-kennis-featured { grid-template-columns: 1fr; }
	.dg-kennis-featured-media { min-height: 14rem; }
	.dg-kennis-bar { flex-direction: column; align-items: stretch; }
	.dg-kennis-search { max-width: none; }
	/* Geen overlap op mobiel: filterbalk krijgt duidelijke ruimte onder de hero */
	.dg-kennis-hero { padding-bottom: 3rem !important; }
	.dg-kennis-content { margin-top: 0; padding-top: 2rem !important; }
}

/* ==========================================================================
   Scroll-reveal (+ stagger) + smooth scroll (site-breed)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
	/* Fallback smooth scroll voor ankerlinks (Lenis overschrijft dit als het draait). */
	html { scroll-behavior: smooth; }

	/* Verborgen begintoestand: alleen actief als dg-reveal.js `dg-reveal-on` zet,
	   en alleen zolang een element nog niet `dg-in` heeft. Geen transition hier —
	   de reveal-transition wordt door JS inline gezet en na afloop opgeruimd,
	   zodat hover-transities op kaarten intact blijven. Selectors identiek aan
	   assets/dg-reveal.js. */
	html.dg-reveal-on .wp-block-post-content > *:not(.dg-in),
	html.dg-reveal-on main.wp-block-group > .wp-block-group:not(.dg-in),
	html.dg-reveal-on main .is-layout-grid > *:not(.dg-in),
	html.dg-reveal-on main .dg-kennis-grid > *:not(.dg-in),
	html.dg-reveal-on main .wp-block-post-template > *:not(.dg-in) {
		opacity: 0;
		transform: translateY(28px);
	}
}

/* Lenis smooth scroll (structurele regels; alleen actief als Lenis draait). */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---- Footer ---- */
.dg-footer h4 { margin: 0 0 1.25rem; }
.dg-footer .dg-footer-list { list-style: none; margin: 0; padding: 0; line-height: 1.42857; }
.dg-footer .dg-footer-list li { margin: 0 0 0.4rem; }
.dg-footer .dg-footer-list li:last-child { margin-bottom: 0; }
.dg-footer a { color: #fff; text-decoration: none; transition: opacity .15s; }
.dg-footer a:hover { opacity: .7; text-decoration: none; }
.dg-footer .dg-footer-list a { color: rgba(255,255,255,0.75); }
.dg-footer .dg-footer-list a:hover { color: #fff; opacity: 1; }
.dg-footer .dg-footer-bottom { margin-top: 1.5rem; align-items: center; gap: 1rem 1.5rem; }
.dg-footer .dg-footer-bottom > p { margin: 0; }
.dg-footer .dg-footer-legal { gap: 1rem; align-items: center; }
.dg-footer .dg-footer-legal p { margin: 0; }
.dg-footer .dg-footer-legal a { color: rgba(255,255,255,0.7); }
.dg-footer .dg-footer-legal a:hover { color: #fff; opacity: 1; }
.dg-footer .dg-footer-sep { position: relative; padding-left: 1.5rem; }
.dg-footer .dg-footer-sep::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 1rem; background: rgba(255,255,255,0.25); }
@media (max-width: 640px) {
	.dg-footer .dg-footer-sep { padding-left: 0; }
	.dg-footer .dg-footer-sep::before { display: none; }
}

/* ---- Homepage CTA: 2x2 knoppenraster ---- */
.wp-block-buttons.dg-cta-grid { display: grid !important; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 32rem; }
.dg-cta-grid .wp-block-button { width: 100%; margin: 0; }
.dg-cta-grid .wp-block-button__link { display: block; width: 100%; text-align: center; }
@media (max-width: 480px) {
	.wp-block-buttons.dg-cta-grid { grid-template-columns: 1fr; }
}

/* ---- Over ons: begrensde hero-afbeelding ---- */
.dg-hero-img { margin: 0; }
.dg-hero-img img {
	width: 75%;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	height: 18rem;
	object-fit: cover;
	object-position: center;
	border-radius: 1.5rem;
	box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35);
}
@media (max-width: 781px) {
	.dg-hero-img img { width: 100%; height: 14rem; }
}

/* ---- Over ons: stats-sectie ---- */
.dg-stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 64rem; margin-left: auto; margin-right: auto; }
.dg-stat { text-align: center; }
.dg-stat-icon {
	width: 4rem; height: 4rem; margin: 0 auto 1rem; border-radius: 1rem;
	display: flex; align-items: center; justify-content: center;
	background: #eef2f2; color: #0b1f24;
}
.dg-stat-icon svg { width: 2rem; height: 2rem; }
@media (max-width: 781px) {
	.dg-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Over ons: story twee-foto compositie ---- */
.dg-story-media { position: relative; padding-bottom: 2rem; }
.dg-story-main { width: 100%; height: auto; border-radius: 1.5rem; box-shadow: 0 20px 45px -15px rgba(0,0,0,0.30); }
.dg-story-inset {
	position: absolute; bottom: 0; left: -2rem; width: 66%; height: auto;
	border-radius: 1.5rem; border: 4px solid #fff; box-shadow: 0 20px 45px -12px rgba(0,0,0,0.35);
}
@media (max-width: 781px) {
	.dg-story-media { padding-bottom: 0; }
	.dg-story-inset { position: static; width: 60%; left: 0; margin-top: 1rem; }
}
/* ---- Over ons: 'Waarom kiezen' 3 kaarten gecentreerd ---- */
.dg-why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 68rem; margin-left: auto; margin-right: auto; }
@media (max-width: 781px) {
	.dg-why-grid { grid-template-columns: 1fr; }
}

/* ---- Over ons: tijdlijn 'Onze geschiedenis' ---- */
.dg-timeline { max-width: 44rem; margin: 0 auto; }
.dg-tl-row { display: flex; gap: 1.25rem; }
.dg-tl-year { flex: 0 0 4.5rem; text-align: right; font-size: 1.5rem; font-weight: 700; color: #00d492; line-height: 1.25; }
.dg-tl-line { position: relative; flex: 0 0 2px; width: 2px; margin-top: 0.72rem; background: linear-gradient(to bottom, #00d492 0%, rgba(0,212,146,0) 92%); }
.dg-tl-dot {
	position: absolute; top: -0.42rem; left: 50%; transform: translateX(-50%);
	width: 0.85rem; height: 0.85rem; border-radius: 9999px; background: #00d492;
	box-shadow: 0 0 0 4px rgba(0,212,146,0.15);
}
.dg-tl-content { padding-bottom: 3.5rem; }
.dg-tl-content h3 { color: #fff; font-size: 1.25rem; font-weight: 700; margin: 0 0 0.4rem; line-height: 1.25; }
.dg-tl-content p { color: rgba(255,255,255,0.7); margin: 0; }

/* ==========================================================================
   Mobiel menu: hamburger + slide-in drawer
   ========================================================================== */
.dg-burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 2.75rem; height: 2.75rem; padding: 0; border: none; background: transparent; cursor: pointer; }
.dg-burger span { display: block; width: 1.5rem; height: 2px; margin: 0 auto; background: #0b1f24; border-radius: 2px; }
.dg-no-scroll { overflow: hidden; }

.dg-drawer { position: fixed; inset: 0; z-index: 1000; }
.dg-drawer-overlay { position: absolute; inset: 0; background: rgba(5,33,39,0.5); opacity: 0; transition: opacity .38s ease; }
.dg-drawer.is-open .dg-drawer-overlay { opacity: 1; }
.dg-drawer-panel {
	position: absolute; top: 0; right: 0; height: 100%; width: min(86%, 24rem);
	background: #fff; box-shadow: -12px 0 44px rgba(0,0,0,0.22);
	transform: translateX(100%); transition: transform .38s cubic-bezier(.4,0,.2,1);
	display: flex; flex-direction: column; padding: 1.25rem 1.25rem 2rem; overflow-y: auto;
}
.dg-drawer.is-open .dg-drawer-panel { transform: translateX(0); }
/* Sneller wegschuiven bij sluiten */
.dg-drawer.is-closing .dg-drawer-panel { transition: transform .26s cubic-bezier(.4,0,1,1); }

/* Gestaffelde items */
.dg-anim-item { opacity: 0; transform: translateX(24px); transition: opacity .3s ease, transform .3s ease; }
.dg-drawer.is-open .dg-anim-item { opacity: 1; transform: none; }
.dg-drawer.is-closing .dg-anim-item { opacity: 0; transform: translateX(24px); transition: opacity .15s ease, transform .15s ease; }

.dg-drawer-top { display: flex; align-items: center; justify-content: space-between; margin-top: 1.5rem; padding-bottom: 1.25rem; margin-bottom: 1.5rem; border-bottom: 1px solid #eef2f2; }
.dg-drawer-logo img { height: 1.9rem; width: auto; }
.dg-drawer-close { width: 2.5rem; height: 2.5rem; border: none; border-radius: 9999px; background: #f1f5f5; color: #33484a; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.dg-drawer-close svg { width: 1.25rem; height: 1.25rem; }

.dg-drawer-eyebrow { display: flex; align-items: center; gap: .5rem; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; font-weight: 700; color: #7c8a8a; margin: 0 0 1.25rem; }
.dg-drawer-eyebrow::before { content: ""; width: 3px; height: .9rem; border-radius: 2px; background: var(--dg-primary); }

.dg-drawer-nav { display: flex; flex-direction: column; gap: .5rem; }
.dg-drawer-nav a { display: flex; align-items: center; justify-content: space-between; padding: .95rem 1rem; border-radius: .9rem; border: 1px solid transparent; font-size: 1.15rem; font-weight: 600; color: #0b1f24; text-decoration: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.dg-drawer-nav a:hover, .dg-drawer-nav a.is-current { border-color: #e5eaea; box-shadow: 0 6px 18px -12px rgba(0,0,0,.35); background: #fff; }
.dg-arrow { display: flex; opacity: 0; transform: translateX(-4px); transition: opacity .15s, transform .15s; color: #8a9a9a; }
.dg-arrow svg { width: 1.1rem; height: 1.1rem; }
.dg-drawer-nav a:hover .dg-arrow, .dg-drawer-nav a.is-current .dg-arrow { opacity: 1; transform: none; }

.dg-drawer-sep { border: none; border-top: 1px solid #eef2f2; margin: 1.25rem 0; }
.dg-drawer-cta { display: inline-flex; align-self: center; width: 80%; gap: .5rem; padding: 1rem 1.5rem; border-radius: 0.75rem; font-weight: 700; font-size: 16px; box-shadow: 0 10px 25px rgba(5,64,64,0.2); margin-bottom: 1.25rem; transition: box-shadow .2s, transform .1s; }
.dg-drawer-cta:hover { box-shadow: 0 12px 30px rgba(5,64,64,0.4); }
.dg-drawer-cta:active { transform: scale(0.95); }
.dg-drawer-contact { display: flex; align-items: center; gap: .9rem; padding: .55rem 0; color: #33484a; text-decoration: none; font-weight: 500; }
.dg-drawer-ico { width: 2.5rem; height: 2.5rem; border-radius: 9999px; background: #f1f5f5; color: #3f5555; display: flex; align-items: center; justify-content: center; flex: none; }
.dg-drawer-ico svg { width: 1.15rem; height: 1.15rem; }

@media (max-width: 900px) {
	.dg-nav { display: none !important; }
	.dg-burger { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
	.dg-drawer-panel, .dg-drawer-overlay, .dg-anim-item { transition: none !important; }
	.dg-anim-item { opacity: 1; transform: none; }
}

/* ---- Hero mobiel: pills naast elkaar + buttons 80% gestapeld ---- */
@media (max-width: 781px) {
	/* De 2 pills bovenaan naast elkaar houden */
	.dg-hero-pills { flex-wrap: nowrap; justify-content: flex-start; }
	.dg-hero-pills .is-style-dg-eyebrow-licht { white-space: nowrap; font-size: 0.8rem; padding: 0.4rem 0.75rem; }
	/* De 3 knoppen: allemaal 80% breed, even breed, gecentreerd onder elkaar */
	.dg-hero-buttons { flex-direction: column; align-items: center; }
	.dg-hero-buttons .wp-block-button { width: 100%; }
	.dg-hero-buttons .wp-block-button__link { display: block; width: 100%; text-align: center; }
}

/* ---- Onze diensten: servicekaarten (media-text) ---- */
.dg-service-card .wp-block-media-text__content p:not(.is-style-dg-eyebrow) { font-size: 16px !important; }
/* Eyebrow-pill: geen achtergrond, groene rand */
.dg-service-card .is-style-dg-eyebrow { background: transparent; border: 1px solid var(--dg-primary); }
@media (max-width: 781px) {
	/* Kleine vierkante thumbnail bovenaan i.p.v. volle-breedte afbeelding; tekst eronder */
	.dg-service-card .wp-block-media-text__media { margin: 0 0 1rem; justify-self: start; text-align: left; }
	.dg-service-card .wp-block-media-text__media img { width: 5rem; height: 5rem; object-fit: cover; border-radius: 0.75rem; margin: 0; }
	/* Rest van de kaart ook links uitlijnen (WP zet standaard 8% padding op de content) */
	.dg-service-card .wp-block-media-text__content { text-align: left; padding-left: 0 !important; padding-right: 0 !important; }
	.dg-service-card .wp-block-media-text__content > * { margin-left: 0; margin-right: 0; }
}

/* ---- CTA: afbeelding + Responstijd-kaart verbergen op mobiel ---- */
@media (max-width: 781px) {
	.dg-cta-media { display: none !important; }
}

/* ---- Cover-kaarten (Populaire producten + Toepassingen): alleen de laatste
       'Bekijk …'-regel op een witte balk; titel + omschrijving blijven op de foto ---- */
.is-style-dg-card:has(> .wp-block-cover) .wp-block-cover,
.wp-block-cover.is-style-dg-media { padding: 0; }
.is-style-dg-card:has(> .wp-block-cover) .wp-block-cover__inner-container,
.wp-block-cover.is-style-dg-media .wp-block-cover__inner-container { width: 100%; margin: 0; padding: 0; }
/* Titel + omschrijving blijven op de foto (met eigen padding) */
.is-style-dg-card:has(> .wp-block-cover) .wp-block-cover__inner-container > :not(:last-child),
.wp-block-cover.is-style-dg-media .wp-block-cover__inner-container > :not(:last-child) { padding-left: 1.5rem; padding-right: 1.5rem; }
.is-style-dg-card:has(> .wp-block-cover) .wp-block-cover__inner-container > h3:first-child,
.wp-block-cover.is-style-dg-media .wp-block-cover__inner-container > h3:first-child { padding-top: 1.25rem; }
/* Witte balk voor de laatste regel (de link) */
.is-style-dg-card:has(> .wp-block-cover) .wp-block-cover__inner-container > p:last-child,
.wp-block-cover.is-style-dg-media .wp-block-cover__inner-container > p:last-child {
	background: #fff; margin: 1rem 0 0 !important; padding: 0.9rem 1.5rem;
}
.is-style-dg-card:has(> .wp-block-cover) .dg-link-light,
.wp-block-cover.is-style-dg-media .dg-link-light { color: var(--dg-primary) !important; }

/* ---- Contactpagina: formuliervelden op 80% breedte ---- */
.page-id-42 .dg-fld input,
.page-id-42 .dg-fld select,
.page-id-42 .dg-fld textarea { width: 90%; }
