/* Site-wide phone UI. Native desktop/tablet header markup is never styled. */
.fhmh-mobile-shell,
.fhmh-mobile-spacer,
dialog.fhmh-dialog { display: none; }

@media (max-width: 767px) {
    .wpestate_elementor_header_custom.fhmh-source-suppressed { display: none !important; }
    .fhmh-mobile-spacer { display: block; height: 93px; }

    .fhmh-mobile-shell {
        display: block;
        position: fixed;
        top: var(--fhmh-admin-offset, 0px);
        inset-inline: 0;
        z-index: 10020;
        color: #fff;
        background: linear-gradient(180deg, rgba(9, 20, 38, .77), rgba(9, 20, 38, .12));
        transition: background-color .3s ease;
    }
    .fhmh-mobile-shell.fhmh-scrolled { background: #0c182b; box-shadow: 0 3px 18px #0003; }
    .fhmh-bar {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        min-height: 92px;
        padding: 10px max(18px, env(safe-area-inset-right)) 10px max(18px, env(safe-area-inset-left));
        border-bottom: 1px solid #d9e9ff24;
    }
    a.fhmh-brand { display: flex; align-items: center; flex-shrink: 0; width: 144px; min-height: 44px; text-decoration: none; }
    .fhmh-brand img { display: block; width: 144px; height: 72px; margin: 0; object-fit: contain; filter: none; }
    button.fhmh-action {
        box-sizing: border-box;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        gap: 9px;
        width: 96px;
        height: 44px;
        min-width: 44px;
        margin: 0;
        padding: 8px 12px;
        border: 1px solid #d9e9ff55;
        border-radius: 24px;
        color: #fff;
        background: #0c182b66;
        box-shadow: none;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .fhmh-action-label { font: 500 10px/1 Poppins, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
    .fhmh-action svg { width: 22px; height: 22px; flex-shrink: 0; }

    dialog.fhmh-dialog {
        box-sizing: border-box;
        position: fixed;
        top: var(--fhmh-admin-offset, 0px);
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        height: calc(100vh - var(--fhmh-admin-offset, 0px));
        height: calc(100dvh - var(--fhmh-admin-offset, 0px));
        max-height: none;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        color: #f4f7fc;
        background: radial-gradient(ellipse at 110% 5%, #243d6344, transparent 55%), linear-gradient(155deg, #111f35, #091322 75%);
        overflow: hidden;
        opacity: 0;
        transform: translateY(-28px);
        clip-path: inset(0 0 100% 0);
        transition: opacity .38s ease, transform .38s ease, clip-path .38s cubic-bezier(.4, 0, .6, 1);
    }
    dialog.fhmh-dialog[open] { display: flex; flex-direction: column; }
    dialog.fhmh-dialog.fhmh-is-open {
        opacity: 1;
        transform: translateY(0);
        clip-path: inset(0 0 0 0);
        transition-duration: .9s;
        transition-timing-function: cubic-bezier(.22, .65, .2, 1);
    }
    dialog.fhmh-dialog::backdrop { background: #09132200; transition: background-color .38s ease; }
    dialog.fhmh-dialog.fhmh-is-open::backdrop { background: #09132299; transition-duration: .9s; }
    .fhmh-dialog > .fhmh-bar { position: relative; flex-shrink: 0; background: #09132244; }
    .fhmh-dialog > .fhmh-bar::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: max(18px, env(safe-area-inset-left));
        width: 48px;
        height: 2px;
        background: #ed3348;
    }
    nav.fhmh-nav {
        flex: 1;
        min-height: 0;
        padding: 24px max(20px, env(safe-area-inset-right)) max(30px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    .fhmh-intro { margin: 0 0 22px; }
    .fhmh-intro p { padding: 0; }
    p.fhmh-eyebrow { margin: 0 0 9px; color: #99aecb; font: 500 10px/1.4 Poppins, sans-serif; letter-spacing: .16em; }
    p.fhmh-title { margin: 0; color: #f4f7fc; font: 500 clamp(20px, 6vw, 24px)/1.4 Poppins, sans-serif; letter-spacing: -.025em; }
    .fhmh-nav ul { list-style: none; margin: 0; padding: 0; }
    .fhmh-nav li { margin: 0; padding: 0; }
    .fhmh-menu > li {
        margin-bottom: 10px;
        opacity: 0;
        transform: translateY(12px);
        transition: opacity .18s ease, transform .18s ease;
    }
    .fhmh-is-open .fhmh-menu > li {
        opacity: 1;
        transform: translateY(0);
        transition-duration: .52s;
        transition-delay: calc(.14s + var(--fhmh-item-index, 0) * .055s);
    }
    .fhmh-row { display: flex; align-items: center; gap: 12px; }
    .fhmh-menu > li > .fhmh-row { min-height: 60px; padding: 3px 14px; border: 1px solid #a7c2e421; border-radius: 12px; background: #1b2d444d; }
    .fhmh-menu > li.fhmh-current > .fhmh-row { border-left: 3px solid #ed3348; background: #233c5d7a; }
    .fhmh-row > a,
    button.fhmh-parent {
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        width: 100%;
        min-width: 0;
        min-height: 52px;
        margin: 0;
        padding: 10px 0;
        border: 0;
        border-radius: 0;
        color: #f4f7fc;
        background: transparent;
        box-shadow: none;
        font: 500 clamp(18px, 5.6vw, 22px)/1.4 Poppins, sans-serif;
        letter-spacing: -.02em;
        text-align: left;
        text-transform: none;
        text-decoration: none;
        cursor: pointer;
    }
    button.fhmh-sub-toggle { flex-shrink: 0; width: 44px; height: 44px; padding: 0; border: 0; color: #b6c9e4; background: transparent; font: 300 24px/1 Poppins, sans-serif; cursor: pointer; }
    .fhmh-parent > span:last-child { color: #b6c9e4; font-size: 24px; font-weight: 300; }
    .fhmh-nav .fhmh-submenu { margin: 14px 0 16px 23px; padding-left: 16px; border-left: 1px solid #ed334877; }
    .fhmh-submenu[hidden] { display: none !important; }
    .fhmh-nav .fhmh-submenu .fhmh-row > a { min-height: 46px; padding: 10px 0; font-size: 14px; letter-spacing: 0; }
    .fhmh-nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
    .fhmh-brand:focus-visible,
    .fhmh-action:focus-visible,
    .fhmh-nav a:focus-visible,
    .fhmh-nav button:focus-visible { outline: 2px solid #9dc1f3; outline-offset: 4px; }
}

@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
    .fhmh-mobile-shell,
    dialog.fhmh-dialog,
    dialog.fhmh-dialog::backdrop,
    .fhmh-menu > li,
    .fhmh-is-open .fhmh-menu > li { transition: none !important; }
}
