/*
 * Discatech, bespoke styling uit de goedgekeurde homepage-mockup.
 * Kleuren komen uit theme.json (CSS-variabelen). Deze file voegt de
 * layout, hovers, data-card, verhaalband, auteursbox en responsive toe.
 * Montserrat 600-karakter met lichte negatieve tracking voor koppen.
 */

:root {
	--dt-ground: var(--wp--preset--color--ground, #F4EFE6);
	--dt-ground-soft: var(--wp--preset--color--ground-soft, #EFE8DB);
	--dt-card: var(--wp--preset--color--card, #FBF8F2);
	--dt-ink: var(--wp--preset--color--ink, #232826);
	--dt-accent: var(--wp--preset--color--accent, #2E5E45);
	--dt-accent-dark: var(--wp--preset--color--accent-dark, #244A37);
	--dt-tech: var(--wp--preset--color--secondary, #3A8DBD);
	--dt-neutral: var(--wp--preset--color--neutral, #CBC3B4);
	--dt-radius: 16px;
	--dt-radius-lg: 20px;
	--dt-shadow: 0 1px 2px rgba(35,40,38,.04), 0 8px 30px rgba(35,40,38,.06);
	--dt-shadow-hover: 0 14px 40px rgba(35,40,38,.10);
}

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

.tnum,
.acard-date,
.bar-val,
.trust-num.tnum {
	font-variant-numeric: tabular-nums;
}

/* ---------------- Header ---------------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(244, 239, 230, .82);
	backdrop-filter: saturate(140%) blur(10px);
	-webkit-backdrop-filter: saturate(140%) blur(10px);
	border-bottom: 1px solid var(--dt-neutral);
	padding-top: 0;
	padding-bottom: 0;
}

.site-nav {
	min-height: 74px;
	gap: 32px;
}

.brand-wrap {
	gap: 11px;
}

.brand-mark svg {
	display: block;
}

.nav-and-search {
	gap: 22px;
}

.pillar-nav {
	font-weight: 500;
}

.pillar-nav .wp-block-navigation-item__content {
	font-size: .94rem;
	color: var(--dt-ink);
	padding: 6px 0;
}

.pillar-nav a:hover,
.pillar-nav a:focus {
	color: var(--dt-accent);
}

.header-search {
	margin: 0;
}

.header-search .wp-block-search__button {
	background: var(--dt-card);
	color: var(--dt-accent);
	border: 1px solid var(--dt-neutral);
	border-radius: 50%;
	width: 42px;
	height: 42px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all .2s;
}

.header-search .wp-block-search__button:hover {
	background: var(--dt-accent);
	color: var(--dt-ground);
	border-color: var(--dt-accent);
}

/* ---------------- Algemene sectie-ritmes ---------------- */
.hero-section {
	padding-top: clamp(56px, 7vw, 88px);
	padding-bottom: clamp(64px, 8vw, 96px);
	overflow: hidden;
}

.pillars-section,
.story-section,
.articles-section {
	padding-top: clamp(60px, 7vw, 84px);
	padding-bottom: clamp(60px, 7vw, 84px);
}

.sec-head {
	max-width: 660px;
	margin-bottom: 46px;
}

.kicker {
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.kicker-tech {
	color: var(--dt-tech);
}

.sec-intro,
.archive-description {
	color: #4b524e;
	font-size: 1.08rem;
	margin-top: 14px;
}

/* ---------------- Hero ---------------- */
.hero-grid {
	gap: 56px;
}

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: var(--dt-accent);
	margin-bottom: 22px;
}

.eyebrow .dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--dt-tech);
	flex: none;
}

.hero-title {
	letter-spacing: -.025em;
}

.hero-em {
	color: var(--dt-accent);
	font-style: italic;
	font-weight: 500;
}

.hero-lead {
	color: #3f4744;
	max-width: 36ch;
	margin: 24px 0 34px;
}

.cta-row {
	gap: 14px;
	align-items: center;
}

.trust-row {
	gap: 26px;
	margin-top: 38px;
}

.trust-item {
	display: flex;
	flex-direction: column;
}

.trust-num {
	font-weight: 600;
	font-size: 1.05rem;
	color: var(--dt-accent);
	margin: 0;
	line-height: 1.2;
}

.trust-lbl {
	font-size: .82rem;
	color: #6b716d;
	margin: 0;
}

/* Hero data-card */
.hero-visual {
	position: relative;
}

.hero-visual::before {
	content: "";
	position: absolute;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(58,141,189,.18), transparent 70%);
	top: -60px;
	right: -50px;
	z-index: 1;
	pointer-events: none;
}

.hero-visual::after {
	content: "";
	position: absolute;
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(46,94,69,.14), transparent 70%);
	bottom: -50px;
	left: -40px;
	z-index: 1;
	pointer-events: none;
}

.data-card {
	background: var(--dt-card);
	border: 1px solid var(--dt-neutral);
	border-radius: var(--dt-radius-lg);
	padding: 26px 26px 30px;
	box-shadow: var(--dt-shadow);
	position: relative;
	z-index: 2;
}

.data-card .dc-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.data-card .dc-head h4 {
	font-size: 1.12rem;
	margin: 0;
}

.badge {
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--dt-tech);
	background: rgba(58, 141, 189, .12);
	padding: 5px 10px;
	border-radius: 20px;
}

.bars {
	display: flex;
	align-items: flex-end;
	gap: 16px;
	height: 150px;
	padding: 0 4px;
	border-bottom: 1px solid var(--dt-neutral);
	margin-bottom: 14px;
}

.bar-col {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	height: 100%;
	justify-content: flex-end;
}

.bar {
	width: 100%;
	border-radius: 8px 8px 0 0;
	position: relative;
	transform-origin: bottom;
}

.bar.invest {
	background: linear-gradient(180deg, #3f7458, var(--dt-accent));
}

.bar.saving {
	background: linear-gradient(180deg, #57a7d4, var(--dt-tech));
}

.bar-val {
	font-size: .82rem;
	font-weight: 600;
}

.bar-lbl {
	font-size: .76rem;
	color: #6b716d;
	text-align: center;
}

.dc-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: .86rem;
}

.dc-foot .tvt b {
	color: var(--dt-accent);
}

.dc-foot-note {
	font-size: .78rem;
	color: #7a807b;
}

/* Bars groeien alleen animeren met JS-gate en zonder reduced-motion */
.js .bar {
	animation: dt-grow 1s cubic-bezier(.2, .7, .3, 1) both;
}

@keyframes dt-grow {
	from { transform: scaleY(0); }
	to { transform: scaleY(1); }
}

/* ---------------- Pijler-grid ---------------- */
.pillar-grid {
	gap: 22px;
}

.pcard {
	background: var(--dt-card);
	border: 1px solid var(--dt-neutral);
	border-radius: var(--dt-radius);
	padding: 30px 26px;
	box-shadow: var(--dt-shadow);
	transition: transform .25s, box-shadow .25s;
	display: flex;
	flex-direction: column;
	gap: 14px;
	position: relative;
	overflow: hidden;
	height: 100%;
}

.pcard::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 4px;
	background: var(--dt-accent);
	transform: scaleY(0);
	transform-origin: top;
	transition: transform .3s;
}

.pcard:hover {
	transform: translateY(-5px);
	box-shadow: var(--dt-shadow-hover);
}

.pcard:hover::before {
	transform: scaleY(1);
}

.picon {
	width: 52px;
	height: 52px;
	border-radius: 13px;
	background: rgba(46, 94, 69, .09);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--dt-accent);
}

.pcard.tech .picon {
	background: rgba(58, 141, 189, .12);
	color: var(--dt-tech);
}

.pcard h3 {
	font-size: 1.28rem;
	margin: 0;
}

.pcard-text {
	font-size: .95rem;
	color: #565d59;
	margin: 0;
}

.pcard .more {
	margin-top: auto;
	font-size: .9rem;
	font-weight: 600;
	margin-bottom: 0;
}

.pcard .more a {
	color: var(--dt-accent);
	font-weight: 600;
}

.pcard.tech .more a {
	color: var(--dt-accent);
}

/* CTA-kaart in het grid */
.pcard-cta {
	justify-content: center;
	background: linear-gradient(135deg, var(--dt-accent), var(--dt-accent-dark));
	border: none;
	color: var(--dt-ground);
}

.pcard-cta h3 {
	color: var(--dt-ground);
}

.pcard-cta .pcard-text {
	color: #d9e3dc;
}

.pcard-cta .more-light a {
	color: #9fd0b6;
}

.pcard-cta::before {
	display: none;
}

/* ---------------- Verhaalband + persona ---------------- */
.story-section {
	position: relative;
	overflow: hidden;
}

.story-section::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 85% 15%, rgba(58,141,189,.22), transparent 45%),
		radial-gradient(circle at 10% 90%, rgba(0,0,0,.18), transparent 40%);
	pointer-events: none;
}

