/* ----------------------------------------------------------------
   Naam-blok in hero: standaard verborgen, alleen tonen op mobiel
---------------------------------------------------------------- */
.tn-hero-brand-mobile {
	display: none;
}

/* ----------------------------------------------------------------
   Case-6 layout: tekst-blok + foto-grid los van elkaar
   - Tekst-blok blijft op vaste plek (zelfde als andere cases)
   - Grid is daaronder, 3 koloms, blijft binnen container
---------------------------------------------------------------- */
.tn-case-grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 1.25rem;
	margin-top: 1rem;
}
.tn-case-grid > .tn-before-after:nth-child(1) { grid-column: 1; grid-row: 1; }
.tn-case-grid > .tn-before-after:nth-child(2) { grid-column: 2; grid-row: 1; }
.tn-case-grid > .tn-before-after:nth-child(3) { grid-column: 1; grid-row: 2; }
.tn-case-grid > .tn-before-after:nth-child(4) { grid-column: 2; grid-row: 2; }
.tn-case-grid > .tn-before-after:nth-child(5) { grid-column: 1; grid-row: 3; }
.tn-case-grid > .tn-before-after:nth-child(6) { grid-column: 2; grid-row: 3; }
.tn-case-grid > .tn-before-after:nth-child(7) { grid-column: 3; grid-row: 3; }
.tn-case-grid > .tn-before-after img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 16px;
}
@media (max-width: 781px) {
	.tn-case-grid {
		grid-template-columns: 1fr;
	}
	.tn-case-grid > .tn-before-after:nth-child(n) {
		grid-column: 1;
		grid-row: auto;
	}
}
.tn-case-grid > .tn-before-after:nth-child(1) { grid-column: 1; grid-row: 1; }
.tn-case-grid > .tn-before-after:nth-child(2) { grid-column: 2; grid-row: 1; }
.tn-case-grid > .tn-before-after:nth-child(3) { grid-column: 1; grid-row: 2; }
.tn-case-grid > .tn-before-after:nth-child(4) { grid-column: 2; grid-row: 2; }
.tn-case-grid > .tn-before-after:nth-child(5) { grid-column: 1; grid-row: 3; }
.tn-case-grid > .tn-before-after:nth-child(6) { grid-column: 2; grid-row: 3; }
.tn-case-grid > .tn-before-after:nth-child(7) { grid-column: 3; grid-row: 3; }
.tn-case-grid > .tn-before-after img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 16px;
}
@media (max-width: 781px) {
	.tn-case-grid {
		grid-template-columns: 1fr;
		width: 100%;
		margin-left: 0;
		transform: none;
	}
	.tn-case-grid > .tn-before-after:nth-child(n) {
		grid-column: 1;
		grid-row: auto;
	}
}
.tn-case-grid > .tn-before-after:nth-child(1) { grid-column: 1; grid-row: 1; }
.tn-case-grid > .tn-before-after:nth-child(2) { grid-column: 2; grid-row: 1; }
.tn-case-grid > .tn-before-after:nth-child(3) { grid-column: 1; grid-row: 2; }
.tn-case-grid > .tn-before-after:nth-child(4) { grid-column: 2; grid-row: 2; }
.tn-case-grid > .tn-before-after:nth-child(5) { grid-column: 1; grid-row: 3; }
.tn-case-grid > .tn-before-after:nth-child(6) { grid-column: 2; grid-row: 3; }
.tn-case-grid > .tn-before-after:nth-child(7) { grid-column: 3; grid-row: 3; }
.tn-case-grid > .tn-before-after img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 16px;
}
@media (max-width: 781px) {
	.tn-case-grid {
		grid-template-columns: 1fr;
		width: 100%;
		margin-left: 0;
		transform: none;
	}
	.tn-case-grid > .tn-before-after:nth-child(n) {
		grid-column: 1;
		grid-row: auto;
	}
}

