/* ════════════════════════════════════════════════════════════
   NAV MOBILE FIX — overrides luxury-french.css nav rules
   Load AFTER luxury-french.css on every page
   ════════════════════════════════════════════════════════════ */

/* ── Base nav wrapper ─────────────────────────────────────── */
.lux-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

/* ── Inner row ────────────────────────────────────────────── */
.lux-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 9002;
}

/* ── Nav states ───────────────────────────────────────────── */
.lux-nav.transparent { background: transparent; }
.lux-nav.scrolled {
  background: rgba(13,27,61,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(212,180,127,0.2);
}

/* ── Logo ─────────────────────────────────────────────────── */
.lux-nav__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1 1 auto;
  min-width: 0;
}
.lux-nav__logo img {
  height: 40px; width: 40px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 50%;
  border: 1px solid rgba(212,180,127,0.35);
}
.lux-nav__logo > div {
  min-width: 0;
  overflow: hidden;
}
.lux-nav__logo-text {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--lux-ivory);
  letter-spacing: 0.04em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lux-nav__logo-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lux-champagne);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Desktop links (≥901px) ───────────────────────────────── */
.lux-nav__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  flex-shrink: 0;
}
.lux-nav__link {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248,246,240,0.8);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.28s ease;
  white-space: nowrap;
}
.lux-nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--lux-champagne);
  transition: width 0.5s cubic-bezier(0.22,1,0.36,1);
}
.lux-nav__link:hover,
.lux-nav__link.active { color: var(--lux-champagne-lt); }
.lux-nav__link:hover::after,
.lux-nav__link.active::after { width: 100%; }

/* ── Actions bar ──────────────────────────────────────────── */
.lux-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-shrink: 0;
}
.lux-nav__lang {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lux-ivory);
  background: rgba(212,180,127,0.15);
  border: 1px solid rgba(212,180,127,0.5);
  border-radius: 20px;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.lux-nav__lang:hover {
  background: rgba(212,180,127,0.3);
  border-color: var(--lux-champagne);
  color: var(--lux-champagne-lt);
}

/* ── Hamburger: hidden on desktop ────────────────────────── */
.lux-nav__hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  flex-shrink: 0;
  position: relative;
  z-index: 9003;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.lux-nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: #FAF8F4;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
  pointer-events: none;
}
.lux-nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.lux-nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.lux-nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════════════════════════════════════════════════════
   MOBILE  ≤ 900px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {

  .lux-nav__inner { padding: 0 1rem; gap: 0.5rem; }

  /* Always dark tint so logo is readable on any hero background */
  .lux-nav.transparent {
    background: rgba(13,27,61,0.80) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }
  .lux-nav.scrolled {
    background: rgba(13,27,61,0.97) !important;
  }

  /* Smaller logo */
  .lux-nav__logo         { gap: 0.45rem; }
  .lux-nav__logo img     { height: 34px; width: 34px; }
  .lux-nav__logo-text    { font-size: 0.9rem; }
  .lux-nav__logo-sub     { font-size: 0.5rem; }

  /* Show hamburger */
  .lux-nav__hamburger { display: flex; }

  /* Hide desktop lang button — replaced by visible mobile toggle */
  .lux-nav__actions .lux-nav__lang { display: none; }

  /* ── Visible lang toggle pill in nav bar (mobile) ─── */
  .lux-nav__lang--mobile-bar {
    display: flex !important;
    align-items: center;
    font-family: var(--font-sans);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lux-ivory);
    background: rgba(212,180,127,0.15);
    border: 1px solid rgba(212,180,127,0.5);
    border-radius: 20px;
    padding: 0.32rem 0.8rem;
    cursor: pointer;
    gap: 0.3rem;
    white-space: nowrap;
    transition: background 0.25s ease, border-color 0.25s ease;
    flex-shrink: 0;
  }
  .lux-nav__lang--mobile-bar:hover,
  .lux-nav__lang--mobile-bar:active {
    background: rgba(212,180,127,0.3);
    border-color: var(--lux-champagne);
    color: var(--lux-champagne-lt);
  }
  .lux-nav__lang--mobile-bar .lang-icon {
    font-size: 0.7rem;
  }
  /* ── FULL-SCREEN OVERLAY ─────────────────────────── */
  .lux-nav__links {
    /* Reset desktop flex */
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;

    /* Fixed full-screen panel */
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    right: 0 !important; bottom: 0 !important;
    z-index: 9001 !important;

    /* Navy brand color */
    background: rgba(13,27,61,0.98) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;

    /* Slide-up animation */
    transform: translateY(-100%) !important;
    transition: transform 0.42s cubic-bezier(0.22,1,0.36,1) !important;

    padding: calc(var(--nav-h) + 1.5rem) 2rem 4rem !important;
    list-style: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .lux-nav__links.open {
    transform: translateY(0) !important;
  }

  /* Nav items inside overlay */
  .lux-nav__links li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(212,180,127,0.1);
  }
  .lux-nav__links li:first-child {
    border-top: 1px solid rgba(212,180,127,0.1);
  }

  .lux-nav__link {
    display: block !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.22em !important;
    color: rgba(248,246,240,0.85) !important;
    padding: 1.1rem 0 !important;
    width: 100%;
  }
  .lux-nav__link:hover,
  .lux-nav__link.active {
    color: var(--lux-champagne-lt) !important;
  }
  /* Remove underline effect inside mobile overlay */
  .lux-nav__link::after { display: none !important; }

  /* Gold active indicator — left border */
  .lux-nav__link.active {
    border-left: 2px solid var(--lux-champagne);
    padding-left: 1rem !important;
  }

  /* Lang button injected by JS into the overlay */
  .lux-nav__lang--mobile {
    display: inline-block !important;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(248,246,240,0.5);
    border: 1px solid rgba(248,246,240,0.2);
    padding: 0.65rem 2rem;
    background: none;
    cursor: pointer;
    margin-top: 1.2rem;
    transition: color 0.25s ease, border-color 0.25s ease;
  }
  .lux-nav__lang--mobile:hover {
    color: var(--lux-champagne-lt);
    border-color: var(--lux-champagne);
  }
}

/* ── Very small phones ≤ 380px ───────────────────────────── */
@media (max-width: 380px) {
  .lux-nav__logo-sub  { display: none; }
  .lux-nav__logo-text { font-size: 0.82rem; }
  .lux-nav__logo img  { height: 28px; width: 28px; }
}
