/* ==========================================================================
   Mitigatieschoorstenen — aanvullende stijlen
   Kleuren, typografie en knoppen staan in theme.json. Hier staan de
   onderdelen die theme.json niet kan uitdrukken.
   ========================================================================== */

/* ---------- Algemeen ---------- */

.wp-site-blocks > * + *,
.mit-main.mit-main > * + *,
.is-root-container > .wp-block-template-part + .mit-main,
.is-root-container > .mit-main + .wp-block-template-part,
.wp-block-post-content > .alignfull + .alignfull,
.is-root-container > .alignfull + .alignfull {
	margin-block-start: 0;
}

/* Paginainhoud die met een volle sectie begint of eindigt sluit direct aan op header en footer. */
.mit-main > .wp-block-post-content > .alignfull:first-child {
	margin-block-start: 0;
}

.mit-main > .wp-block-post-content > .alignfull:last-child {
	margin-block-end: 0;
}

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

/* Lopende tekst: 16px op mobiel, 20px vanaf 768px (gelijk aan exclusieveschoorstenen.nl). */
@media (min-width: 768px) {
	html:root {
		--wp--custom--body-size: 1.25rem;
	}
}

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}

strong,
b {
	font-weight: 600;
}

:where(.has-navy-background-color, .has-navy-dark-background-color) strong {
	color: var(--wp--preset--color--white);
}

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

.mit-center,
.mit-center :where(h1, h2, h3, p) {
	text-align: center;
}

.mit-center .wp-block-buttons {
	justify-content: center;
}

.mit-center > p,
.mit-lead {
	margin-inline: auto;
	max-width: 680px;
}

/* ---------- Header ---------- */

header.wp-block-template-part {
	position: sticky;
	top: 0;
	z-index: 100;
}

.admin-bar header.wp-block-template-part {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar header.wp-block-template-part {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar header.wp-block-template-part {
		top: 0;
	}
}

.mit-header .wp-block-navigation a:hover,
.mit-header .wp-block-navigation a:focus {
	color: var(--wp--preset--color--gold);
	text-decoration: none;
}

.mit-header .wp-block-navigation .current-menu-item > a,
.mit-header .wp-block-navigation a[aria-current="page"] {
	color: var(--wp--preset--color--gold);
	border-bottom: 2px solid var(--wp--preset--color--gold);
	padding-bottom: 4px;
}

.blog .mit-header .mit-nav-kennisbank > a,
.category .mit-header .mit-nav-kennisbank > a,
.single-post .mit-header .mit-nav-kennisbank > a,
.search .mit-header .mit-nav-kennisbank > a {
	color: var(--wp--preset--color--gold);
	border-bottom: 2px solid var(--wp--preset--color--gold);
	padding-bottom: 4px;
}

.mit-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 32px 24px;
}

.mit-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	font-size: 22px;
	gap: 20px;
}

.mit-header .wp-block-navigation__responsive-container-open svg,
.mit-header .wp-block-navigation__responsive-container-close svg {
	fill: currentColor;
	width: 28px;
	height: 28px;
}

.mit-btn-compact .wp-block-button__link {
	padding: 14px 24px;
	font-size: 15px;
	white-space: nowrap;
}

@media (max-width: 600px) {
	.mit-header__row {
		gap: 12px !important;
	}

	.mit-wordmark {
		flex-shrink: 0;
	}

	.mit-wordmark a {
		font-size: 15px;
	}

	.mit-wordmark a::first-line {
		font-size: 10px;
		letter-spacing: 0.28em;
	}

	.mit-header .wp-block-navigation {
		order: 3;
	}

	.mit-btn-compact .wp-block-button__link {
		padding: 10px 12px;
		font-size: 13px;
		letter-spacing: 0;
	}

	.mit-logos .wp-block-image {
		flex: 0 1 calc(50% - 10px);
	}

	.mit-logos .wp-block-image img {
		width: 100% !important;
	}
}

/* Op smalle schermen verhuist de offerteknop naar het menu. */
.mit-header .wp-block-navigation .mit-nav-mobile-only {
	display: none;
}

@media (max-width: 480px) {
	.mit-header .wp-block-buttons.mit-header__cta {
		display: none;
	}

	.mit-header .wp-block-navigation__responsive-container.is-menu-open .mit-nav-mobile-only {
		display: block;
		margin-top: 12px;
	}

	.mit-header .wp-block-navigation__responsive-container.is-menu-open .mit-nav-mobile-only a {
		display: inline-block;
		padding: 14px 24px;
		background: var(--wp--preset--color--green);
		color: var(--wp--preset--color--navy);
		font-weight: 700;
	}
}

