/* BeBusy Navigation — alle regels zijn gescoped op .bb-* (geen globale styling). */

.bb-header,
.bb-header *,
.bb-footer,
.bb-footer *,
.bb-skip {
	box-sizing: border-box;
}

.bb-header ul,
.bb-footer ul,
.bb-related ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bb-container {
	width: 100%;
	max-width: calc(var(--bb-container) + var(--bb-gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--bb-gutter);
}

.bb-sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Focus — één consistente, goed zichtbare stijl */
.bb-header :focus-visible,
.bb-footer :focus-visible,
.bb-skip:focus-visible {
	outline: 2px solid var(--brand-focus);
	outline-offset: 3px;
	border-radius: 6px;
}

/* Skip link */
.bb-skip {
	position: absolute;
	left: var(--bb-gutter);
	top: -100px;
	z-index: 1000;
	padding: 10px 16px;
	background: var(--brand-primary);
	color: var(--brand-on-primary);
	font: 600 15px/1 var(--font-body);
	border-radius: var(--radius-button);
	text-decoration: none;
}
.bb-skip:focus {
	top: 12px;
}

/* ---------------------------------------------------------------
 * Button (primaire CTA)
 * ------------------------------------------------------------- */
.bb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 22px;
	border-radius: var(--radius-button);
	font: 600 15px/1 var(--font-body);
	letter-spacing: 0.005em;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color var(--bb-transition), transform var(--bb-transition), box-shadow var(--bb-transition);
}
.bb-btn--primary,
.bb-btn--primary:visited {
	background: var(--brand-accent);
	color: var(--brand-primary);
}
.bb-btn--primary:hover {
	background: var(--brand-accent-hover);
	color: var(--brand-primary);
	box-shadow: 0 6px 18px -8px rgba(6, 30, 63, 0.35);
}
.bb-btn--primary:active {
	transform: translateY(1px);
}
.bb-btn--block {
	display: flex;
	width: 100%;
	min-height: 54px;
	font-size: 16px;
}

/* ---------------------------------------------------------------
 * Header
 * ------------------------------------------------------------- */
.bb-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: var(--brand-background);
	border-bottom: 1px solid transparent;
	font-family: var(--font-body);
	color: var(--brand-text);
	transition: border-color var(--bb-transition), box-shadow var(--bb-transition);
}
.admin-bar .bb-header {
	top: var(--wp-admin--admin-bar--height, 0px);
}
.bb-header.is-scrolled {
	border-bottom-color: var(--brand-border);
}

.bb-header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	height: var(--bb-header-h);
}

/* Logo */
.bb-logo {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	color: var(--brand-primary);
	text-decoration: none;
}
.bb-logo__img {
	display: block;
	height: var(--bb-logo-h);
	width: auto;
}
.bb-logo__text {
	font: 800 24px/1 var(--font-heading);
	letter-spacing: -0.02em;
	color: inherit;
}
.bb-logo--light {
	color: var(--brand-on-primary);
}

/* Desktop nav */
.bb-nav {
	display: none;
	margin-left: auto;
}
.bb-nav__list {
	display: flex;
	align-items: center;
	gap: 4px;
}
.bb-nav__item {
	position: relative;
}
.bb-nav__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 14px;
	border: 0;
	border-radius: 8px;
	background: none;
	color: var(--brand-text);
	font: 500 15px/1 var(--font-body);
	text-decoration: none;
	cursor: pointer;
	transition: color var(--bb-transition), background-color var(--bb-transition);
}
.bb-nav__link:hover,
.bb-nav__toggle[aria-expanded="true"] {
	background: var(--brand-surface);
	color: var(--brand-primary);
}
.bb-nav__link[aria-current="page"],
.bb-nav__link.is-active {
	color: var(--brand-primary);
	font-weight: 600;
	box-shadow: inset 0 -2px 0 var(--brand-accent);
	border-radius: 8px 8px 0 0;
}

.bb-chevron {
	flex-shrink: 0;
	transition: transform var(--bb-transition);
}
[aria-expanded="true"] > .bb-chevron {
	transform: rotate(180deg);
}

