/* Boukje Site Care - fullscreen telefoonmenu.
   Huisstijl van boukjekeizer.com: crème, zwart, transparante knoppen met rand. */

/* Thema's stylen vaak elk button-element; Elementor doet dat met
   ".elementor-kit-x button", wat zwaarder weegt dan een losse klasse.
   Daarom hier de knop terugbrengen naar niets, en staan onze eigen regels
   hieronder met een extra klasse ervoor zodat ze altijd winnen. */
#bsc-menu button,
#bsc-burger {
	border-radius: 0;
	padding: 0;
	-webkit-appearance: none;
	appearance: none;
	background-image: none;
	box-shadow: none;
	text-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	min-height: 0;
	min-width: 0;
	margin: 0;
	font-weight: inherit;
	line-height: inherit;
}

/* Eigen elementen altijd border-box, ongeacht wat het thema doet. */
#bsc-burger, #bsc-burger *,
#bsc-menu, #bsc-menu * { box-sizing: border-box; }

/* ── Hamburger ───────────────────────────────────────────── */
/* Geen kader of vlak eromheen: alleen de streepjes, net als in de header van
   de site zelf. De knop is wel 44x44 zodat hij met een duim goed te raken is;
   die ruimte is onzichtbaar. */
#bsc-burger {
	position: fixed;
	top: var(--bsc-burger-top, 28px);
	right: var(--bsc-burger-right, 9px);
	z-index: 99998;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 0;
	background: transparent;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 0;
	-webkit-tap-highlight-color: transparent;
}
#bsc-burger span {
	display: block;
	width: 22px;
	height: 2px;
	border-radius: 2px;
	/* Bovenaan staat de header doorzichtig over de foto: dan lichte streepjes.
	   Zodra de header een vlakke achtergrond krijgt, worden ze donker. */
	background: var(--bsc-burger-kleur-top, #ffffff);
	transition: transform var(--bsc-anim, 320ms) ease,
		opacity var(--bsc-anim, 320ms) ease,
		background-color 220ms ease;
}
/* Bovenaan is niet te voorspellen wat er achter de streepjes staat: op de
   meeste pagina's een foto, op de juridische pagina's een licht vlak. Een
   fijne schaduw houdt ze op allebei leesbaar, zonder kader of vlak. */
#bsc-burger:not(.is-scrolled) span {
	filter: drop-shadow(0 1px 1.5px rgba(17, 17, 17, .55));
}
#bsc-burger.is-scrolled span { background: var(--bsc-text, #111111); filter: none; }
/* Open staat het menu op zijn eigen achtergrond, dus altijd de tekstkleur. */
#bsc-burger[aria-expanded="true"] span { background: var(--bsc-text, #111111); filter: none; }
#bsc-burger:hover,
#bsc-burger:focus {
	background: transparent;
	color: inherit;
}
#bsc-burger:focus-visible {
	outline: 2px solid var(--bsc-text, #111111);
	outline-offset: 4px;
	border-radius: 4px;
}
#bsc-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#bsc-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
#bsc-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Overlay ───────────────────────────────────────────────────────────── */
#bsc-menu {
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: var(--bsc-bg, #F5F0E6);
	color: var(--bsc-text, #111111);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--bsc-anim, 320ms) ease;
	overflow: hidden;
}
#bsc-menu.is-open { opacity: 1; pointer-events: auto; }
body.bsc-locked { overflow: hidden; }

/* ── Panelen ───────────────────────────────────────────────────────────── */
#bsc-menu .bsc-panel {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	padding: 18px 20px calc(34px + env(safe-area-inset-bottom, 0px));
	transform: translateX(100%);
	transition: transform var(--bsc-anim, 320ms) cubic-bezier(.4, 0, .2, 1), opacity var(--bsc-anim, 320ms) ease;
	opacity: 0;
	background: var(--bsc-bg, #F5F0E6);

	/* Eén scrollgebied: het paneel zelf. De lijst eronder scrollt niet apart,
	   zodat er nooit twee scrollbalken over elkaar heen liggen. */
	overflow-y: auto;
	overflow-x: hidden;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}
/* Alleen het actieve paneel mag scrollen. */
#bsc-menu .bsc-panel:not(.is-active) { overflow: hidden; }
#bsc-menu .bsc-panel.is-active { transform: translateX(0); opacity: 1; visibility: visible; }
#bsc-menu .bsc-panel.is-left { transform: translateX(-18%); opacity: 0; }
#bsc-menu .bsc-panel[hidden] { display: flex; visibility: hidden; }

/* ── Kop van laag 1 ────────────────────────────────────────────────────── */
#bsc-menu .bsc-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 52px;
	margin-bottom: 7vh;
}
#bsc-menu .bsc-logo img { max-height: 38px; width: auto; display: block; }
#bsc-menu .bsc-logo-text { font-size: 22px; font-weight: 700; letter-spacing: .04em; }
#bsc-menu .bsc-close {
	width: 44px;
	height: 44px;
	border: 1px solid var(--bsc-rand, rgba(17, 17, 17, .18));
	border-radius: 12px;
	background: transparent;
	color: inherit;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color var(--bsc-anim, 320ms) ease;
}
#bsc-menu .bsc-close:focus {
	background: transparent;
	color: inherit;
}
#bsc-menu .bsc-close:hover,
#bsc-menu .bsc-close:focus-visible {
	background: rgba(17, 17, 17, .06);
	color: inherit;
}

