/* ═══════════════════════════════════════════════
   MED-LINE — Nav & Mobile Menu (Final Clean v5)
   © 2026 Stan Paraclete
═══════════════════════════════════════════════ */

/* ── NAV BASE ── */
#nav {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 9000;
  height: 72px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 0 5vw;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  box-sizing: border-box;
}
#nav.solid {
  background: rgba(250,249,247,0.97) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(221,216,208,0.8) !important;
}
#nav.transparent {
  background: transparent !important;
  box-shadow: none !important;
}

/* ── LOGO ── */
.nav-logo a { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 46px; width: auto; display: block; }

/* ── DESKTOP LINKS ── */
.nav-center {
  display: flex; align-items: center; gap: 2.4rem;
  margin: 0; padding: 0; list-style: none;
}
.nav-center a {
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--navy); text-decoration: none;
  position: relative; padding-bottom: 4px;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-center a::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; width: 0; height: 1px;
  background: var(--gold); transition: width 0.3s ease;
}
.nav-center a:hover { color: var(--gold); }
.nav-center a:hover::after { width: 100%; }

/* ── CTA ── */
.nav-right { display: flex; align-items: center; gap: 1rem; }
.nav-cta {
  font-family: 'Outfit', sans-serif;
  font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: white !important; background: var(--navy);
  padding: 10px 22px; text-decoration: none;
  display: inline-block; transition: background 0.25s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold) !important; }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: pointer; padding: 4px;
  z-index: 9100; position: relative;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
#mobileNav {
  position: fixed; inset: 0; z-index: 9050;
  background: var(--navy, #0C1F3F);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 0; padding: 80px 0 40px; overflow-y: auto;
  visibility: hidden; opacity: 0; transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
              opacity 0.35s ease, visibility 0s linear 0.4s;
  pointer-events: none;
}
#mobileNav.open {
  visibility: visible; opacity: 1; transform: translateX(0);
  transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94),
              opacity 0.35s ease, visibility 0s linear 0s;
  pointer-events: auto;
}
#mobileNav a {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(1.8rem, 6vw, 2.8rem); font-weight: 400;
  color: rgba(255,255,255,0.88); text-decoration: none;
  letter-spacing: 0.02em; padding: 0.75rem 0; width: 100%;
  text-align: center; border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s, background 0.2s;
}
#mobileNav a:first-of-type { border-top: 1px solid rgba(255,255,255,0.06); }
#mobileNav a:hover { color: var(--gold-light, #C9A256); background: rgba(255,255,255,0.04); }
.mobile-close {
  position: absolute; top: 20px; right: 5vw;
  background: none; border: none; color: white;
  font-size: 1.8rem; cursor: pointer;
  width: 44px; height: 44px; display: flex;
  align-items: center; justify-content: center;
  opacity: 0.7; transition: opacity 0.2s; z-index: 9060;
}
.mobile-close:hover { opacity: 1; }
#mobileNav .mob-cta {
  margin-top: 2rem !important; font-family: 'Outfit', sans-serif !important;
  font-size: 0.78rem !important; font-weight: 500 !important;
  letter-spacing: 0.18em !important; text-transform: uppercase !important;
  color: white !important; background: var(--gold, #A67C3A) !important;
  padding: 14px 36px !important; border: none !important;
  border-bottom: none !important; border-top: none !important;
  width: auto !important; display: inline-block !important;
}
#mobileNav .mob-cta:hover { background: white !important; color: var(--navy, #0C1F3F) !important; }
#mobileNav .mob-social {
  display: flex; gap: 1rem; margin-top: 1.5rem;
}
#mobileNav .mob-social a {
  font-size: 1rem !important; width: 42px !important; height: 42px !important;
  border-radius: 50% !important; display: flex !important;
  align-items: center; justify-content: center; padding: 0 !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
}

/* ── BREAKPOINTS ── */
@media (min-width: 901px) {
  .nav-hamburger { display: none !important; }
  .nav-center { display: flex !important; }
  .nav-cta { display: inline-block !important; }
  #mobileNav, #mobileNav.open {
    visibility: hidden !important; opacity: 0 !important;
    transform: translateX(100%) !important; pointer-events: none !important;
  }
}
@media (max-width: 900px) {
  .nav-center { display: none !important; }
  .nav-cta { display: none !important; }
  .nav-hamburger { display: flex !important; }
}