.story-section > * {
	position: relative;
	z-index: 2;
}

.story-grid {
	gap: 56px;
}

.kicker-story {
	color: #9fd0b6;
	margin-bottom: 16px;
}

.story-title {
	max-width: 18ch;
	color: var(--dt-ground);
	font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}

.story-quote {
	font-style: italic;
	font-size: 1.35rem;
	line-height: 1.5;
	margin: 26px 0;
	color: #f0ede4;
	font-weight: 400;
	border: 0;
	padding: 0;
}

.story-quote p {
	margin: 0;
}

.story-body {
	color: #d9e3dc;
	font-size: 1.05rem;
	max-width: 52ch;
}

.persona {
	background: var(--dt-card);
	color: var(--dt-ink);
	border-radius: var(--dt-radius-lg);
	padding: 30px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .22);
}

.persona-top {
	gap: 16px;
	margin-bottom: 18px;
}

.avatar {
	width: 66px;
	height: 66px;
	border-radius: 50%;
	flex: none;
	background: linear-gradient(135deg, #3f7458, var(--dt-accent));
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--dt-ground);
	border: 2px solid var(--dt-ground);
}

.persona-name {
	font-size: 1.18rem;
	margin: 0;
	color: var(--dt-ink);
}

.persona-role {
	font-size: .86rem;
	color: #6b716d;
	margin: 0;
}