/* ── Hoofditems ────────────────────────────────────────────────────────── */
#bsc-menu .bsc-nav { display: flex; flex-direction: column; }
#bsc-menu .bsc-nav-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	width: 100%;
	border: 0;
	border-bottom: 1px solid var(--bsc-rand, rgba(17, 17, 17, .14));
	background: transparent;
	color: inherit;
	text-align: left;
	text-decoration: none;
	/* zelfde koptypografie als de kaarten in de sublagen */
	font-family: var(--e-global-typography-primary-font-family, inherit);
	font-size: clamp(27px, 7vw, 36px);
	font-weight: 700;
	line-height: 1.15;
	padding: 18px 2px;
	cursor: pointer;
	transition: opacity var(--bsc-anim, 320ms) ease;
}
#bsc-menu .bsc-nav-link:first-child { border-top: 1px solid var(--bsc-rand, rgba(17, 17, 17, .14)); }
#bsc-menu .bsc-panel:focus {
	/* Het paneel krijgt bij openen de focus zodat schermlezers de laag
	   voorlezen; een zichtbare rand om het hele vlak hoort daar niet bij. */
	outline: none;
}
#bsc-menu .bsc-nav-link:focus {
	background: transparent;
	color: inherit;
}
#bsc-menu .bsc-nav-link:hover,
#bsc-menu .bsc-nav-link:focus-visible {
	opacity: .6;
	background: transparent;
	color: inherit;
}
#bsc-menu .bsc-nav-link .bsc-ic { width: 22px; height: 22px; flex: 0 0 auto; opacity: .55; }

/* ── Grote knop onderaan: transparant met rand, net als op de site ─────── */
#bsc-menu .bsc-cta {
	margin-top: auto;
	margin-bottom: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: transparent;
	border: 1px solid var(--bsc-text, #111111);
	border-radius: 12px;
	color: var(--bsc-text, #111111);
	text-decoration: none;
	/* zelfde lettertype (Avilock) als de rest van het menu */
	font-family: var(--e-global-typography-primary-font-family, inherit);
	font-size: 19px;
	font-weight: 700;
	padding: 16px 30px;
	transition: background-color var(--bsc-anim, 320ms) ease, color var(--bsc-anim, 320ms) ease;
}
#bsc-menu .bsc-cta:hover,
#bsc-menu .bsc-cta:focus-visible {
	background: var(--bsc-text, #111111);
	color: var(--bsc-bg, #F5F0E6);
}
#bsc-menu .bsc-cta .bsc-ic { width: 16px; height: 16px; }

/* ── Kop van de sublagen ───────────────────────────────────────────────── */
#bsc-menu .bsc-sub-top {
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 52px;
	margin-bottom: 16px;
	flex: 0 0 auto;
	position: sticky;
	top: -18px;
	z-index: 2;
	background: var(--bsc-bg, #F5F0E6);
	padding-top: 18px;
	margin-top: -18px;
	padding-bottom: 10px;
}
#bsc-menu .bsc-back {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	border: 1px solid var(--bsc-rand, rgba(17, 17, 17, .18));
	background: transparent;
	color: inherit;
	font-family: var(--e-global-typography-primary-font-family, inherit);
	font-size: 15px;
	font-weight: 600;
	padding: 10px 16px;
	border-radius: 12px;
	cursor: pointer;
	transition: background-color var(--bsc-anim, 320ms) ease;
}
#bsc-menu .bsc-back:focus {
	background: transparent;
	color: inherit;
}
#bsc-menu .bsc-back:hover,
#bsc-menu .bsc-back:focus-visible {
	background: rgba(17, 17, 17, .06);
	color: inherit;
}
#bsc-menu .bsc-back .bsc-ic { width: 14px; height: 14px; }
#bsc-menu .bsc-sub-title {
	font-family: var(--e-global-typography-primary-font-family, inherit);
	font-size: 21px;
	font-weight: 700;
	letter-spacing: -.01em;
}

