/*
Theme Name: DeSpiegel Onderzoek
Theme URI: https://despiegelonderzoek.nl
Author: DeSpiegel Onderzoek en Advies
Description: Lichtgewicht thema (zonder Elementor) dat het ontwerp van despiegelonderzoek.nl nabouwt, met NL/EN-taalwissel, projecten en het ingebouwde co-onderzoekersportaal.
Version: 1.0.1
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: despiegel
*/

:root {
	--green: #00453B;
	--green-dark: #00332b;
	--yellow: #FFC803;
	--mint: #08F086;
	--grey: #F4F4F4;
	--white: #fff;
	--black: #000;
	--wrap: 1288px;
	--head: "Bebas Neue", "Bebas Neue Custom", Impact, sans-serif;
	--body: "Lato", "Lato Custom", Arial, sans-serif;
	--gap: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 20px; line-height: 1.5; color: var(--green); background: var(--white); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { font-family: var(--head); font-weight: 400; line-height: 1.18; margin: 0 0 .45em; color: inherit; }
h1 { font-size: clamp(44px, 6vw, 56px); }
h2 { font-size: clamp(36px, 4.4vw, 48px); }
h3 { font-size: 32px; line-height: 1.28; }
h4 { font-size: 24px; line-height: 1.375; }
h5 { font-size: 20px; }
ul { padding-left: 1.2em; }
.screen-reader-text { position: absolute !important; clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ------------------------------------------------------------------ Buttons */
.btn, .wp-block-button__link { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-size: 20px; line-height: 30px; padding: 7px 19px; border: 1px solid var(--yellow); background: var(--yellow); color: var(--green); text-decoration: none; border-radius: 0; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn::after { content: ""; width: 13px; height: 12px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 12'%3E%3Cpath d='M1 11L6 6L1 1M7 11L12 6L7 1' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 12'%3E%3Cpath d='M1 11L6 6L1 1M7 11L12 6L7 1' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain; }
.btn:hover { transform: translateY(-2px); }
.btn--green { background: var(--green); border-color: var(--green); color: var(--white); }
.btn--outline { background: transparent; border-color: var(--green); color: var(--green); }
.btn--outline:hover { background: var(--green); color: var(--white); }
.btn--white { background: var(--white); border-color: var(--white); color: var(--green); }
.btn--plain { background: transparent; border-color: transparent; padding-left: 0; }
.btns { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }

/* ------------------------------------------------------------------ Header */
.site-header { position: relative; z-index: 50; background: var(--green); }
.site-header__in { max-width: var(--wrap); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.home .site-header, .site-header--overlay { position: absolute; left: 0; right: 0; top: 0; background: linear-gradient(rgba(0,0,0,.6) 0%, rgba(0,0,0,0) 100%); }
.site-logo img { width: 124px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.site-nav a { color: var(--white); text-decoration: none; font-size: 16px; }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav .current-menu-ancestor > a { color: var(--mint); }
.lang-switch { display: flex; gap: 6px; font-family: var(--head); font-size: 18px; }
.lang-switch a { color: var(--white); text-decoration: none; opacity: .6; }
.lang-switch a.is-active { opacity: 1; color: var(--mint); }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); padding: 6px; cursor: pointer; }
.nav-toggle svg { width: 30px; height: 30px; }
@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.site-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--green); flex-direction: column; align-items: flex-start; padding: 20px; gap: 18px; display: none; }
	.site-nav.is-open { display: flex; }
	.site-nav ul { flex-direction: column; gap: 14px; }
}

/* ------------------------------------------------------------------ Sections */
.sec { padding: 96px 0; position: relative; }
.sec--green { background: var(--green); color: var(--white); }
.sec--yellow { background: var(--yellow); color: var(--green); }
.sec--grey { background: var(--grey); }
.sec--mint { background: var(--mint); }
.sec--tight { padding: 64px 0; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.row-head h2 { margin: 0; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); align-items: center; }
.cols--top { align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } .sec { padding: 64px 0; } }

