/* Menu pill: one frosted-glass look for the header menu and the floating copy that slides in on scroll-up
   (see floating-nav.js). The header's own inline and phone styles use !important, so these do too. */

#hero-header .hero-text-nav,
.floatnav {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: clamp(0.4rem, 2.6vw, 1.6rem) !important;
  padding: 0.55rem clamp(0.9rem, 4vw, 1.6rem) !important;
  border-radius: 999px !important;
  background: rgba(28, 25, 23, 0.28) !important;
  -webkit-backdrop-filter: blur(22px) saturate(180%) !important;
  backdrop-filter: blur(22px) saturate(180%) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12) !important;
}

#hero-header .hero-text-nav .hero-nav-item,
.floatnav a {
  font-family: 'Inter', 'Lato', sans-serif !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.2em !important;
  color: #fff !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  padding: 0.2rem 0.3rem !important;
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 767px) {
  #hero-header .hero-text-nav .hero-nav-item,
  .floatnav a {
    font-size: 0.66rem !important;
    font-weight: 700 !important;
    letter-spacing: clamp(0.06em, 0.38vw, 0.12em) !important;
    padding: 0.2rem !important;
  }
}

/* the floating copy: fixed at the top, slides down from above the screen edge
   (always a slide, even with the system's reduce-motion setting on, by request) */
.floatnav-wrap { position: fixed; top: 12px; left: 0; right: 0; z-index: 9000; display: flex; justify-content: center; padding: 0 10px; pointer-events: none; }
/* hiding is the entrance played backwards: the mirrored curve starts slow and speeds up as it leaves */
.floatnav {
  pointer-events: auto; visibility: hidden; transform: translateY(calc(-100% - 24px));
  transition: transform 0.45s cubic-bezier(0.64, 0, 0.78, 0), visibility 0s linear 0.45s;
}
.floatnav.is-shown { visibility: visible; transform: none; transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s; }
/* the old Elementor styles on the home page zero every transition (html * { transition-duration: 0s !important })
   for reduce-motion users; keep this slide (order: transform, visibility) */
.floatnav { transition-duration: 0.45s, 0s !important; transition-delay: 0s, 0.45s !important; }
.floatnav.is-shown { transition-delay: 0s, 0s !important; }
