/* ==========================================================================
   BM Dienstpagina
   Secties voor de dienstpagina's (eerst /webdesign/): aanbod (crème),
   werkwijze met tijdlijn (donker) en veelgestelde vragen (wit).
   Alles begint met bms-.
   ========================================================================== */

.bms {
	--bms-accent: #E0195F;
	--bms-wrap: 1400px;

	/* Crème (standaard) */
	--bms-bg: #F4F1ED;
	--bms-fg: #0A0A0B;
	--bms-zacht: rgba(10, 10, 11, .74);
	--bms-mute: rgba(10, 10, 11, .56);
	--bms-lijn: rgba(10, 10, 11, .12);
	--bms-kaart: #FFFFFF;
	--bms-vlak: #E9E5DF;
	--bms-knop-bg: #0A0A0B;
	--bms-kop: 'BM Frama', 'PP Frama', 'Helvetica Neue', Arial, sans-serif;
	--bms-body: 'BM Frama Text', 'PP Frama Text', 'Helvetica Neue', Arial, sans-serif;
	--bms-gutter: max(24px, (100% - var(--bms-wrap)) / 2);
	--bms-ease: cubic-bezier(.2, .8, .2, 1);

	position: relative;
	isolation: isolate;
	overflow: clip;
	background: var(--bms-bg);
	color: var(--bms-fg);
	font-family: var(--bms-body);
	font-size: 16px;
	line-height: 1.5;
	word-spacing: .06em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.bms-donker {
	--bms-bg: #0A0A0B;
	--bms-fg: #F4F1ED;
	--bms-zacht: rgba(244, 241, 237, .76);
	--bms-mute: rgba(244, 241, 237, .52);
	--bms-lijn: rgba(255, 255, 255, .12);
	--bms-kaart: #131215;
	--bms-vlak: #161518;
	--bms-knop-bg: #F4F1ED;
}

.bms-wit { --bms-bg: #FFFFFF; --bms-vlak: #F4F1ED; }

.bms *, .bms *::before, .bms *::after { box-sizing: border-box; }
.bms :where(h2, h3, p, ul, ol, li) { margin: 0; padding: 0; }
.bms :where(ul, ol) { list-style: none; }
.bms.bms h2, .bms.bms h3 { color: inherit; }
.bms.bms a { color: inherit; text-decoration: none; }
.bms svg { display: block; flex: none; }
.bms :focus-visible { outline: 2px solid var(--bms-accent); outline-offset: 3px; }

.bms-in { position: relative; z-index: 1; padding: clamp(88px, 11vw, 150px) var(--bms-gutter); }

/* ---------- Kop ---------- */
.bms-kop {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	gap: clamp(32px, 6vw, 110px);
	align-items: end;
}

.bms-label { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: var(--bms-zacht); }
.bms-label i { width: 7px; height: 7px; border-radius: 2px; background: var(--bms-accent); transform: rotate(45deg); }

.bms.bms .bms-titel {
	margin-top: 22px;
	font: 700 clamp(40px, 5vw, 80px)/.96 var(--bms-kop);
	letter-spacing: -.045em;
	text-wrap: balance;
}
.bms-regel { display: block; overflow: hidden; padding: .04em .1em .1em 0; margin-bottom: -.1em; }
.bms-regel-in { display: inline-block; transform: translateY(110%); }
.bms.is-zichtbaar .bms-regel-in { animation: bmsRegel 1s var(--bms-ease) forwards; animation-delay: calc(var(--d, 0) * 100ms); }
@keyframes bmsRegel { to { transform: none; } }
.bms-accent { color: var(--bms-accent); }

.bms-intro { max-width: 520px; font-size: clamp(16px, 1.2vw, 18px); line-height: 1.65; color: var(--bms-mute); text-wrap: pretty; }

/* ---------- Aanbod ---------- */
.bms-soorten {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
	margin-top: clamp(48px, 6vw, 80px);
}

.bms-soort {
	display: flex;
	flex-direction: column;
	padding: 28px 26px 26px;
	border-radius: 22px;
	background: var(--bms-kaart);
	border: 1px solid rgba(10, 10, 11, .06);
	transition: transform .5s var(--bms-ease), box-shadow .5s var(--bms-ease);
}
.bms-soort:hover { transform: translateY(-4px); box-shadow: 0 28px 60px -36px rgba(10, 10, 11, .35); }

.bms-soort-icoon {
	display: grid;
	place-items: center;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background: var(--bms-vlak);
	color: var(--bms-fg);
	transition: background .4s, color .4s;
}
.bms-soort-icoon svg { width: 22px; height: 22px; stroke-width: 1.8; }
.bms-soort:hover .bms-soort-icoon { background: var(--bms-accent); color: #fff; }

.bms.bms .bms-soort-naam { margin-top: 26px; font: 600 22px/1.15 var(--bms-kop); letter-spacing: -.025em; }
.bms-soort-tekst { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--bms-mute); text-wrap: pretty; }
.bms-soort-voor {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: auto;
	padding-top: 22px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--bms-zacht);
}
.bms-soort-voor span { padding-top: 18px; border-top: 1px solid var(--bms-lijn); font-size: 12.5px; color: var(--bms-mute); }

.bms-inbegrepen {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr);
	gap: clamp(24px, 4vw, 64px);
	align-items: start;
	margin-top: 16px;
	padding: clamp(28px, 3vw, 40px);
	border-radius: 22px;
	background: var(--bms-vlak);
}
.bms.bms .bms-inbegrepen-kop h3 { font: 600 22px/1.15 var(--bms-kop); letter-spacing: -.025em; }
.bms-inbegrepen-kop p { margin-top: 8px; font-size: 14.5px; color: var(--bms-mute); }
.bms-inbegrepen-lijst { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; }
.bms-inbegrepen-lijst li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; line-height: 1.4; }
.bms-inbegrepen-lijst svg { width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: var(--bms-accent); color: #fff; stroke-width: 3; }

/* ---------- Werkwijze ---------- */
.bms-gloed {
	position: absolute;
	inset: auto -10% -30% 30%;
	height: 80%;
	background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--bms-accent) 22%, transparent), transparent 70%);
	pointer-events: none;
}