/* Dropdown */
.bb-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: -12px;
	width: 380px;
	padding-top: 10px; /* hover-brug tussen knop en paneel */
}
.bb-nav__item--dropdown.is-open .bb-dropdown {
	display: block;
}
.bb-dropdown__list {
	padding: 10px !important;
	background: var(--brand-background);
	border: 1px solid var(--brand-border);
	border-radius: var(--radius-card);
	box-shadow: var(--bb-shadow-dropdown);
}
.bb-dropdown__link {
	display: block;
	padding: 12px 14px;
	border-radius: 10px;
	color: var(--brand-text);
	text-decoration: none;
	transition: background-color var(--bb-transition);
}
.bb-dropdown__link:hover {
	background: var(--brand-surface);
}
.bb-dropdown__title {
	display: block;
	font: 600 15px/1.3 var(--font-heading);
	color: var(--brand-primary);
}
.bb-dropdown__desc {
	display: block;
	margin-top: 3px;
	font: 400 13.5px/1.45 var(--font-body);
	color: var(--brand-muted);
}
.bb-dropdown__link--featured {
	margin-bottom: 6px;
	padding: 14px 14px 14px 16px;
	background: var(--brand-surface);
	box-shadow: inset 3px 0 0 var(--brand-accent);
}
.bb-dropdown__link--featured:hover {
	background: var(--brand-surface-hover);
}
.bb-dropdown__link--featured .bb-dropdown__title {
	font-size: 16px;
}
.bb-dropdown__link[aria-current="page"] .bb-dropdown__title {
	text-decoration: underline;
	text-decoration-color: var(--brand-accent);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

/* Acties rechts */
.bb-header__actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}
.bb-header__cta {
	display: none;
}

/* Hamburger */
.bb-burger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-right: -8px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: none;
	color: var(--brand-primary);
	cursor: pointer;
}
.bb-burger:hover {
	background: var(--brand-surface);
}
.bb-burger__box {
	position: relative;
	display: block;
	width: 22px;
	height: 16px;
}
.bb-burger__line {
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform var(--bb-transition), opacity var(--bb-transition), top var(--bb-transition);
}
.bb-burger__line:nth-child(1) { top: 0; }
.bb-burger__line:nth-child(2) { top: 7px; }
.bb-burger__line:nth-child(3) { top: 14px; }
.bb-burger[aria-expanded="true"] .bb-burger__line:nth-child(1) { top: 7px; transform: rotate(45deg); }
.bb-burger[aria-expanded="true"] .bb-burger__line:nth-child(2) { opacity: 0; }
.bb-burger[aria-expanded="true"] .bb-burger__line:nth-child(3) { top: 7px; transform: rotate(-45deg); }

/* ---------------------------------------------------------------
 * Mobiel menu
 * ------------------------------------------------------------- */
.bb-mobile {
	display: none;
	position: fixed;
	left: 0;
	right: 0;
	top: var(--bb-panel-top, var(--bb-header-h));
	height: calc(100dvh - var(--bb-panel-top, var(--bb-header-h)));
	background: var(--brand-background);
	border-top: 1px solid var(--brand-border);
	overflow-y: auto;
	overscroll-behavior: contain;
}
.bb-header.is-menu-open .bb-mobile {
	display: flex;
	flex-direction: column;
}
.bb-mobile__nav {
	flex: 1 0 auto;
	padding: 8px var(--bb-gutter) 24px;
}
.bb-mobile__item {
	border-bottom: 1px solid var(--brand-border);
}
.bb-mobile__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	min-height: 60px;
	padding: 0 4px;
	border: 0;
	background: none;
	color: var(--brand-text);
	font: 600 18px/1.2 var(--font-heading);
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}
.bb-mobile__link[aria-current="page"] {
	color: var(--brand-primary);
	box-shadow: inset 3px 0 0 var(--brand-accent);
	padding-left: 14px;
}
.bb-mobile__toggle .bb-chevron {
	width: 16px;
	height: 16px;
	color: var(--brand-muted);
}
.bb-mobile__sub {
	display: none;
	padding: 0 0 12px !important;
}
.bb-mobile__item.is-open .bb-mobile__sub {
	display: block;
}
.bb-mobile__sublink {
	display: flex;
	align-items: center;
	min-height: 48px;
	padding: 0 16px;
	border-radius: 10px;
	color: var(--brand-text);
	font: 500 16px/1.3 var(--font-body);
	text-decoration: none;
}
.bb-mobile__sublink:hover,
.bb-mobile__sublink[aria-current="page"] {
	background: var(--brand-surface);
	color: var(--brand-primary);
}
.bb-mobile__footer {
	position: sticky;
	bottom: 0;
	padding: 16px var(--bb-gutter) calc(16px + env(safe-area-inset-bottom, 0px));
	background: var(--brand-background);
	border-top: 1px solid var(--brand-border);
}

