.hl-header {
    position: relative;
    z-index: 1000;
    width: 100%;
}

.hl-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.hl-header-overlay .hl-topbar-link {
    color: var(--wp--preset--color--white);
}

.hl-header-overlay .hl-topbar-link svg,
.hl-header-overlay .hl-topbar-link svg path {
    stroke: var(--wp--preset--color--white) !important;
}

.hl-header-overlay .hl-topbar-link:hover {
    color: rgba(255, 255, 255, 0.7);
}

.hl-header-overlay .hl-nav-item > a {
    color: var(--wp--preset--color--white);
}

.hl-header-overlay .hl-nav-item > a:hover,
.hl-header-overlay .hl-nav-item.is-open > a {
    color: rgba(255, 255, 255, 0.7);
}

.hl-header-overlay .hl-header-phone {
    color: var(--wp--preset--color--white);
}

.hl-header-overlay .hl-header-cta {
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--wp--preset--color--white);
}

.hl-header-overlay .hl-header-burger span {
    background: var(--wp--preset--color--white);
}


.hl-header-topbar {
    background: var(--wp--preset--color--white);
    height: 56px;
}

.hl-header-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 32px;
    padding-inline: 24px;
}

.hl-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--wp--preset--font-family--primary);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 400;
    color: var(--wp--preset--color--dark);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.hl-topbar-link:hover {
    color: var(--wp--preset--color--sand);
}

.hl-topbar-chevron {
    transition: transform 0.25s ease;
}

.hl-topbar-item {
    position: relative;
}

.hl-topbar-item.is-open .hl-topbar-chevron {
    transform: rotate(180deg);
}

.hl-topbar-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: var(--wp--preset--color--white);
    border: 1px solid var(--wp--preset--color--beige-2);
    border-radius: 8px;
    padding: 6px 0;
    min-width: 200px;
    box-shadow: var(--wp--preset--shadow--card);
    z-index: 300;
}

.hl-topbar-item.is-open .hl-topbar-dropdown {
    display: block;
}

.hl-topbar-dropdown-link {
    display: block;
    padding: 10px 16px;
    font-family: var(--wp--preset--font-family--primary);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 400;
    color: var(--wp--preset--color--dark);
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.hl-topbar-dropdown-link:hover {
    background: var(--wp--preset--color--beige-3);
    color: var(--wp--preset--color--sand);
}

.hl-header-navbar {
    background: var(--wp--preset--color--white);
    position: relative;
}

.hl-header-navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
    gap: 24px;
    padding-inline: 24px;
}

.hl-header-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    text-decoration: none;
}

.hl-header-logo img {
    height: 40px;
    width: auto;
    display: block;
}

.hl-header-site-name {
    font-family: var(--wp--preset--font-family--primary);
    font-size: var(--wp--preset--font-size--md);
    font-weight: 600;
    color: var(--wp--preset--color--dark);
}

.hl-header-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hl-header-nav-list {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hl-nav-item {
    position: static;
}

.hl-nav-item-dropdown {
    position: relative;
}

.hl-nav-item > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--wp--preset--font-family--primary);
    font-size: var(--wp--preset--font-size--md);
    font-weight: 400;
    color: var(--wp--preset--color--dark);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
    padding-block: 8px;
}

.hl-nav-item > a:hover,
.hl-nav-item.is-open > a {
    color: var(--wp--preset--color--sand);
}

.hl-nav-chevron {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.hl-nav-item.is-open > a .hl-nav-chevron {
    transform: rotate(180deg);
}

.hl-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.hl-header-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--wp--preset--color--dark);
    text-decoration: none;
    transition: color 0.2s;
    flex-shrink: 0;
}

.hl-header-phone:hover {
    color: var(--wp--preset--color--sand);
}

.hl-header-cta {
    display: inline-flex;
    align-items: center;
    background: var(--wp--preset--color--dark);
    color: var(--wp--preset--color--white);
    font-family: var(--wp--preset--font-family--primary);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 500;
    border-radius: 64px;
    padding: 16px 24px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.hl-header-cta:hover {
    background: var(--wp--preset--color--sand);
    color: var(--wp--preset--color--white);
}

.hl-header-burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.hl-header-burger span {
    display: block;
    height: 2px;
    background: var(--wp--preset--color--dark);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hl-header.is-mobile-open .hl-header-burger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hl-header.is-mobile-open .hl-header-burger span:nth-child(2) {
    opacity: 0;
}

.hl-header.is-mobile-open .hl-header-burger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hl-megamenu {
    display: grid;
    grid-template-rows: 0fr;
    width: 100%;
    background: var(--wp--preset--color--white);
    overflow: hidden;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: grid-template-rows 0.55s ease, opacity 0.4s ease;
}

.hl-megamenu.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
    pointer-events: auto;
}

.hl-megamenu-inner {
    overflow: hidden;
    min-height: 0;
}

.hl-megamenu-body {
    padding-inline: 24px;
    padding-block: 32px;
}

.hl-megamenu-body .row {
    row-gap: 16px;
}

.hl-nav-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px) scale(0.96);
    transform-origin: top center;
    background: var(--wp--preset--color--white);
    border-radius: 16px;
    padding: 8px;
    min-width: 240px;
    z-index: 300;
    box-shadow: var(--wp--preset--shadow--card);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.hl-nav-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 7px;
    background: var(--wp--preset--color--white);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.hl-nav-item-dropdown.is-open > .hl-nav-dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
}

