/* REVISION 23 — mobile navigation repair and quieter mobile art direction. */
@media (max-width: 760px) {
  /* A backdrop-filter on a sticky header traps fixed descendants. Remove it while
     the menu is open so the navigation really covers the viewport on iOS. */
  .nav.menu-open,
  body:has(.ws-nav.open) .ws-header {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    z-index: 1002 !important;
  }

  .nav.menu-open .menu-toggle,
  body:has(.ws-nav.open) .ws-menu-toggle {
    position: relative !important;
    z-index: 1004 !important;
  }
  .nav.menu-open .logo,
  body:has(.ws-nav.open) .ws-logo {
    position: relative !important;
    z-index: 1004 !important;
  }

  /* Shared navigation used by internal pages. */
  .navlinks,
  .navlinks.open {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1003 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    padding: calc(env(safe-area-inset-top, 0px) + 105px) 28px calc(env(safe-area-inset-bottom, 0px) + 34px) !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    background: #24382d !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  .navlinks:not(.open) {
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }
  .navlinks.open {
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .navlinks.open .navitem {
    width: 100% !important;
    flex: 0 0 auto !important;
  }
  .navlinks.open .navitem > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 52px !important;
    box-sizing: border-box !important;
    padding: 12px 0 !important;
    color: #f4efe5 !important;
    font-size: clamp(23px, 6vw, 30px) !important;
    line-height: 1.15 !important;
    border-bottom: 1px solid #ffffff2b !important;
  }
  .navlinks.open .navitem > a i { color: #d98769 !important; }
  .navlinks.open .navitem.has-panel .nav-panel {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 5px 0 12px 12px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .navlinks.open .nav-panel-kicker,
  .navlinks.open .nav-panel-foot { display: none !important; }
  .navlinks.open .nav-panel > a {
    display: grid !important;
    grid-template-columns: 25px minmax(0, 1fr) 16px !important;
    align-items: center !important;
    gap: 9px !important;
    padding: 10px 0 !important;
    border-bottom: 1px solid #ffffff18 !important;
    color: #dce4d8 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
  }
  .navlinks.open .nav-panel > a img { width: 25px !important; height: 25px !important; object-fit: cover !important; }
  .navlinks.open .nav-panel > a span { font-size: 14px !important; }
  .navlinks.open .nav-panel > a small { display: none !important; }
  .navlinks.open .nav-panel > a b { font-size: 9px !important; }
  .navlinks.open .nav-panel > a em { color: #d98769 !important; }
  .menu-open .menu-toggle { position: relative !important; z-index: 1004 !important; color: #e19a7c !important; border-color: #e19a7c !important; }

  /* Homepage navigation: same full-screen behavior and readable nested links. */
  .ws-header { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .ws-nav,
  .ws-nav.open {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 1003 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    padding: calc(env(safe-area-inset-top, 0px) + 105px) 28px calc(env(safe-area-inset-bottom, 0px) + 34px) !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
    gap: 5px !important;
    background: #24382d !important;
  }
  .ws-nav:not(.open) { display: none !important; }
  .ws-nav.open { display: flex !important; }
  .ws-nav.open > a,
  .ws-nav.open .ws-nav-item > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 52px !important;
    box-sizing: border-box !important;
    padding: 12px 0 !important;
    color: #f4efe5 !important;
    font-size: clamp(23px, 6vw, 30px) !important;
    line-height: 1.15 !important;
    border-bottom: 1px solid #ffffff2b !important;
  }
  .ws-nav.open .ws-nav-item { display: flex !important; flex-direction: column !important; align-items: stretch !important; }
  .ws-nav.open .ws-nav-item > a i { color: #d98769 !important; }
  .ws-nav.open .ws-nav-drop {
    display: block !important;
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 5px 0 12px 12px !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  .ws-nav.open .ws-nav-drop > span { display: none !important; }
  .ws-nav.open .ws-nav-drop > a {
    display: flex !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 10px 0 !important;
    color: #dce4d8 !important;
    font-size: 14px !important;
    line-height: 1.35 !important;
    border-bottom: 1px solid #ffffff18 !important;
  }
  .ws-nav.open .ws-nav-drop > a b { color: #d98769 !important; }
  .ws-nav.open .ws-mobile-contact { display: flex !important; color: #e6a087 !important; }
  .ws-menu-toggle { position: relative !important; z-index: 1004 !important; }
  .ws-header-cta { display: none !important; }

  /* Remove the oversized lime floating marks that crowd the phone hero.
     Keep the restrained accent in the copy, not as an overlapping graphic. */
  .ws-home .ws-hero-content:after,
  .ws-home .ws-hero:after,
  .ws-home .ws-intro:before,
  .ws-home .ws-intro:after { display: none !important; content: none !important; animation: none !important; }
  .ws-home .ws-home-kicker > span {
    background: #e7c4b1 !important;
    color: #874b38 !important;
    animation: none !important;
  }
  .ws-home .ws-collage-center { animation: none !important; }
}

/* Prevent the page behind an open mobile menu from scrolling. */
html.ws-menu-active,
html.ws-menu-active body { overflow: hidden !important; }

@media (prefers-reduced-motion: reduce) {
  .navlinks, .ws-nav { transition: none !important; }
}
