/*
Theme Name: InStrafrecht
Theme URI: https://instrafrecht.nl
Author: Richard van der Meer
Author URI: https://delaque.nl/
Description: Thema voor de website van InStrafrecht
Requires at least: 6.5
Tested up to: 6.5
Requires PHP: 8.1
Version: 1.0
Text Domain: instrafrecht

InStrafrecht, (C) 2024 deLaque.nl
*/

:root {
	--theme-color-1: #B88D3C;
	--theme-color-1-rgb: 184 141 60;
	--theme-color-2: #000000;
	--theme-color-2-rgb: 0 0 0;
	--theme-color-3: #fbdba1;
	--theme-color-3-rgb: 251 219 161;
	--theme-color-black: #0c0b0b;
	--theme-color-black-rgb: 12 11 11;
	--theme-color-white: #ffffff;
	--theme-color-white-rgb: 255 255 255;

	--theme-color-title: var(--theme-color-2);
	--theme-color-title-gradient: linear-gradient(to top, var(--theme-color-1), var(--theme-color-3));
	--theme-color-button-gradient: linear-gradient(to right, var(--theme-color-1), var(--theme-color-3));
	--theme-color-button-text-gradient: var(--theme-color-2);

	--theme-font-size-default: 18px;
	--theme-font-size-small: 15px;
	--theme-font-size-xsmall: 14px;

	--fontsize-title-preset-1: 40px;
	--fontsize-title-preset-2: 32px;
	--fontsize-title-preset-3: 24px;
	--fontsize-title-preset-4: 20px;
	--fontsize-title-preset-5: 17px;
	--fontsize-title-preset-6: 15px;

	--theme-title-gap: 10px;
}

@property --gradient-start-color {
	syntax: '<color>';
	initial-value: transparent;
	inherits: false;
}

@property --gradient-end-color {
	syntax: '<color>';
	initial-value: transparent;
	inherits: false;
}

body {

}

body:not(.home) {
	padding-top: calc(var(--header-height) + var(--language-bar-height, 0px));
}

.wp-site-blocks :is(h1, h2, h3, h4, h5, h6) {
	line-height: 1.2;
	margin-block-start: 0;
	margin-block-end: 1rem;
	color: var(--theme-color-title);
}

.wp-site-blocks :is(h3, h4, h5, h6) {
	text-transform: none;
}

h1 {
	font-size: var(--fontsize-title-preset-1);
}

h2 {
	font-size: var(--fontsize-title-preset-2);
}

h3 {
	font-size: var(--fontsize-title-preset-3);
}

h4 {
	font-size: var(--fontsize-title-preset-4);
}

h5 {
	font-size: var(--fontsize-title-preset-5);
}

h6 {
	font-size: var(--fontsize-title-preset-6);
}

.wp-block-navigation {
	&.wp-block-navigation__container {
		gap: 2rem;

		a:hover {
			text-decoration: underline;
		}
	}

	.wp-block-navigation__responsive-container-content {
		gap: 2rem;
	}
}

.wp-site-blocks {
	display: grid;
	grid-template: 'header' 'content' 'footer';
	position: relative;
}

header.wp-block-template-part {
	position: fixed;
	top: var(--language-bar-offset, 0px);
	grid-area: header;
	width: 100%;
	z-index: 40;

	&::after {
		animation: solidHeaderBackgroundGradient linear both;
		animation-range: 0 10vh;
		animation-timeline: scroll();
		background: var(--theme-color-white);
		border-bottom: .125rem solid transparent;
		content: '';
		height: 100%;
		left: 0;
		position: absolute;
		top: 0;
		width: 100%;
		z-index: -1;
	}


	> div {
		max-width: calc(var(--wp--style--global--wide-size) - 2rem);
		left: 50%;
		transform: translateX(-50%);
	}

	.wp-block-site-logo {
		animation: logoHeaderSize linear both;
		animation-timeline: scroll();
		animation-range: 0 10vh;
		width: clamp(100px, 25vw, 400px);

		@media (width < 600px) {
			animation: logoHeaderSizeMobile linear both;
			animation-timeline: scroll();
			animation-range: 0 10vh;
			width: clamp(100px, 50vw, 400px);
		}
	}
}

/* Match the urgent-call action to the unshadowed site button style. */
header.wp-block-template-part .wp-social-link-phone {
	background-color: var(--theme-color-white) !important;
	border: 1px solid var(--theme-color-black);
	border-radius: 0 !important;
	box-shadow: none !important;
	transition: background-color 100ms linear, border-color 100ms linear;
}

