/**
 * Yakup Stucadoors — header. Geen achtergrond, rand of schaduw en nooit
 * sticky of fixed: de header scrollt mee met de pagina. Op de homepage ligt
 * hij absoluut over de hero, zodat die eronder doorloopt.
 */

.elementor-widget-dc-yakupstucadoors-header,
.e-con:has(> .elementor-widget-dc-yakupstucadoors-header) {
    position: relative;
    z-index: 60;
}

.yk-header {
    position: relative;
    z-index: 60;
    background: none;
    border: 0;
    box-shadow: none;
    color: var(--dc-title);
}

.yk-header--overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}

/* ------------------------------------------------------------ topbar */

.yk-topbar {
    font-size: 13px;
    line-height: 1.3;
    color: var(--dc-title);
}

.yk-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 42px;
}

.yk-topbar ul {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.yk-topbar li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.yk-topbar__usps .yk-icon {
    color: var(--dc-primary-dark);
}

/* Google-score: compacte pill naast het telefoonnummer */
.yk-topbar__rating {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 3px 10px 3px 7px;
    border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, currentColor 5%, transparent);
    font-size: 12px;
    line-height: 1;
    color: inherit;
    text-decoration: none;
    transition: border-color .2s ease, background-color .2s ease;
}

.yk-topbar__google {
    width: 14px;
    height: 14px;
    flex: none;
}

.yk-topbar__rating strong {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.yk-topbar__rating .yk-stars__base,
.yk-topbar__rating .yk-stars__fill {
    gap: 0;
}

.yk-topbar__rating .yk-stars__fill {
    color: #FFC107;
}

.yk-topbar__rating .yk-stars__star {
    width: 12px;
    height: 12px;
}

.yk-topbar__rating-count {
    padding-left: 6px;
    border-left: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    opacity: .7;
}

@media (hover: hover) {
    .yk-topbar__rating:hover {
        border-color: color-mix(in srgb, #FFC107 60%, transparent);
        background: color-mix(in srgb, #FFC107 10%, transparent);
    }
}

.yk-stars {
    position: relative;
    display: inline-flex;
    flex: none;
    line-height: 0;
}

.yk-stars__base,
.yk-stars__fill {
    display: inline-flex;
    gap: 1px;
}

.yk-stars__base {
    color: color-mix(in srgb, currentColor 22%, transparent);
}

.yk-stars__fill {
    position: absolute;
    inset: 0 auto 0 0;
    overflow: hidden;
    color: #FBBC05;
}

.yk-stars__star {
    width: 14px;
    height: 14px;
    flex: none;
}

.yk-topbar__contact a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    font-weight: 600;
    text-decoration: none;
}

/* Contact-icoon in een ronde badge, past bij de rating-pill */
.yk-topbar__ico {
    display: grid;
    flex: none;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(var(--dc-primary-rgb), 0.22);
    color: var(--dc-primary-dark);
    transition: background-color 200ms ease-out, color 200ms ease-out;
}

.yk-topbar__ico .yk-icon {
    width: 14px;
    height: 14px;
    stroke-width: 2;
}

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

    .yk-topbar__contact a:hover .yk-topbar__ico {
        background: var(--dc-primary);
        color: var(--dc-title);
    }
}

/* -------------------------------------------------------------- balk */

.yk-header__bar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 40px);
    min-height: 84px;
}

.yk-header__logo {
    display: inline-flex;
    flex: none;
    margin-right: auto;
}

.yk-header .yk-header__logo-img {
    width: auto;
    height: clamp(38px, 3.4vw, 48px);
}

.yk-nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.yk-nav__item {
    display: flex;
    align-items: center;
}

.yk-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--dc-title);
    text-decoration: none;
}

.yk-nav__link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 6px;
    height: 2px;
    border-radius: 2px;
    background: var(--dc-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dc-duration-normal) ease-out;
}

.yk-nav__link[aria-current="page"]::after {
    transform: scaleX(1);
}

@media (hover: hover) {
    .yk-nav__link:hover::after {
        transform: scaleX(1);
    }
}

.yk-nav__caret {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 44px;
    margin-left: -6px;
    padding: 0;
    background: none;
    border: 0;
    color: var(--dc-title);
    cursor: pointer;
}

/* Caret als ronde badge, in dezelfde stijl als de topbar-badges */
.yk-nav__caret-badge {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(var(--dc-primary-rgb), 0.22);
    color: var(--dc-primary-dark);
    transition: background-color var(--dc-duration-normal) ease-out, color var(--dc-duration-normal) ease-out, transform var(--dc-duration-normal) ease-out;
}

.yk-nav__caret-badge .yk-icon {
    width: 14px;
    height: 14px;
    stroke-width: 2.6;
    transition: transform var(--dc-duration-normal) cubic-bezier(.34, 1.56, .64, 1);
}

@media (hover: hover) {
    .yk-nav__item--mega:hover .yk-nav__caret-badge {
        background: rgba(var(--dc-primary-rgb), 0.45);
        color: var(--dc-title);
    }
}

