/**
 * Ikodak — header (dc-ikodak-pipeline-header en de globale header).
 *
 * Ligt over de hero heen zonder achtergrond, rand of schaduw en scrollt mee:
 * position absolute, nooit fixed of sticky. Het mega menu staat in
 * ikodak-pipeline-mega.css.
 */

.dcip-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    color: #ffffff;
    background: none;
    border: 0;
    box-shadow: none;
}

.admin-bar .dcip-header--global {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .dcip-header--global {
        top: 46px;
    }
}

/* Pagina zonder hero (404, zoekresultaten): de header krijgt een eigen vlak. */
.dcip-header--solid {
    position: relative;
    top: auto !important;
    background: var(--dcip-ink);
}

/* ------------------------------------------------------------------
   Top header: USP's en contact rechts uitgelijnd
------------------------------------------------------------------ */
.dcip-topbar {
    font-size: 0.8125rem;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.86);
}

.dcip-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    min-height: 42px;
    padding-top: 6px;
}

.dcip-topbar__usps,
.dcip-topbar__contact {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 28px);
}

.dcip-topbar__usps li,
.dcip-topbar__contact a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.dcip-topbar__usps .dcip-icon {
    width: 16px;
    height: 16px;
    color: var(--dc-primary);
    stroke-width: 2.4;
}

.dcip-topbar__contact a {
    min-height: 36px;
    color: #ffffff;
    font-weight: 500;
    transition: color 180ms ease-out;
}

.dcip-topbar__contact .dcip-icon {
    width: 16px;
    height: 16px;
    color: var(--dc-primary);
}

@media (hover: hover) {
    .dcip-topbar__contact a:hover {
        color: var(--dc-primary);
    }
}

/* ------------------------------------------------------------------
   Hoofdbalk
------------------------------------------------------------------ */
.dcip-header__bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 88px;
}

.dcip-header__logo {
    display: inline-flex;
    align-items: center;
    flex: none;
}

.dcip-header__logo .dcip-logo {
    width: auto;
    height: clamp(44px, 3.2vw + 20px, 60px);
}

.dcip-nav {
    display: none;
    margin-left: auto;
}

.dcip-nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dcip-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    font-family: var(--dcip-font-head);
    font-size: 0.975rem;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 180ms ease-out, color 180ms ease-out;
}

.dcip-nav__link:hover,
.dcip-nav__link:focus-visible {
    color: #ffffff;
}

/* Chevron als dak: twee hellingen klappen om tot een nok, dan de schoorsteen. */
.dcip-nav__chev {
    width: 18px;
    height: 18px;
    overflow: visible;
    color: var(--dc-primary);
    transition: transform 240ms var(--dcip-ease);
}