header.wp-block-template-part .wp-social-link-phone .wp-block-social-link-anchor {
	border-radius: 0 !important;
	box-shadow: none !important;
	color: var(--theme-color-black) !important;
}

header.wp-block-template-part .wp-social-link-phone:is(:hover, :focus-within) {
	background-color: var(--theme-color-black) !important;
	border-color: var(--theme-color-black);
}

header.wp-block-template-part .wp-social-link-phone:is(:hover, :focus-within) .wp-block-social-link-anchor {
	color: var(--theme-color-white) !important;
}

/*
 * The full navigation needs more horizontal room than compact laptops offer.
 * Switching to the existing accessible menu overlay keeps the header to one
 * line instead of putting a navigation row across the hero photograph.
 */
@media (width < 1150px) {
	header.wp-block-template-part > .wp-block-group > .wp-block-group {
		align-items: center;
		flex-wrap: nowrap;
		padding-block: .75rem !important;
	}

	header.wp-block-template-part .wp-block-site-logo {
		animation: none;
		width: clamp(130px, 22vw, 210px);
	}

	header.wp-block-template-part nav {
		margin-left: auto;
	}

	header.wp-block-template-part .wp-block-navigation__responsive-container-open {
		display: flex !important;
	}

	header.wp-block-template-part .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none !important;
	}

	header.wp-block-template-part .wp-block-navigation__responsive-container.is-menu-open {
		display: flex !important;
	}
}

/* On the narrow desktop range, give the urgent call-to-action its own row
   rather than wrapping it into the navigation items. */
@media (1150px <= width < 1220px) {
	header.wp-block-template-part > .wp-block-group > .wp-block-group {
		align-items: center;
		flex-wrap: nowrap;
	}

	header.wp-block-template-part .wp-block-site-logo {
		width: clamp(200px, 22vw, 260px);
	}

	header.wp-block-template-part .wp-block-navigation__responsive-container-content {
		gap: .5rem;
	}

	header.wp-block-template-part .wp-block-navigation__container {
		column-gap: 1.15rem;
		flex-wrap: wrap;
		justify-content: flex-end;
		row-gap: 0;
	}

	header.wp-block-template-part .wp-block-navigation__container > li:last-child {
		display: flex;
		flex-basis: 100%;
		justify-content: flex-end;
		margin-bottom: .9rem;
		order: -1;
	}
}

.language-bar {
	background: rgb(0 0 0 / 85%);
	color: var(--theme-color-white);
	font-size: 15px;
	line-height: 1.4;
	padding-block: .45rem;
	position: absolute;
	top: 0;
	width: 100%;
	z-index: 41;
}

.language-bar__inner {
	align-items: center;
	display: flex;
	gap: 1rem;
	justify-content: space-between;
	margin-inline: auto;
	max-width: var(--wp--style--global--wide-size);
	padding-inline: var(--wp--preset--spacing--30);
}

.language-bar p {
	margin: 0;
}

