/* ==========================================================================
   Apple.com Style Global Navigation
   Designed for QBEE Business Solutions
   Matches Apple's exact typography, glassmorphism, flyouts, search & mobile drawer
   ========================================================================== */

:root {
  --apple-nav-height: 58px;
  --apple-nav-bg: rgba(22, 22, 23, 0.8);
  --apple-nav-bg-scrolled: rgba(22, 22, 23, 0.88);
  --apple-nav-flyout-bg: rgba(22, 22, 23, 0.96);
  --apple-nav-border: rgba(255, 255, 255, 0.12);
  --apple-nav-text: rgba(255, 255, 255, 0.8);
  --apple-nav-text-hover: #ffffff;
  --apple-nav-accent: #8a38d2;
  --apple-nav-cta: #6e2dbb;
  --apple-nav-cta-hover: #7b2cbf;
  --apple-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --apple-font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* Base header override */
.site-header,
.site-header--apple {
  position: fixed !important;
  inset: 0 0 auto !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: var(--apple-nav-height) !important;
  min-height: var(--apple-nav-height) !important;
  max-height: var(--apple-nav-height) !important;
  z-index: 9999 !important;
  background: var(--apple-nav-bg) !important;
  border-bottom: 1px solid var(--apple-nav-border) !important;
  backdrop-filter: saturate(180%) blur(20px) !important;
  -webkit-backdrop-filter: saturate(180%) blur(20px) !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: background 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease !important;
  font-family: var(--apple-font) !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

.site-header--apple.scrolled {
  background: var(--apple-nav-bg-scrolled) !important;
  border-bottom-color: rgba(255, 255, 255, 0.16) !important;
}

/* Fixed container */
.apple-nav-wrapper {
  max-width: 1024px;
  width: 100%;
  height: var(--apple-nav-height);
  margin: 0 auto;
  padding: 0 22px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  position: relative;
}

.apple-nav {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Navigation List */
.apple-nav-list {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Nav Items */
.apple-nav-item {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Apple Iconic Hover Dimming Effect: Siblings dim when one is hovered */
.apple-nav-list:hover .apple-nav-item:not(:hover) {
  opacity: 0.52;
}

/* Links */
.apple-nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 11px;
  font-family: var(--apple-font);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--apple-nav-text);
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
  position: relative;
}

.apple-nav-link:hover,
.apple-nav-link:focus-visible,
.apple-nav-item.active .apple-nav-link {
  color: var(--apple-nav-text-hover);
}

.apple-nav-link[aria-current="page"] {
  color: #ffffff;
  font-weight: 500;
}

/* Brand Logo */
.apple-nav-item-brand {
  flex-shrink: 0;
}

.apple-nav-link-brand {
  padding-left: 0;
  padding-right: 12px;
}

.apple-brand-logo {
  height: 34px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
  filter: none !important;
  opacity: 0.98;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.apple-nav-link-brand:hover .apple-brand-logo {
  opacity: 1;
}

/* Search trigger button */
.apple-nav-button {
  background: transparent;
  border: none;
  outline: none;
  padding: 0 10px;
  color: var(--apple-nav-text);
  cursor: pointer;
}

.apple-nav-icon {
  width: 15px;
  height: 15px;
  display: block;
}

/* Website-Styled CTA Pill Button */
.apple-nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  position: relative;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: #fffffe !important;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(135deg, #7b2cbf 0%, #5a189a 48%, #2b0557 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 0 16px;
  min-height: 36px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 4px 16px -2px rgba(110, 45, 187, 0.45);
  cursor: pointer;
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
  transition:
    transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.24s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.24s ease,
    border-color 0.24s ease;
}

.apple-nav-cta-btn:hover {
  background: linear-gradient(135deg, #8a38d2 0%, #681db3 48%, #36086b 100%);
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 8px 24px -2px rgba(110, 45, 187, 0.6);
}

.apple-nav-cta-btn:active {
  transform: translateY(0) scale(0.975);
  box-shadow:
    0 1px 4px rgba(0, 0, 0, 0.25),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.apple-nav-cta-btn .btn-arrow {
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.apple-nav-cta-btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* Mobile Menu Toggle Button (2-line Apple Style) */
.apple-nav-item-menu {
  display: none;
}

.apple-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 10001;
}

.apple-toggle-line {
  display: block;
  width: 17px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 1px;
  transition: transform 0.24s cubic-bezier(0.4, 0, 0.6, 1), opacity 0.2s ease, background-color 0.2s ease;
  transform-origin: center;
}

/* When mobile drawer is open: morph to an Apple 'X' */
.apple-menu-toggle[aria-expanded="true"] .line-top {
  transform: translateY(3.25px) rotate(45deg);
}

.apple-menu-toggle[aria-expanded="true"] .line-bottom {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ==========================================================================
   Desktop Apple Mega Dropdown (Flyout Curtain)
   ========================================================================== */
.apple-flyout-curtain {
  position: absolute;
  top: var(--apple-nav-height);
  left: 0;
  right: 0;
  width: 100%;
  background: var(--apple-nav-flyout-bg);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  border-bottom: 1px solid var(--apple-nav-border);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.24s;
  z-index: 9998;
}

.apple-flyout-curtain.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.apple-flyout-panel {
  display: none;
  width: 100%;
  animation: appleFlyoutFadeIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.apple-flyout-panel.active {
  display: block;
}

@keyframes appleFlyoutFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.apple-flyout-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 40px 24px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1.15fr 1fr;
  gap: 48px;
  box-sizing: border-box;
}

.apple-flyout-col {
  display: flex;
  flex-direction: column;
}

.apple-flyout-eyebrow {
  font-family: var(--apple-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.44);
  margin: 0 0 16px 0;
  padding: 0;
}

.apple-flyout-primary-list,
.apple-flyout-secondary-list,
.apple-flyout-action-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

/* Primary large links */
.apple-flyout-primary-list {
  gap: 10px;
}

.apple-flyout-primary-list a {
  font-family: var(--apple-font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.28;
  color: #f5f5f7;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: color 0.16s ease, transform 0.16s ease;
}

.apple-flyout-primary-list a:hover {
  color: var(--apple-nav-accent);
  transform: translateX(2px);
}

.apple-badge {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  vertical-align: middle;
}

/* Secondary medium links */
.apple-flyout-secondary-list {
  gap: 9px;
}

.apple-flyout-secondary-list a,
.apple-flyout-secondary-list span {
  font-family: var(--apple-font);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.16s ease;
}

.apple-flyout-secondary-list a:hover {
  color: #ffffff;
}

/* Action links */
.apple-flyout-action-list {
  gap: 12px;
}

.apple-flyout-arrow-link {
  font-family: var(--apple-font);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--apple-nav-accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.16s ease, transform 0.16s ease;
}

.apple-flyout-arrow-link .arrow {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-flyout-arrow-link:hover {
  color: #64b5f6;
}

.apple-flyout-arrow-link:hover .arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   Full Page Backdrop Scrim
   ========================================================================== */
.apple-backdrop-scrim {
  position: fixed;
  inset: 0;
  top: var(--apple-nav-height);
  z-index: 9990;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s;
}

.apple-backdrop-scrim.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ==========================================================================
   Interactive Apple Search Overlay
   ========================================================================== */
.apple-search-overlay {
  position: absolute;
  top: var(--apple-nav-height);
  left: 0;
  right: 0;
  width: 100%;
  background: var(--apple-nav-flyout-bg);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  border-bottom: 1px solid var(--apple-nav-border);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1), transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.24s;
  z-index: 9998;
}

.apple-search-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.apple-search-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 36px 24px 44px;
  box-sizing: border-box;
}

.apple-search-input-wrap {
  display: flex;
  align-items: center;
  position: relative;
  gap: 12px;
  margin-bottom: 24px;
}

.apple-search-input-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.apple-search-input {
  width: 100%;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 0 16px 0 42px;
  font-family: var(--apple-font);
  font-size: 15px;
  color: #ffffff;
  outline: none;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.apple-search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.apple-search-input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--apple-nav-accent);
  box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.2);
}

.apple-search-close {
  background: transparent;
  border: none;
  font-family: var(--apple-font);
  font-size: 13px;
  color: var(--apple-nav-accent);
  cursor: pointer;
  padding: 0 4px;
  white-space: nowrap;
}

.apple-search-close:hover {
  color: #64b5f6;
}

.apple-search-section-title {
  font-family: var(--apple-font);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.44);
  margin: 0 0 14px 0;
}

.apple-search-quick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.apple-search-quick-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--apple-font);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}

.apple-search-quick-list li a .quicklink-arrow {
  color: var(--apple-nav-accent);
  font-size: 13px;
}

.apple-search-quick-list li a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

/* Live search matches container */
.apple-search-live-matches {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 340px;
  overflow-y: auto;
}

.apple-search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
  transition: background 0.16s ease;
}

