/* V77 — isolated mobile header/drawer repair.
   The nav and backdrop are portalled to <body> on <=1250px by app.js.
   This keeps fixed overlays anchored to the visual viewport after scrolling,
   independent of the sticky/translucent header's containing block. */
@media (max-width:1250px) {
  html.mobile-nav-ready #siteHeader {
    position:sticky!important;
    top:0!important;
    inset-block-start:0!important;
    width:100%!important;
    z-index:12000!important;
  }
  html.mobile-nav-ready #siteHeader .nav-toggle {
    position:relative!important;
    z-index:1!important;
    touch-action:manipulation;
  }
  html.mobile-nav-ready body > .nav-backdrop {
    display:block!important;
    position:fixed!important;
    inset:0!important;
    width:100vw!important;
    height:100vh!important;
    height:100dvh!important;
    margin:0!important;
    padding:0!important;
    background:rgba(0,0,0,.64)!important;
    -webkit-backdrop-filter:blur(3px);
    backdrop-filter:blur(3px);
    z-index:20000!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    touch-action:none;
    transition:opacity .25s ease,visibility .25s ease!important;
  }
  html.mobile-nav-ready.nav-open body > .nav-backdrop {
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
  }
  html.mobile-nav-ready body > #mainNav {
    position:fixed!important;
    top:0!important;
    right:0!important;
    bottom:auto!important;
    left:auto!important;
    width:min(91vw,410px)!important;
    max-width:100%!important;
    height:100vh!important;
    height:100dvh!important;
    max-height:100dvh!important;
    margin:0!important;
    padding:0 22px max(26px,env(safe-area-inset-bottom))!important;
    box-sizing:border-box!important;
    display:block!important;
    background:#0b0b09!important;
    color:#f0ebe1!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y!important;
    direction:inherit;
    z-index:20001!important;
    opacity:1!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:translate3d(105%,0,0)!important;
    transition:transform .28s cubic-bezier(.2,.75,.2,1),visibility .28s!important;
    box-shadow:-30px 0 72px rgba(0,0,0,.45)!important;
  }
  html.mobile-nav-ready[dir="rtl"] body > #mainNav {
    right:auto!important;
    left:0!important;
    transform:translate3d(-105%,0,0)!important;
    box-shadow:30px 0 72px rgba(0,0,0,.45)!important;
  }
  html.mobile-nav-ready body > #mainNav.open,
  html.mobile-nav-ready[dir="rtl"] body > #mainNav.open {
    visibility:visible!important;
    pointer-events:auto!important;
    transform:translate3d(0,0,0)!important;
  }
  html.mobile-nav-ready body > #mainNav .mobile-nav-head {
    position:sticky!important;
    top:0!important;
    z-index:2!important;
    min-height:80px!important;
    margin:0 -22px 12px!important;
    padding:max(10px,env(safe-area-inset-top)) 16px 10px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    gap:8px!important;
    background:#100f0d!important;
    border-bottom:1px solid rgba(255,255,255,.10)!important;
  }
  html.mobile-nav-ready body > #mainNav .mobile-nav-brand-full {
    display:flex!important;
    width:auto!important;
    min-width:0!important;
    padding:0!important;
    align-items:center!important;
    border:0!important;
  }
  html.mobile-nav-ready body > #mainNav .mobile-nav-brand-full img {
    display:block!important;
    width:auto!important;
    height:60px!important;
    max-width:65px!important;
    max-height:60px!important;
    object-fit:contain!important;
  }
  html.mobile-nav-ready body > #mainNav .mobile-nav-actions {
    display:flex!important;
    align-items:center!important;
    gap:8px!important;
  }
  html.mobile-nav-ready body > #mainNav .mobile-language-switch {
    display:flex!important;
  }
  html.mobile-nav-ready body > #mainNav .mobile-language-switch a {
    display:grid!important;
    place-items:center!important;
    min-width:44px!important;
    height:44px!important;
    padding:0!important;
    color:#ded6c5!important;
  }
  html.mobile-nav-ready body > #mainNav .mobile-language-switch a.active {
    background:#d5aa4d!important;
    color:#18150d!important;
  }
  html.mobile-nav-ready body > #mainNav .mobile-nav-close {
    display:grid!important;
    place-items:center!important;
    flex:0 0 44px!important;
    width:44px!important;
    height:44px!important;
    border-radius:12px!important;
    border:1px solid rgba(229,195,110,.28)!important;
    background:#242016!important;
    color:#f1c966!important;
    font:400 29px/1 Arial,sans-serif!important;
    cursor:pointer;
    touch-action:manipulation;
  }
  html.mobile-nav-ready body > #mainNav > a,
  html.mobile-nav-ready body > #mainNav .nav-dropdown > button {
    display:flex!important;
    align-items:center!important;
    width:100%!important;
    min-height:51px!important;
    margin:0!important;
    padding:14px 10px!important;
    border:0!important;
    border-bottom:1px solid rgba(255,255,255,.07)!important;
    border-radius:0!important;
    background:transparent!important;
    color:#f0ebe1!important;
    font-size:15px!important;
    line-height:1.35!important;
    font-weight:700!important;
    text-align:start!important;
    white-space:normal!important;
    text-decoration:none!important;
    touch-action:manipulation;
  }
  html.mobile-nav-ready body > #mainNav > a.active,
  html.mobile-nav-ready body > #mainNav > a[aria-current="page"] {
    margin:3px 0!important;
    padding-inline:14px!important;
    background:rgba(213,170,77,.09)!important;
    border-radius:10px!important;
    color:#e4bd61!important;
  }
  html.mobile-nav-ready body > #mainNav > a.active::after,
  html.mobile-nav-ready body > #mainNav > a[aria-current="page"]::after {
    display:none!important;
  }
  html.mobile-nav-ready body > #mainNav .nav-dropdown .dropdown-menu {
    position:static!important;
    display:none!important;
    opacity:1!important;
    visibility:visible!important;
    transform:none!important;
  }
  html.mobile-nav-ready body > #mainNav .nav-dropdown.open .dropdown-menu {display:block!important;}
  html.mobile-nav-ready body > #mainNav .mobile-nav-cta {
    display:grid!important;
    grid-template-columns:1fr 1fr;
    gap:9px;
    padding:18px 0 2px!important;
  }
  html.mobile-nav-ready body > #mainNav .mobile-nav-cta a {
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:46px!important;
    padding:10px 12px!important;
    border:1px solid rgba(229,195,110,.3)!important;
    border-radius:12px!important;
    background:#17140e!important;
    color:#f4e6bd!important;
    font-size:12px!important;
    font-weight:850!important;
    text-align:center!important;
    text-decoration:none!important;
  }
  html.mobile-nav-ready body > #mainNav .mobile-nav-cta a:first-child {
    background:#d5aa4d!important;
    color:#16120a!important;
  }
  /* No permanent body freeze. Only lock while menu is actually open. */
  html.mobile-nav-ready.nav-open,
  html.mobile-nav-ready.nav-open body {
    overflow:hidden!important;
    overscroll-behavior:none!important;
    touch-action:auto!important;
  }
  html.mobile-nav-ready.nav-open body {
    position:fixed!important;
    top:calc(-1 * var(--nav-scroll-lock-y, 0px))!important;
    left:0!important;
    right:0!important;
    width:100%!important;
    height:100%!important;
  }
  html.mobile-nav-ready.nav-open body > #mainNav {touch-action:pan-y!important;}
  html.mobile-nav-ready.nav-open body > .nav-backdrop {touch-action:none!important;}
  html.mobile-nav-ready.nav-open .floating-contact,
  html.mobile-nav-ready.nav-open .sabah-widget {pointer-events:none!important;}
}
@media (max-width:540px) {
  html.mobile-nav-ready body > #mainNav {width:100vw!important;max-width:none!important;padding-inline:18px!important;}
  html.mobile-nav-ready body > #mainNav .mobile-nav-head {margin-inline:-18px!important;padding-inline:14px!important;}
  html.mobile-nav-ready body > #mainNav .mobile-nav-cta {grid-template-columns:1fr;}
}
@media (prefers-reduced-motion:reduce) {
  html.mobile-nav-ready body > #mainNav,
  html.mobile-nav-ready body > .nav-backdrop {transition:none!important;}
}
