/* ---------------- Navbar Base ---------------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 72px;
  background: var(--background-light);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------------- Logo ---------------- */
.logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--primary-accent);
}
.logo img { height: 42px; width: auto; display: block; }
.brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ---------------- Links ---------------- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

/* Underline hover animation */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -6px; left: 0;
  width: 0%; height: 2px;
  background: var(--text-secondary);
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 100%;
}

/* ---------------- Hamburger ---------------- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 34px; height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.nav-toggle .bar {
  width: 100%;
  height: 2px;
  background: var(--primary-accent);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate to X */
.nav-toggle.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.active .bar:nth-child(2) { opacity: 0; }
.nav-toggle.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------------- Mobile Menu ---------------- */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links a {
    padding: 16px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }

  .nav-links[data-state="open"] {
    max-height: 350px;
  }

  .nav-links[data-state="closed"] {
    max-height: 0;
  }
}

/* Desktop hides hamburger */
@media (min-width: 901px) {
  .nav-toggle { display: none; }
}

/* Active link styling */
.nav-links a.active {
  color: var(--primary-accent);
}
.nav-links a.active::after {
  width: 100%;
  background: var(--primary-accent);
}