.dcip-nav__chev path {
    transform-box: view-box;
    transform-origin: 12px 12.25px;
    transition: transform 380ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dcip-nav__chev-r {
    transition-delay: 60ms;
}

.dcip-nav__chev-chimney {
    transform-origin: 16px 12.4px;
    transform: scaleY(0);
    opacity: 0;
    transition: transform 240ms var(--dcip-ease), opacity 160ms ease-out;
}

.dcip-nav__item--mega.is-open:not([data-dc-closed]) .dcip-nav__chev-l,
.dcip-nav__item--mega.is-open:not([data-dc-closed]) .dcip-nav__chev-r {
    transform: scaleY(-1);
}

.dcip-nav__item--mega.is-open:not([data-dc-closed]) .dcip-nav__chev-chimney {
    transform: none;
    opacity: 1;
    transition-delay: 260ms;
}

@media (hover: hover) {
    .dcip-nav__link:hover {
        background: rgba(255, 255, 255, 0.12);
    }

    .dcip-nav__item--mega:not(.is-open) .dcip-nav__trigger:hover .dcip-nav__chev {
        transform: translateY(2px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dcip-nav__chev path {
        transition-delay: 0s !important;
    }
}

/* ------------------------------------------------------------------
   Acties rechts
------------------------------------------------------------------ */
.dcip-header__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dcip-header__actions .dcip-btn {
    display: none;
}

.dcip-header__call {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.dcip-header__call:hover,
.dcip-header__call:focus-visible {
    color: #ffffff;
}

.dcip-header__call .dcip-icon {
    width: 20px;
    height: 20px;
}

/* ------------------------------------------------------------------
   Eigen hamburger: een dakvorm boven twee daklijnen, morpht naar een kruis
------------------------------------------------------------------ */
.dcip-burger {
    position: relative;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.dcip-burger__svg {
    width: 30px;
    height: 30px;
    overflow: visible;
}

.dcip-burger__svg path {
    stroke: #b4a485;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform-box: fill-box;
    transform-origin: center;
    transition: transform 320ms var(--dcip-ease), opacity 320ms var(--dcip-ease);
}

.dcip-header.is-menu-open .dcip-burger__roof {
    opacity: 0;
    transform: translateY(-3px) scale(0.3);
}

.dcip-header.is-menu-open .dcip-burger__mid {
    transform: translateY(-1.5px) rotate(45deg);
}

.dcip-header.is-menu-open .dcip-burger__base {
    transform: translateY(-7.5px) rotate(-45deg);
}

@media (hover: hover) {
    .dcip-burger:hover .dcip-burger__roof {
        transform: translateY(-1.5px);
    }
}

/* ------------------------------------------------------------------
   Mobiel paneel: full screen, scrolt zelf
------------------------------------------------------------------ */
.dcip-mobile {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: var(--dcip-ink);
    color: #ffffff;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 280ms var(--dcip-ease), transform 280ms var(--dcip-ease), visibility 0s linear 280ms;
}

.dcip-header.is-menu-open .dcip-mobile {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 280ms var(--dcip-ease), transform 280ms var(--dcip-ease), visibility 0s;
}

.dcip-mobile__scroll {
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 150px var(--dcip-gutter) calc(40px + env(safe-area-inset-bottom));
}

.dcip-mobile__nav > ul {
    display: grid;
    gap: 4px;
}

.dcip-mobile__link,
.dcip-mobile__group a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    color: #ffffff;
    font-family: var(--dcip-font-head);
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.dcip-mobile__link:hover,
.dcip-mobile__group a:hover {
    color: var(--dc-primary);
}

.dcip-mobile__group {
    margin: 10px 0;
    padding: 14px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
}

.dcip-mobile__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--dc-primary);
}

.dcip-mobile__group a {
    font-size: 1.125rem;
    min-height: 48px;
}

.dcip-mobile__group a {
    justify-content: flex-start;
    gap: 14px;
}

.dcip-mobile__group a > .dcip-icon {
    margin-left: auto;
}

.dcip-mobile__thumb {
    flex: none;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    clip-path: polygon(0 26%, 50% 0, 100% 26%, 100% 100%, 0 100%);
}

.dcip-mobile__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dcip-mobile__group .dcip-icon {
    width: 18px;
    height: 18px;
    color: var(--dc-primary);
}

.dcip-mobile__foot {
    display: grid;
    gap: 12px;
    margin-top: 28px;
    justify-items: start;
}

.dcip-mobile__contact {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: #ffffff;
    font-weight: 500;
}

.dcip-mobile__contact .dcip-icon {
    color: var(--dc-primary);
}

.dcip-mobile__usps {
    display: grid;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
}

.dcip-mobile__usps li {
    display: flex;
    gap: 8px;
}

.dcip-mobile__usps .dcip-icon {
    width: 16px;
    height: 16px;
    color: var(--dc-primary);
}

body.dcip-menu-open {
    overflow: hidden;
}

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------ */
@media (max-width: 1023px) {
    .dcip-topbar__inner {
        padding-right: 0;
    }

    .dcip-topbar__usps {
        flex: 1 1 auto;
        min-width: 0;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
        mask-image: linear-gradient(90deg, #000 85%, transparent);
        padding-right: 24px;
    }

    .dcip-topbar__usps::-webkit-scrollbar {
        display: none;
    }

    .dcip-topbar__usps li {
        scroll-snap-align: start;
    }
}

@media (max-width: 767px) {
    .dcip-topbar__contact {
        display: none;
    }
}

@media (min-width: 640px) {
    .dcip-header__actions .dcip-btn {
        display: inline-flex;
    }
}

@media (min-width: 1024px) {
    .dcip-nav {
        display: block;
    }

    .dcip-burger,
    .dcip-mobile {
        display: none;
    }

    .dcip-header__call {
        display: none;
    }
}

@media (min-width: 1024px) and (max-width: 1199px) {
    .dcip-nav__link {
        padding: 0 10px;
        font-size: 0.925rem;
    }

    .dcip-header__actions .dcip-btn__icon {
        display: none;
    }

    .dcip-header__actions .dcip-btn {
        padding: 6px 20px;
    }
}
