/* =====================
   HEADER / NAVIGATION
===================== */
.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
}

.brand img {
  height: 72px;
  width: auto;
}

nav a {
  margin-left: 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  transition: color .2s ease;
}

nav a:hover {
  color: var(--primary);
}

.nav-btn {
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
}

/* =====================
   MOBILE NAVIGATION
===================== */

/* Standaard: nergens zichtbaar */
.menu-toggle,
.mobile-menu {
  display: none;
}

/* Alleen op mobiel */
@media (max-width: 900px) {

  /* Desktop navigatie UIT */
  nav {
    display: none;
  }

  /* Hamburger knop */
  .menu-toggle {
    display: block;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
  }

  /* Mobile menu overlay (bovenaan, vast) */
  .mobile-menu {
    position: fixed;
    top: 90px;              /* hoogte van je header */
    right: 20px;

    display: none;
    flex-direction: column;
    gap: 12px;

    background: #fff;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--border);

    width: auto;
    min-width: 220px;

    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
    z-index: 999;

    opacity: 0;
    transform: translateY(-10px);
  }

  /* Mobile menu open */
  .mobile-menu.active {
    display: flex;
    animation: mobileMenuFade 0.3s ease forwards;
  }

  /* Links */
  .mobile-menu a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    padding: 10px 14px;
    border-radius: 8px;
    transition: background 0.2s ease;
  }

  .mobile-menu a:hover {
    background: var(--light);
  }
}

/* Backdrop achter mobile menu */
.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 998;
}

.menu-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

/* =====================
   MOBILE MENU ANIMATION
===================== */
@keyframes mobileMenuFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hamburger animatie */
.menu-toggle {
  transition: transform 0.3s ease;
}

.menu-toggle.active {
  transform: rotate(90deg);
}