.apple-search-result-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.apple-result-title {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}

.apple-result-tag {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ==========================================================================
   Apple Mobile Navigation Fullscreen Drawer
   ========================================================================== */
.apple-mobile-menu {
  position: fixed;
  top: var(--apple-nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  width: 100dvw;
  height: calc(100vh - var(--apple-nav-height));
  height: calc(100dvh - var(--apple-nav-height));
  background: #000000;
  backdrop-filter: saturate(180%) blur(32px);
  -webkit-backdrop-filter: saturate(180%) blur(32px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.apple-mobile-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.apple-mobile-menu-inner {
  padding: 24px 28px 48px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-sizing: border-box;
}

/* Mobile search bar */
.apple-mobile-search-bar {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 28px;
}

.apple-mobile-search-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.apple-mobile-search-input {
  width: 100%;
  height: 42px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0 16px 0 42px;
  font-family: var(--apple-font);
  font-size: 15px;
  color: #ffffff;
  outline: none;
}

.apple-mobile-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Staggered animated cascade links */
.apple-mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 36px;
}

.apple-mobile-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--delay, 1) * 0.035s);
}

.apple-mobile-menu.active .apple-mobile-nav-item {
  opacity: 1;
  transform: translateY(0);
}

.apple-mobile-link {
  font-family: var(--apple-font-display);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: #e8e8ed;
  text-decoration: none;
  display: block;
  transition: color 0.16s ease;
}

