/* ── Gedeelde navbar — kinderboekcreatie.nl ── */
.navbar {
  background: #fff;
  border-bottom: 1px solid #e8d8c8;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #1a2e2e;
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo svg { width: 20px; height: 20px; flex-shrink: 0; }
.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav-link {
  color: #2c2020;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.18s;
  white-space: nowrap;
  padding: 4px 8px;
}
.nav-link:hover { color: #0d9488; }
.nav-link.active { color: #0d9488; }
.nav-cta {
  background: #0d9488;
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.18s;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 16px;
}
.nav-cta:hover { background: #0f766e; }

/* ── Hamburger knop ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #1a2e2e;
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
  transform-origin: center;
}
.nav-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobiel uitklapmenu ── */
.nav-mobile-menu {
  display: none;
  background: #fff;
  border-top: 1px solid #e8d8c8;
  border-bottom: 1px solid #e8d8c8;
}
.nav-mobile-menu.is-open { display: block; }
.nav-mobile-link {
  display: block;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 1rem;
  color: #2c2020;
  text-decoration: none;
  border-bottom: 1px solid #f0e6d8;
  transition: background 0.15s, color 0.15s;
}
.nav-mobile-link:last-child { border-bottom: none; }
.nav-mobile-link:hover,
.nav-mobile-link.active { background: #fdf5ec; color: #0d9488; }

/* ── Mobiele layout (≤640px) ── */
@media (max-width: 640px) {
  .nav-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0;
  }
  .nav-hamburger { display: flex; }
  .nav-logo { justify-content: center; padding: 0 8px; }
  .nav-links-desktop { display: none; }
  .nav-cta { margin-left: 0; padding: 8px 12px; font-size: 0.8rem; }
}
