/* ===================================================
   SHARED NAVIGATION — single source of truth
   Include on every page: <link rel="stylesheet" href="/css/nav.css">
   =================================================== */

/* ── UTILITY NAV ── */
.utility-nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: 33px;
  display: flex; align-items: center; justify-content: flex-end;
  gap: 16px; padding: 0 40px;
  background: var(--midnight-ocean, #0A1628);
  z-index: 1001; font-size: 12px; font-weight: 500;
}
.utility-nav__link {
  color: var(--text-muted, #6d7f94); text-decoration: none;
  transition: color 0.3s ease;
}
.utility-nav__link:hover { color: var(--ritz-gold, #C9A962); }
.utility-nav__phone {
  color: var(--ritz-gold, #C9A962); text-decoration: none; font-weight: 600;
}
.utility-nav__divider {
  width: 1px; height: 12px; background: var(--border-light, rgba(255,255,255,0.06));
}

/* ── MAIN NAV ── */
.nav {
  position: fixed; top: 33px; left: 0; right: 0;
  height: auto; padding: 16px 40px;
  background: var(--midnight-ocean, #0A1628);
  display: flex; justify-content: space-between; align-items: center;
  z-index: 1000;
  border-bottom: 1px solid var(--border-light, rgba(255,255,255,0.06));
  transition: box-shadow 0.3s ease, background 0.3s ease,
              border-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* ── GLASSMORPHIC SCROLL ── */
.nav.scrolled {
  background: rgba(10, 22, 40, 0.85) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(201,169,98,0.08);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ── LOGO ── */
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--light-bg, #fafbfc);
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 700;
  transition: color 0.3s ease;
}
.nav__logo:hover { color: var(--ritz-gold, #C9A962); }
.nav__logo-img { height: 60px; width: auto; }

/* ── LINKS ── */
.nav__links {
  display: flex; list-style: none; gap: 0; align-items: center;
}
.nav__link {
  text-decoration: none; color: var(--text-muted, #6d7f94);
  font-size: 14px; font-weight: 500;
  transition: color 0.3s ease; position: relative;
}
.nav__link:hover { color: var(--ritz-gold, #C9A962); }
.nav__link--active { color: var(--ritz-gold, #C9A962); }
.nav__link--active::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--ritz-gold, #C9A962);
}

/* ── CTA ── */
.nav__cta {
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--ritz-gold, #C9A962), var(--ritz-gold-hover, #d4bc7a));
  color: var(--midnight-ocean, #0A1628); border: none; border-radius: 4px;
  font-weight: 600; font-size: 13px; cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(201, 169, 98, 0.2);
}

/* ── MEGA MENU ── */
.nav__item { position: relative; padding-bottom: 20px; margin-bottom: -20px; }
.nav__item > .nav__link,
.nav__item > .nav__cta { display: block; padding: 10px 20px; }

.mega-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: rgba(10,22,40,0.98);
  border: 1px solid var(--border-light, rgba(255,255,255,0.06));
  border-top: 2px solid var(--ritz-gold, #C9A962);
  padding: 16px 0;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease;
  backdrop-filter: blur(12px); z-index: 999;
}
.mega-menu::before {
  content: ''; position: absolute;
  top: -20px; left: 0; right: 0; height: 20px;
}
.nav__item:hover > .mega-menu,
.nav__item:focus-within > .mega-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.mega-menu__link {
  display: block; padding: 10px 24px;
  color: var(--text-secondary, #b0bec5);
  text-decoration: none; font-size: 13px; font-weight: 500;
  transition: all .2s ease; white-space: nowrap;
}
.mega-menu__link:hover {
  color: var(--ritz-gold, #C9A962);
  background: rgba(201,169,98,0.06);
  padding-left: 28px;
}
.mega-menu--wide {
  min-width: 420px; padding: 24px; display: flex; gap: 32px;
}
.mega-menu__column { flex: 1; min-width: 160px; }
.mega-menu__heading {
  display: block; font-weight: 700; font-size: 11px;
  color: var(--ritz-gold, #C9A962); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 12px; padding: 0;
}
.mega-menu__column .mega-menu__link { padding: 7px 0; white-space: normal; }
.mega-menu__column .mega-menu__link:hover { padding-left: 4px; background: none; }

/* ── HAMBURGER ── */
.nav__hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 4px; z-index: 1002;
}
.nav__hamburger span {
  width: 24px; height: 2px; background: white; transition: .3s;
}

/* ── MOBILE NAV ── */
.mobile-nav {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10,22,40,0.99); z-index: 2000;
  flex-direction: column; padding: 80px 30px 40px; overflow-y: auto;
}
.mobile-nav.active { display: flex; }
.mobile-nav__close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: white;
  font-size: 32px; cursor: pointer;
}
.mobile-nav__item {
  display: flex; flex-wrap: wrap; align-items: center;
  border-bottom: 1px solid var(--border-light, rgba(255,255,255,0.06));
}
.mobile-nav__link {
  flex: 1; padding: 18px 0; color: white;
  text-decoration: none; font-size: 18px; font-weight: 500;
  font-family: 'Playfair Display', serif;
}
.mobile-nav__toggle {
  flex-shrink: 0; width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none;
  color: var(--ritz-gold, #C9A962); font-size: 22px;
  cursor: pointer;
}
.mobile-nav__sub { display: none; width: 100%; padding: 0 0 12px 16px; }
.mobile-nav__sub.active { display: block; }
.mobile-nav__sub a {
  display: block; padding: 10px 0;
  color: var(--text-secondary, #b0bec5);
  text-decoration: none; font-size: 14px;
}
.mobile-nav__sub a:hover { color: var(--ritz-gold, #C9A962); }
.mobile-nav__heading {
  display: block; padding: 8px 0 4px;
  font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px; color: white;
}
.mobile-nav__divider {
  display: block; height: 1px;
  background: rgba(255,255,255,0.15); margin: 8px 0;
}
.mobile-nav__cta {
  display: block; margin-top: 24px; text-align: center;
  background: var(--ritz-gold, #C9A962); color: var(--midnight-ocean, #0A1628);
  padding: 16px; font-weight: 600; font-size: 16px;
  text-decoration: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .utility-nav { padding: 6px 20px; gap: 16px; font-size: 11px; }
  .nav { padding: 16px 20px; }
  .nav__logo-img { height: 45px; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
}