.language-switcher ul {
	align-items: center;
	display: flex;
	gap: .25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.language-switcher a {
	color: currentColor;
	display: inline-flex;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	opacity: .7;
	padding: .25rem .35rem;
	text-decoration: none;
	text-transform: uppercase;
}

.language-switcher a:hover,
.language-switcher .current-lang a {
	opacity: 1;
	text-decoration: underline;
	text-underline-offset: .2em;
}

body:not(.home) .language-bar {
	top: calc(-1 * (var(--header-height) + var(--language-bar-height, 0px)));
}

@media (width < 600px) {
	.language-bar {
		font-size: 13px;
		line-height: 1.35;
	}

	.language-bar__inner {
		align-items: flex-start;
		flex-direction: column;
		gap: .35rem;
	}
}


@media (width < 1600px) {
	.wp-block-site-logo,
	header nav {
		margin-left: 1rem !important;
	}

	main > .entry-content > *:not(.wp-block-media-text) {
		padding-left: 1.375em;
		padding-right: 1.375em;
	}
}

:where(.wp-block-group.has-background) {
	padding-left: 1.375em;
	padding-right: 1.375em;
}

@keyframes headerTextFadeIn {
	from {
		opacity: 0;
		translate: 0 0.4rem;
	}
	to {
		opacity: 1;
		translate: 0 0;
	}
}

@keyframes solidHeaderBackgroundGradient {
	0% {
		opacity: 85%;
		border-bottom-color: transparent;
	}
	90% {
		border-bottom-color: transparent;
	}
	100% {
		opacity: 100%;
		border-bottom-color: var(--theme-color-black);
	}
}

@keyframes logoHeaderSize {
	0% {
		width: clamp(100px, 25vw, 400px);
	}
	100% {
		width: clamp(100px, 20vw, 200px);
	}
}

@keyframes logoHeaderSizeMobile {
	0% {
		width: clamp(100px, 50vw, 400px);
	}
	100% {
		width: clamp(100px, 35vw, 250px);
	}
}

.homepage-header {
	margin: 0 auto;
	grid-area: header;
	border-bottom: .675rem solid var(--wp--preset--color--theme-1);
	width: 100%;

	.wp-block-cover__background {
		display: none;
	}

	.wp-block-cover__inner-container {
		align-items: flex-start;
		align-self: flex-end;
		display: flex;
		flex-direction: column;
		justify-content: flex-start;
		justify-self: flex-start;
		margin-bottom: 5vh;
		margin-left: 5vw;
		text-align: left;
		gap: 1rem;

		> p {
			font-family: var(--wp--preset--font-family--sora);
			font-size: var(--fontsize-title-preset-1);
			display: inline-block;
			margin: 0;
		}

		> p:nth-child(1) {
			background-color: var(--theme-color-white);
			color: var(--theme-color-black);
			padding: 0.1em 0.4em;
			animation: headerTextFadeIn 0.8s ease-out both;
		}

		> p:nth-child(2) {
			background-color: var(--theme-color-1);
			color: var(--theme-color-black);
			padding: 0.1em 0.4em;
			animation: headerTextFadeIn 0.8s ease-out 0.8s both;
		}

		@media (width < 600px) {
			gap: .5rem;
			margin-bottom: 4.5rem;
			margin-left: 1.5rem;

			> p {
				font-size: clamp(1.75rem, 8vw, 2rem);
			}
		}

		/* Keep the title clear of the people on compact landscape-height phones. */
		@media (width < 400px) and (height < 675px) {
			gap: .35rem;
			margin-bottom: 3.5rem;

			> p {
				font-size: 1.5rem;
			}
		}
	}

	>.wp-block-cover {
		height: calc(100vh - .75rem);
		object-fit: contain;
		margin: 0 auto;
		text-align: center;
		overflow: hidden;

		img {
			height: 100%;
			width: 100%;
			/* Keep Hilde and Ersen below the fixed navigation on wide screens. */
			object-position: center 60%;
			object-fit: cover;
		}
	}
}

.wp-block-delaque-image-content {
	max-width: 100% !important;
	border-bottom: .675rem solid var(--wp--preset--color--theme-1);
}

.is-layout-grid--persons:where(.is-layout-grid) {
	gap: 2rem;

	@media (width < 768px) {
		grid-template-columns: 1fr !important;
	}
}

.is-layout-grid--persons figure {
	position: relative;
	z-index: 1;
}

.is-layout-grid--persons figure::after {
	content: '';
	display: block;
	width: 100%;
	height: 100%;
	background-color: var(--theme-color-black);
	left: 0;
	position: absolute;
	top: 0;
	z-index: -1;
	transition: left 100ms linear, top 100ms linear;
}

.is-layout-grid--persons figure:hover::after {
	left: .25rem;
	top: .25rem;
}

.is-layout-grid--persons figure img {
	transition: transform 100ms linear;
}

.is-layout-grid--persons figure a:hover img {
	transform: scale(1.05);
}

.is-layout-grid--persons img,
.is-layout-grid--persons figure a {
	display: block;
	overflow: hidden;
}

.wp-block-delaque-image-content__content {
	@media (width < 768px) {
		--wp--style--root--padding-right: 1rem;
		--wp--style--root--padding-left: 1rem;
	}

	@media (width > 600px) {
		padding: 1rem 0 !important
	}

	@media (width > 1024px) {
		padding: 2rem 0 !important
	}
}



.card .card__image img {
	object-fit: cover;
	aspect-ratio: 16 / 9;
	filter: grayscale(1);
	max-width: 100%;
	height: auto;
	object-position: center 20%;
}

.card__legal {
	font-size: var(--theme-font-size-xsmall);
	font-style: italic;
}

.contact {
	list-style: none;
	margin: 0;
	padding: 0 10px;
}

.contact:not(:last-child) {
	margin-bottom: 0;
}

.contact a {
	color: var(--theme-color-white);
	text-decoration: none;
}

.contact a:hover {
	text-decoration: underline;
}

.contact__icon {
	color: var(--theme-color-white);
	max-height: 20px;
	opacity: .6;
}

.contact svg {
	fill: currentColor;
	max-height: 100%;
	max-width: 100%;
}

.contact li {
	align-items: center;
	display: grid;
	grid-template-columns: 20px auto;
	gap: 10px;
	margin-bottom: 10px;
}

footer > .footer {
	--theme-color-title: var(--theme-color-black);

	--fontsize-title-preset-1: clamp(28px, 2.25vw + .75rem, 44px);
	--fontsize-title-preset-2: clamp(24px, 1.5vw + .75rem, 26px);
	--fontsize-title-preset-3: clamp(21px, 1.25vw + .75rem, 23px);
	--fontsize-title-preset-4: clamp(19px, 1vw + .75rem, 21px);
	--fontsize-title-preset-5: clamp(17px, 1vw + .65rem, 19px);
	--fontsize-title-preset-6: clamp(15px, 1vw + .5rem, 17px);

	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' xml:space='preserve' viewBox='0 0 55.3 36.9' preserveAspectRatio='none'%3E%3Cstyle type='text/css'%3E .background-st0 %7B fill: transparent; stroke: rgb(255 255 255 / 25%); stroke-width: 1px; %7D %3C/style%3E%3Cg%3E%3Cpolygon class='background-st0' points='55.3,36.9 40.8,17.6 34.5,9.1 29.9,15.1 33.5,20.1 34.4,19 47.9,36.9 ' vector-effect='non-scaling-stroke' /%3E%3Cpolygon class='background-st0' points='25.4,12.6 31.3,4.8 27.7,0 0,36.9 7.2,36.9 21.7,17.6 31.4,31.2 25,31.2 26.6,29.1 23.1,24 13.2,36.9 42.6,36.9 ' vector-effect='non-scaling-stroke' /%3E%3C/g%3E%3C/svg%3E%0A");
	background-color: var(--theme-color-1);
	background-size: 100vw 50vw;
	background-position: bottom center;
	background-repeat: no-repeat;
	font-size: 14px !important;
	padding-top: 2.5rem;
}

.footer hr {
	width: 100%;
	margin: 0;
}

.footer .footer__logo {
	align-self: center;
	display: none;
	text-align: center;
}

.footer .footer__logo img {
	margin: 0 auto;
	max-width: 300px;
}

.footer a {
	color: var(--theme-color-white);
}

.footer .footer-contact-details {
	margin-block: .85rem 1.25rem;
}

.footer .footer-contact-detail {
	align-items: center;
	display: flex;
	gap: .55em;
	margin-block: .35rem;
}

.footer .footer-contact-detail a {
	color: inherit;
}

.footer .footer-contact-detail::before {
	background-color: currentColor;
	block-size: 1.1em;
	content: "";
	flex: 0 0 1.1em;
	inline-size: 1.1em;
	mask: var(--footer-contact-icon) center / contain no-repeat;
	-webkit-mask: var(--footer-contact-icon) center / contain no-repeat;
}

.footer .footer-contact-detail--location {
	--footer-contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7m0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5'/%3E%3C/svg%3E");
}

.footer .footer-contact-detail--phone {
	--footer-contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6.62 10.79a15.5 15.5 0 0 0 6.59 6.59l2.2-2.2a1 1 0 0 1 1.02-.24c1.12.37 2.31.56 3.53.56a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1C10.61 21 3 13.39 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.22.19 2.41.56 3.53a1 1 0 0 1-.24 1.02z'/%3E%3C/svg%3E");
}

.footer .footer-contact-detail--email {
	--footer-contact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2zm2 .5v.3l7 4.38 7-4.38v-.3zm14 2.65-6.47 4.04a1 1 0 0 1-1.06 0L5 8.15V19h14z'/%3E%3C/svg%3E");
}

.footer .footer-social-media {
	gap: .5rem;
	margin-top: .75rem;
}

.footer .footer-social-media__title {
	color: var(--theme-color-white) !important;
}

.footer .footer-social-media .wp-social-link {
	background-color: transparent !important;
	border: 1px solid currentColor;
	border-radius: 0;
	color: var(--theme-color-white) !important;
}

.footer .footer-social-media .wp-social-link-anchor {
	color: currentColor;
	padding: .45rem .6rem;
}

.footer .footer-social-media .wp-social-link-label {
	font-size: inherit;
}

.footer .footer-social-media .wp-social-link:is(:hover, :focus-within) {
	background-color: var(--theme-color-white) !important;
	color: var(--theme-color-black) !important;
}

footer > .footer .has-small-font-size {
	font-size: 12px !important;
}

.block-editor-iframe__html .footer :is(h1, h2, h3, h4, h5, h6) {
	color: var(--theme-color-black);
}

.background {
	bottom: 0;
	height: 100vh;
	pointer-events: none;
	position: fixed;
	right: 0;
	width: 100vw;
}

.background img {
	height: 100%;
	position: absolute;
	left: 50%;
	object-fit: cover;
	opacity: 0.05;
	transform: translateX(-50%);
	width: 100%;
}

@media screen and (min-width: 768px) {
	:root {
		--cards-grid-template-columns: repeat(2, 1fr);

		--content-padding-x: 20px;

		--theme-title-gap: 20px;

		--footer-grid-template-columns: repeat(3, 1fr);
		--footer-padding-x: 20px;
	}

	.card:not(.card--main):nth-child(1) {
		/* margin-bottom: 10vh; */
	}

	.card:nth-child(2) {
		/* margin-top: 10vh; */
	}

	.footer .footer__logo {
		display: block;
	}

	.footer hr {
		display: none;
	}
}


p > a {
	text-decoration: underline;
	border-bottom: 1px solid transparent;
	transition: border-bottom-width 100ms linear;

	&:hover {
		text-decoration: none;
		border-bottom-color: var(--wp--preset--color--theme-1);
		border-bottom-width: 4px;
	}
}

.has-border-bottom {
	border-bottom: .675rem solid var(--wp--preset--color--theme-1);
}

.has-border-top {
	border-top: .675rem solid var(--wp--preset--color--theme-1);
}

body .wp-site-blocks :where(.wp-element-button, .wp-block-button .wp-block-button__link) {
	background-color: var(--theme-color-white);
	border: 1px solid var(--theme-color-black);
	color: var(--theme-color-black);
	position: relative;
	transition: background-color 100ms linear, color 100ms linear, border-color 100ms linear;
}

/* The offset shadow is opt-in through the “Met schaduw” Button style. */
body .wp-site-blocks :where(.wp-element-button.is-style-with-shadow, .wp-block-button.is-style-with-shadow .wp-block-button__link)::after {
	z-index: -1;
	background-color: var(--theme-color-black);
	content: '';
	position: absolute;
	top: .25rem;
	left: .25rem;
	width: 100%;
	height: 100%;
	transition: top 100ms linear, left 100ms linear;
}

body .wp-site-blocks :where(.wp-element-button.is-style-with-shadow, .wp-block-button.is-style-with-shadow .wp-block-button__link):hover::after {
	top: .5rem;
	left: .5rem;
}

/* Buttons without the offset shadow still need an obvious interactive state. */
body .wp-site-blocks .wp-block-button:not(.is-style-with-shadow) .wp-block-button__link:is(:hover, :focus-visible),
body .wp-site-blocks .pro-deo-calculator .wp-element-button:is(:hover, :focus-visible) {
	background-color: var(--theme-color-black) !important;
	border-color: var(--theme-color-black) !important;
	color: var(--theme-color-white) !important;
}

/* An outlined footer button keeps a visible white outline on a dark fill. */
body .wp-site-blocks footer :where(
	.wp-block-button.is-style-outline .wp-block-button__link,
	.wp-block-button .wp-block-button__link.is-style-outline,
	.wp-block-button .wp-block-button__link.has-theme-2-background-color,
	.wp-block-button .wp-block-button__link.has-theme-4-background-color
) {
	border-color: var(--theme-color-white) !important;
}

/* .wp-block-post-terms {
	background-color: var(--wp--preset--color--theme-4);
	color: var(--theme-color-white);
	padding: 0.25rem .5rem;
	border-radius: 0.5rem;
	display: inline-flex;
	margin-bottom: 1rem;
} */

.wp-block-post-terms a {
	color: var(--theme-color-black);
	text-decoration: none;
	border: 1px solid var(--theme-color-black);
	padding: .25rem;
	border-radius: .25rem;
	font-size: var(--theme-font-size-xsmall);
}

.article-meta {
	display: inline-flex;
	gap: 1rem;
	justify-content: flex-start;
	align-items: center;
	margin-bottom: 1rem;
}

.article-meta > * {
	margin: 0;
}

.article-meta > *:not(:last-child)::after {
	content: '•';
	margin-left: 1rem;
}


.blog-overview :is(h1, h2, h3, h4, h5, h6) {
	text-transform: none;

}


.wp-block-query-pagination-numbers .page-numbers {
	padding: 0 .5rem;
}

ol li {
	padding-left: 1rem;
}

.wp-block-list li {
	padding-left: 1rem;
}

.wp-block-media-text--extended .wp-block-media-text__content {
	padding-top: 2rem;
	padding-bottom: 2rem;
}

/* Accordion */
.wp-block-accordion {
	border-top: 1px solid var(--theme-color-black);
	margin-block: 1.5rem;
}

.wp-block-accordion-item {
	border-bottom: 1px solid var(--theme-color-black);
}

.wp-block-accordion-heading {
	margin: 0 !important;
}

.wp-block-accordion-heading__toggle {
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--theme-color-black);
	cursor: pointer;
	display: flex;
	font-family: var(--wp--preset--font-family--sora);
	font-size: var(--wp--preset--font-size--normal);
	font-weight: 600;
	gap: 1rem;
	justify-content: space-between;
	padding: 1rem 0;
	text-align: left;
	width: 100%;
}