/* ── Kaarten: foto vult de hele kaart ──────────────────────────────────── */
#bsc-menu .bsc-cards {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 0 0 auto;
}
#bsc-menu .bsc-card {
	position: relative;
	display: flex;
	align-items: flex-end;
	width: 100%;
	/* Zelfde verhouding als de bijgesneden foto's, zodat de browser er niet
	   nog een keer overheen snijdt en gezichten heel blijven. */
	aspect-ratio: 16 / 9;
	min-height: 132px;
	border: 0;
	padding: 16px 18px;
	border-radius: 14px;
	overflow: hidden;
	cursor: pointer;
	text-align: left;
	text-decoration: none;
	color: #ffffff;
	background: var(--bsc-text, #111111);
	isolation: isolate;
	transition: transform var(--bsc-anim, 320ms) ease;
}
#bsc-menu .bsc-card:link,
#bsc-menu .bsc-card:visited {
	color: #ffffff;
}
#bsc-menu .bsc-card:hover,
#bsc-menu .bsc-card:focus-visible { transform: translateY(-2px); }
#bsc-menu .bsc-card:focus-visible { outline: 2px solid var(--bsc-text, #111111); outline-offset: 2px; }

/* De afbeelding bedekt de kaart volledig */
#bsc-menu .bsc-card-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: -2;
	display: block;
}
/* Zonder foto: rustige kleurvlak in de huisstijl */
#bsc-menu .bsc-card-noimg {
	background: linear-gradient(140deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0));
}
/* Donkere sluier zodat de tekst altijd leesbaar is */
#bsc-menu .bsc-card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(17, 17, 17, .10) 0%, rgba(17, 17, 17, .30) 45%, rgba(17, 17, 17, .70) 100%);
}

#bsc-menu .bsc-card,
#bsc-menu .bsc-card-title,
#bsc-menu .bsc-card-go {
	/* Een kaart die doorlinkt is een <a>, een kaart die een laag opent is een
	   <button>. Zonder deze regel geeft het thema ze elk een ander lettertype.
	   We volgen de koptypografie van de site zelf; ontbreekt die, dan erven we. */
	font-family: var(--e-global-typography-primary-font-family, inherit);
	font-weight: var(--e-global-typography-primary-font-weight, 700);
}
#bsc-menu .bsc-card-title {
	font-family: inherit;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.01em;
	flex: 1 1 auto;
	min-width: 0;
	overflow-wrap: anywhere;
	padding-right: 12px;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .35);
}
#bsc-menu .bsc-card-go {
	flex: 0 0 auto;
	width: 38px;
	height: 38px;
	min-width: 38px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, .55);
	background: rgba(255, 255, 255, .12);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: flex-end;
	transition: background-color var(--bsc-anim, 320ms) ease;
}
#bsc-menu .bsc-card:hover .bsc-card-go { background: rgba(255, 255, 255, .26); }
#bsc-menu .bsc-card-go .bsc-ic { width: 15px; height: 15px; }

/* Scrollbalk van het paneel subtiel houden */
#bsc-menu .bsc-panel { scrollbar-width: thin; scrollbar-color: rgba(17, 17, 17, .22) transparent; }
#bsc-menu .bsc-panel::-webkit-scrollbar { width: 6px; }
#bsc-menu .bsc-panel::-webkit-scrollbar-thumb { background: rgba(17, 17, 17, .22); border-radius: 3px; }
#bsc-menu .bsc-panel::-webkit-scrollbar-track { background: transparent; }

