/*
Theme Name: VAK95
Theme URI: https://vak95.nl
Author: WISCH
Description: Block theme (Site Editor) voor VAK95 Opleidingen, vervanger van Breakdance Zero.
Version: 0.1.0
Requires at least: 6.5
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: vak95
*/

/* Houd extra CSS minimaal: stijl via theme.json en de Site Editor. Waarden zijn gemeten op de live (Breakdance) site. */

/* Core geeft groepen/kolommen met achtergrondkleur standaard 1.25em/2.375em padding (wp-block-styles); paddings staan hier expliciet per blok */
.wp-block-group.has-background, .wp-block-columns.has-background { padding: 0; }

/* Header, inhoud en footer sluiten direct op elkaar aan */
.wp-site-blocks > * { margin-block-start: 0; margin-block-end: 0; }

/* Secties in de pagina sluiten direct op elkaar aan (afstand zit in de sectie-padding) */


/* Mobiel: lange woorden ("administratiekantoor") in koppen mogen niet buiten beeld lopen (Breakdance: 36px op telefoon) */
@media (max-width: 600px) {
	h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
	h1 { font-size: 2.25rem !important; }
}

/* Telefoon (<480px): sectie-padding uit Breakdance, knoppen onder elkaar, topbalk verborgen */
@media (max-width: 479px) {
	.bd-m-pad { padding-top: var(--m-pt) !important; padding-bottom: var(--m-pb) !important; }
}
@media (max-width: 767px) {
	.v95-topbar { display: none; }
	.wp-block-buttons { flex-direction: column; align-items: flex-start; }
}