html.bb-menu-open,
html.bb-menu-open body {
	overflow: hidden;
}

/* Tablet: CTA zichtbaar in de header */
@media (min-width: 640px) {
	.bb-header__cta {
		display: inline-flex;
	}
}

/* Desktop */
@media (min-width: 1080px) {
	.bb-nav {
		display: block;
	}
	.bb-header__actions {
		margin-left: 8px;
	}
	.bb-burger,
	.bb-mobile,
	.bb-header.is-menu-open .bb-mobile {
		display: none;
	}
}

@media (min-width: 1080px) and (max-width: 1199.98px) {
	.bb-header__inner { gap: 20px; }
	.bb-nav__link { padding: 0 10px; }
}

/* ---------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------- */
.bb-footer {
	--brand-focus: var(--brand-accent);
	background: var(--brand-primary);
	color: var(--brand-on-primary-muted);
	font-family: var(--font-body);
	padding: 72px 0 0;
}
.bb-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	padding-bottom: 56px;
}
.bb-footer__brandline {
	margin: 20px 0 8px;
	font: 600 16px/1.4 var(--font-heading);
	color: var(--brand-accent);
}
.bb-footer__intro {
	margin: 0;
	max-width: 320px;
	font-size: 15px;
	line-height: 1.6;
}
.bb-footer__heading {
	margin: 0 0 16px;
	font: 600 13px/1.2 var(--font-heading);
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--brand-on-primary);
}
.bb-footer__list li + li {
	margin-top: 4px;
}
.bb-footer__link,
.bb-footer__legal-link {
	display: inline-flex;
	align-items: center;
	min-height: 36px;
	color: var(--brand-on-primary-muted);
	font-size: 15px;
	text-decoration: none;
	transition: color var(--bb-transition);
}
.bb-footer__link:hover,
.bb-footer__legal-link:hover,
.bb-footer__link[aria-current="page"],
.bb-footer__legal-link[aria-current="page"] {
	color: var(--brand-on-primary);
	text-decoration: underline;
	text-decoration-color: var(--brand-accent);
	text-underline-offset: 4px;
}
.bb-footer__bottom {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 0 28px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	font-size: 14px;
}
.bb-footer__copy {
	margin: 0;
}
.bb-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0 24px;
}
.bb-footer__legal-link {
	font-size: 14px;
}

@media (min-width: 640px) {
	.bb-footer__grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.bb-footer__brand {
		grid-column: 1 / -1;
	}
}
@media (min-width: 1024px) {
	.bb-footer__grid {
		grid-template-columns: 1.6fr 1fr 1fr 1fr;
		gap: 48px;
	}
	.bb-footer__brand {
		grid-column: auto;
	}
	.bb-footer__bottom {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

/* ---------------------------------------------------------------
 * Interne-linkblok (SEO-architectuur)
 * ------------------------------------------------------------- */
.bb-related__list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 8px;
}
.bb-related__link {
	display: block;
	padding: 14px 16px;
	border: 1px solid var(--brand-border);
	border-radius: var(--radius-card);
	color: var(--brand-primary);
	font-weight: 600;
	text-decoration: none;
}
.bb-related__link:hover {
	border-color: var(--brand-accent);
}

@media (prefers-reduced-motion: reduce) {
	.bb-header *,
	.bb-footer *,
	.bb-btn {
		transition: none !important;
	}
}
