/* =========================
   DNKRS Site Header
   ========================= */
.site-header {
    --header-teal: #1A9189;
    --header-teal-light: #3cb6a6;
    --header-coral: #EF6A4D;
    --header-coral-dark: #d65540;
    --header-text: #1f1f1f;
    --header-border: #e2e2e2;

    position: relative;
    background: #fff;
    font-family: inherit;
    z-index: 100;
}

/* Groene balk bovenaan, waarvoor het logo uitsteekt */
.site-header__bar {
    height: 14px;
    background: var(--header-teal-light);
}


.site-header__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 0px;
    display: block;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: start;
    min-height: 130px;
    position: relative;
    margin-bottom:15px;
}

/* =========================
   Logo (steekt uit boven de balk)
   ========================= */
.site-header__logo {
    display: inline-block;
    background: #fff;
    border-radius: 0 0 18px 18px;
    padding: 12px 22px 18px;
    margin-top: -14px; /* compenseer de groene bar zodat logo erboven uitsteekt */
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    align-self: start;
    grid-row: 1 / span 2;
    position:absolute;
    transform: skewY(4deg);
    top: -6px;
}

.site-header__logo img {
    display: block;
    height: 88px;
    width: auto;
    transform: skewY(-4deg);
}

.site-header__logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--header-coral);
}

/* =========================
   Mobile toggle
   ========================= */
.site-header__toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    align-self: center;
    top: 8px;
    position: relative;
}

.site-header__toggle-bar {
    display: block;
    width: 40px;
    height: 6px;
    border-radius:3px;
    background: #fff;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(2) {
    opacity: 0;
}
.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================
   Nav (rechts van het logo)
   ========================= */
.site-header__nav {
    display: contents; /* laat children zelf de grid invullen */
}

/* =========================
   Top row (rechtsboven: Tarieven + Contact)
   ========================= */
.site-header__top {
    grid-column: 2;
    display: flex;
    justify-content: flex-end;
    padding-top: 30px;
    margin-bottom:40px;
}

.top-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
    align-items: center;
}

.top-menu li a {
    display: inline-block;
    padding: 8px 18px;
    color: var(--header-teal);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.top-menu li a:hover {
    background: rgba(60, 182, 166, 0.1);
}

/* Eerste top-menu item krijgt teal pill (Tarieven) — kan via CSS class is-pill overrulen */
.top-menu li:first-child a,
.top-menu li.is-pill a {
    background: var(--header-teal-light);
    color: #fff;
    padding: 5px 22px;
    font-weight:700;
    font-size:16px;
    font-family: Nunito;
}

.top-menu li:first-child a:hover,
.top-menu li.is-pill a:hover {
    background: var(--header-teal);
}

/* =========================
   Main row (hoofdmenu + CTA + zoekvenster)
   ========================= */
.site-header__main {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0 22px;
}

/* Home icoon */
.site-header__home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--header-teal);
    text-decoration: none;
    width: 36px;
    height: 36px;
    transition: color 0.2s ease;
    position:relative;
}
.site-header__home.active::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    bottom: -5px;
    height: 7px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 275 8' fill='none' preserveAspectRatio='none'><path d='M1 1.6C1 1.6 41.5 1.5 81.9 1.4 162.8 1.1 205.9 1 252.1 1.3 251.9 1.5 248.7 1.9 210.7 2.7 100.4 4.5 24.5 6 24.7 6.7 26.3 6.9 30.7 7.1 73.8 6.9 198.4 5.8 276.5 5.3 270.5 5.4 255.4 5.7 246.2 5.8 246.2 5.8' stroke='%23e8674f' stroke-width='2' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 100% 100%;
}


.site-header__home svg {
    width: 29px;
    height: 29px;
}

.site-header__home:hover {
    color: var(--header-teal-light);
}

/* Primary menu */
.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.primary-menu > li {
    position: relative;
    display: flex;
    align-items: center;
}

