/* CBS header 2026 – printed by inc/cbs-header.php, loaded only while the theme
   header is on. Design: docs/design/header/index.html (working branch).
   Every selector carries at least two classes so it beats the Elementor kit's
   element rules (.elementor-kit-21823 a / button / p, specificity 0,1,1)
   whatever the stylesheet order; hover/focus states of buttons are restated
   because the kit paints every button:hover orange. */

:root {
	--cbs-navy: #041B4A;
	--cbs-orange: #F35C27;
	--cbs-orange-dark: #D94E1F;
	--cbs-text: #454545;
	--cbs-line: #E6E9F0;
	--cbs-tint: #FDF4EF;
	--cbs-paper: #FBFAF8;
	--cbs-head: "Alegreya Sans", sans-serif;
	--cbs-body: "Fira Sans", sans-serif;
	--cbs-container: 1200px;
	--cbs-header-h: 88px;
}
/* anchors (#offerte and the like) land below the sticky row */
:root:has(body.cbs-header-v2) { scroll-padding-top: calc(var(--cbs-header-h) + 8px); }

.cbs-topbar, .cbs-header, .cbs-drawer { box-sizing: border-box; font-family: var(--cbs-body); font-size: 16px; line-height: 1.4; color: var(--cbs-text); }
.cbs-topbar *, .cbs-header *, .cbs-drawer * { box-sizing: border-box; }
.cbs-topbar ul, .cbs-header ul, .cbs-drawer ul { list-style: none; margin: 0; padding: 0; }
.cbs-topbar svg, .cbs-header svg, .cbs-drawer svg { display: block; }
.cbs-topbar a, .cbs-header a, .cbs-drawer a { color: inherit; text-decoration: none; }
.cbs-topbar :focus-visible, .cbs-header :focus-visible, .cbs-drawer :focus-visible { outline: 2px solid var(--cbs-orange); outline-offset: 2px; }
.cbs-topbar .cbs-container, .cbs-header .cbs-container { max-width: var(--cbs-container); margin: 0 auto; padding: 0 20px; }

