/**
 * Header (Sketch 01.0 / 01.1 / 04.0, 1440 breed). Uitgelezen 17-11-2026:
 *   0–50     streep: magenta en teal links, daarna paars (images/streep.svg)
 *   101–150  bovenbalk rechts: "Intranet" (Comfortaa Bold 16, paars) en de
 *            knop "Werken bij" (pil 144 × 49, magenta, met tealcirkel en
 *            paarse druppel als versiering)
 *   145–212  logo links, 285 × 67
 *   175–203  hoofdmenu rechts: Mulish Bold 18/22, #1D1D1B, actief magenta
 *   Uitklapmenu: grijze kaart #F1F1F1, 205 breed, Mulish Regular 17/29
 *
 * Opbouw in de Kadence header builder: zie SETUP.md §5.
 */

/* ============================================================
   1. STREEP BOVENAAN
   SVG voor het linkerdeel; de paarse balk loopt door met een gradient.
   ============================================================ */
#masthead {
    position: relative;
    background: var(--cw-wit);
    --streep: var(--cw-streep-hoogte);
}

#masthead::before {
    content: "";
    display: block;
    height: var(--streep);
    background:
        url("../images/streep.svg") left top / calc(var(--streep) * 6.8) var(--streep) no-repeat,
        linear-gradient(#652580, #652580) calc(var(--streep) * 6) 0 / 100% 100% no-repeat;
}

@media (max-width: 1024px) {
    #masthead {
        --streep: 30px;
    }
}

/* ============================================================
   2. BOVENBALK: Intranet + knop Werken bij
   Rij van 50 px hoog, 50 px onder de streep; items onderaan uitgelijnd.
   ============================================================ */
#masthead .site-top-header-wrap .site-header-row-container-inner {
    background: transparent;
    border: 0;
}

#masthead .site-top-header-wrap .site-header-row {
    min-height: 100px;
    align-items: end;
}

#masthead .secondary-navigation .menu > li > a {
    font-family: var(--cw-font);
    font-size: var(--cw-bovenbalk-size);
    line-height: 1.2;
    font-weight: 700;
    color: var(--cw-kleur-bovenbalk);
    padding: 0 20px;
}

#masthead .secondary-navigation .menu > li > a:hover {
    color: var(--cw-kleur-menu-actief);
}

/* Knop "Werken bij" (Kadence header-knop) */
#masthead .header-button-wrap {
    position: relative;
    margin-right: 30px; /* ruimte voor de versiering */
}

#masthead .header-button-wrap .header-button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 49px;
    padding: 0 28px;
    border: 0;
    border-radius: 25px;
    background: var(--cw-magenta);
    color: var(--cw-wit);
    font-family: var(--cw-font);
    font-size: var(--cw-bovenbalk-size);
    font-weight: 700;
    box-shadow: none;
}

#masthead .header-button-wrap .header-button:hover {
    background: var(--cw-paars);
    color: var(--cw-wit);
}

/* Versiering: tealcirkel over het einde van de knop, paarse druppel eronder */
#masthead .header-button-wrap::before,
#masthead .header-button-wrap::after {
    content: "";
    position: absolute;
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: multiply;
}

#masthead .header-button-wrap::before {
    width: 40px;
    height: 40px;
    right: -26px;
    top: -10px;
    border-radius: 50%;
    background: #40B7B6;
}

#masthead .header-button-wrap::after {
    width: 22px;
    height: 22px;
    right: -32px;
    bottom: -6px;
    border-radius: 0 50% 50% 50%;
    background: var(--cw-paars);
}

/* ============================================================
   3. LOGO
   ============================================================ */
#masthead .site-branding .custom-logo,
#masthead .site-branding img {
    width: var(--cw-logo-breed);
    max-width: 100%;
    height: auto;
    max-height: none;
}

/* ============================================================
   4. HOOFDMENU
   ============================================================ */
