/* ===== Mobile nav ===== */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--dark, #0f172a);
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Wint van body > *:not(...) in styles.css */
body > .mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  background: rgba(15, 23, 42, 0.4);
  overflow: hidden;
}

body > .mobile-menu.is-open {
  display: block;
}

body > .mobile-menu .mobile-menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--border, #e2e8f0);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  padding: 1rem 1.25rem 1.25rem;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu-panel a {
  display: block;
  text-decoration: none;
  color: var(--text, #1e293b);
  font-weight: 600;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.mobile-menu-panel a:hover,
.mobile-menu-panel a.active {
  color: var(--blue-600, #2563eb);
}

.mobile-menu-label {
  margin: 1rem 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
}

.mobile-menu-label:first-child {
  margin-top: 0.25rem;
}

.mobile-menu-cta {
  display: block;
  margin-top: 1rem;
  text-align: center;
  background: var(--blue-600, #2563eb);
  color: #fff !important;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  border-bottom: none !important;
}

.mobile-menu-cta:hover {
  background: var(--blue-700, #1d4ed8);
  color: #fff !important;
}

.mobile-lang {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.25rem;
  justify-content: flex-start;
}

.mobile-lang a {
  flex: 0 0 auto;
  min-width: 44px;
  text-align: center;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  border-bottom: 1px solid var(--border, #e2e8f0) !important;
  font-size: 0.85rem;
}

.mobile-lang a.active {
  background: var(--blue-50, #eff6ff);
  border-color: var(--blue-100, #dbeafe);
  color: var(--blue-700, #1d4ed8);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links,
  .cta-nav,
  .lang-switch {
    display: none !important;
  }
}