/* Brand type: headings in Montserrat (closest open font to the card wordmark),
   body in Inter. Fonts are declared here because style.css is outside this unit;
   html:root outranks the :root defaults in style.css whatever the load order. */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/montserrat/montserrat-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url('../fonts/montserrat/montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
html:root {
    --hb-font-heading: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --hb-font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.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: var(--container);
    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;
}

.cd-logo-full {
    display: block;
    height: 54px;
    width: auto;
    color: #23283A; /* logo navy, from the client's SVG */
}

/* ── 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: 700;
    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;
}

/* The caret mirrors the submenu's visibility (hover, focus or tap), not only its own click state. */
.hb-nav__item--open > .hb-nav__caret::after,
.hb-nav .menu-item-has-children:hover > .hb-nav__caret::after,
.hb-nav .menu-item-has-children:focus-within > .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: var(--radius);
    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: 600;
    color: var(--text);
    text-decoration: none;
    border-radius: var(--radius_sm);
    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: 800;
    font-size: .92rem;
    white-space: nowrap;
}

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

.hb-header__contact {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Variant 4 (owner 2026-11-04): plain text links split by a hairline, no outlines. */
.hb-header__sms {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding-left: 14px;
    border-left: 1px solid var(--border);
    color: var(--primary);
    font-weight: 600;
    font-size: .88rem;
    line-height: 18px;
    text-decoration: none;
}

.hb-header__sms:hover {
    color: var(--primary_hover);
}

.hb-header .cd-icon {
    flex-shrink: 0;
    color: var(--primary);
}

@media (max-width: 1279px) {
    .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;
    }

    /* Mobile opens submenus only by tap, so the caret follows that state alone. */
    .hb-nav .menu-item-has-children:hover > .hb-nav__caret::after,
    .hb-nav .menu-item-has-children:focus-within > .hb-nav__caret::after {
        transform: rotate(45deg);
    }

    .hb-nav .menu-item-has-children.hb-nav__item--open > .hb-nav__caret::after {
        transform: rotate(225deg);
    }

    .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;
    }

    .cd-logo-full {
        height: 40px;
    }

    .hb-header__contact {
        justify-content: flex-start;
        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: var(--radius_lg);
    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);
    }
}
