.hb-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: var(--background);
    border-bottom: 1px solid var(--border);
}

.hb-header__scrim {
    display: none;
}

.hb-header__bar {
    max-width: 1290px;
    margin: 0 auto;
    padding: 0 20px;
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.hb-header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.hb-header__logo-img {
    height: 40px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

/* ── Hamburger toggle (mobile only) ── */
.hb-header__toggle {
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    width: 32px;
    height: 32px;
    margin-left: auto;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
}

.hb-header__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transition: transform .2s ease, opacity .2s ease;
}

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

.hb-header__panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-width: 0;
    gap: 16px;
}

.hb-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hb-nav .menu-item {
    position: relative;
}

.hb-nav > .menu-item > a {
    display: block;
    padding: 13px 12px;
    font-size: .92rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}

.hb-nav > .menu-item > a:hover {
    color: var(--primary);
}

.hb-nav > .menu-item.current-menu-item > a,
.hb-nav > .menu-item.current-menu-ancestor > a {
    color: var(--primary);
}

.hb-nav .menu-item-has-children {
    display: flex;
    align-items: center;
}

.hb-nav .menu-item-has-children > a {
    padding-right: 4px;
}

.hb-nav__caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: inherit;
}

.hb-nav__caret::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform .15s ease;
}

.hb-nav__item--open > .hb-nav__caret::after {
    transform: rotate(225deg);
}

.hb-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 60;
    min-width: 230px;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, .1);
}

.hb-nav .sub-menu .sub-menu {
    top: -7px;
    left: 100%;
}

.hb-nav .menu-item-has-children:hover > .sub-menu,
.hb-nav .menu-item-has-children:focus-within > .sub-menu,
.hb-nav .menu-item-has-children.hb-nav__item--open > .sub-menu {
    display: block;
}

.hb-nav .sub-menu a {
    display: block;
    padding: 8px 10px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-radius: 6px;
    white-space: nowrap;
}

.hb-nav .sub-menu a:hover {
    background: var(--background_light);
    color: var(--accent);
}

.hb-header__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.hb-header__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--accent);
    font-weight: 700;
    font-size: .92rem;
    white-space: nowrap;
}

.hb-header__phone:hover {
    color: var(--primary);
}

.hb-header__phone-icon {
    width: 18px;
    height: 18px;
    fill: var(--primary);
    flex-shrink: 0;
}

.hb-header__cta {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 18px;
    background: var(--primary);
    color: #fff;
    font-family: inherit;
    font-weight: 700;
    font-size: .88rem;
    text-decoration: none;
    border: none;
    border-radius: 6px;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease;
}

.hb-header__cta:hover {
    background: var(--primary_hover);
    color: #fff;
}

@media (max-width: 1023px) {
    .hb-header__bar {
        min-height: 56px;
        position: relative;
        background: var(--background);
        z-index: 101;
    }

    .hb-header__toggle {
        display: flex;
    }

    .hb-header__panel {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--background);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 24px 48px rgba(0, 0, 0, .28);
        max-height: calc(100vh - 56px);
        overflow-y: auto;
        z-index: 100;
    }

    .hb-header__panel.is-open {
        display: flex;
    }

    .hb-header__scrim {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(17, 17, 17, .55);
        opacity: 0;
        z-index: 95;
        pointer-events: none;
        transition: opacity .2s ease;
    }

    .hb-header__scrim.is-open {
        opacity: 1;
        pointer-events: auto;
    }

    .hb-nav {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding: 8px 20px;
    }

    .hb-nav .menu-item {
        border-bottom: 1px solid var(--border);
    }

    .hb-nav > .menu-item > a {
        padding: 12px 4px;
    }

    .hb-nav .menu-item-has-children > a {
        flex: 1;
    }

    .hb-nav .menu-item.menu-item-has-children {
        flex-wrap: wrap;
    }

    .hb-nav__caret {
        width: 44px;
        height: 44px;
        margin-right: -8px;
    }

    .hb-nav__caret::after {
        width: 8px;
        height: 8px;
    }

    .hb-nav .sub-menu {
        display: none;
        position: static;
        width: 100%;
        margin: 0 0 8px;
        border: none;
        box-shadow: none;
        background: var(--background_light);
    }

    .hb-nav .menu-item-has-children:hover > .sub-menu,
    .hb-nav .menu-item-has-children:focus-within > .sub-menu {
        display: none;
    }

    .hb-nav .menu-item-has-children.hb-nav__item--open > .sub-menu {
        display: block;
    }

    .hb-nav .sub-menu .sub-menu {
        left: 0;
        padding-left: 14px;
    }

    .hb-header__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 20px 20px;
    }

    .hb-header__phone {
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }

    .hb-header__cta {
        margin-top: 14px;
        justify-content: center;
    }
}

/* ── Booking modal (native <dialog>) ── */
body.hb-modal-open {
    overflow: hidden;
}

dialog.hb-modal {
    box-sizing: border-box;
    z-index: 1000;
    margin: auto;
    padding: 0;
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 48px);
    background: var(--background);
    border: none;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
}

dialog.hb-modal::backdrop {
    background: rgba(17, 17, 17, .6);
}

.hb-modal__body {
    position: relative;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.hb-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--accent);
    cursor: pointer;
}

.hb-modal__close svg {
    width: 18px;
    height: 18px;
}

.hb-modal__close:hover {
    color: var(--primary);
}

.hb-modal .hb-call-form-wrap {
    box-shadow: none;
    padding-top: 56px;
}

@media (max-width: 600px) {
    dialog.hb-modal {
        max-width: calc(100% - 24px);
    }
}