/* ----------------------------------------------------------------
   Afbeelding-bescherming (slepen uitgeschakeld via CSS,
   rechtermuisklik wordt geblokkeerd door image-protect.js)
---------------------------------------------------------------- */
.tn-before-after img,
.tn-case img,
.tn-hero-cover img,
.wp-block-cover img {
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	-webkit-user-drag: none;
	-khtml-user-drag: none;
	-moz-user-drag: none;
	-o-user-drag: none;
	user-drag: none;
}
.tn-before-after,
.tn-case .wp-block-image {
	-webkit-touch-callout: none;
}

/* ----------------------------------------------------------------
   Header logo + naam
---------------------------------------------------------------- */
/* Header-achtergrond met zachte blauwe gradient onderaan
   die naadloos overgaat in de hero (zelfde eindkleur als hero-start) */
.wp-block-template-part[data-area="header"],
header.wp-block-template-part {
	background: linear-gradient(180deg,
		#FFFFFF 0%,
		#FFFFFF 55%,
		#EFF6FB 75%,
		#DCEAF5 100%);
	margin-bottom: -1px;
}

/* Witte balk tussen header en hero verwijderen */
.wp-site-blocks > main,
main.wp-block-group {
	margin-top: 0 !important;
}
.tn-hero-cover {
	margin-top: -1px !important;
	position: relative;
	z-index: 1;
}

/* Header navigatie-links iets groter */
.wp-block-template-part[data-area="header"] .wp-block-navigation-item__content,
header.wp-block-template-part .wp-block-navigation-item__content {
	font-size: 1.125rem !important;
	font-weight: 500 !important;
}
/* Maak Afspraak knop iets groter */
.wp-block-template-part[data-area="header"] .tn-header-cta .wp-block-button__link,
header.wp-block-template-part .tn-header-cta .wp-block-button__link {
	font-size: 1.0625rem !important;
	padding: 0.75rem 1.5rem !important;
}
.tn-header-logo {
	margin: 0 !important;
	line-height: 0;
}
.tn-header-logo img {
	height: 210px;
	width: auto;
	display: block;
	box-shadow: none !important;
	border-radius: 0 !important;
	transition: transform 0.2s ease;
}
.tn-header-logo a:hover img {
	transform: scale(1.03);
}

/* Logo + naam-tekst naast elkaar (links in de header) */
.tn-header-brand {
	display: flex;
	align-items: center;
	gap: 1.25rem;
}

/* Op echte desktop (groot scherm): brand-blok meer naar links */
@media (min-width: 1201px) {
	.tn-header-brand {
		margin-left: -2.5rem;
	}
}
.tn-header-brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}
.tn-header-brand-text .tn-brand-overline {
	font-family: Inter, Helvetica, Arial, sans-serif;
	font-size: 0.6875rem;
	font-weight: 500;
	color: #2E6BA8;
	letter-spacing: 0.25em;
	text-transform: uppercase;
}
.tn-header-brand-text .tn-brand-name {
	font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
	font-size: 2rem;
	font-weight: 500;
	color: #0A1F3A;
	letter-spacing: 0.01em;
	margin: 0.25rem 0;
}
.tn-header-brand-text .tn-brand-divider {
	width: 100%;
	max-width: 220px;
	height: 1px;
	background: #3B82C4;
	margin: 0.15rem 0 0.4rem 0;
}
.tn-header-brand-text .tn-brand-underline {
	font-family: Inter, Helvetica, Arial, sans-serif;
	font-size: 0.625rem;
	font-weight: 400;
	color: #516B82;
	letter-spacing: 0.3em;
	text-transform: uppercase;
}

@media (max-width: 781px) {
	.tn-header-logo img {
		height: 80px;
	}
	/* Op mobiel: alleen logo, geen naam-tekst (anders past het niet) */
	.tn-header-brand-text {
		display: none;
	}
}

/* ----------------------------------------------------------------
   Tandarts Nawabi — custom front-end styles
   ---------------------------------------------------------------- */

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

.wp-block-template-part[data-area="header"] {
	border-bottom: 1px solid var(--wp--preset--color--border);
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	position: sticky;
	top: 0;
	z-index: 100;
}