/* ---------- top bar ---------- */
.cbs-topbar { background: var(--cbs-navy); color: rgba(255, 255, 255, .86); font-size: 13px; height: 40px; }
.cbs-topbar > .cbs-container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }
.cbs-topbar .cbs-topbar__contacts { display: flex; gap: 22px; align-items: center; min-width: 0; }
.cbs-topbar .cbs-topbar__contacts a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; color: rgba(255, 255, 255, .86); font-weight: 400; text-decoration: none; }
.cbs-topbar .cbs-topbar__contacts a:hover { color: #fff; text-decoration: none; }
.cbs-topbar .cbs-topbar__contacts svg { width: 14px; height: 14px; color: var(--cbs-orange); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cbs-topbar .cbs-topbar__right { display: flex; align-items: center; gap: 4px; }
.cbs-topbar .cbs-social, .cbs-drawer .cbs-social { display: flex; gap: 2px; }
.cbs-topbar .cbs-social a, .cbs-drawer .cbs-social a { width: 30px; height: 30px; display: grid; place-items: center; padding: 0; border-radius: 6px; color: rgba(255, 255, 255, .72); text-decoration: none; }
.cbs-topbar .cbs-social a:hover, .cbs-drawer .cbs-social a:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.cbs-topbar .cbs-social svg, .cbs-drawer .cbs-social svg { width: 16px; height: 16px; fill: currentColor; }
.cbs-topbar .cbs-sep { width: 1px; height: 18px; background: rgba(255, 255, 255, .18); margin: 0 8px; }
.cbs-topbar .cbs-lang, .cbs-drawer .cbs-lang { display: flex; gap: 2px; font-weight: 500; letter-spacing: .04em; }
.cbs-topbar .cbs-lang a, .cbs-drawer .cbs-lang a { padding: 4px 7px; border-radius: 5px; color: rgba(255, 255, 255, .7); font-weight: 500; text-decoration: none; }
.cbs-topbar .cbs-lang a[aria-current], .cbs-drawer .cbs-lang a[aria-current] { color: #fff; background: rgba(255, 255, 255, .12); }
.cbs-topbar .cbs-lang a:hover, .cbs-drawer .cbs-lang a:hover { color: #fff; text-decoration: none; }
.cbs-topbar .cbs-search { display: flex; align-items: center; margin: 0; }
.cbs-topbar .cbs-search input { width: 0; opacity: 0; height: 30px; margin: 0; padding: 0; border: 0; border-radius: 6px; font: inherit; font-size: 13px; line-height: 30px; color: var(--cbs-navy); background: #fff; box-shadow: none; transition: width .25s, opacity .2s, padding .25s; }
.cbs-topbar .cbs-search.is-open input, .cbs-topbar .cbs-search:focus-within input { width: 220px; opacity: 1; padding: 0 10px; margin-right: 4px; }
.cbs-topbar .cbs-search button { width: 30px; height: 30px; padding: 0; margin: 0; border: 0; border-radius: 6px; background: transparent; color: rgba(255, 255, 255, .85); display: grid; place-items: center; box-shadow: none; line-height: 1; cursor: pointer; }
.cbs-topbar .cbs-search button:hover, .cbs-topbar .cbs-search button:focus { color: #fff; background: rgba(255, 255, 255, .08); box-shadow: none; }
.cbs-topbar .cbs-search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* ---------- main row ---------- */
.cbs-header { position: sticky; top: 0; z-index: 990; background: #fff; border-bottom: 1px solid var(--cbs-line); transition: box-shadow .2s; }
body.admin-bar .cbs-header { top: 32px; }
.cbs-header.is-scrolled { box-shadow: 0 8px 24px rgba(4, 27, 74, .10); }
.cbs-header > .cbs-container { display: flex; align-items: center; height: var(--cbs-header-h); gap: 20px; }
.cbs-header .cbs-logo { display: flex; align-items: center; flex: none; }
.cbs-header .cbs-logo img { height: 44px; width: auto; max-width: none; display: block; }
.cbs-header .cbs-nav-wrap { margin-left: auto; min-width: 0; }
.cbs-header .cbs-nav { display: flex; align-items: center; }
.cbs-header .cbs-nav > li { position: relative; }
.cbs-header .cbs-nav > li.cbs-mega-holder { position: static; }
/* 17px / 11px at every desktop width: the Dutch row (Particulier … Werkproces,
   Blog + "Offerte aanvragen") is ~40px too wide for the 1200px grid at the
   mockup's 18px / 13px, and the grid does not grow with the viewport. */
.cbs-header .cbs-nav > li > a, .cbs-header .cbs-nav > li > button { display: flex; align-items: center; gap: 5px; height: var(--cbs-header-h); padding: 0 11px; margin: 0; font-family: var(--cbs-head); font-weight: 500; font-size: 17px; line-height: 1; letter-spacing: 0; text-transform: none; color: var(--cbs-navy); position: relative; white-space: nowrap; background: none; border: 0; border-radius: 0; box-shadow: none; text-decoration: none; cursor: pointer; }
.cbs-header .cbs-nav > li > button:hover, .cbs-header .cbs-nav > li > button:focus { background: none; box-shadow: none; }
.cbs-header .cbs-nav > li > * > svg { width: 11px; height: 11px; fill: none; stroke: #8A93A8; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s, stroke .2s; margin-top: 2px; }
.cbs-header .cbs-nav > li > a::after, .cbs-header .cbs-nav > li > button::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 24px; height: 2px; border-radius: 2px; background: var(--cbs-orange); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.cbs-header .cbs-nav > li:hover > a, .cbs-header .cbs-nav > li:hover > button,
.cbs-header .cbs-nav > li.is-open > a, .cbs-header .cbs-nav > li.is-open > button,
.cbs-header .cbs-nav > li.is-active > a, .cbs-header .cbs-nav > li.is-active > button { color: var(--cbs-orange); text-decoration: none; }
.cbs-header .cbs-nav > li:hover > *::after, .cbs-header .cbs-nav > li.is-open > *::after, .cbs-header .cbs-nav > li.is-active > *::after { transform: scaleX(1); }
.cbs-header .cbs-nav > li.is-open > * > svg { transform: rotate(180deg); stroke: var(--cbs-orange); }
.cbs-header .cbs-cta, .cbs-drawer .cbs-cta { margin-left: 6px; flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--cbs-orange); color: #fff; font-family: var(--cbs-body); font-weight: 500; font-size: 15px; line-height: 1; padding: 0 20px; height: 44px; border-radius: 8px; white-space: nowrap; text-decoration: none; transition: background .15s; }
.cbs-header .cbs-cta:hover, .cbs-drawer .cbs-cta:hover { background: var(--cbs-orange-dark); color: #fff; text-decoration: none; }
.cbs-header .cbs-burger { display: none; width: 44px; height: 44px; padding: 0; margin: 0 0 0 auto; border: 0; border-radius: 8px; background: var(--cbs-tint); color: var(--cbs-navy); place-items: center; box-shadow: none; cursor: pointer; }
.cbs-header .cbs-burger:hover, .cbs-header .cbs-burger:focus { background: var(--cbs-tint); color: var(--cbs-orange); box-shadow: none; }
.cbs-header .cbs-burger svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.cbs-header .cbs-phone-btn { display: none; width: 44px; height: 44px; border-radius: 8px; background: var(--cbs-orange); color: #fff; place-items: center; flex: none; text-decoration: none; }
.cbs-header .cbs-phone-btn:hover { background: var(--cbs-orange-dark); color: #fff; text-decoration: none; }
.cbs-header .cbs-phone-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- dropdown ---------- */
.cbs-header .cbs-dd { position: absolute; top: 100%; left: 0; z-index: 5; min-width: 270px; background: #fff; border: 1px solid var(--cbs-line); border-radius: 10px; box-shadow: 0 18px 44px rgba(4, 27, 74, .14); padding: 8px; margin-top: -1px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.cbs-header .cbs-nav > li:nth-last-child(-n+3) > .cbs-dd { left: auto; right: 0; }
.cbs-header .cbs-nav > li.is-open > .cbs-dd { opacity: 1; visibility: visible; transform: none; }
.cbs-header .cbs-dd a { display: block; padding: 9px 12px; border-radius: 6px; font-size: 15px; font-weight: 400; color: var(--cbs-navy); white-space: nowrap; text-decoration: none; }
.cbs-header .cbs-dd a:hover, .cbs-header .cbs-dd a[aria-current] { background: var(--cbs-tint); color: var(--cbs-orange); text-decoration: none; }

/* ---------- mega panel ---------- */
.cbs-header .cbs-mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: #fff; border-top: 3px solid var(--cbs-orange); box-shadow: 0 26px 54px rgba(4, 27, 74, .16); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .2s, transform .2s, visibility .2s; }
.cbs-header.mega-open .cbs-mega { opacity: 1; visibility: visible; transform: none; }
.cbs-header .cbs-mega__grid { display: grid; grid-template-columns: 1fr 1fr 1fr 300px; gap: 14px 40px; padding: 30px 0 34px; }
.cbs-header .cbs-mega__head { display: flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--cbs-orange); padding-bottom: 11px; margin-bottom: 6px; border-bottom: 1px solid var(--cbs-line); }
.cbs-header .cbs-mega__head svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cbs-header .cbs-mega__col a { display: flex; align-items: center; padding: 7px 10px; margin: 0 -10px; border-radius: 6px; font-size: 15px; font-weight: 400; line-height: 1.25; color: var(--cbs-navy); text-decoration: none; transition: color .15s, background .15s; }
.cbs-header .cbs-mega__col a::before { content: ""; width: 0; height: 2px; background: var(--cbs-orange); border-radius: 2px; transition: width .18s, margin .18s; }
.cbs-header .cbs-mega__col a:hover, .cbs-header .cbs-mega__col a[aria-current] { background: var(--cbs-tint); color: var(--cbs-orange); text-decoration: none; }
.cbs-header .cbs-mega__col a:hover::before, .cbs-header .cbs-mega__col a[aria-current]::before { width: 12px; margin-right: 9px; }
.cbs-header .cbs-promo { background: var(--cbs-navy); color: #fff; border-radius: 12px; padding: 26px 24px; display: flex; flex-direction: column; position: relative; overflow: hidden; align-self: start; }
.cbs-header .cbs-promo::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(243, 92, 39, .45), transparent 70%); }
.cbs-header .cbs-promo .cbs-promo__title { font-family: var(--cbs-head); font-weight: 500; font-size: 24px; line-height: 1.2; color: #fff; margin: 0 0 8px; position: relative; }
.cbs-header .cbs-promo p { font-family: var(--cbs-body); font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .78); margin: 0 0 20px; position: relative; }
.cbs-header .cbs-promo .cbs-btn { align-self: flex-start; position: relative; background: var(--cbs-orange); color: #fff; font-weight: 500; font-size: 14px; line-height: 1.2; padding: 11px 18px; border-radius: 8px; text-decoration: none; transition: background .15s; }
.cbs-header .cbs-promo .cbs-btn:hover { background: var(--cbs-orange-dark); color: #fff; text-decoration: none; }
.cbs-header .cbs-promo .cbs-all { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .75); position: relative; text-decoration: none; }
.cbs-header .cbs-promo .cbs-all:hover { color: #fff; text-decoration: none; }

/* ---------- mobile drawer ---------- */
.cbs-drawer { position: fixed; inset: 0; z-index: 9990; visibility: hidden; transition: visibility .3s; }
.cbs-drawer .cbs-drawer__scrim { position: absolute; inset: 0; background: rgba(4, 27, 74, .55); opacity: 0; transition: opacity .25s; }
.cbs-drawer .cbs-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; transform: translateX(100%); transition: transform .28s; display: flex; flex-direction: column; overflow: auto; -webkit-overflow-scrolling: touch; }
body.drawer-open .cbs-drawer { visibility: visible; }
body.drawer-open .cbs-drawer .cbs-drawer__scrim { opacity: 1; }
body.drawer-open .cbs-drawer .cbs-drawer__panel { transform: none; }
body.drawer-open { overflow: hidden; }
.cbs-drawer .cbs-drawer__top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--cbs-line); }
.cbs-drawer .cbs-drawer__top img { height: 34px; width: auto; max-width: none; display: block; }
.cbs-drawer .cbs-drawer__close { width: 40px; height: 40px; padding: 0; margin: 0; border: 0; border-radius: 8px; background: var(--cbs-tint); color: var(--cbs-navy); display: grid; place-items: center; box-shadow: none; cursor: pointer; }
.cbs-drawer .cbs-drawer__close:hover, .cbs-drawer .cbs-drawer__close:focus { background: var(--cbs-tint); color: var(--cbs-orange); box-shadow: none; }
.cbs-drawer .cbs-drawer__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.cbs-drawer .cbs-mnav > li { border-bottom: 1px solid var(--cbs-line); }
.cbs-drawer .cbs-mnav > li > a, .cbs-drawer .cbs-mnav > li > button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 15px 20px; margin: 0; font-family: var(--cbs-head); font-weight: 500; font-size: 19px; line-height: 1.2; letter-spacing: 0; text-transform: none; color: var(--cbs-navy); background: none; border: 0; border-radius: 0; box-shadow: none; text-align: left; text-decoration: none; cursor: pointer; }
.cbs-drawer .cbs-mnav > li > button:hover, .cbs-drawer .cbs-mnav > li > button:focus { background: none; color: var(--cbs-navy); box-shadow: none; }
.cbs-drawer .cbs-mnav > li > button svg { width: 14px; height: 14px; fill: none; stroke: #8A93A8; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; flex: none; }
.cbs-drawer .cbs-mnav > li.is-open > button, .cbs-drawer .cbs-mnav > li.is-open > button:hover, .cbs-drawer .cbs-mnav > li.is-open > button:focus { color: var(--cbs-orange); }
.cbs-drawer .cbs-mnav > li.is-open > button svg { transform: rotate(180deg); stroke: var(--cbs-orange); }
.cbs-drawer .cbs-sub { display: none; padding: 2px 20px 14px; background: var(--cbs-paper); }
.cbs-drawer .cbs-mnav > li.is-open > .cbs-sub { display: block; }
.cbs-drawer .cbs-sub a { display: block; padding: 9px 0; font-size: 15.5px; font-weight: 400; color: var(--cbs-navy); text-decoration: none; }
.cbs-drawer .cbs-sub a:hover, .cbs-drawer .cbs-sub a:active, .cbs-drawer .cbs-sub a[aria-current] { color: var(--cbs-orange); text-decoration: none; }
.cbs-drawer .cbs-sub .cbs-grp { font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--cbs-orange); padding: 14px 0 4px; }
.cbs-drawer .cbs-sub .cbs-grp:first-child { padding-top: 10px; }
.cbs-drawer .cbs-sub .cbs-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 500; color: var(--cbs-orange); }
.cbs-drawer .cbs-sub .cbs-more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cbs-drawer .cbs-drawer__cta { padding: 18px 20px 6px; }
.cbs-drawer .cbs-drawer__cta .cbs-cta { display: flex; width: 100%; margin: 0; }
.cbs-drawer .cbs-drawer__foot { margin-top: auto; padding: 18px 20px 22px; background: var(--cbs-navy); color: rgba(255, 255, 255, .86); font-size: 14px; }
.cbs-drawer .cbs-drawer__foot > a { display: flex; align-items: center; gap: 9px; padding: 6px 0; color: rgba(255, 255, 255, .86); text-decoration: none; }
.cbs-drawer .cbs-drawer__foot > a:hover { color: #fff; text-decoration: none; }
.cbs-drawer .cbs-drawer__foot > a svg { width: 15px; height: 15px; color: var(--cbs-orange); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.cbs-drawer .cbs-drawer__row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .14); }

/* ---------- breakpoints ----------
   Below 1240px the grid shrinks with the viewport, so the CTA tightens first;
   the drawer takes over below 1200px (tablets in landscape included). */
@media (max-width: 1439px) {
	.cbs-header .cbs-cta { padding: 0 16px; }
}
@media (max-width: 1199px) {
	:root { --cbs-header-h: 72px; }
	.cbs-header .cbs-nav-wrap, .cbs-header .cbs-cta { display: none; }
	.cbs-header .cbs-burger, .cbs-header .cbs-phone-btn { display: grid; }
	.cbs-header > .cbs-container { gap: 12px; }
	.cbs-header .cbs-logo img { height: 38px; }
	.cbs-header .cbs-phone-btn { margin-left: auto; }
	.cbs-header .cbs-burger { margin-left: 0; }
	.cbs-topbar .cbs-social, .cbs-topbar .cbs-sep, .cbs-topbar .cbs-search { display: none; }
}
@media (max-width: 899px) {
	.cbs-topbar .cbs-topbar__contacts .addr { display: none; }
}
@media (max-width: 782px) {
	body.admin-bar .cbs-header { top: 46px; }
}
@media (max-width: 640px) {
	.cbs-topbar { height: 36px; font-size: 12.5px; }
	.cbs-topbar .cbs-topbar__contacts { gap: 14px; }
	.cbs-topbar .cbs-topbar__contacts .mail { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.cbs-topbar *, .cbs-header *, .cbs-drawer * { transition: none !important; }
}