#masthead .site-main-header-wrap .site-header-row {
    min-height: 80px;
}

#masthead .main-navigation .primary-menu-container > ul > li.menu-item > a {
    font-family: var(--cw-font-menu);
    font-size: var(--cw-menu-size);
    line-height: 1.22;
    font-weight: 700;
    color: var(--cw-kleur-menu);
    padding-left: 18px;
    padding-right: 18px;
}

#masthead .main-navigation .primary-menu-container > ul > li.menu-item > a:hover,
#masthead .main-navigation .primary-menu-container > ul > li.current-menu-item > a,
#masthead .main-navigation .primary-menu-container > ul > li.current-menu-ancestor > a,
#masthead .main-navigation .primary-menu-container > ul > li.current-page-ancestor > a,
#masthead .main-navigation .primary-menu-container > ul > li.menu-item:focus-within > a {
    color: var(--cw-kleur-menu-actief);
}

#masthead .main-navigation .primary-menu-container > ul > li.menu-item:last-child > a {
    padding-right: 0;
}

/* Uitklapmenu (01.1): grijze kaart, scherpe hoek linksboven */
#masthead .header-navigation .sub-menu {
    width: 205px;
    padding: 20px 0;
    background: var(--cw-vlak);
    border-radius: var(--cw-submenu-radius);
    box-shadow: none;
    overflow: hidden;
}

#masthead .header-navigation .sub-menu li.menu-item > a {
    width: 100%;
    padding: 0 25px;
    border: 0;
    background: transparent;
    font-family: var(--cw-font-menu);
    font-size: var(--cw-submenu-size);
    line-height: 29px;
    font-weight: 400;
    color: var(--cw-tekst);
}

#masthead .header-navigation .sub-menu li.menu-item > a:hover,
#masthead .header-navigation .sub-menu li.current-menu-item > a {
    background: transparent;
    color: var(--cw-magenta);
}

/* ============================================================
   5. KLEINERE SCHERMEN (geen design: zelf bepaald)
   ============================================================ */
@media (max-width: 1280px) {
    #masthead .site-branding .custom-logo,
    #masthead .site-branding img {
        width: 220px;
    }

    #masthead .main-navigation .primary-menu-container > ul > li.menu-item > a {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Mobiele header: logo links, hamburger rechts */
#masthead .site-mobile-header-wrap .site-header-row {
    min-height: 80px;
}

#masthead .site-mobile-header-wrap .site-branding img {
    width: 180px;
}

#masthead .mobile-toggle-open-container .menu-toggle-open {
    width: 48px;
    height: 48px;
    padding: 0;
    justify-content: center;
    border-radius: 24px 0 24px 24px; /* Paraat-vorm */
    background: var(--cw-paars);
    color: var(--cw-wit);
}

#masthead .mobile-toggle-open-container .menu-toggle-open:hover,
#masthead .mobile-toggle-open-container .menu-toggle-open:focus-visible {
    background: var(--cw-magenta);
}

/* Mobiele lade in paars */
#mobile-drawer .drawer-inner {
    background: var(--cw-paars);
    color: var(--cw-wit);
}

#mobile-drawer .mobile-navigation ul li > a,
#mobile-drawer .mobile-navigation ul li .drawer-nav-drop-wrap > a {
    font-family: var(--cw-font-menu);
    font-size: 20px;
    font-weight: 700;
    color: var(--cw-wit);
}

#mobile-drawer .mobile-navigation ul li.current-menu-item > a,
#mobile-drawer .mobile-navigation ul li > a:hover {
    color: var(--cw-wit);
    text-decoration: underline;
    text-underline-offset: 4px;
}

#mobile-drawer .mobile-navigation ul ul li > a {
    font-size: 17px;
    font-weight: 400;
}

#mobile-drawer .drawer-toggle,
#mobile-drawer .drawer-sub-toggle {
    color: var(--cw-wit);
}