.hl-nav-dropdown-link {
    display: block;
    padding: 11px 16px;
    font-family: var(--wp--preset--font-family--primary);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 400;
    color: var(--wp--preset--color--dark);
    text-decoration: none;
    white-space: nowrap;
    border-radius: 10px;
    transition: background 0.18s ease, color 0.18s ease;
}

.hl-nav-dropdown-link:hover {
    background: var(--wp--preset--color--beige-3);
    color: var(--wp--preset--color--sand);
}

.hl-mega-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    background: var(--wp--preset--color--beige-3);
    border-radius: 10px;
    min-height: 125px;
    text-decoration: none;
    overflow: hidden;
    transition: background 0.2s;
}

.hl-mega-card:hover {
    background: var(--wp--preset--color--dark);
}

.hl-mega-card:hover .hl-mega-card-label {
    color: var(--wp--preset--color--white);
}

.hl-mega-card:hover .hl-mega-card-visual {
    filter: brightness(0) invert(1);
}

.hl-mega-card-visual {
    flex: 0 0 33.3333%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    transition: filter 0.2s;
}

.hl-mega-card-label {
    flex: 0 0 66.6666%;
    display: flex;
    align-items: center;
    padding: 16px 16px 16px 0;
    font-family: var(--wp--preset--font-family--primary);
    font-weight: 500;
    font-size: var(--wp--preset--font-size--xs);
    text-transform: uppercase;
    text-align: left;
    color: var(--wp--preset--color--dark);
    line-height: 1.3;
    transition: color 0.2s;
}

.hl-mega-card-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.hl-mobile-nav {
    display: none;
    background: var(--wp--preset--color--white);
    border-top: 1px solid var(--wp--preset--color--beige-2);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}

.hl-header.is-mobile-open .hl-mobile-nav {
    display: block;
    max-height: 600px;
}

.hl-mobile-nav-inner {
    display: flex;
    flex-direction: column;
    padding: 24px 0;
}

.hl-mobile-nav-link {
    display: block;
    padding: 14px 24px;
    font-family: var(--wp--preset--font-family--primary);
    font-size: var(--wp--preset--font-size--sm);
    font-weight: 400;
    color: var(--wp--preset--color--dark);
    text-decoration: none;
    border-bottom: 1px solid var(--wp--preset--color--beige-3);
    transition: color 0.2s;
}

.hl-mobile-nav-link:hover {
    color: var(--wp--preset--color--sand);
}

.hl-mobile-nav-cta {
    display: inline-flex;
    align-self: flex-start;
    margin: 20px 24px 0;
    background: var(--wp--preset--color--dark);
    color: var(--wp--preset--color--white);
    font-family: var(--wp--preset--font-family--primary);
    font-size: var(--wp--preset--font-size--xs);
    font-weight: 500;
    border-radius: 64px;
    padding: 14px 24px;
    text-decoration: none;
    transition: background 0.2s;
}

.hl-mobile-nav-cta:hover {
    background: var(--wp--preset--color--sand);
    color: var(--wp--preset--color--white);
}


@media (max-width: 991px) {
    .hl-header-nav {
        display: none;
    }

    .hl-header-cta {
        display: none;
    }

    .hl-header-burger {
        display: flex;
    }

    .hl-header-topbar {
        display: none;
    }

    .hl-mobile-nav {
        display: block;
    }

    .hl-header-navbar-inner {
        justify-content: flex-start;
        gap: 0;
    }

    .hl-header-actions {
        margin-left: auto;
        gap: 12px;
    }

    .hl-header-burger {
        margin-left: 12px;
    }
}

@media (max-width: 767px) {
    .hl-mega-card-image {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 575px) {
    .hl-header-logo img {
        height: 32px;
    }

    .hl-header-navbar-inner {
        height: 72px;
    }

    .hl-mega-card-image {
        width: 48px;
        height: 48px;
    }
}