/* Woordmerk: eerste regel goud en klein, tweede regel wit en groot. */
.mit-wordmark {
	flex-shrink: 0;
	margin: 0;
	line-height: 1.1;
	text-transform: uppercase;
	white-space: nowrap !important;
}

.mit-wordmark a {
	display: block;
	color: var(--wp--preset--color--white);
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-decoration: none;
}

.mit-wordmark a::first-line {
	color: var(--wp--preset--color--gold);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.32em;
}

.mit-wordmark a:hover {
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

/* ---------- Tekststijlen (blokstijlen) ---------- */

.is-style-label,
.is-style-label-gold {
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--wp--preset--color--steel-blue);
}

.is-style-label-gold {
	color: var(--wp--preset--color--gold);
}

.is-style-tag {
	display: inline-block;
	width: fit-content;
	padding: 6px 12px;
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--gold);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
}

.is-style-arrow-link {
	font-size: 17px;
	font-weight: 700;
}

.is-style-arrow-link a {
	text-decoration: none;
}

.wp-block-separator.is-style-gold-line {
	width: 72px;
	max-width: 72px;
	height: 4px;
	border: 0;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--gold);
	opacity: 1;
	margin-left: auto;
	margin-right: auto;
}

.mit-hero p:not([class*="is-style-"]),
.mit-light-text p:not([class*="is-style-"]) {
	color: var(--wp--preset--color--on-navy);
}

/* ---------- Knoppen ---------- */

.wp-block-button.is-style-outline-light .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--white);
	border: 2px solid var(--wp--preset--color--white);
	padding: 16px 28px;
}

.wp-block-button.is-style-outline-light .wp-block-button__link:hover {
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--navy);
}

/* ---------- Decoratieve gouden pijl ----------
   Zelfde vorm en plaatsing als op exclusieveschoorstenen.nl: grote gouden
   chevron rechtsonder, 15% dekking. Staat automatisch op elke navy sectie
   over de volle breedte (behalve de header) en op elk blok met .mit-arrow. */

.mit-arrow,
.has-navy-background-color.alignfull:not(.mit-header) {
	position: relative;
	overflow: hidden;
}

.mit-arrow::after,
.has-navy-background-color.alignfull:not(.mit-header)::after {
	content: "";
	position: absolute;
	z-index: 0;
	right: -5%;
	bottom: 0;
	width: 50%;
	height: 100%;
	background-image: url('data:image/svg+xml;utf8,<svg viewBox="-100 0 1033 693" xmlns="http://www.w3.org/2000/svg"><polyline fill="%23F6BF60" transform="translate(692.500000, 529.500000) rotate(-180.000000) translate(-692.500000, -529.500000)" points="692.5 433.5797 259.46955 0.5 -52.9550669 312.980337 692.5 1058.5 1437.95507 312.980337 1125.51026 0.5 692.5 433.5797"/></svg>');
	background-repeat: no-repeat;
	background-position: right bottom;
	background-size: contain;
	opacity: 0.15;
	pointer-events: none;
}

.mit-arrow > *,
.has-navy-background-color.alignfull:not(.mit-header) > * {
	position: relative;
	z-index: 1;
}

@media (max-width: 768px) {
	.mit-arrow::after,
	.has-navy-background-color.alignfull:not(.mit-header)::after {
		right: -10%;
		width: 60%;
	}
}

/* ---------- Foto's en placeholders ---------- */

.mit-photo {
	margin: 0;
}

.mit-photo img {
	display: block;
	width: 100%;
	object-fit: cover;
}

/* ---------- Waardebalk ---------- */

.mit-valuebar {
	border-bottom: 1px solid var(--wp--preset--color--mid-gray);
}

.wp-block-list.is-style-checks {
	list-style: none;
	padding-left: 0;
}

.wp-block-list.is-style-checks li {
	position: relative;
	padding-left: 38px;
}

.wp-block-list.is-style-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.05em;
	width: 26px;
	height: 26px;
	background: url("../images/vink.svg") no-repeat center / contain;
}

.mit-valuebar .wp-block-list.is-style-checks {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 16px 40px;
	margin: 0;
	color: var(--wp--preset--color--navy);
	font-size: 17px;
	font-weight: 700;
}

/* ---------- Kaarten ---------- */

.wp-block-group.is-style-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--mid-gray);
}

.wp-block-group.is-style-card > * {
	margin-block: 0;
}

.mit-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 28px;
	flex: 1;
}

.mit-card__body > * {
	margin: 0 !important;
}

.mit-card__body h3 {
	font-size: var(--wp--preset--font-size--large);
}