.yk-nav__caret[aria-expanded="true"] .yk-nav__caret-badge {
    background: var(--dc-primary);
    color: var(--dc-title);
}

.yk-nav__caret[aria-expanded="true"] .yk-icon {
    transform: rotate(180deg);
}

.yk-nav__caret:focus-visible {
    outline: none;
}

.yk-nav__caret:focus-visible .yk-nav__caret-badge {
    outline: 2px solid var(--dc-secondary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .yk-nav__caret-badge,
    .yk-nav__caret-badge .yk-icon {
        transition: none;
    }
}

/* ------------------------------------------------------------ acties */

.yk-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yk-header__cta {
    min-height: 48px;
    padding-inline: 22px;
}

.yk-burger {
    display: none;
    place-items: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--dc-title);
    cursor: pointer;
}

.yk-burger__svg {
    width: 28px;
    height: 28px;
    overflow: visible;
}

.yk-burger__line {
    fill: none;
    stroke: #b2a590;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform-box: view-box;
    transform-origin: 12px 12px;
    transition: transform 320ms var(--dc-ease-default), opacity 200ms ease-out;
}

/* De onderste streek is een plamuurmes: een lange haal met een korte
   tik erachter. Bij openen wordt hij één doorgaande lijn van het kruis. */
.yk-burger__line--bot {
    stroke-dasharray: 10 3 3 0;
    transition: transform 320ms var(--dc-ease-default), stroke-dasharray 320ms var(--dc-ease-default);
}

.yk-burger[aria-expanded="true"] .yk-burger__line--top {
    transform: rotate(45deg) translateY(5.5px);
}

.yk-burger[aria-expanded="true"] .yk-burger__line--mid {
    opacity: 0;
    transform: scaleX(0.2);
}

.yk-burger[aria-expanded="true"] .yk-burger__line--bot {
    stroke-dasharray: 16 0 0 0;
    transform: rotate(-45deg) translateY(-5.5px);
}

/* --------------------------------------------------------- mobiel paneel */

.yk-mobile {
    display: none;
}

@media (max-width: 1023px) {
    .yk-nav {
        display: none;
    }

    .yk-burger {
        display: inline-grid;
    }

    .yk-topbar__inner {
        gap: 16px;
    }

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

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

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

    .yk-header__bar {
        min-height: 76px;
    }

    .yk-mobile {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1;
        padding-top: var(--yk-panel-top, 120px);
        background: #ffffff;
        overflow-y: auto;
        overscroll-behavior: contain;
        visibility: hidden;
        opacity: 0;
        transform: translateY(-12px);
        transition: opacity 260ms var(--dc-ease-default), transform 260ms var(--dc-ease-default), visibility 0s linear 260ms;
    }

    .yk-mobile.is-open {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition-delay: 0s;
    }

    .yk-mobile__inner {
        display: grid;
        gap: 28px;
        padding: 12px var(--dc-gutter) calc(40px + env(safe-area-inset-bottom));
    }

    .yk-mobile__list {
        display: grid;
        gap: 4px;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .yk-mobile__row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .yk-mobile__link {
        display: flex;
        align-items: center;
        flex: 1;
        min-height: 54px;
        font-family: var(--dc-font-heading);
        font-size: clamp(22px, 5vw, 28px);
        font-weight: 600;
        color: var(--dc-title);
        text-decoration: none;
    }

    .yk-mobile__link[aria-current="page"] {
        color: var(--dc-primary-dark);
    }

    .yk-mobile__sub-btn {
        display: grid;
        place-items: center;
        width: 48px;
        height: 48px;
        border: 0;
        border-radius: 50%;
        background: var(--dc-bg-alt);
        color: var(--dc-title);
        cursor: pointer;
    }

    .yk-mobile__sub-btn .yk-icon {
        transition: transform var(--dc-duration-normal) ease-out;
    }

    .yk-mobile__sub-btn[aria-expanded="true"] .yk-icon {
        transform: rotate(180deg);
    }

    .yk-mobile__sub {
        display: grid;
        gap: 2px;
        margin: 4px 0 12px;
        padding: 10px 16px;
        list-style: none;
        border-radius: var(--dc-radius-lg);
        background: var(--dc-bg-alt);
    }

    .yk-mobile__sub[hidden] {
        display: none;
    }

    .yk-mobile__sub a {
        display: flex;
        align-items: center;
        min-height: 46px;
        font-size: 17px;
        font-weight: 500;
        color: var(--dc-title);
        text-decoration: none;
    }

    .yk-mobile__footer {
        display: grid;
        gap: 12px;
    }

    .yk-mobile__mail {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 44px;
        font-size: 15px;
        color: var(--dc-title);
    }
}

@media (max-width: 767px) {
    .yk-topbar__mail {
        display: none !important;
    }

    .yk-topbar__rating-count {
        display: none;
    }
}

@media (max-width: 640px) {
    .yk-header__cta {
        display: none;
    }
}

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