.wp-block-accordion-heading__toggle-icon {
	align-items: center;
	background-color: var(--theme-color-1);
	display: inline-flex;
	flex: 0 0 1.75rem;
	height: 1.75rem;
	justify-content: center;
	line-height: 1;
	margin-right: .25rem;
	transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
	width: 1.75rem;
}

.wp-block-accordion-heading__toggle:hover .wp-block-accordion-heading__toggle-icon,
.wp-block-accordion-heading__toggle:focus-visible .wp-block-accordion-heading__toggle-icon,
.wp-block-accordion-heading__toggle[aria-expanded='true'] .wp-block-accordion-heading__toggle-icon {
	background-color: var(--theme-color-black);
	color: var(--theme-color-white);
}

.wp-block-accordion-heading__toggle[aria-expanded='true'] .wp-block-accordion-heading__toggle-icon {
	transform: rotate(45deg);
}

.wp-block-accordion-heading__toggle {
overflow: visible;
}

.wp-block-accordion-heading__toggle:focus-visible {
	outline: 2px solid var(--theme-color-1);
	outline-offset: -2px;
}

.wp-block-accordion-panel {
	padding-bottom: 1.5rem;
}

.wp-block-accordion-panel[hidden] {
	padding-bottom: 1rem;
}

.wp-block-accordion-panel > :last-child {
	margin-bottom: 0;
}

