/* Blok: header */

/* Het template-part om de header heen plakt bovenaan (niet de header zelf:
   sticky werkt alleen binnen een ouder die hoger is dan het element). */
.blitz-site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
}

.blitz-header {
	background: color-mix(in srgb, var(--b-ground) 90%, transparent);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--b-line);
	font-family: var(--b-font);
	color: var(--b-ink);
}

.blitz-header__bar {
	min-height: var(--b-header-h);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

/* Logo */
.blitz-header__logo { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.blitz-header__logo img { height: auto; max-height: 56px; }

.blitz-header__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--b-r-sm);
	background: var(--b-ink);
	color: var(--b-accent);
}

.blitz-header__word { display: flex; flex-direction: column; line-height: 1; }
.blitz-header__name { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.blitz-header__sub { margin-top: 4px; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--b-muted); }

/* Menu */
.blitz-header__list { display: flex; align-items: center; gap: 2px; }
.blitz-header__item { position: relative; }

.blitz-header__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 44px;
	padding: 0 12px;
	border: 0;
	border-radius: 10px;
	background: none;
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	color: var(--b-ink);
	cursor: pointer;
	transition: background-color .2s ease;
}

.blitz-header__link:hover { background: color-mix(in srgb, var(--b-ink) 6%, transparent); }
.blitz-header__link[aria-current="page"] { font-weight: 700; }
.blitz-header__link svg { transition: transform .25s ease; }

/* Uitklapmenu: open bij hover en focus (CSS), klik en Escape (JS). */
.blitz-header__drop {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	min-width: 300px;
	padding: 8px;
	background: var(--b-paper);
	border: 1px solid var(--b-line);
	border-radius: var(--b-r-lg);
	box-shadow: var(--b-shadow-drop);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
}

/* Brug over het gat tussen knop en paneel, zodat hover niet wegvalt. */
.blitz-header__drop::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }

.has-drop:hover > .blitz-header__drop,
.has-drop:focus-within > .blitz-header__drop,
.blitz-header__drop.is-open { opacity: 1; visibility: visible; transform: none; }

.has-drop:hover > .blitz-header__link svg,
.has-drop:focus-within > .blitz-header__link svg,
.blitz-header__link[aria-expanded="true"] svg { transform: rotate(180deg); }

.blitz-header__drop a {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px 14px;
	border-radius: 10px;
	transition: background-color .2s ease;
}

.blitz-header__drop a:hover { background: var(--b-ground); }
.blitz-header__drop-label { font-weight: 600; }
.blitz-header__drop-desc { font-size: 13px; color: var(--b-muted); }

.blitz-header__drop .has-desc:not(:last-child) {
	padding-bottom: 4px;
	margin-bottom: 4px;
	border-bottom: 1px solid var(--b-line-soft);
}

/* Rechts */
.blitz-header__actions { display: flex; align-items: center; gap: 10px; }

.blitz-header__burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid var(--b-line);
	border-radius: var(--b-r-sm);
	background: var(--b-paper);
	color: var(--b-ink);
	cursor: pointer;
}

.blitz-header__ico-close { display: none; }
.blitz-header__burger[aria-expanded="true"] .blitz-header__ico-open { display: none; }
.blitz-header__burger[aria-expanded="true"] .blitz-header__ico-close { display: inline-flex; }

/* Mobiel menu */
.blitz-header__mobile {
	border-top: 1px solid var(--b-line);
	background: var(--b-ground);
	padding: 8px 0 28px;
	max-height: calc(100vh - var(--b-header-h));
	max-height: calc(100dvh - var(--b-header-h));
	overflow-y: auto;
}

.blitz-header__m-link {
	display: flex;
	align-items: center;
	min-height: 52px;
	border-bottom: 1px solid var(--b-line);
	font-size: 18px;
	font-weight: 500;
}

.blitz-header__m-link[aria-current="page"] { font-weight: 700; }

.blitz-header__m-sub {
	display: flex;
	flex-direction: column;
	padding: 4px 0 8px 16px;
	border-bottom: 1px solid var(--b-line);
}

.blitz-header__m-sub a { display: flex; align-items: center; min-height: 44px; color: var(--b-muted); }
.blitz-header__m-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.blitz-header__m-actions .blitz-btn { width: 100%; }

@media (max-width: 1120px) {
	.blitz-header__nav,
	.blitz-header__cta { display: none !important; }
	.blitz-header__burger { display: inline-flex; }
}

@media (min-width: 1121px) {
	.blitz-header__mobile { display: none !important; }
}
