/*
Theme Name: Tandzorg
Theme URI: https://www.tandzorgverzekering.nl/
Author: iPublishing
Description: Nuchter, rustig blokthema voor Tandzorgverzekering.nl. Werkt samen met de plugin Tandzorg Vergelijker (vergelijker, vertrouwensbalk, snelstart, auteursbox).
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.0.0
License: GPLv2 or later
Text Domain: tandzorg
*/

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
:where(.wp-site-blocks) :focus-visible { outline: 3px solid var(--wp--preset--color--primary); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

/* ---------- Header ---------- */
.tz-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--wp--preset--color--border); }
.admin-bar .tz-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .tz-header { top: 46px; } }
.tz-brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--wp--preset--color--ink); font-family: var(--wp--preset--font-family--heading); font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; white-space: nowrap; }
.tz-brand:hover { color: var(--wp--preset--color--primary-dark); }
.tz-brand-mark { flex: none; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--wp--preset--color--primary), #14b8a6); display: grid; place-items: center; color: #fff; box-shadow: 0 4px 12px rgba(15,118,110,.25); }
.tz-brand-tld { color: var(--wp--preset--color--primary); }
.tz-header .wp-block-navigation a { text-decoration: none; }
.tz-header .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--primary); }
.tz-header .wp-block-navigation__submenu-container { border: 1px solid var(--wp--preset--color--border) !important; border-radius: 12px; box-shadow: 0 12px 30px rgba(16,48,45,.12); padding: .4rem !important; min-width: 250px !important; }
.tz-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .45rem .7rem !important; border-radius: 8px; }
.tz-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--tint); }
.tz-header-cta .wp-block-button__link { padding: .5rem 1.1rem; font-size: .92rem; white-space: nowrap; }
@media (max-width: 1080px) { .tz-header .tz-header-cta { display: none !important; } }
@media (max-width: 420px) { .tz-brand { font-size: 1rem; } .tz-brand-mark { width: 30px; height: 30px; } }

/* ---------- Hero ---------- */
.tz-hero { background:
	radial-gradient(900px 380px at 85% -10%, rgba(20,184,166,.16), transparent 70%),
	radial-gradient(700px 300px at -10% 110%, rgba(15,118,110,.10), transparent 70%),
	linear-gradient(180deg, var(--wp--preset--color--tint) 0%, #fff 100%);
	border-bottom: 1px solid var(--wp--preset--color--border); }
.tz-eyebrow { display: inline-flex; align-items: center; gap: .45rem; background: #fff; border: 1px solid var(--wp--preset--color--border); color: var(--wp--preset--color--primary-dark); border-radius: 999px; padding: .3rem .8rem; font-size: .82rem; font-weight: 600; margin: 0 0 1rem; }
.tz-eyebrow::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #14b8a6; box-shadow: 0 0 0 3px rgba(20,184,166,.2); }
.tz-hero h1 { margin: 0 0 .75rem; }
.tz-hero-lead { font-size: 1.15rem; color: var(--wp--preset--color--muted); max-width: 36rem; margin: 0; }
.tz-hero-card { background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: 16px; box-shadow: 0 1px 2px rgba(16,48,45,.04), 0 18px 40px rgba(16,48,45,.10); padding: 1.4rem; }
.tz-hero-card .tzv-snelstart { margin: 0; }
.tz-hero-card .tzv-snelstart ul { grid-template-columns: repeat(2, 1fr); }
.tz-hero-card .tzv-snelstart li:last-child { grid-column: 1 / -1; }
.tz-hero .tzv-trust { margin-top: 1.75rem; }
.tz-hero .wp-block-columns { align-items: center !important; gap: 2.5rem; }

/* Pagina-kop */
.tz-pagehead { background: linear-gradient(180deg, var(--wp--preset--color--tint) 0%, #fff 100%); border-bottom: 1px solid var(--wp--preset--color--border); }
.tz-pagehead h1 { margin: .25rem 0 .6rem; }
.tz-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .88rem; color: var(--wp--preset--color--muted); margin: 0; }
.tz-meta > * { margin: 0 !important; }
.tz-meta p { margin: 0; }

/* ---------- Content ---------- */
.wp-block-post-content > p:first-child { font-size: 1.12rem; }
.wp-block-post-content > p:first-child strong { font-weight: 600; }
.wp-block-post-content ul:not([class]), .wp-block-post-content ol:not([class]) { padding-left: 1.3rem; }
.wp-block-post-content li { margin: .3rem 0; }
.wp-block-post-content li::marker { color: var(--wp--preset--color--primary); font-weight: 700; }
.wp-block-post-content h2 { padding-top: .25rem; }
.wp-block-post-content h2 + p { margin-top: .6rem; }

/* Vergelijker en grote elementen breed */
.wp-block-post-content > .tzv-vergelijker {
	--tz-half: min(600px, calc(50vw - 1rem));
	max-width: none !important; width: auto;
	margin-left: calc(50% - var(--tz-half)) !important; margin-right: calc(50% - var(--tz-half)) !important;
}

/* Gewone tabellen in tekst */
.wp-block-post-content > table, .wp-block-post-content .wp-block-table table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--wp--preset--color--border); border-radius: 12px; overflow: hidden; font-size: .95rem; display: table; }
.wp-block-post-content > table caption { caption-side: top; text-align: left; font-size: .85rem; color: var(--wp--preset--color--muted); padding: 0 0 .5rem; }
.wp-block-post-content > table th, .wp-block-post-content > table td { padding: .7rem .9rem; border-bottom: 1px solid var(--wp--preset--color--border); text-align: left; vertical-align: top; }
.wp-block-post-content > table thead th { background: var(--wp--preset--color--tint-2); color: var(--wp--preset--color--primary-deep); font-weight: 700; }
.wp-block-post-content > table tbody tr:last-child td { border-bottom: 0; }
.wp-block-post-content > table tbody tr:nth-child(even) { background: var(--wp--preset--color--surface); }
@media (max-width: 640px) { .wp-block-post-content > table { display: block; overflow-x: auto; } }

/* Inhoudsopgave */
.tz-toc { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); border-radius: 12px; padding: .9rem 1.1rem; font-size: .95rem; }
.tz-toc summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.tz-toc summary::-webkit-details-marker { display: none; }
.tz-toc summary::after { content: "+"; font-size: 1.2rem; color: var(--wp--preset--color--primary); }
.tz-toc[open] summary::after { content: "–"; }
.tz-toc ol { margin: .6rem 0 0; padding-left: 1.2rem; columns: 2 16rem; column-gap: 2rem; }
.tz-toc li { margin: .2rem 0; break-inside: avoid; }
.tz-toc a { text-decoration: none; }
.tz-toc a:hover { text-decoration: underline; }