/* ----------------------------------------------------------------
   Hero — Clean & medisch design
---------------------------------------------------------------- */
.tn-hero-cover {
	position: relative;
	overflow: hidden;
}

/* Foto links (haar gezicht zit aan de linkerkant) + gradient die naar rechts vervaagt */
.tn-hero-cover .wp-block-cover__background {
	background-image:
		linear-gradient(90deg,
			rgba(220, 234, 245, 0) 0%,
			rgba(220, 234, 245, 0) 30%,
			rgba(184, 212, 232, 0.85) 50%,
			rgba(184, 212, 232, 1) 65%),
		url('../images/hero-patient.jpg'),
		linear-gradient(180deg, #DCEAF5 0%, #B8D4E8 100%) !important;
	background-size: 100% 100%, cover, 100% 100%;
	background-position: center, left center, center;
	background-repeat: no-repeat, no-repeat, no-repeat;
}

/* Op mobiel: geen foto, alleen blauwe gradient */
@media (max-width: 781px) {
	.tn-hero-cover .wp-block-cover__background {
		background-image:
			linear-gradient(180deg, #DCEAF5 0%, #B8D4E8 100%) !important;
		background-size: 100% 100% !important;
		background-position: center !important;
		background-repeat: no-repeat !important;
	}

	/* Naam-blok in hero — alleen zichtbaar op mobiel */
	.tn-hero-brand-mobile {
		display: flex !important;
		flex-direction: column;
		align-items: center;
		gap: 0.15rem;
		margin: 1.25rem auto 0.5rem auto;
		text-align: center;
		line-height: 1.2;
	}
	.tn-hero-brand-mobile .tn-brand-overline {
		font-family: Inter, Helvetica, Arial, sans-serif;
		font-size: 0.6875rem;
		font-weight: 500;
		color: #2E6BA8;
		letter-spacing: 0.25em;
		text-transform: uppercase;
	}
	.tn-hero-brand-mobile .tn-brand-name {
		font-family: "Cormorant Garamond", "Playfair Display", Georgia, serif;
		font-size: 1.75rem;
		font-weight: 500;
		color: #0A1F3A;
		letter-spacing: 0.01em;
		margin: 0.2rem 0;
	}
	.tn-hero-brand-mobile .tn-brand-divider {
		width: 140px;
		height: 1px;
		background: #3B82C4;
		margin: 0.1rem 0 0.3rem 0;
	}
	.tn-hero-brand-mobile .tn-brand-underline {
		font-family: Inter, Helvetica, Arial, sans-serif;
		font-size: 0.625rem;
		font-weight: 400;
		color: #516B82;
		letter-spacing: 0.3em;
		text-transform: uppercase;
	}

	/* Stats-balk op mobiel: niet over de knoppen heen, mooie ruimte */
	.tn-stats-wrap {
		margin-top: -1.5rem !important;
		margin-bottom: 2rem !important;
	}
	.tn-stats-card {
		padding: 1.5rem !important;
		box-shadow: 0 12px 32px rgba(15, 42, 71, 0.10) !important;
	}

	/* Hero zelf compacter: passend zonder foto */
	.tn-hero-cover {
		padding-top: 2.5rem !important;
		padding-bottom: 4rem !important;
		min-height: auto !important;
	}

	/* Pill dichter tegen titel */
	.tn-hero-cover .wp-block-cover__inner-container > *:first-child {
		margin-bottom: 0.5rem !important;
	}

	/* Contactformulier knop kleiner op mobiel */
	.tn-submit {
		padding: 0.75rem 1.5rem !important;
		font-size: 0.95rem !important;
		align-self: center !important;
	}

	/* Mobiel menu (overlay als je op ☰ klikt) */
	.wp-block-navigation__responsive-container.is-menu-open {
		background: linear-gradient(180deg, #DCEAF5 0%, #B8D4E8 100%) !important;
		padding: 5rem 2rem 2rem 2rem !important;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
		padding: 1rem 0 !important;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		color: #0A1F3A !important;
		font-size: 1.5rem !important;
		font-weight: 600 !important;
		padding: 1rem 0 !important;
		display: block !important;
		border-bottom: 1px solid rgba(15, 42, 71, 0.1) !important;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover {
		color: #2E6BA8 !important;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		gap: 0 !important;
	}
	/* Sluit-knop (X) duidelijker maken */
	.wp-block-navigation__responsive-container-close,
	.wp-block-navigation__responsive-container-open {
		color: #0A1F3A !important;
	}
}

/* Hero op telefoon-met-desktopversie of tablet portrait
   (smal aspect ratio MAAR breder dan echte mobiel) */
@media (max-aspect-ratio: 1/1) and (min-width: 782px) and (max-width: 1200px) {
	.tn-hero-cover {
		min-height: auto !important;
	}
	.tn-hero-cover .wp-block-cover__background {
		background-image:
			linear-gradient(90deg,
				rgba(220, 234, 245, 0) 0%,
				rgba(220, 234, 245, 0) 30%,
				rgba(184, 212, 232, 0.85) 50%,
				rgba(184, 212, 232, 1) 65%),
			url('../images/hero-patient.jpg'),
			linear-gradient(180deg, #DCEAF5 0%, #B8D4E8 100%) !important;
		background-size: 100% 100%, contain, 100% 100% !important;
		background-position: center, left center, center !important;
		background-repeat: no-repeat, no-repeat, no-repeat !important;
	}
}

/* Subtiele cirkel-decoratie linksboven en rechtsonder */
.tn-hero-cover::before {
	content: "";
	position: absolute;
	top: -180px;
	left: -180px;
	width: 480px;
	height: 480px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(59, 130, 196, 0.12) 0%, rgba(59, 130, 196, 0) 70%);
	pointer-events: none;
	z-index: 1;
}
.tn-hero-cover::after {
	content: "";
	position: absolute;
	bottom: -200px;
	right: -200px;
	width: 540px;
	height: 540px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(59, 130, 196, 0.10) 0%, rgba(59, 130, 196, 0) 70%);
	pointer-events: none;
	z-index: 1;
}
.tn-hero-cover .wp-block-cover__inner-container {
	position: relative;
	z-index: 2;
}

/* Hero op lichte achtergrond — forceer donkere tekstkleuren */
.tn-hero-cover.wp-block-cover,
.tn-hero-cover .wp-block-cover__inner-container {
	color: #0A1F3A !important;
}
.tn-hero-cover .wp-block-cover__inner-container h1[style*="color"],
.tn-hero-cover .wp-block-cover__inner-container h2[style*="color"],
.tn-hero-cover .wp-block-cover__inner-container p[style*="color"] {
	color: unset !important;
}
.tn-hero-cover .wp-block-cover__inner-container h1[style*="#0A1F3A"] {
	color: #0A1F3A !important;
}
.tn-hero-cover .wp-block-cover__inner-container h1 span[style*="#3B82C4"] {
	color: #3B82C4 !important;
}
.tn-hero-cover .wp-block-cover__inner-container p[style*="#1E4E7C"] {
	color: #1E4E7C !important;
}
.tn-hero-cover .wp-block-cover__inner-container p[style*="#2C4865"] {
	color: #2C4865 !important;
}

/* PROFESSIONELE TANDHEELKUNDE pill bovenaan hero — wit met blauwe rand */
.tn-hero-pill {
	display: block;
	width: fit-content;
	background: #FFFFFF;
	border: 1px solid rgba(59, 130, 196, 0.2);
	color: #1E4E7C !important;
	padding: 0.55rem 1.25rem;
	border-radius: 999px;
	margin-left: auto !important;
	margin-right: auto !important;
	margin-bottom: 0.5rem;
	box-shadow: 0 2px 12px rgba(15, 42, 71, 0.06);
}

/* Hero primaire knop (blauw met witte tekst) */
.tn-hero-cover .wp-block-button .wp-block-button__link.has-primary-background-color {
	color: #FFFFFF !important;
	background: #3B82C4 !important;
	box-shadow: 0 4px 16px rgba(46, 107, 168, 0.25);
}
.tn-hero-cover .wp-block-button .wp-block-button__link.has-primary-background-color:hover {
	background: #2E6BA8 !important;
	box-shadow: 0 6px 20px rgba(46, 107, 168, 0.35);
}

/* Hero outline-knop (lichte versie voor de witte hero) */
.tn-hero-cover .tn-hero-outline-light .wp-block-button__link {
	background: #FFFFFF !important;
	color: #3B82C4 !important;
	border: 1.5px solid #3B82C4 !important;
	box-shadow: 0 2px 8px rgba(15, 42, 71, 0.06);
}
.tn-hero-cover .tn-hero-outline-light .wp-block-button__link:hover {
	background: #3B82C4 !important;
	color: #FFFFFF !important;
}

/* ----------------------------------------------------------------
   Stats — drijvende witte kaart over de hero-rand
---------------------------------------------------------------- */
.tn-stats-card {
	box-shadow: 0 12px 40px rgba(15, 42, 71, 0.10);
	border: 1px solid rgba(59, 130, 196, 0.08);
	position: relative;
	z-index: 3;
}



.wp-block-cover .wp-block-button .wp-block-button__link.has-white-background-color {
	color: #2E6BA8 !important;
}

.wp-block-cover .wp-block-button.tn-hero-outline .wp-block-button__link,
.wp-block-cover .tn-hero-outline .wp-block-button__link {
	background: transparent !important;
	color: #FFFFFF !important;
	border: 1.5px solid #FFFFFF !important;
}
.wp-block-cover .wp-block-button.tn-hero-outline .wp-block-button__link:hover,
.wp-block-cover .tn-hero-outline .wp-block-button__link:hover {
	background: #FFFFFF !important;
	color: #2E6BA8 !important;
}

.tn-header-cta .wp-block-button__link {
	color: #FFFFFF !important;
	background: var(--wp--preset--color--primary) !important;
}
.tn-header-cta .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary-dark) !important;
	color: #FFFFFF !important;
}

/* Knoppen — algemeen */
.wp-block-button__link {
	transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
	box-shadow: 0 1px 2px rgba(46, 107, 168, 0.08);
}
.wp-block-button__link:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(59, 130, 196, 0.25);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--primary);
	border: 1.5px solid var(--wp--preset--color--primary);
	box-shadow: none;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: var(--wp--preset--color--primary);
	color: var(--wp--preset--color--white);
}