.primary-menu > li > a {
    font-family:Nunito;
    display: inline-block;
    padding: 10px 14px;
    color: var(--header-teal);
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    transition: color 0.2s ease;
}

.primary-menu > li > a > span {
    display: inline;
    font-weight: 700;
}

.primary-menu > li > a:hover {
    color: var(--header-teal-light);
}

/* Active/current item — coral scribble onderstreping */
.primary-menu > .current-menu-item > a,
.primary-menu > .current-menu-parent > a,
.primary-menu > .current-menu-ancestor > a {
    position: relative;
}

.primary-menu > .current-menu-item > a::after,
.primary-menu > .current-menu-parent > a::after,
.primary-menu > .current-menu-ancestor > a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 5px;
    height: 7px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 275 8' fill='none' preserveAspectRatio='none'><path d='M1 1.6C1 1.6 41.5 1.5 81.9 1.4 162.8 1.1 205.9 1 252.1 1.3 251.9 1.5 248.7 1.9 210.7 2.7 100.4 4.5 24.5 6 24.7 6.7 26.3 6.9 30.7 7.1 73.8 6.9 198.4 5.8 276.5 5.3 270.5 5.4 255.4 5.7 246.2 5.8 246.2 5.8' stroke='%23e8674f' stroke-width='2' stroke-linecap='round'/></svg>");
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 100% 100%;
}

/* Submenu chevron-knop */
.primary-menu__sub-toggle {
    border: 0;
    background: transparent;
    color: var(--header-teal);
    cursor: pointer;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    margin-left: -12px;
    transition: transform 0.2s ease;
}

.primary-menu__sub-toggle svg {
    width: 16px;
    height: 16px;
}

.primary-menu li.is-open > .primary-menu__sub-toggle,
.primary-menu li:hover > .primary-menu__sub-toggle {
    transform: rotate(180deg);
}

/* =========================
   Submenu (dropdown)
   ========================= */
.primary-menu .sub-menu {
    list-style: none;
    margin: 0;
    padding: 14px 8px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    min-width: 260px;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 10;
}

.primary-menu .sub-menu li a {
    font-family: Nunito;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--header-teal);
    text-decoration: none;
    font-size: 18px;
    font-weight: 700 !important;
    border-radius: 8px;
    transition: background-color 0.15s ease;
}
.primary-menu .sub-menu li a span {
    font-weight: 700 !important;
}

.primary-menu .sub-menu li a:hover {
    background: rgba(60, 182, 166, 0.08);
}

/* Icoon naast submenu-item */
.primary-menu__sub-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.primary-menu__sub-icon img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* Open via hover (desktop) */
@media (min-width: 1025px) {
    .primary-menu > li.menu-item-has-children:hover > .sub-menu,
    .primary-menu > li.menu-item-has-children:focus-within > .sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

/* Open via click (mobile + a11y fallback) */
.primary-menu > li.is-open > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* =========================
   CTA button (Aanmelden)
   ========================= */
.site-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px 5px 15px;
    background: var(--header-coral);
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    border-radius: 999px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    margin-left: 8px;
    span {
        font-weight: 700;
    }
}

.site-header__cta:hover {
    background: var(--header-coral-dark);
    transform: translateY(-1px);
    color:#fff;
}
.site-header__cta:active, .site-header__cta:focus {
    color:#fff !important;
}

.site-header__cta svg {
    width: 16px;
    height: 16px;
}

/* =========================
   Search
   ========================= */