/* Expertise page */
.expertise-page {
	overflow: hidden;
	max-width: none !important;
	width: 100%;
}

.expertise-hero {
	background: var(--wp--preset--color--light-gray);
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-block: clamp(2.5rem, 6vw, 6rem);
	width: 100%;
}

.expertise-hero__inner,
.expertise-topic-group__inner {
	margin-inline: auto;
	max-width: var(--wp--style--global--content-size);
	padding-inline: 1.375em;
}

.expertise-hero__copy {
	padding-right: clamp(0rem, 4vw, 4.5rem);
}

.expertise-eyebrow,
.expertise-number {
	color: var(--theme-color-1);
	font-family: var(--wp--preset--font-family--sora);
	font-size: var(--wp--preset--font-size--xsmall);
	font-weight: 700;
	letter-spacing: .08em;
	margin-bottom: .75rem;
	text-transform: uppercase;
}

.expertise-hero h1 {
	font-size: clamp(2.4rem, 4.4vw, 5rem);
	line-height: .98;
	margin-bottom: 1.5rem;
}

.expertise-hero__copy > p {
	max-width: 38rem;
}

.expertise-hero__image .wp-block-image,
.expertise-hero__image img {
	height: 100%;
	margin: 0;
	width: 100%;
}

.expertise-hero__image img {
	aspect-ratio: 5 / 4;
	object-fit: cover;
}