.tn-header-cta { margin: 0; }
.tn-header-cta .wp-block-button__link {
	box-shadow: 0 2px 8px rgba(59, 130, 196, 0.2);
}

@media (max-width: 781px) {
	.tn-header-cta .wp-block-button__link {
		padding-top: 0.5rem !important;
		padding-bottom: 0.5rem !important;
		padding-left: 1rem !important;
		padding-right: 1rem !important;
		font-size: 0.875rem !important;
	}
}

.wp-block-image img {
	box-shadow: 0 4px 24px rgba(17, 24, 39, 0.08);
}

/* ------- Behandelresultaten — case-kaart ------- */
.tn-case {
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 20px;
	padding: clamp(1.25rem, 3vw, 2.5rem);
	margin-block: 2rem;
}

.tn-case-label {
	display: inline-block;
	background: var(--wp--preset--color--primary-light);
	color: var(--wp--preset--color--primary-dark);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	padding: 0.35rem 0.85rem;
	border-radius: 999px;
	margin-bottom: 0.75rem;
}

.tn-before-after {
	position: relative;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
	border-radius: 16px;
	overflow: hidden;
}
.tn-before-after img {
	transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.tn-before-after:hover {
	transform: translateY(-8px);
	box-shadow: 0 24px 48px rgba(15, 42, 71, 0.18);
}
.tn-before-after:hover img {
	transform: scale(1.04);
}
.tn-before-after::before {
	content: attr(data-label);
	position: absolute;
	top: 14px;
	left: 14px;
	background: rgba(17, 24, 39, 0.85);
	color: #fff;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	z-index: 2;
	backdrop-filter: blur(6px);
}
.tn-before-after::after {
	content: "© Tandarts R. Nawabi";
	position: absolute;
	bottom: 12px;
	right: 14px;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
	z-index: 2;
	pointer-events: none;
}

/* ------- Behandelingen-grid (services) — nieuwe stijl ------- */
/* ----------------------------------------------------------------
   Behandelingen-sectie — lichtblauwe achtergrond met witte kaarten
---------------------------------------------------------------- */
.tn-behandelingen-section {
	position: relative;
	overflow: hidden;
	background:
		url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'><path d='M0,100 C150,40 300,160 600,100 C900,40 1050,160 1200,100' stroke='%232E6BA8' stroke-width='1.5' fill='none' opacity='0.18'/><path d='M0,130 C150,70 300,190 600,130 C900,70 1050,190 1200,130' stroke='%232E6BA8' stroke-width='1.5' fill='none' opacity='0.12'/><path d='M0,70 C150,10 300,130 600,70 C900,10 1050,130 1200,70' stroke='%232E6BA8' stroke-width='1.5' fill='none' opacity='0.10'/></svg>"),
		linear-gradient(180deg, #DCEAF5 0%, #B8D4E8 100%);
	background-size: 100% 320px, 100% 100%;
	background-repeat: repeat, no-repeat;
	background-position: 0 0, center;
	margin-top: 4rem;
}
.tn-behandelingen-section::before {
	content: "";
	position: absolute;
	top: -160px;
	left: -160px;
	width: 440px;
	height: 440px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(59, 130, 196, 0.15) 0%, rgba(59, 130, 196, 0) 70%);
	pointer-events: none;
	z-index: 1;
}
.tn-behandelingen-section::after {
	content: "";
	position: absolute;
	bottom: -180px;
	right: -180px;
	width: 480px;
	height: 480px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(59, 130, 196, 0.10) 0%, rgba(59, 130, 196, 0) 70%);
	pointer-events: none;
	z-index: 1;
}
.tn-behandelingen-section > * {
	position: relative;
	z-index: 2;
}

