nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 7vw, 88px);
  background: transparent;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
  background: var(--ivoor);
  box-shadow: 0 2px 8px rgba(44, 36, 32, 0.08);
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 40px;
}

.nav-logo img {
  height: 36px;
  width: auto;
  transition: opacity 0.3s ease;
}

/* Wit logo op dark hero, donker na scroll */
nav.scrolled .nav-logo img {
  filter: invert(1) brightness(0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--ivoor);
  transition: color 0.3s ease;
}

nav.scrolled .nav-links a {
  color: var(--donker);
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  margin-left: 16px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  background: none;
  border: none;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ivoor);
  transition: all 0.3s ease;
}

nav.scrolled .hamburger span {
  background: var(--donker);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ─── MOBILE MENU ────────────────────────────────────────── */

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--donker);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 500;
  color: var(--ivoor);
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--accent);
}

/* ─── RESPONSIVE ─────────────────────────────────────────– */

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  nav {
    padding: 0 24px;
  }

  .mobile-menu a {
    font-size: 20px;
  }
}