.persona-bio {
	font-size: .94rem;
	color: #4b524e;
	margin-bottom: 18px;
}

.credentials {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.credentials li {
	display: flex;
	gap: 11px;
	align-items: flex-start;
	font-size: .9rem;
	color: var(--dt-ink);
}

.credentials li svg {
	flex: none;
	margin-top: 3px;
	color: var(--dt-tech);
}

/* ---------------- Laatste artikelen ---------------- */
.art-head {
	margin-bottom: 44px;
}

.art-head .sec-head {
	margin-bottom: 0;
}

.art-grid {
	gap: 24px;
}

.acard {
	background: var(--dt-card);
	border: 1px solid var(--dt-neutral);
	border-radius: var(--dt-radius);
	overflow: hidden;
	box-shadow: var(--dt-shadow);
	transition: transform .25s, box-shadow .25s;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.acard:hover {
	transform: translateY(-5px);
	box-shadow: var(--dt-shadow-hover);
}

.acard-thumb {
	margin: 0;
}

.acard-thumb img {
	width: 100%;
	height: 158px;
	object-fit: cover;
	display: block;
}

.acard-thumb.wp-block-post-featured-image:not(:has(img)) {
	display: none;
}

.abody {
	padding: 22px 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}

.acard-meta {
	gap: 12px;
	align-items: center;
}

.acard-cat {
	font-size: .72rem;
	font-weight: 600;
	color: var(--dt-accent);
	background: rgba(46, 94, 69, .09);
	padding: 4px 11px;
	border-radius: 20px;
}

.acard-cat a {
	color: var(--dt-accent);
}

.acard-date {
	font-size: .78rem;
	color: #7a807b;
}

.acard-title {
	font-size: 1.15rem;
	line-height: 1.28;
	margin: 0;
}

.acard-title a:hover {
	color: var(--dt-accent);
}

.acard-excerpt {
	font-size: .9rem;
	color: #565d59;
	margin: 0;
}

.acard-excerpt .wp-block-post-excerpt__more-link {
	margin-top: auto;
	font-size: .86rem;
	font-weight: 600;
	color: var(--dt-accent);
	display: inline-block;
	padding-top: 8px;
}

.no-results {
	color: #565d59;
	font-size: 1rem;
}

.art-pagination {
	margin-top: 44px;
	gap: 10px;
}

.art-pagination .wp-block-query-pagination-numbers,
.art-pagination a,
.art-pagination .current {
	font-weight: 600;
	color: var(--dt-accent);
}

/* ---------------- Footer ---------------- */
.site-footer {
	color: #c4cbc6;
	padding-top: 64px;
	padding-bottom: 30px;
}

.foot-grid {
	gap: 36px;
	padding-bottom: 44px;
	border-bottom: 1px solid rgba(203, 195, 180, .18);
	grid-template-columns: 1.6fr 1fr 1fr 1fr;
}

.footer-brand-title a,
.footer-brand-title {
	color: var(--dt-ground) !important;
}

.foot-tagline {
	font-size: .92rem;
	color: #9aa19c;
	max-width: 34ch;
	margin-top: 16px;
}

.foot-col-title {
	font-size: .78rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #8d948f;
	margin: 0 0 16px;
	font-weight: 600;
}

.foot-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.foot-list li {
	padding: 6px 0;
}

.foot-list a {
	font-size: .92rem;
	color: #c4cbc6;
	transition: color .2s;
}

.foot-list a:hover {
	color: var(--dt-ground);
}

.foot-legal {
	padding-top: 26px;
	font-size: .84rem;
	color: #8d948f;
	gap: 16px;
}

.legal-copy {
	margin: 0;
	font-size: .84rem;
	color: #8d948f;
}

.legal-links {
	gap: 22px;
}

.legal-links p {
	margin: 0;
	font-size: .84rem;
}

.legal-links a {
	color: #8d948f;
}

.legal-links a:hover {
	color: var(--dt-ground);
}

/* ---------------- Single / Page ---------------- */
.single-main,
.page-main {
	padding-top: clamp(48px, 6vw, 72px);
	padding-bottom: clamp(60px, 7vw, 84px);
}

.single-cat {
	margin-bottom: 14px;
}

.single-cat a {
	color: var(--dt-tech);
}

.single-title,
.page-title {
	margin-bottom: 18px;
}

.single-meta {
	gap: 18px;
	color: #6b716d;
	font-size: .9rem;
	margin-bottom: 8px;
}

.single-author {
	font-size: .9rem;
}

.single-date {
	font-size: .9rem;
	color: #7a807b;
}

.single-featured {
	margin-top: 28px;
	margin-bottom: 40px;
}

.single-featured img,
.page-featured img {
	border-radius: var(--dt-radius);
}

.single-content p,
.page-content p {
	margin-bottom: 1.4rem;
}

.single-footer {
	margin-top: 56px;
}

.author-box {
	background: var(--dt-card);
	border: 1px solid var(--dt-neutral);
	border-radius: var(--dt-radius);
	padding: 26px;
	gap: 20px;
	box-shadow: var(--dt-shadow);
}

.author-box .wp-block-avatar img {
	border-radius: 50%;
}

.author-box-label {
	font-size: .78rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--dt-tech);
	font-weight: 600;
	margin: 0 0 6px;
}

.author-box-name {
	font-size: 1.18rem;
	margin: 0 0 8px;
}

.author-box-bio {
	font-size: .94rem;
	color: #4b524e;
	margin: 0;
}

.post-nav-prev,
.post-nav-next {
	font-weight: 600;
	color: var(--dt-accent);
	margin-top: 28px;
}

.single-comments {
	margin-top: 56px;
}

/* ---------------- Archive / Search kop ---------------- */
.archive-main {
	padding-top: clamp(48px, 6vw, 72px);
	padding-bottom: clamp(60px, 7vw, 84px);
}

.archive-head {
	max-width: 760px;
	margin-bottom: 44px;
}

.archive-title {
	font-size: clamp(1.9rem, 3.4vw, 2.5rem);
	margin: 0;
}

.page-search .wp-block-search__input {
	border: 1px solid var(--dt-neutral);
	border-radius: 12px;
	background: var(--dt-card);
}

/* ---------------- 404 ---------------- */
.error-main {
	padding-top: clamp(64px, 9vw, 120px);
	padding-bottom: clamp(64px, 9vw, 120px);
}

.error-inner {
	max-width: 640px;
	text-align: center;
	margin: 0 auto;
}

.error-inner .kicker {
	display: block;
}

.error-title {
	margin-bottom: 16px;
}

.error-text {
	color: #4b524e;
	font-size: 1.08rem;
	margin-bottom: 24px;
}

.error-buttons {
	justify-content: center;
	margin-top: 20px;
}

/* ---------------- Knoppen ---------------- */
.btn-primary .wp-block-button__link {
	box-shadow: 0 6px 18px rgba(46, 94, 69, .22);
	transition: all .2s;
}

.btn-primary .wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 26px rgba(46, 94, 69, .28);
}

