/* Core fixed nav (Chalet Les Terrasses) — #navMenu drawer = links only; book + lang stay visible */
:root {
  --lt-nav-fg: #f0ebe0;
  --lt-nav-bg: #0f0e0c;
  --lt-nav-black: #0f0e0c;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 28px 48px;
  transition: color 0.3s ease;
}
nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: -1;
}
.nav-logo {
  position: relative;
  z-index: 1;
  margin-right: auto;
  mix-blend-mode: difference;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--lt-nav-fg);
  text-decoration: none;
  text-transform: uppercase;
}
.nav-menu {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}
.nav-center {
  display: flex;
  gap: 40px;
  list-style: none;
  position: relative;
  z-index: 1;
}
.nav-center a {
  mix-blend-mode: difference;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lt-nav-fg);
  text-decoration: none;
  opacity: 1;
}
.nav-center a.active {
  opacity: 1;
}
.nav-lang {
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.nav-lang a {
  mix-blend-mode: difference;
  font-family: 'Jost', 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.15em;
  color: var(--lt-nav-fg);
  text-decoration: none;
  padding: 4px 0;
}
nav.nav-on-light .nav-logo,
nav.nav-on-light .nav-center a,
nav.nav-on-light .nav-lang a {
  mix-blend-mode: normal;
  color: var(--lt-nav-black) !important;
  opacity: 1;
}
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s;
}
body.nav-open .nav-overlay {
  opacity: 1;
  display: block;
  pointer-events: auto;
}
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 101;
  position: relative;
}
.nav-burger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--lt-nav-fg);
  mix-blend-mode: difference;
  transition: transform 0.25s, opacity 0.25s;
}
body.nav-open .nav-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
body.nav-open .nav-burger span:nth-child(2) {
  opacity: 0;
}
body.nav-open .nav-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 820px) {
  nav {
    padding: 18px 24px;
    gap: 16px;
  }
  .nav-center {
    gap: 20px;
  }
  .nav-burger {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(300px, 85vw);
    background: var(--lt-nav-bg);
    z-index: 100;
    padding: 80px 28px 28px;
    isolation: isolate;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
  }
  body.nav-open .nav-menu {
    transform: translateX(0);
  }
  .nav-center {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }
  .nav-center li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav-center a {
    display: block;
    padding: 16px 0;
    font-size: 12px;
  }
  .nav-menu .nav-center a {
    mix-blend-mode: normal !important;
    color: #ffffff !important;
    opacity: 1 !important;
  }
}
