/* T30y — Mobile menu: full-screen panel + inline accordions (Services, Company).
   Loaded LAST (after obx-header.css) so it wins the cascade on ≤900px. */
@media (max-width: 900px) {
  /* ── Full-screen panel: hides the page behind it ───────────────────── */
  .site-header nav {
    display: none;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    margin: 0 !important;
    height: 100vh; height: 100dvh; /* belt + braces: top/bottom stretch fails in some engines */
    flex-direction: column; gap: 0; align-items: stretch;
    background: #fff; padding: 84px 22px calc(28px + env(safe-area-inset-bottom));
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    box-shadow: none; border-bottom: 0; z-index: 100;
  }
  .site-header nav.open { display: flex; animation: t30y-nav-in .22s ease; }
  @keyframes t30y-nav-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  /* dim + lock the page behind the open panel */
  body:has(.site-header nav.open) { overflow: hidden; }

  /* T30u: panel is its own full-screen layer (z-100) and must NOT live inside
     the pointer-events:none .header-inner strip — an ancestor with pointer-events:none
     blocks child clicks even when the child sets pointer-events:auto, so the open
     panel re-enables itself. */
  .site-header nav.open { position: fixed; left: 0; right: 0; top: 0; bottom: 0; z-index: 1000; pointer-events: auto; }

  /* The open panel covers the header row: give the header a solid white bar so
     the brand + close button read cleanly, and move the brand above the panel
     (z-index) while hiding the Book button (the panel has its own CTAs). */
  .site-header:has(nav.open) { background: #fff; box-shadow: 0 1px 0 var(--obx-hairline), 0 12px 32px -24px rgba(11,27,43,.4); z-index: 1001; }
  /* Home: the header is transparent over the hero — the logo statement lives in
     that top strip, so hide it (its link is the brand above) and keep the white bar. */
  .site-header:has(nav.open) .logo-statement { visibility: hidden; pointer-events: none; opacity: 0 !important; animation: none !important; }
  .site-header:has(nav.open) .header-inner { position: relative; z-index: 101; }
  .site-header:has(nav.open) .brand { pointer-events: auto; position: relative; z-index: 1002; }
  .site-header:has(nav.open) .brand a, .site-header:has(nav.open) .brand { color: var(--obx-ink); text-shadow: none; }
  /* Inside the open (white) panel the OBX logo must be the DARK version — the
     pearl/white logo is invisible on the white panel (Home forces pearl on). */
  .site-header:has(nav.open) .brand__logo--pearl { display: none !important; }
  .site-header:has(nav.open) .brand__logo--dark { display: block !important; filter: none; opacity: 1; }
  /* close button (the hamburger) sits over the panel */
  .site-header:has(nav.open) .nav-toggle { pointer-events: auto; background: #fff; border: 1px solid var(--obx-hairline); border-radius: 2px; width: 44px; height: 44px; align-items: center; justify-content: center; z-index: 1002; position: relative; }

  /* top-level items in the normal menu style; tap targets ≥44px */
  .site-header nav > a,
  .site-header nav .nav-item > a {
    color: var(--obx-ink) !important; text-shadow: none !important;
    font-size: 1.15rem; font-weight: 600; letter-spacing: .04em; text-transform: none;
    padding: 14px 0; min-height: 44px;
    border-bottom: 1px solid var(--obx-hairline);
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
  }
  .site-header nav a.portal-link {
    display: flex; color: #8A6A2F !important; font-weight: 600; min-height: 44px;
  }

  /* ── Dropdowns open as INLINE ACCORDIONS below their item ────────────
     .nav-sub becomes part of the column flow (static), revealed by
     .nav-item.open. Never a floating box over other items. */
  .site-header nav .nav-item { display: flex; flex-wrap: wrap; align-items: center; position: static; }
  .site-header nav .nav-item > a { flex: 1 1 auto; justify-content: flex-start; }
  .site-header nav .nav-item > a .nav-caret {
    display: none; /* replaced by the separate .nav-chevron button (T30u) */
  }
  /* T30u — separate chevron button: toggles the inline accordion. 44px target.
     Chevron is an inline SVG (reliable); it rotates when the item is open. */
  .site-header nav .nav-chevron { display: block !important; /* T30u: beat desktop display:none */ appearance: none; background: none; border: 0; cursor: pointer;
    width: 44px; height: 44px; flex: 0 0 auto; margin-left: 4px; align-items: center; justify-content: center;
    color: var(--obx-ink) !important; font-size: 0; line-height: 0; opacity: .8;
    transition: transform .25s ease;
  }
  .site-header nav .nav-chevron svg { width: 22px; height: 22px; display: block; transition: transform .25s ease; }
  .site-header nav .nav-chevron svg path { stroke: var(--obx-ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .site-header nav .nav-item.open > .nav-chevron svg { transform: rotate(180deg); }
  .site-header nav .nav-item.open > .nav-chevron { transform: rotate(180deg); }
  .site-header nav .nav-sub {
    position: static; transform: none !important;
    opacity: 1 !important; visibility: visible !important; pointer-events: auto !important;
    min-width: 0; white-space: normal;
    background: transparent; border: 0; box-shadow: none; padding: 0;
    display: none; width: 100%; /* sub-links flow below the label+chevron row */
  }
  .site-header nav .nav-item.open .nav-sub { display: block; animation: t30y-nav-in .2s ease; }
  .site-header nav .nav-sub::before { content: none; }

  /* item names: normal menu style (strong). Descriptions: sentence case,
     small, grey, normal letter spacing. Sub-links indented under the row. */
  .site-header nav .nav-sub a {
    display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
    padding: 12px 0 12px 14px; min-height: 44px;
    border-bottom: 1px solid var(--obx-hairline);
    color: rgba(11,27,43,.55) !important; text-shadow: none !important;
    font-size: .78rem; letter-spacing: .02em; text-transform: none; line-height: 1.4;
    background: none;
  }
  .site-header nav .nav-sub a strong {
    display: block; font-size: .95rem; font-weight: 600;
    letter-spacing: .02em; text-transform: none; color: var(--obx-ink); margin: 0;
  }
  .site-header nav .nav-sub a span {
    display: block; font-size: .78rem; font-weight: 400;
    color: #6b7785; letter-spacing: .02em; text-transform: none; margin: 0;
  }
  .site-header nav .nav-sub a::after { display: none; }
  .site-header nav .nav-sub a:hover,
  .site-header nav .nav-sub a:focus { background: rgba(198,166,100,.08); }

  .site-header .nav-toggle svg { width: 26px; height: 26px; }

  /* T30u layout — close the open panel with the primary CTA + the number,
     so the full-screen panel doesn't read as a big blank area. */
  .site-header nav .nav-panel-foot {
    margin-top: auto; padding-top: 28px; display: flex; flex-direction: column;
    gap: 12px; align-items: stretch; border-top: 1px solid var(--obx-hairline);
  }
  .site-header nav .nav-panel-book {
    display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
    font-size: 1rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  }
  .site-header nav .nav-panel-phone {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
    color: var(--obx-ink) !important; font-size: 1.05rem; font-weight: 600; letter-spacing: .04em;
    text-shadow: none !important;
  }
}

/* ── T30y part 2 — Home "Aboard your yacht" tab row on mobile ──────────
   Loaded last so it wins the cascade. Edge fade + keep labels whole. */
@media (max-width: 900px) {
  .explorer .tabs {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  }
  /* keep the default 132px min-width so labels are never cut mid-word at load;
     the row scrolls sideways with the edge fade above */
  .explorer .tab__label { letter-spacing: .14em; }

  /* T30y part 4 — tap targets ≥44px on the small interactive elements. */
  .site-header .brand { min-height: 44px; align-items: center; }
  .site-header .btn-header-book { min-height: 44px; display: inline-flex; align-items: center; }
  .site-header .nav-toggle { width: 44px; height: 44px; }
  .aud-tab { min-height: 44px; display: inline-flex; align-items: center; }
  .hero-montage .hero-scroll { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}
