nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 78px;
  padding: clamp(0.6rem, 1.6vw, 1rem) clamp(1rem, 5vw, 5rem);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: rgba(13,13,20,0.96);
  border-bottom-color: var(--border);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
  min-width: 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-style: italic;
  background: linear-gradient(135deg, var(--rose), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
}

.nav-logo-img {
  display: block;
  width: clamp(52px, 6vw, 82px);
  height: clamp(52px, 6vw, 82px);
  object-fit: contain;
  flex: 0 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.5rem);
  list-style: none;
  flex: 0 1 auto;
  min-width: 0;
}

.nav-links li { flex: 0 0 auto; }

.nav-links a {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--rose); }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.55rem;
  z-index: 200;
  flex: 0 0 auto;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

body.nav-open { overflow: hidden; }

@media (max-width: 768px) {
  nav {
    min-height: 70px;
    padding: 0.55rem 1rem;
  }

  .nav-logo-img {
    width: 52px;
    height: 52px;
  }

  .nav-burger { display: flex; }

  .nav-links {
    position: fixed;
    inset: 0;
    width: 100vw;
    min-height: 100dvh;
    height: 100vh;
    padding: 7rem 1.5rem 2rem;
    background: rgba(13, 13, 20, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1.8rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
    z-index: 150;
    overflow-y: auto;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    font-size: clamp(0.95rem, 4vw, 1.15rem);
    line-height: 1.3;
  }
}

@media (max-width: 380px) {
  nav { min-height: 62px; }
  .nav-logo-img { width: 46px; height: 46px; }
  .nav-links { padding-top: 6rem; gap: 1.5rem; }
}