/* Service-card: witte kaart met afgeronde hoeken + hover-streepje bovenaan */
.tn-service-card {
	background: #FFFFFF;
	border: 1px solid rgba(59, 130, 196, 0.08);
	border-radius: 20px;
	padding: 2.25rem 1.5rem;
	text-align: center;
	transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease, border-color 0.3s ease;
	cursor: pointer;
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 20px rgba(15, 42, 71, 0.06);
}

/* Hover-streepje bovenaan dat van links naar rechts groeit */
.tn-service-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	height: 3px;
	width: 0;
	background: linear-gradient(90deg, #3B82C4 0%, #2E6BA8 100%);
	transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
	border-radius: 0;
}

.tn-service-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 24px 48px rgba(15, 42, 71, 0.14);
	border-color: rgba(59, 130, 196, 0.2);
}

.tn-service-card:hover::before {
	width: 100%;
}

.tn-service-card .wp-block-heading,
.tn-service-card p {
	text-align: center;
}
.tn-service-card .wp-block-heading a {
	color: inherit;
	text-decoration: none;
}
.tn-service-card .wp-block-heading a:hover {
	color: var(--wp--preset--color--primary);
}

/* 3D icoon-bol */
.tn-service-icon {
	width: 80px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0) 45%),
		linear-gradient(145deg, #DCEAF5 0%, #B8D4E8 60%, #93C0DC 100%);
	color: var(--wp--preset--color--primary-dark);
	border-radius: 50%;
	font-size: 1.85rem;
	margin: 0 auto 1.35rem auto;
	line-height: 1;
	box-shadow:
		0 8px 20px rgba(46, 107, 168, 0.20),
		inset 0 -3px 6px rgba(46, 107, 168, 0.15),
		inset 0 3px 6px rgba(255, 255, 255, 0.4);
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.tn-service-card:hover .tn-service-icon {
	transform: scale(1.08);
}

/* ----------------------------------------------------------------
   Contact-sectie — lichtblauwe achtergrond met witte kaart
---------------------------------------------------------------- */
.tn-contact-section {
	position: relative;
	overflow: hidden;
	background: linear-gradient(180deg, #DCEAF5 0%, #B8D4E8 100%);
}
.tn-contact-section::before {
	content: "";
	position: absolute;
	top: -150px;
	right: -150px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(59, 130, 196, 0.18) 0%, rgba(59, 130, 196, 0) 70%);
	pointer-events: none;
	z-index: 1;
}
.tn-contact-section::after {
	content: "";
	position: absolute;
	bottom: -180px;
	left: -180px;
	width: 480px;
	height: 480px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(59, 130, 196, 0.12) 0%, rgba(59, 130, 196, 0) 70%);
	pointer-events: none;
	z-index: 1;
}
.tn-contact-section > * {
	position: relative;
	z-index: 2;
}