.bms-tijdlijn {
	position: relative;
	display: grid;
	grid-template-columns: repeat(var(--bms-stappen, 5), minmax(0, 1fr));
	gap: 24px;
	margin-top: clamp(56px, 7vw, 96px);
	padding-top: 34px;
}

/* De lijn door de punten, en de magenta vulling die meeloopt */
.bms-tijdlijn::before,
.bms-tijdlijn::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 6px;
	height: 1px;
	background: var(--bms-lijn);
}
.bms-tijdlijn::after {
	height: 2px;
	top: 5.5px;
	background: var(--bms-accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 2.2s var(--bms-ease) .4s;
}
.bms.is-zichtbaar .bms-tijdlijn::after { transform: scaleX(1); }

.bms-stap { position: relative; min-width: 0; }
.bms-stap-punt {
	position: absolute;
	top: -34px;
	left: 0;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: var(--bms-bg);
	border: 2px solid var(--bms-accent);
	z-index: 1;
}
.bms-stap-wanneer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font: 600 14px/1.3 var(--bms-kop); color: var(--bms-accent); }
.bms-stap-nr { font-family: var(--bms-body); font-weight: 400; font-size: 12.5px; color: var(--bms-mute); }
.bms.bms .bms-stap-titel { margin-top: 14px; font: 600 clamp(20px, 1.6vw, 24px)/1.15 var(--bms-kop); letter-spacing: -.025em; }
.bms-stap-tekst { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--bms-mute); text-wrap: pretty; }

.bms-werk-onder {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 40px;
	margin-top: clamp(48px, 6vw, 80px);
	padding-top: 32px;
	border-top: 1px solid var(--bms-lijn);
}
.bms-noot { display: flex; align-items: flex-start; gap: 12px; max-width: 620px; font-size: 15px; line-height: 1.55; color: var(--bms-zacht); }
.bms-noot svg { width: 20px; height: 20px; margin-top: 1px; color: var(--bms-accent); stroke-width: 1.8; }