/* Topbalk: iconen via mask, zodat de tekst gewoon bewerkbaar blijft */
.v95-topbar { font-size: 14px; }
.v95-topbar p { margin: 0; line-height: 1.6; font-size: 14px; }
.v95-topbar a { text-decoration: none; color: inherit; }
.ico::before {
	content: ""; display: inline-block; width: 1em; height: 1em; margin-right: 8px; vertical-align: -0.15em;
	background-color: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.ico-clock { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'><circle cx='12' cy='12' r='9.5'/><path d='M12 6.5V12l3.5 2'/></svg>"); }
.ico-phone { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.1.37 2.3.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.58a1 1 0 0 1-.25 1z'/></svg>"); }
.ico-pin { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path fill='black' d='M16 0C10.5 0 6 4.5 6 10c0 10 10 22 10 22s10-12 10-22c0-5.5-4.5-10-10-10zm0 16a6 6 0 1 1 0-12 6 6 0 0 1 0 12z'/></svg>"); }
.bd-iconlist .ico::before { background-color: var(--wp--preset--color--primary); margin-right: 12px; }
.bd-iconlist p { margin: 0; }
.ico-mail { --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'><rect x='2.5' y='4.5' width='19' height='15' rx='2'/><path d='M3 6l9 7 9-7'/></svg>"); }

/* Header (live: sticky, logo 224px, telefoon rechts, groene menubalk in de rechterhelft) */
.v95-header { position: sticky; top: 0; z-index: 50; }
.v95-header__top { max-width: 1000px; margin-inline: auto !important; padding-inline: 0; }
.v95-header__top .wp-block-site-logo { margin-bottom: -20px; }
.wp-block-site-logo img { height: auto; }
.v95-phone { margin: 0; font-size: 33px; font-weight: 700; line-height: 1.6; color: var(--wp--preset--color--grijs); }
.v95-phone a { color: inherit; }
.v95-phone.ico::before { width: 20px; height: 20px; margin-right: 8px; vertical-align: 0; }
.v95-header .v95-header__bar { display: grid; grid-template-columns: 1fr 1fr; padding: 0; margin-bottom: -4px; border-bottom: 1px solid var(--wp--preset--color--primary); }
.v95-nav-col .wp-block-navigation { gap: 0; }
.v95-nav-col .wp-block-navigation .wp-block-navigation-item__content { padding: 0 16px; font-size: 1.25rem; font-weight: 400; line-height: 33px; color: #fff; text-decoration: none; }

/* Footer: lijst met pijltjes */
.v95-footer a { color: inherit; }
.v95-footer .v95-footer-list p { margin-block-end: 0; line-height: 22px; }
.v95-footer .v95-footer-list a { display: flex; align-items: flex-start; gap: 8px; text-decoration: none; }
.v95-footer .v95-footer-list a::before { content: ""; flex: none; width: 20px; height: 20px; background-color: #fff;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'><path d='M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z'/></svg>") center / 45% no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'><path d='M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z'/></svg>") center / 45% no-repeat; }

/* Mobiel menu: hamburger tot 1119px (Breakdance: breakpoint "tablet landscape") en een dropdown onder de header,
   met scheidingslijnen en Contact als volle-breedte knop. Core-navigatie klapt standaard pas onder 600px in. */
@media (max-width: 1023px) {
	.v95-header .wp-block-navigation { position: static; }
	.v95-header .wp-block-navigation__responsive-container-open { display: flex !important; }
	.v95-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }

	.v95-header .wp-block-navigation__responsive-container.is-menu-open {
		position: absolute; top: 100%; left: 0; right: 0; bottom: auto; height: auto; padding: 0;
		background: #fff; color: #000; overflow: visible; z-index: 100000;
		box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
	}
	.v95-header .is-menu-open .wp-block-navigation__responsive-container-content {
		padding: 0; align-items: stretch; width: 100%;
		--navigation-layout-justification-setting: flex-start; --navigation-layout-align: stretch; --navigation-layout-justify: flex-start;
	}
	.v95-header .is-menu-open .wp-block-navigation__responsive-dialog { margin: 0; padding: 0; }
	.v95-header .is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 0 !important; }
	.v95-header .wp-block-navigation__responsive-container.is-menu-open { animation: none !important; opacity: 1 !important; }
	.v95-header .is-menu-open .wp-block-navigation__container { flex-direction: column; align-items: stretch !important; justify-content: flex-start; width: 100%; gap: 0; }
	.v95-header .is-menu-open .wp-block-navigation-item { align-items: stretch !important; box-sizing: border-box; }
	.v95-header .is-menu-open .wp-block-navigation-item { display: block; width: 100%; margin: 0; border-bottom: 1px solid #e5e7eb; }
	.v95-header .is-menu-open .wp-block-navigation-item__content { display: block; padding: 18px 20px !important; font-size: 1.125rem; font-weight: 500; line-height: 1.3; color: #000; }
	.v95-header .is-menu-open .wp-block-navigation-item.is-style-button { margin: 0 !important; padding: 20px 15px !important; border-bottom: 0; }
	.v95-header .is-menu-open .is-style-button > a { display: block; text-align: center; padding: 14px 24px !important; font-size: 1rem; line-height: 1; color: var(--wp--preset--color--base); }
	html.has-modal-open .v95-header .wp-block-navigation__responsive-container-open { visibility: hidden; }
	/* sluitknop komt precies boven de hamburger te staan (in de header) */
	.v95-header .wp-block-navigation__responsive-container-close { position: absolute; top: -52px; right: 20px; padding: 0; color: #000; }
}

/* Kolommen stapelen onder 1120px (Breakdance: tablet landscape); de call-to-action (.bd-grid) pas op telefoon */
@media (max-width: 1119px) {
	.wp-block-columns:not(.bd-grid) { flex-wrap: wrap !important; }
	.wp-block-columns:not(.bd-grid) > .wp-block-column { flex-basis: 100% !important; flex-grow: 1 !important; }
}
@media (max-width: 767px) {
	.wp-block-columns.bd-grid { flex-wrap: wrap !important; }
	.wp-block-columns.bd-grid > .wp-block-column { flex-basis: 100% !important; flex-grow: 1 !important; }
}
/* Hamburger: groter en in merkkleur (live: 32px) */
.v95-header .wp-block-navigation__responsive-container-open svg, .v95-header .wp-block-navigation__responsive-container-close svg { width: 32px; height: 32px; }
.v95-header .wp-block-navigation__responsive-container-open { color: var(--wp--preset--color--primary); }

/* Knoppen: outline heeft 2px rand maar dezelfde padding */
.wp-block-button.is-style-outline > .wp-block-button__link { padding: 14px 24px; border-width: 2px; }

/* Afbeeldingen: natuurlijke grootte, nooit breder dan de kolom */
.wp-block-image img { max-width: 100%; height: auto; }

/* Contact Form 7: zoals het formulier op de live (Breakdance) site was: lichtgrijze velden over de volle breedte, groene knop */
.wpcf7 form.init .wpcf7-response-output { display: none; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="date"], .wpcf7 select, .wpcf7 textarea {
	width: 100%; box-sizing: border-box; margin: 10px 0; padding: 10px; font: inherit; line-height: normal; color: inherit;
	background: #fcfcfc; border: 1px solid #eee; border-radius: 0;
}
.wpcf7 textarea { height: 229px; }
.wpcf7 input[type="submit"] { width: 200px; margin: 10px 0; padding: 10px; font: inherit; line-height: normal; color: #fff; background: #3ea436; border: 0; border-radius: 0; cursor: pointer; }
.wpcf7 label { display: inline; }

/* ---- VAK95 ---- */
/* Breakdance "tablet landscape": kolommen stapelen onder 1120px */
/* Vinkjes-lijst (Breakdance CheckmarkList): vierkantje met wit vinkje */
.bd-check p { position: relative; margin-block-end: 0; padding-left: calc(var(--ck-size, 15px) + 2 * var(--ck-pad, 4px) + var(--ck-indent, 16px)); min-height: calc(var(--ck-size, 15px) + 2 * var(--ck-pad, 4px)); }
.bd-check p::before { content: ""; position: absolute; left: 0; top: 8px; box-sizing: content-box; width: var(--ck-size, 15px); height: var(--ck-size, 15px); padding: var(--ck-pad, 4px); background: var(--ck, #0DA532);
	-webkit-mask: none; mask: none; }
.bd-check p::after { content: ""; position: absolute; left: var(--ck-pad, 4px); top: calc(8px + var(--ck-pad, 4px)); width: var(--ck-size, 15px); height: var(--ck-size, 15px); background: #fff;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'><path d='M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z'/></svg>") center / contain no-repeat; }

/* Blokjes "Een greep uit de cursussen" (stond in de CSS van de Breakdance-pagina) */
#ws_cursus { text-align: center; }
#ws_cursus .blok { display: inline-block; background: #3FA536; margin: 10px; padding: 5px 10px; color: #fff; }
#ws_cursus .grijs { background: #4D5152; }
#ws_cursus .zwart { background: #000; }
#ws_cursus .wit { background: #FFF; color: #3FA536; }

/* Cursuskaarten (overzichtspagina) en linklijst (overige cursussen) */
.v95-grid { margin: 0; padding: 0; }
.v95-card { min-height: 250px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; align-items: stretch; text-align: center; padding: 0;
	background-color: transparent; background-repeat: no-repeat; background-position: center; background-size: contain; }
.v95-card .wp-block-post-title, .v95-card .wp-block-read-more { color: var(--v95-card-color, #fff); }
.v95-linklist { list-style: none; margin: 0; padding: 0; }
.v95-linklist li { margin: 0; }
.v95-linklist .wp-block-post-title { margin: 0; }
.v95-linklist a { display: flex; gap: 5px; font-weight: 300; line-height: 1.6; }
.v95-linklist a::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 4px; background-color: currentColor;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'><path d='M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z'/></svg>") center / 45% no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 512'><path d='M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z'/></svg>") center / 45% no-repeat; }
@media (max-width: 1023px) { .v95-grid.is-layout-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .v95-grid.is-layout-grid { grid-template-columns: 1fr; } }

/* Kolom met gecentreerde inhoud (Breakdance: verticaal en/of horizontaal gecentreerd) */
.wp-block-column.bd-vcenter, .wp-block-column.bd-hcenter { display: flex; flex-direction: column; }
.wp-block-column.bd-vcenter { justify-content: center; }
.wp-block-column.bd-hcenter { align-items: center; }

/* Lijst zonder opsommingstekens (Breakdance BasicList): items hebben ca. 5.6px padding boven/onder (gemeten) */
.bd-basic p { padding-block: 5.6px; }

/* Kolommen: padding hoort binnen de breedte (Breakdance: border-box) */
.wp-block-column { box-sizing: border-box; }

/* ---- Mobiel / tablet (Breakdance: menu klapt in onder 1024px, "tablet portrait") ---- */
/* Minimale hoogte van een sectie op telefoon (Breakdance breakpoint_phone_landscape, <=767px) */
@media (max-width: 767px) {
	.bd-m-minh { height: var(--m-minh) !important; min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
	.v95-header__top { padding-inline: 20px; }
	.v95-header__top .wp-block-site-logo img { width: 108px; height: auto; }
	.v95-header__top .wp-block-site-logo { margin-bottom: -20px; }
	.v95-phone { font-size: 22px; line-height: 1.6; }
	.v95-footer-bottom { padding-bottom: 34px !important; }
}
/* Hamburger in de groene rechterhelft: wit, rechts */
@media (max-width: 1023px) {
	.v95-nav-col .wp-block-navigation__responsive-container-open { color: #fff; margin-left: auto; padding: 0 10px; }
	.v95-nav-col .wp-block-navigation { justify-content: flex-end; }
	.v95-header .wp-block-navigation__responsive-container-close { top: -42px; right: 10px; color: #fff; background: var(--wp--preset--color--primary); }
	.v95-header .is-menu-open .wp-block-navigation-item__content { color: #000; }
}
/* Footer: tekst naast elkaar met gelijke breedte; op telefoon/tablet alles links (kolommen gestapeld) */
.v95-footer-row > * { flex: 1 1 0; min-width: 0; }
@media (max-width: 1119px) {
	.v95-footer .wp-block-buttons { justify-content: flex-start; }
	.v95-footer .has-text-align-center { text-align: left; }
	.v95-footer .wp-block-image.aligncenter { margin-left: 0; margin-right: auto; }
}

/* Footer: 20px zijmarge zodra het scherm smaller is dan de sectiebreedte (live: kolommen op x=20 bij 375 en 1024px) */
@media (max-width: 1239px) {
	.v95-footer, .v95-footer-bottom { padding-left: 20px !important; padding-right: 20px !important; box-sizing: border-box; }
}
.bd-basic { width: 100%; max-width: 300px; margin-inline: auto; }
@media (max-width: 1119px) { .v95-footer .wp-block-image { margin-left: 0 !important; margin-right: auto !important; } }
@media (max-width: 479px) { .bd-m-fs .wp-block-button__link { font-size: var(--m-fs) !important; } }
/* Hamburger met drie streepjes (zoals Breakdance) in plaats van de twee van WordPress */
.v95-nav-col .wp-block-navigation__responsive-container-open svg { display: none; }
.v95-nav-col .wp-block-navigation__responsive-container-open { width: 52px; height: 32px; box-sizing: border-box; }
.v95-nav-col .wp-block-navigation__responsive-container-open::before { content: ""; display: block; width: 32px; height: 22px; margin: 5px auto;
	background: linear-gradient(#fff, #fff) 0 0 / 100% 3px no-repeat, linear-gradient(#fff, #fff) 0 50% / 100% 3px no-repeat, linear-gradient(#fff, #fff) 0 100% / 100% 3px no-repeat; }
.v95-header .v95-header__bar { margin-bottom: -4px !important; }
.wp-block-cover.alignfull { padding-left: 0; padding-right: 0; }

/* Tablet (768-1023px): logo 205px, zijmarge 20px in de koptekst */
@media (max-width: 1023px) {
	.v95-header__top { padding-inline: 20px; }
	.v95-header__top .wp-block-site-logo img { width: 205px; height: auto; }
}
@media (max-width: 767px) {
	.v95-header__top .wp-block-site-logo img { width: 108px; }
}
/* Footer: op tablet (768-1119px) twee kolommen naast elkaar, daaronder pas alles onder elkaar (<=767px) */
@media (min-width: 768px) and (max-width: 1119px) {
	.v95-footer .wp-block-columns { flex-wrap: wrap !important; }
	.v95-footer .wp-block-columns > .wp-block-column { flex-basis: calc(50% - 16px) !important; flex-grow: 0 !important; }
}

/* Berichtpagina: op tablet/telefoon 20px padding in de tekstkolommen (Breakdance column_padding tablet portrait) */
@media (max-width: 1023px) { .v95-singlecol { padding-left: 20px; padding-right: 20px; } }

/* Het groene vlak vult de hele hoogte van de menubalk (live: groen tot aan de lijn) */
.v95-header .v95-nav-col { padding-top: 10px; padding-bottom: 10px; }
.v95-card .wp-block-read-more { display: block; text-align: center; }

.v95-card .wp-block-post-title, .v95-card .wp-block-read-more { color: var(--v95-card-color, #fff) !important; }
.v95-card .wp-block-post-title { font-size: 25px; margin-top: 0; }
.v95-card .wp-block-read-more { margin-left: auto; margin-right: auto; }

/* Prijsblok in de berichtpagina: groen vlak over de volle hoogte, link wit */
.v95-price-row a { color: #fff; }
.v95-price-row a:hover { color: #000; }
.v95-price-row .wp-block-column.bd-hcenter > * { width: 100%; }

/* Footerkleur op live: #3EA436 (net iets anders dan het merkgroen #3FA536) */
.v95-footer.has-primary-background-color { background-color: #3ea436 !important; }