/* Witte kaart om het formulier */
.tn-contact-card {
	background: #FFFFFF;
	border-radius: 24px;
	padding: 2.5rem;
	box-shadow: 0 20px 60px rgba(15, 42, 71, 0.12);
	border: 1px solid rgba(59, 130, 196, 0.08);
}

@media (max-width: 781px) {
	.tn-contact-card {
		padding: 1.5rem;
		border-radius: 18px;
	}
}

/* Formulier zelf zonder eigen kader — de kaart eromheen heeft die al */
.tn-contact-card .tn-contact-form {
	border: none;
	padding: 0;
	box-shadow: none;
	background: transparent;
}

/* ----------------------------------------------------------------
   Contactformulier
---------------------------------------------------------------- */
.tn-contact-form-wrap {
	max-width: 560px;
	margin: 0 auto;
}

.tn-contact-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	background: var(--wp--preset--color--white);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: 20px;
	padding: clamp(1.5rem, 4vw, 2.5rem);
}

.tn-field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.tn-field label {
	font-weight: 600;
	font-size: 0.9375rem;
	color: var(--wp--preset--color--text);
}

.tn-field input,
.tn-field textarea {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
	color: var(--wp--preset--color--text);
	background: var(--wp--preset--color--off-white);
	border: 1.5px solid var(--wp--preset--color--border);
	border-radius: 12px;
	padding: 0.85rem 1rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.tn-field input:focus,
.tn-field textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--white);
	box-shadow: 0 0 0 4px rgba(59, 130, 196, 0.12);
}