/* Knop (zelfde gedrag als in Over ons) */
.bms.bms .bms-btn {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	gap: 16px;
	height: 56px;
	padding: 0 6px 0 24px;
	border-radius: 99px;
	background: var(--bms-knop-bg);
	font: 600 15.5px/1 var(--bms-kop);
	letter-spacing: -.01em;
	color: var(--bms-bg);
	white-space: nowrap;
	transition: color .4s, transform .25s var(--bms-ease);
}
.bms.bms .bms-btn::after {
	content: "";
	position: absolute;
	z-index: -1;
	right: 28px;
	top: 50%;
	width: 20px;
	height: 20px;
	margin: -10px -10px 0 0;
	border-radius: 50%;
	background: var(--bms-accent);
	transform: scale(0);
	transition: transform .6s var(--bms-ease);
}
.bms.bms .bms-btn:hover { color: #fff; }
.bms.bms .bms-btn:hover::after { transform: scale(26); }
.bms-dot { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bms-accent); color: #fff; transition: background .4s, color .4s; }
.bms-dot svg { width: 17px; height: 17px; stroke-width: 2.4; transition: transform .45s var(--bms-ease); }
.bms-btn:hover .bms-dot { background: #fff; color: var(--bms-accent); }
.bms-btn:hover .bms-dot svg { transform: translateX(2px); }

/* ---------- Veelgestelde vragen ---------- */
.bms-faq-in {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
	gap: clamp(40px, 7vw, 130px);
	align-items: start;
}
.bms-faq-kop { position: sticky; top: 120px; }
.bms-faq-kop .bms-intro { margin-top: 24px; }
/* Adviseurkaart, naar branding-masters-sectie-faq.html */
.bms-adviseur {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	max-width: 520px;
	margin-top: 32px;
	padding: 24px 24px 22px;
	border-radius: 24px;
	background: linear-gradient(160deg, #1B191D 0%, #0A0A0B 70%);
	color: #F4F1ED;
	box-shadow: 0 40px 90px -40px rgba(10, 10, 11, .6), 0 1px 0 rgba(255, 255, 255, .05) inset;
}
.bms-adviseur::before { content: ""; position: absolute; right: -20%; top: -60%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--bms-accent) 40%, transparent), transparent 72%); filter: blur(12px); z-index: -1; pointer-events: none; }