.mit-card__body p {
	font-size: var(--wp--preset--font-size--medium);
	line-height: 1.6;
}

/* Kennisbankkaart (query loop) */
.mit-card__media {
	position: relative;
}

.mit-card__image {
	margin: 0;
}

.mit-card__image img {
	display: block;
	width: 100%;
	object-fit: cover;
}

.mit-card__image--empty {
	aspect-ratio: 3 / 2;
	background: var(--wp--preset--color--placeholder);
}

.mit-card__type {
	position: absolute;
	top: 0;
	left: 0;
	margin: 0;
	padding: 6px 10px;
	background: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--gold);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
}

.mit-card__topic {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--slate);
}

.mit-card__topic a {
	color: var(--wp--preset--color--slate);
}

.mit-card__title {
	font-size: 19px !important;
	font-weight: 800;
	line-height: 1.35;
}

.mit-card__title a {
	text-decoration: none;
}

.mit-cards .wp-block-post-template {
	gap: 28px;
}

/* ---------- Testimonials ---------- */

.mit-quote {
	display: flex;
	flex-direction: column;
	gap: 20px;
	height: 100%;
}

.mit-quote > * {
	margin: 0 !important;
}

.mit-quote__text {
	color: var(--wp--preset--color--white) !important;
	font-size: 19px;
	font-style: italic;
	font-weight: 400;
	line-height: 1.6;
}

.mit-quote__person {
	margin-top: auto !important;
}

.mit-quote__person .wp-block-image {
	margin: 0;
	flex-shrink: 0;
}

.mit-quote__name {
	color: var(--wp--preset--color--white) !important;
	font-size: 15px;
	font-weight: 700;
	margin: 0;
}

.mit-quote__role {
	color: var(--wp--preset--color--on-navy-muted) !important;
	font-size: 14px;
	margin: 0;
}

/* ---------- Werkwijze ---------- */

.mit-step > * {
	margin-block: 0;
}

.mit-step {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.mit-step-number {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--navy) !important;
	font-size: 26px;
	font-weight: 800;
	line-height: 1;
}

/* ---------- Soorten ---------- */

.mit-species h3 {
	font-weight: 800;
}

@media (max-width: 781px) {
	.mit-reverse-mobile {
		flex-direction: column-reverse;
	}
}

/* ---------- Logo's ---------- */

.mit-logos {
	gap: 20px;
}

.mit-logos .wp-block-image {
	margin: 0;
}

/* ---------- Kennisbank ---------- */

.mit-kb-hero h1 {
	font-size: clamp(28px, 6vw, 52px);
	line-height: 1.1;
}

h1,
h2 {
	overflow-wrap: break-word;
	hyphens: auto;
}

.mit-kb-hero .wp-block-search {
	width: 100%;
	max-width: 620px;
	margin-inline: auto;
	margin-top: 12px;
}

.mit-search .wp-block-search__inside-wrapper {
	padding: 0;
	border: 0;
	background: var(--wp--preset--color--white);
}

.mit-search .wp-block-search__input {
	min-height: 60px;
	padding: 18px 20px;
	border: 0;
	border-radius: 0;
	font-family: inherit;
	font-size: 17px;
	color: var(--wp--preset--color--navy);
}

.mit-search .wp-block-search__button {
	margin: 0;
	width: 64px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--wp--preset--color--gold);
	color: var(--wp--preset--color--navy);
}

.mit-search .wp-block-search__button svg {
	width: 28px;
	height: 28px;
	fill: currentColor;
}

.mit-kb__sidebar {
	min-width: 0;
}

.mit-filter-title {
	margin: 0;
	padding-bottom: 12px;
	border-bottom: 3px solid var(--wp--preset--color--gold);
	color: var(--wp--preset--color--navy);
	font-size: var(--wp--preset--font-size--x-small);
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.mit-filter-all,
.mit-topic-filter {
	margin: 0 !important;
}

.mit-kb__sidebar .mit-filter-all {
	margin-top: 16px !important;
}

.mit-topic-filter {
	list-style: none;
	padding: 0;
}

.mit-filter-all a,
.mit-topic-filter li a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 40px;
	color: var(--wp--preset--color--navy);
	font-size: 16px;
	font-weight: 400;
	text-decoration: none;
}

.mit-filter-all a::before,
.mit-topic-filter li a::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	border: 2px solid var(--wp--preset--color--slate);
	box-sizing: border-box;
	background: var(--wp--preset--color--white) no-repeat center / 14px;
}

.mit-filter-all a:hover,
.mit-topic-filter li a:hover {
	color: var(--wp--preset--color--navy);
	text-decoration: none;
}