.btn-ghost .wp-block-button__link {
	background: transparent;
	color: var(--dt-accent);
	border: 1px solid var(--dt-neutral);
	transition: all .2s;
}

.btn-ghost .wp-block-button__link:hover {
	background: var(--dt-card);
	border-color: var(--dt-accent);
}

/* ---------------- Voortgangsbalk ---------------- */
.dt-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0;
	background: var(--dt-tech);
	z-index: 100;
	transition: width .1s linear;
	pointer-events: none;
}

/* ---------------- Scroll-reveal (JS-gated, veilig) ---------------- */
.js .dt-reveal {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .6s ease, transform .6s ease;
	will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
	.js .dt-reveal,
	.js .dt-reveal.is-visible {
		opacity: 1 !important;
		transform: none !important;
		transition: none !important;
	}
	.js .bar {
		animation: none !important;
	}
	.dt-progress {
		transition: none;
	}
}

/* ---------------- Responsive ---------------- */
@media (max-width: 940px) {
	.hero-grid,
	.story-grid {
		gap: 44px;
	}
	.pillar-grid,
	.art-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.foot-grid {
		grid-template-columns: 1fr 1fr;
	}
	.story-title,
	.hero-lead {
		max-width: none;
	}
}

@media (max-width: 640px) {
	.site-nav {
		gap: 16px;
	}
	.pillar-grid,
	.art-grid,
	.foot-grid {
		grid-template-columns: 1fr;
	}
	.trust-row {
		gap: 20px;
	}
	.foot-legal {
		flex-direction: column;
		align-items: flex-start;
	}
}