.bms-adviseur-kop { display: flex; align-items: center; gap: 14px; }
.bms-adviseur-av { position: relative; flex: none; width: 56px; height: 56px; border-radius: 50%; }
.bms-adviseur-ini { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: linear-gradient(140deg, color-mix(in srgb, var(--bms-accent) 72%, #fff), var(--bms-accent) 55%, color-mix(in srgb, var(--bms-accent) 55%, #000)); font: 700 18px/1 var(--bms-kop); color: #fff; }
.bms-adviseur-stip { position: absolute; right: 0; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: rgba(244, 241, 237, .5); border: 2.5px solid #0F0E11; }
.bms-adviseur.is-open-uren .bms-adviseur-stip { background: #34D399; }
.bms-adviseur-wie { flex: 1; min-width: 0; }
.bms-adviseur-wie b { display: block; font: 600 20px/1.1 var(--bms-kop); letter-spacing: -.025em; color: #fff; }
.bms-adviseur-status { display: block; margin-top: 5px; font-size: 14px; color: rgba(244, 241, 237, .62); }
.bms-adviseur-score { flex: none; display: grid; justify-items: end; gap: 6px; text-align: right; }
.bms-adviseur-sterren { display: inline-flex; gap: 2px; color: var(--bms-accent); }
.bms-adviseur-sterren svg { width: 13px; height: 13px; }
.bms-adviseur-score > span:last-child { font: 600 14px/1 var(--bms-kop); color: #fff; white-space: nowrap; }

.bms-adviseur-tekst { margin-top: 20px; font-size: 16.5px; line-height: 1.55; color: rgba(244, 241, 237, .8); text-wrap: pretty; }

.bms-adviseur-acties { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.bms.bms .bms-adviseur-knop {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	height: 60px;
	padding: 0 7px 0 26px;
	border-radius: 99px;
	background: var(--bms-accent);
	color: #fff;
	font: 600 16.5px/1 var(--bms-kop);
	letter-spacing: -.01em;
	white-space: nowrap;
	box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--bms-accent) 85%, transparent);
	transition: color .4s, transform .25s var(--bms-ease);
}
.bms.bms .bms-adviseur-knop::after { content: ""; position: absolute; z-index: -1; right: 30px; top: 50%; width: 20px; height: 20px; margin: -10px -10px 0 0; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .6s var(--bms-ease); }
.bms.bms .bms-adviseur-knop:hover { color: #0A0A0B; }
.bms.bms .bms-adviseur-knop:hover::after { transform: scale(28); }
.bms-adviseur-knop span { position: relative; z-index: 1; }
.bms-adviseur-knop i { position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #0A0A0B; transition: background .4s, color .4s; }
.bms-adviseur-knop i svg { width: 17px; height: 17px; stroke-width: 2; transition: transform .4s var(--bms-ease); }
.bms-adviseur-knop:hover i { background: #0A0A0B; color: #fff; }
.bms-adviseur-knop:hover i svg { transform: translate(1px, -1px); }
.bms.bms .bms-adviseur-wa { display: grid; place-items: center; flex: none; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; transition: transform .3s var(--bms-ease), background .3s; }
.bms.bms .bms-adviseur-wa:hover { transform: translateY(-2px); background: #1FB85A; }
.bms-adviseur-wa svg { width: 26px; height: 26px; stroke-width: 1.8; }

.bms-vragen { border-top: 1px solid var(--bms-lijn); }
.bms-vraag { border-bottom: 1px solid var(--bms-lijn); }
.bms-vraag summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 26px 0;
	cursor: pointer;
	list-style: none;
	font: 600 clamp(18px, 1.5vw, 22px)/1.3 var(--bms-kop);
	letter-spacing: -.02em;
	transition: color .3s;
}
.bms-vraag summary::-webkit-details-marker { display: none; }
.bms-vraag summary:hover { color: var(--bms-accent); }
.bms-vraag summary i {
	display: grid;
	place-items: center;
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--bms-vlak);
	color: var(--bms-fg);
	transition: transform .45s var(--bms-ease), background .3s, color .3s;
}
.bms-vraag summary i svg { width: 16px; height: 16px; stroke-width: 2.2; }
.bms-vraag[open] summary i { transform: rotate(45deg); background: var(--bms-accent); color: #fff; }
.bms-vraag p { max-width: 680px; padding: 0 60px 28px 0; font-size: 16px; line-height: 1.7; color: var(--bms-zacht); }
.bms-vraag[open] p { animation: bmsOpen .5s var(--bms-ease); }
@keyframes bmsOpen { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Binnenkomen ---------- */
.bms-in-beeld { opacity: 0; transform: translateY(14px); }
.bms.is-zichtbaar .bms-in-beeld { animation: bmsIn .9s var(--bms-ease) forwards; animation-delay: calc(var(--d, 0) * 110ms + 120ms); }
@keyframes bmsIn { to { opacity: 1; transform: none; } }

/* ---------- Schermen ---------- */
@media (max-width: 1180px) {
	.bms-soorten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1060px) {
	.bms-kop { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 24px; }
	.bms-inbegrepen { grid-template-columns: minmax(0, 1fr); }

	/* Tijdlijn verticaal */
	.bms-tijdlijn { grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 0 0 0 34px; }
	.bms-tijdlijn::before, .bms-tijdlijn::after { left: 6px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
	.bms-tijdlijn::after { left: 5.5px; width: 2px; transform: scaleY(0); transform-origin: top; }
	.bms.is-zichtbaar .bms-tijdlijn::after { transform: scaleY(1); }
	.bms-stap-punt { top: 2px; left: -34px; }

	.bms-faq-in { grid-template-columns: minmax(0, 1fr); }
	.bms-faq-kop { position: static; }
}

@media (max-width: 640px) {
	.bms-soorten { grid-template-columns: minmax(0, 1fr); }
	.bms-inbegrepen-lijst { grid-template-columns: minmax(0, 1fr); }
	.bms-vraag summary { padding: 22px 0; }
	.bms-vraag p { padding-right: 0; }
	.bms-werk-onder .bms-btn { width: 100%; justify-content: space-between; }
	.bms-adviseur { max-width: none; padding: 20px 18px 18px; border-radius: 20px; }
	.bms-adviseur-wie b { font-size: 18px; }
	.bms-adviseur-score { display: none; }
	.bms.bms .bms-adviseur-knop { height: 56px; padding-left: 20px; font-size: 15.5px; }
	.bms.bms .bms-adviseur-wa { width: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
	.bms-in-beeld, .bms-regel-in { opacity: 1; transform: none; animation: none !important; }
	.bms-tijdlijn::after { transition: none; }
	.bms-soort, .bms-soort:hover { transform: none; }
}