.mit-filter-all a:hover::before,
.mit-topic-filter li a:hover::before {
	border-color: var(--wp--preset--color--navy);
}

.blog .mit-filter-all a::before,
.mit-topic-filter li.current-cat > a::before {
	border-color: var(--wp--preset--color--navy);
	background-color: var(--wp--preset--color--navy);
	background-image: url("../images/vink-wit.svg");
}

.blog .mit-filter-all a,
.mit-topic-filter li.current-cat > a {
	color: var(--wp--preset--color--navy);
	font-weight: 700;
}

.mit-topic-filter .children {
	list-style: none;
	padding-left: 28px;
}

@media (max-width: 781px) {
	.mit-kb {
		gap: 24px !important;
	}

	.mit-kb__sidebar {
		flex-basis: 100% !important;
	}

	.mit-topic-filter {
		display: flex;
		flex-wrap: wrap;
		gap: 0 20px;
	}
}

/* Paginering */
.mit-cards .wp-block-query-pagination {
	margin-top: 40px;
	gap: 8px;
	font-size: 15px;
	font-weight: 700;
}

.mit-cards .wp-block-query-pagination-numbers {
	display: flex;
	gap: 8px;
}

.mit-cards .wp-block-query-pagination .page-numbers {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	border: 1px solid var(--wp--preset--color--mid-gray);
	color: var(--wp--preset--color--navy);
	text-decoration: none;
}

.mit-cards .wp-block-query-pagination .page-numbers.current {
	background: var(--wp--preset--color--navy);
	border-color: var(--wp--preset--color--navy);
	color: var(--wp--preset--color--white);
}

.mit-cards .wp-block-query-pagination .page-numbers.dots {
	border: 0;
	min-width: auto;
	color: var(--wp--preset--color--muted);
}

.mit-cards .wp-block-query-pagination-previous,
.mit-cards .wp-block-query-pagination-next {
	display: flex;
	align-items: center;
	height: 44px;
	padding: 0 12px;
	text-decoration: none;
}

.mit-empty {
	padding: 40px;
	background: var(--wp--preset--color--light-gray);
	text-align: center;
	font-size: 18px;
}

/* Inline formulier (placeholder voor HubSpot) */
.mit-inline-form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px;
}

.mit-inline-form label {
	display: flex;
	flex: 1 1 260px;
	flex-direction: column;
	gap: 8px;
	color: var(--wp--preset--color--navy);
	font-size: 15px;
	font-weight: 600;
}

.mit-inline-form input {
	padding: 16px;
	border: 1px solid #8a9aab;
	border-radius: 0;
	font-family: inherit;
	font-size: 17px;
	color: var(--wp--preset--color--navy);
	background: var(--wp--preset--color--white);
}

.mit-inline-form button {
	padding: 18px 28px;
	border: 0;
	border-radius: 0;
	background: var(--wp--preset--color--green);
	color: var(--wp--preset--color--navy);
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	cursor: pointer;
}

.mit-inline-form button:hover {
	background: var(--wp--preset--color--gold);
}

/* ---------- Artikel ---------- */

.mit-article-hero .wp-block-post-terms a {
	color: var(--wp--preset--color--gold);
}

.mit-article-hero .wp-block-post-title {
	font-size: clamp(32px, 4.5vw, 48px);
	line-height: 1.12;
}

.mit-article .wp-block-post-content > * + * {
	margin-block-start: 1.2em;
}

.mit-article .wp-block-post-content :where(h2) {
	font-size: var(--wp--preset--font-size--x-large);
	margin-block-start: 1.8em;
}

.mit-article .wp-block-post-content :where(h3) {
	margin-block-start: 1.6em;
}

.mit-article .wp-block-post-content a {
	text-decoration: underline;
}

/* ---------- Footer ---------- */

.mit-footer {
	font-size: 15px;
}

.mit-footer p {
	margin: 0;
}

.mit-footer a {
	color: var(--wp--preset--color--gold);
	text-decoration: none;
}

.mit-footer .mit-wordmark a,
.mit-footer .mit-wordmark a:hover {
	color: var(--wp--preset--color--white);
	text-decoration: none;
}

.mit-footer a:hover {
	color: var(--wp--preset--color--white);
	text-decoration: underline;
}

.mit-footer__bottom {
	border-top: 1px solid #23415a;
	padding-top: 24px;
	font-size: 14px;
	color: var(--wp--preset--color--on-navy-muted);
}

.mit-footer__bottom a {
	color: var(--wp--preset--color--on-navy-muted);
	text-decoration: underline;
}

.mit-footer__links {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}