/* ── Knop onderaan elke sublaag: naar de hoofdpagina, zonder foto ─────── */
#bsc-menu .bsc-alles {
	margin-top: 16px;
	margin-bottom: 4px;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: transparent;
	border: 1px solid var(--bsc-text, #111111);
	border-radius: 12px;
	color: var(--bsc-text, #111111);
	text-decoration: none;
	/* zelfde lettertype (Avilock) als de rest van het menu */
	font-family: var(--e-global-typography-primary-font-family, inherit);
	/* Altijd op één regel: de lettergrootte krimpt mee met de schermbreedte
	   en met de lengte van de tekst, zodat er nooit wordt afgebroken. */
	font-size: clamp(13px, 4.1vw, 17px);
	font-weight: 700;
	padding: 15px 20px;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	transition: background-color var(--bsc-anim, 320ms) ease, color var(--bsc-anim, 320ms) ease;
}
/* Lange titels: nog een tandje kleiner in plaats van afbreken. */
#bsc-menu .bsc-alles[data-lang="1"] { font-size: clamp(12px, 3.5vw, 15px); padding-left: 14px; padding-right: 14px; }
#bsc-menu .bsc-alles[data-lang="2"] { font-size: clamp(11px, 3.05vw, 14px); padding-left: 12px; padding-right: 12px; gap: 7px; }
#bsc-menu .bsc-alles:hover,
#bsc-menu .bsc-alles:focus-visible {
	background: var(--bsc-text, #111111);
	color: var(--bsc-bg, #F5F0E6);
}
#bsc-menu .bsc-alles .bsc-ic { width: 15px; height: 15px; flex: 0 0 auto; }
#bsc-menu .bsc-alles[data-lang="2"] .bsc-ic { width: 13px; height: 13px; }

/* ── Entree-animatie ───────────────────────────────────────────────────── */
#bsc-menu.is-open .is-active .bsc-nav-link,
#bsc-menu.is-open .is-active .bsc-card,
#bsc-menu.is-open .is-active .bsc-cta,
#bsc-menu.is-open .is-active .bsc-alles {
	animation: bscIn var(--bsc-anim, 320ms) ease both;
}
#bsc-menu.is-open .is-active .bsc-nav-link:nth-child(2), #bsc-menu.is-open .is-active .bsc-card:nth-child(2) { animation-delay: 45ms; }
#bsc-menu.is-open .is-active .bsc-nav-link:nth-child(3), #bsc-menu.is-open .is-active .bsc-card:nth-child(3) { animation-delay: 90ms; }
#bsc-menu.is-open .is-active .bsc-nav-link:nth-child(4), #bsc-menu.is-open .is-active .bsc-card:nth-child(4) { animation-delay: 135ms; }
#bsc-menu.is-open .is-active .bsc-card:nth-child(5) { animation-delay: 180ms; }
#bsc-menu.is-open .is-active .bsc-card:nth-child(6) { animation-delay: 220ms; }
#bsc-menu.is-open .is-active .bsc-cta { animation-delay: 200ms; }
#bsc-menu.is-open .is-active .bsc-alles { animation-delay: 240ms; }
@keyframes bscIn {
	from { opacity: 0; transform: translateY(14px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	#bsc-menu #bsc-burger span,
#bsc-menu,
#bsc-menu .bsc-panel,
#bsc-menu .bsc-nav-link,
#bsc-menu .bsc-cta,
#bsc-menu .bsc-card,
#bsc-menu .bsc-card-go {
		transition: none !important;
		animation: none !important;
	}
}

/* Grotere telefoons en tablets: kaarten naast elkaar */
@media (min-width: 600px) {
	#bsc-menu .bsc-cards { display: grid; grid-template-columns: 1fr 1fr; align-content: start; }
	#bsc-menu .bsc-alles { max-width: 420px; margin-left: auto; margin-right: auto; width: 100%; }
	#bsc-menu .bsc-panel { padding-left: 5vw; padding-right: 5vw; }
	#bsc-menu .bsc-card { min-height: 118px; }
}