/* Home hero */
.home-hero { min-height: 546px; background-size: cover; background-position: center; }
.home-intro { margin-top: -60px; position: relative; z-index: 2; }
.home-intro__card { background: var(--white); max-width: 1109px; margin: 0 auto; padding: 20px 20px 40px; text-align: center; }
.home-intro__card h1 { font-size: clamp(56px, 9vw, 113px); line-height: 1.1; margin: 0 0 .2em; }
.home-intro__card p { max-width: 900px; margin: 0 auto; }
.home-intro__card .btns { justify-content: center; }
.awarded { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 36px; font-size: 16px; }
.awarded img { width: 270px; }

/* Split hero (inner pages) */
.split-hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; }
.split-hero__text { display: flex; align-items: center; padding: 60px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)); padding-right: 40px; }
.split-hero__text h1 { font-size: clamp(44px, 5vw, 64px); }
.split-hero__media { background-size: cover; background-position: center; min-height: 360px; }
.split-hero__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .split-hero { grid-template-columns: 1fr; } .split-hero__text { padding: 48px 20px; } }

/* Text + media */
.media-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.media-split--rev .media-split__media { order: -1; }
.media-split__media img, .media-split__media video { width: 100%; height: auto; }
@media (max-width: 860px) { .media-split { grid-template-columns: 1fr; gap: 32px; } .media-split--rev .media-split__media { order: 0; } }

/* Tabs (home: services) */
.tabs__nav { display: flex; flex-wrap: wrap; }
.tabs__nav button { flex: 1 1 200px; font-family: var(--head); font-size: 20px; line-height: 1.16; padding: 16px; background: var(--green); color: var(--white); border: 0; cursor: pointer; text-align: center; transition: background .2s, color .2s; }
.tabs__nav button[aria-selected="true"] { background: var(--mint); color: var(--green); }
.tabs__panel { min-height: 700px; background-size: cover; background-position: center; display: flex; align-items: center; padding: 40px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)); }
.tabs__panel[hidden] { display: none; }
.tabs__box { background: var(--yellow); max-width: 435px; padding: 32px; }
.tabs__box h3 { display: flex; align-items: center; gap: 12px; font-size: 32px; text-transform: none; }
.tabs__box h3 svg { width: 28px; height: 28px; flex: none; }
.tabs__box p { font-size: 18px; }

/* Project cards */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.project-card { position: relative; display: flex; flex-direction: column; text-decoration: none; color: var(--white); }
.project-card__img { height: 228px; overflow: hidden; }
.project-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.project-card:hover .project-card__img img { transform: scale(1.05); }
.project-card__body { background: var(--green); padding: 16px 16px 24px 0; flex: 1; }
.sec--green .project-card__body { padding-left: 0; }
.project-card h4 { font-size: 32px; line-height: 1.28; color: var(--white); margin: 0 0 8px; }
.project-card p { font-size: 18px; color: var(--white); margin: 0; }
.project-card__more { font-family: var(--head); color: var(--yellow); margin-top: 12px; display: inline-flex; gap: 8px; align-items: center; }
@media (max-width: 960px) { .project-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .project-grid { grid-template-columns: 1fr; } }

/* Method cards (services) */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.card { background: var(--white); }
.card img { width: 100%; height: 240px; object-fit: cover; }
.card__body { padding: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 18px; margin: 0; }
@media (max-width: 860px) { .card-grid { grid-template-columns: 1fr; } }

/* Info blocks (partnerships) */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.info { display: flex; gap: 20px; align-items: flex-start; }
.info__icon { flex: none; width: 52px; height: 52px; background: var(--yellow); display: flex; align-items: center; justify-content: center; }
.info__icon svg { width: 26px; height: 26px; }
.info h3 { margin-bottom: 8px; }
.info p, .info li { font-size: 18px; }
@media (max-width: 860px) { .info-grid { grid-template-columns: 1fr; } }
.logo-row { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; margin-top: 24px; }
.logo-row img { max-height: 90px; width: auto; }