.site-header__search {
    margin-left: auto;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--header-border);
    border-radius: 999px;
    padding: 0px 4px 0px 20px;
    max-width: 280px;
    width: 100%;
    transition: border-color 0.2s ease;
    font-size:20px;
    position:relative;
}
.site-header__search:after {
    content: '';
    display: inline-block;
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' viewBox='0 0 22 22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.58984 4.14716e-08C4.31345 1.86537e-08 -1.86536e-08 4.31344 -4.14715e-08 9.5898C-6.42893e-08 14.8662 4.31345 19.1796 9.58984 19.1796C11.6204 19.1796 13.5078 18.5406 15.0622 17.4553L19.1111 21.5042C19.7722 22.1653 20.8431 22.1653 21.5042 21.5042C22.1653 20.8431 22.1653 19.7711 21.5042 19.1111L17.4553 15.0623C18.5417 13.5077 19.1796 11.6215 19.1796 9.59101C19.1796 4.31465 14.8661 0.00121292 9.58975 0.0012129L9.58984 4.14716e-08ZM9.58984 3.38464C13.0374 3.38464 15.795 6.14235 15.795 9.5898C15.795 13.0372 13.0373 15.795 9.58984 15.795C6.14237 15.795 3.38465 13.0372 3.38465 9.5898C3.38465 6.14235 6.14237 3.38463 9.58984 3.38464Z' fill='black'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    position:absolute;
    right: 10px;
    top:50%;
    transform: translateY(-50%);
}

.site-header__search:focus-within {
    border-color: var(--header-teal-light);
}


.site-header__search input {
    flex-grow: 1;
    border: 0;
    background: transparent;
    padding: 8px 0;
    font-size: 18px;
    font-family: inherit;
    color: var(--header-text);
    outline: none;
    min-width: 0;
}

.site-header__search button {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--header-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.site-header__search button:hover {
    background: #f0f0f0;
}

.site-header__search svg {
    width: 29px;
    height: 29px;
}

/* Screen reader only */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* =========================
   Mobile (≤1024px)
   ========================= */
@media (max-width: 1024px) {
    .content-area {
        margin-top:0px !important;
    }
    .admin-bar .site-header__logo {
        top:10px;
    }
    .site-header__bar {
        position:absolute;
        top:0;
        left:0;
        width:100%;
        height:60px;
    }
    .site-header__inner {
        grid-template-columns: auto auto;
        min-height: 90px;
        padding: 0 20px;
        gap: 20px;
    }

    .site-header__logo {
        padding: 10px 16px 14px;
        top:10px;
    }

    .site-header__logo img {
        height: 60px;
    }

    .site-header__toggle {
        display: flex;
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .site-header__nav {
        display: none;
        grid-column: 1 / -1;
        flex-basis: 100%;
        padding: 8px 0 24px;
        border-top: 1px solid var(--header-border);
    }

    .site-header.is-open .site-header__nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin-top:2em;
    }
    .site-header__top {
        margin-bottom:0;
    }

    .site-header__top,
    .site-header__main {
        grid-column: 1 / -1;
        padding: 8px 0;
    }

    .site-header__top {
        justify-content: flex-start;
    }

    .site-header__main {
        flex-direction: column;
        align-items: stretch;
    }

    .site-header__home {
        display: none; /* in mobile menu zit Home in primary-menu */
    }

    .primary-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .primary-menu > li {
        flex-wrap: wrap;
        border-bottom: 1px solid var(--header-border);
    }

    .primary-menu > li > a {
        flex-grow: 1;
        padding: 14px 4px;
    }

    .primary-menu__sub-toggle {
        padding: 14px;
        margin: 0;
    }

    /* Submenu mobile: niet absolute, gewoon eronder */
    .primary-menu .sub-menu {
        position: static;
        flex-basis: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        padding: 0 0 12px 16px;
        min-width: 0;
        background: transparent;
        border-radius: 0;
    }

    .primary-menu > li.is-open > .sub-menu {
        display: block;
    }

    .primary-menu > .current-menu-item > a::after,
    .primary-menu > .current-menu-parent > a::after,
    .primary-menu > .current-menu-ancestor > a::after {
        left: 4px;
        right: auto;
        width: 60px;
    }

    .site-header__cta {
        justify-content: center;
        margin: 12px 0 0;
    }

    .site-header__search {
        margin-left: 0;
        max-width: none;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .site-header__cta,
    .primary-menu .sub-menu,
    .primary-menu__sub-toggle {
        transition: none !important;
    }
}