.expertise-sections {
	background: var(--wp--preset--color--light-gray);
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-bottom: clamp(3.5rem, 7vw, 7rem);
	width: 100%;
}

.expertise-topic-group {
	border-top: 1px solid var(--theme-color-black);
	padding-block: clamp(2.5rem, 5vw, 5rem);
}

.expertise-topic-group h2,
.expertise-faq h2 {
	font-size: clamp(1.75rem, 2.6vw, 3.25rem);
	line-height: 1.05;
}

.expertise-topic-group__intro p:last-child {
	max-width: 21rem;
}

.expertise-card-grid {
	display: grid;
	gap: .85rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.expertise-card {
	background: var(--theme-color-white);
	border: 1px solid var(--theme-color-black);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 10rem;
	padding: 1.35rem;
	position: relative;
}

.expertise-card::before {
	background: var(--theme-color-1);
	content: '';
	height: 3px;
	left: -1px;
	position: absolute;
	top: -1px;
	width: 3.25rem;
}

.expertise-card h3 {
	font-size: 1rem;
	line-height: 1.15;
	margin: 0 0 .65rem;
}

.expertise-card p {
	font-size: var(--wp--preset--font-size--xsmall);
	line-height: 1.45;
	margin: 0;
}

.expertise-faq {
	padding-block: clamp(3.5rem, 7vw, 7rem);
	padding-inline: 1.375em;
}

.expertise-faq > p {
	max-width: 48rem;
	text-align: left;
}

.expertise-faq .wp-block-accordion {
	/* max-width: 58rem; */
}

@media screen and (max-width: 781px) {
	.expertise-hero__copy {
		padding-right: 0;
	}

	.expertise-hero__image {
		margin-top: 1rem;
	}

	.expertise-topic-group__intro {
		margin-bottom: 1.5rem;
	}
}

@media screen and (max-width: 520px) {
	.expertise-card-grid {
		grid-template-columns: 1fr;
	}

	.expertise-card {
		min-height: 0;
	}
}

/* Tarieven: retain the editable page content, while giving the long-form
 * information a clearer reading rhythm. */
body.page-id-405 .wp-block-post-title {
	margin-bottom: clamp(1.5rem, 3vw, 3rem);
}

body.page-id-405 .wp-block-media-text--extended {
	align-items: start;
	background: var(--wp--preset--color--light-gray);
	margin-bottom: 0;
}

body.page-id-405 .wp-block-media-text--extended .wp-block-media-text__content {
	background: var(--wp--preset--color--light-gray);
	padding: clamp(2rem, 5vw, 5.5rem) clamp(1.5rem, 5vw, 5rem);
}

body.page-id-405 .wp-block-media-text--extended .wp-block-media-text__content > h2 {
	font-size: clamp(2rem, calc(3.5vw - 2px), calc(4rem - 2px));
	line-height: 1.05;
	margin-bottom: 1.5rem;
}

body.page-id-405 .wp-block-media-text--extended .wp-block-media-text__content > h3 {
	border-top: 1px solid var(--theme-color-black);
	font-size: clamp(1.35rem, 2vw, 2rem);
	line-height: 1.15;
	margin-top: clamp(2.5rem, 5vw, 4.5rem) !important;
	padding-top: 1.25rem;
}

body.page-id-405 .wp-block-media-text--extended .wp-block-media-text__content > h4 {
	background: var(--wp--preset--color--light-gold);
	border-left: .35rem solid var(--theme-color-1);
	font-size: 1rem;
	margin-top: 2rem;
	padding: 1rem 1.15rem;
}

body.page-id-405 .wp-block-media-text--extended .wp-block-media-text__content > ul {
	background: var(--theme-color-white);
	border-left: .35rem solid var(--theme-color-1);
	margin: 1.5rem 0 0;
	padding: 1.25rem 1.5rem 1.25rem 2.75rem;
}

body.page-id-405 .wp-block-media-text--extended .wp-block-media-text__content > ul li + li {
	margin-top: .65rem;
}

body.page-id-405 .wp-block-media-text--extended .wp-block-media-text__content .wp-block-buttons {
	margin-top: 1.5rem;
}

@media screen and (min-width: 600px) {
	body.page-id-405 .wp-block-media-text--extended .wp-block-media-text__media {
		align-self: start;
		height: min(42rem, 76vh);
	}

	body.page-id-405 .kosten-row--support .wp-block-media-text__content {
		padding-left: clamp(1.5rem, 5vw, 5rem);
		padding-right: clamp(2rem, 5vw, 5.5rem);
	}
}

/* A long text column must not make its accompanying image unbounded. */
@media screen and (min-width: 600px) {
	.wp-block-media-text.is-image-fill-element .wp-block-media-text__media {
		align-self: start;
		height: min(48rem, 80vh);
	}

	.wp-block-media-text.is-image-fill-element .wp-block-media-text__media img {
		height: 100%;
	}
}

.wp-block-navigation__responsive-container-open {
	flex-direction: column;
	justify-content: center;
	margin-right: 1rem !important;
}

.wp-block-navigation__responsive-container-close svg,
.wp-block-navigation__responsive-container-open svg {
	width: 2rem;
	height: 2rem;
	margin: 0 auto;
}

.wp-block-navigation__responsive-container-open::after {
	content: 'Menu';
}

.wp-block-navigation__responsive-container.has-modal-open {
	--navigation-layout-justification-setting: center;

	color: var(--theme-color-white) !important;
	background-color: var(--theme-color-2) !important;
	font-size: 1.25rem;
	height: 100vh;
	padding: 1rem 2rem !important;
}

.wp-block-navigation__responsive-container.has-modal-open .wp-block-navigation {
	--navigation-layout-justification-setting: flex-start;

	align-self: stretch;
}

.wp-block-navigation__responsive-container-close {
	display: flex;
	align-items: center;
}

/* Core sets line-height: 0 on .wp-social-link a for icon-only links; that
   collapses wrapped visible labels (showLabels) onto a single overlapping
   line once the link is narrower than its text, e.g. in the mobile menu. */
.wp-block-social-link-label {
	line-height: 1.3;
}

/* single-post.html wraps post-content inside extra columns, so it never
   matches the `main > .entry-content > *` inset rule other pages get. */
.single-post-content {
	padding-inline: 1.375em;
}

.mobile-menu-logo {
	max-width: 100%;
	overflow: hidden;

	@media (width > 600px) {
		display: none;
	}
}

.mobile-menu-logo img {
	max-width: 100%;
	overflow: hidden;
}

.blog-overview .wp-block-column:has(.wp-block-post-title) {
	padding-inline: 1rem;
}

/* =========================================
   Contact floating button
   ========================================= */

.contact-floating {
	position: fixed;
	bottom: 1.5rem;
	right: 1.5rem;
	z-index: 200;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0;
}

.contact-floating__btn {
	align-items: center;
	background: var(--theme-color-1);
	border: none;
	border-radius: 2rem;
	color: var(--theme-color-black);
	cursor: pointer;
	display: flex;
	font-family: inherit;
	font-size: var(--theme-font-size-small);
	font-weight: 700;
	gap: .5rem;
	padding: .75rem 1.5rem;
	box-shadow: 0 4px 16px rgb(0 0 0 / 25%);
	transition: transform 100ms ease, box-shadow 100ms ease, border-top-left-radius 180ms ease, border-top-right-radius 180ms ease;
	position: relative;
	z-index: 1;
}

.contact-floating__btn--open {
	border-top-left-radius: 0;
	border-top-right-radius: 0;
}

.contact-floating__btn svg {
	fill: currentColor;
	flex-shrink: 0;
}

.contact-floating__btn:hover {
	box-shadow: 0 6px 24px rgb(0 0 0 / 35%);
}

.contact-floating__popup {
	background: var(--theme-color-1);
	border: none;
	border-radius: 1rem 1rem 0 1rem;
	color: var(--theme-color-black);
	padding: 1.25rem;
	width: min(300px, calc(100vw - 3rem));
	transform-origin: bottom right;
	animation: contactPopupIn 220ms cubic-bezier(.34, 1.56, .64, 1) both;
	z-index: 100;
}

.contact-floating__popup[hidden] {
	display: none;
}

.contact-floating__popup-title {
	font-weight: 700;
	margin-bottom: .5rem !important;
	margin-top: 0 !important;
}

.contact-floating__popup p {
	font-size: var(--theme-font-size-small);
	margin-bottom: .4rem !important;
}

.contact-floating__popup p:last-of-type {
	margin-bottom: 0 !important;
}

.contact-floating__action {
	align-items: center;
	border-radius: .25rem;
	color: var(--theme-color-black);
	display: flex;
	font-size: var(--theme-font-size-small);
	font-weight: 600;
	gap: .5rem;
	margin-top: .75rem;
	padding: .5rem .75rem;
	text-decoration: none;
	transition: background-color 100ms ease, color 100ms ease;
	border: 1px solid currentColor;
}

.contact-floating__action svg {
	fill: currentColor;
	flex-shrink: 0;
}

.contact-floating__action--whatsapp {
	background-color: #25d366;
	border-color: #25d366;
	color: #fff;
}

.contact-floating__action--whatsapp:hover {
	background-color: #128c7e;
	border-color: #128c7e;
}

.contact-floating__action--phone {
	background-color: var(--theme-color-white);
	border-color: var(--theme-color-white);
	color: var(--theme-color-black);
}

.contact-floating__action--phone:hover {
	background-color: var(--theme-color-black);
	border-color: var(--theme-color-black);
	color: var(--theme-color-white);
}

@keyframes contactPopupIn {
	from {
		opacity: 0;
		scale: .7;
	}
	to {
		opacity: 1;
		scale: 1;
	}
}

.border.border--color-primary {
	border: 2px solid transparent;
	border-color: var(--theme-color-1);
}