/* Partners */
.partners { text-align: center; }
.partners__logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px 56px; margin-top: 32px; }
.partners__logos img { max-height: 100px; width: auto; max-width: 260px; filter: grayscale(0); }

/* CTA (kopje koffie) */
.cta { background: var(--green); color: var(--white); text-align: center; padding: 110px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(8,240,134,.18), transparent 45%), radial-gradient(circle at 10% 90%, rgba(255,200,3,.16), transparent 40%); }
.cta .wrap { position: relative; max-width: 767px; }
.cta h2 { color: var(--white); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 760px; }
.contact-grid__info { padding: 140px 60px 60px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)); }
.contact-grid__form { background: var(--yellow); padding: 140px max(20px, calc((100vw - var(--wrap)) / 2 + 20px)) 60px 60px; }
.contact-list { list-style: none; padding: 0; margin: 24px 0; }
.contact-list li { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.contact-list svg { width: 22px; height: 22px; flex: none; }
.team-box { background: var(--mint); padding: 12px; margin-top: 32px; }
.team-box h5 { margin: 12px 4px 4px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } .contact-grid__info, .contact-grid__form { padding: 48px 20px; } }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: grid; gap: 6px; font-size: 16px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form select, .contact-form textarea { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1px solid var(--green); background: var(--white); color: var(--green); border-radius: 0; }
.contact-form .check { display: flex; gap: 10px; align-items: flex-start; }
.contact-form .hp { position: absolute; left: -9999px; }
.form-msg { grid-column: 1 / -1; padding: 12px 16px; background: var(--white); border-left: 4px solid var(--green); }
@media (max-width: 600px) { .contact-form { grid-template-columns: 1fr; } }

/* Generic page (plain content) */
.page-hero { background: var(--green); color: var(--white); padding: 120px 0 64px; }
.page-hero h1 { margin: 0; }
.entry { padding: 72px 0 96px; }
.entry .wrap > * { max-width: 860px; }
.entry h2 { margin-top: 1.4em; }
.entry h3 { margin-top: 1.1em; }
.entry h4 { margin-top: 1em; margin-bottom: .2em; }
.entry blockquote { border-left: 4px solid var(--yellow); margin: 1.5em 0; padding: .5em 1.2em; font-style: italic; }
.entry a { text-decoration: underline; }

/* Single project */
.project-hero { min-height: 366px; background-size: cover; background-position: center; }
.project-head { padding: 56px 0 0; }
.eyebrow { font-family: var(--head); font-size: 18px; margin: 0 0 4px; }

/* Footer */
.site-footer { background: var(--green); color: var(--white); padding: 64px 0 24px; font-size: 16px; }
.site-footer a { color: var(--white); }
.site-footer__top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.25); }
.site-footer__brand { max-width: 400px; }
.site-footer__brand img { width: 160px; margin-bottom: 20px; }
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.site-footer nav a { text-decoration: none; font-family: var(--head); font-size: 20px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 24px; }
.site-footer__bottom ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; }

/* Reveal animation */
@media (prefers-reduced-motion: no-preference) {
	.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
	.js .reveal.is-in { opacity: 1; transform: none; }
}

/* Portal: align module colours with the theme */
.dsp-portaal { --dsp-green: #00453B; --dsp-green-dark: #00332b; --dsp-yellow: #FFC803; --dsp-yellow-soft: #fff3c4; --dsp-green-soft: #e3f3ee; font-family: var(--body); }
.dsp-portaal h2, .dsp-portaal h3, .dsp-portaal .dsp-hero__name, .dsp-portaal .dsp-stats strong { font-family: var(--head); font-weight: 400; }
.dsp-portaal .dsp-btn, .dsp-portaal .dsp-level-pill { font-family: var(--head); font-weight: 400; letter-spacing: .02em; border-radius: 0; }
.portal-page { padding: 72px 0 96px; }