.apple-mobile-link:hover,
.apple-mobile-link[aria-current="page"] {
  color: #ffffff;
}

.apple-mobile-accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.apple-mobile-accordion-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  padding: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.apple-mobile-accordion.open .apple-mobile-accordion-btn {
  transform: rotate(180deg);
  color: #ffffff;
}

.apple-mobile-sublist {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 14px 0 6px 12px;
}

.apple-mobile-accordion.open .apple-mobile-sublist {
  display: flex;
}

.apple-mobile-sublist a {
  font-family: var(--apple-font);
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.16s ease;
}

.apple-mobile-sublist a:hover {
  color: #ffffff;
}

.apple-mobile-sublist .apple-sublink-all {
  color: var(--apple-nav-accent);
  font-weight: 500;
}

/* Mobile footer */
.apple-mobile-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 0.25s;
}

.apple-mobile-menu.active .apple-mobile-footer {
  opacity: 1;
  transform: translateY(0);
}

.apple-mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  background: linear-gradient(135deg, #7b2cbf 0%, #5a189a 48%, #2b0557 100%);
  color: #fffffe !important;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 22px -4px rgba(110, 45, 187, 0.48);
  text-decoration: none;
  transition:
    transform 0.24s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.24s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.24s ease;
}

.apple-mobile-cta-btn:hover {
  background: linear-gradient(135deg, #8a38d2 0%, #681db3 48%, #36086b 100%);
  transform: translateY(-1px);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 12px 28px -4px rgba(110, 45, 187, 0.6);
}

.apple-mobile-cta-btn:active {
  transform: translateY(0) scale(0.98);
}

.apple-mobile-cta-btn .btn-arrow {
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.apple-mobile-cta-btn:hover .btn-arrow {
  transform: translateX(4px);
}

.apple-mobile-contact-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.apple-mobile-contact-links a {
  font-family: var(--apple-font);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
}

.apple-mobile-contact-links a:hover {
  color: #ffffff;
}

.apple-mobile-meta {
  font-family: var(--apple-font);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

/* ==========================================================================
   Responsive Breakpoint (Tablets & Mobile <= 834px)
   ========================================================================== */
@media (max-width: 834px) {
  .apple-nav-wrapper {
    padding: 0 16px;
  }

  /* Hide desktop-only nav links and desktop CTA in top bar */
  .apple-nav-item:not(.apple-nav-item-brand):not(.apple-nav-item-search):not(.apple-nav-item-menu) {
    display: none !important;
  }

  /* Show mobile hamburger toggle */
  .apple-nav-item-menu {
    display: flex !important;
  }

  /* Hide desktop flyout curtain on mobile */
  .apple-flyout-curtain {
    display: none !important;
  }

  /* Push search and menu toggle to right */
  .apple-nav-list {
    justify-content: flex-start;
    gap: 8px;
  }

  .apple-nav-item-brand {
    margin-right: auto;
  }

  .apple-brand-logo {
    height: 30px;
    max-width: 150px;
  }
}

/* Body lock when mobile menu is active */
body.apple-mobile-open {
  overflow: hidden !important;
  touch-action: none;
}