.tn-field textarea {
	resize: vertical;
	min-height: 140px;
}

.tn-submit {
	align-self: flex-start;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.5;
	color: #fff !important;
	background: var(--wp--preset--color--primary);
	border: none;
	border-radius: 999px;
	padding: 0.667em 1.333em;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	box-shadow: 0 1px 2px rgba(46, 107, 168, 0.08);
}
.tn-submit:hover {
	background: var(--wp--preset--color--primary-dark);
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(59, 130, 196, 0.25);
}
.tn-submit:focus-visible {
	outline: 3px solid rgba(59, 130, 196, 0.4);
	outline-offset: 3px;
}

.tn-contact-success,
.tn-contact-error {
	border-radius: 12px;
	padding: 1rem 1.25rem;
	margin-bottom: 1rem;
	font-size: 0.9375rem;
	line-height: 1.5;
}
.tn-contact-success {
	background: #ECFDF5;
	color: #065F46;
	border: 1px solid #A7F3D0;
}
.tn-contact-success strong { display: block; margin-bottom: 0.25rem; }
.tn-contact-error {
	background: #FEF2F2;
	color: #991B1B;
	border: 1px solid #FECACA;
}

.tn-honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

html { scroll-behavior: smooth; }
:target { scroll-margin-top: 90px; }

.wp-block-post-title {
	margin-bottom: 1.5rem;
}

a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 3px solid rgba(59, 130, 196, 0.4);
	outline-offset: 3px;
}