/* Veelgestelde vragen */
#veelgestelde-vragen ~ h3 { font-size: 1.05rem; margin: 1rem 0 0; padding: 1rem 1.1rem .1rem; background: #fff; border: 1px solid var(--wp--preset--color--border); border-bottom: 0; border-radius: 12px 12px 0 0; }
#veelgestelde-vragen ~ h3 + p { margin: 0; padding: .3rem 1.1rem 1rem; background: #fff; border: 1px solid var(--wp--preset--color--border); border-top: 0; border-radius: 0 0 12px 12px; color: #2d4643; }

/* Disclaimer */
.wp-block-post-content > p:last-child small { display: block; color: var(--wp--preset--color--muted); border-top: 1px solid var(--wp--preset--color--border); padding-top: 1rem; margin-top: 2rem; }

/* ---------- Secties ---------- */
.tz-band { background: var(--wp--preset--color--surface); border-top: 1px solid var(--wp--preset--color--border); border-bottom: 1px solid var(--wp--preset--color--border); }
.tz-steps { counter-reset: tzstep; }
.tz-step { background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: 14px; padding: 1.25rem; height: 100%; box-sizing: border-box; }
.tz-step h3 { margin: .5rem 0 .35rem; font-size: 1.08rem; }
.tz-step p { margin: 0; color: var(--wp--preset--color--muted); font-size: .95rem; }
.tz-step::before { counter-increment: tzstep; content: counter(tzstep); display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--wp--preset--color--tint-2); color: var(--wp--preset--color--primary-dark); font-weight: 800; }

/* ---------- Footer ---------- */
.tz-footer { background: var(--wp--preset--color--primary-deep); color: rgba(255,255,255,.82); font-size: .93rem; }
.tz-footer a { color: #fff; text-decoration: none; }
.tz-footer a:hover { text-decoration: underline; }
.tz-footer h2 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--wp--preset--font-family--body); font-weight: 700; margin: 0 0 .8rem; }
.tz-footer ul { list-style: none; padding: 0; margin: 0; }
.tz-footer li { margin: .4rem 0; }
.tz-footer .tz-brand { color: #fff; }
.tz-footer-bottom { border-top: 1px solid rgba(255,255,255,.14); font-size: .82rem; color: rgba(255,255,255,.65); }
.tz-footer-bottom p { margin: 0; }

/* ---------- Sticky mobiele CTA ---------- */
.tz-sticky-cta { position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 60; display: none; transform: translateY(150%); transition: transform .25s ease; }
.tz-sticky-cta a { display: flex; justify-content: center; align-items: center; gap: .5rem; background: var(--wp--preset--color--accent); color: #fff; text-decoration: none; font-weight: 700; border-radius: 999px; padding: .85rem 1rem; box-shadow: 0 10px 30px rgba(16,48,45,.28); }
.tz-sticky-cta.is-visible { transform: none; }
@media (max-width: 760px) { .tz-sticky-cta { display: block; } body { padding-bottom: 4.5rem; } }

/* ---------- Berichten / zoeken ---------- */
.tz-card { background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: 14px; padding: 1.25rem; height: 100%; box-sizing: border-box; }
.tz-card .wp-block-post-title a { text-decoration: none; }
.tz-footer .tz-brand-tld { color: #5eead4; }
