/* ===== Z-INDEX LADDER ===== */
:root {
  --z-header: 12000;     /* vaste header */
  --z-overlay: 13000;    /* donkere laag achter menu */
  --z-nav: 13001;        /* uitschuifmenu zelf */
  --z-toggle: 13002;     /* hamburger/cross icoon */
}

/* ===== HEADER BASIS ===== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  padding: 1rem 0;
  background: #ffffff;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
  transition: 0.3s;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===== LOGO ===== */
.logo {
  text-decoration: none;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0A284B;
}

/* ===== DESKTOP NAV ===== */
.desktop-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 12px;
  font-weight: 500;
  color: #0A284B;
  transition: 0.2s;
}

.nav-link:hover {
  background: rgba(10,40,75,0.06);
  color: #00B386 !important;
}

/* ===== CTA BUTTON ===== */
.cta-button {
  background: linear-gradient(135deg, #00D9A3 0%, #00B386 100%);
  color: #fff !important;
  text-decoration: none;
  padding: 0.6rem 1.3rem;
  border-radius: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.2s;
}

.cta-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 179, 134, 0.3);
}

/* ===== SCROLLED STATE ===== */
.main-header.scrolled {
  background: rgba(10, 40, 75, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}

.main-header.scrolled .logo-text,
.main-header.scrolled .nav-link {
  color: #ffffff !important;
}

.main-header.scrolled .mobile-menu-toggle span {
  background: #ffffff;
}

/* ===== MOBILE TOGGLE (hamburger) ===== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  z-index: var(--z-toggle);
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: #0A284B;
  border-radius: 2px;
  transition: 0.3s;
  display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
  width: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-8px);
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0,0,0,.55);
  z-index: 9999;
}

.mobile-menu-overlay.active {
  display: block;
}

/* ===== MOBIEL MENU ===== */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 340px;
  background: rgba(10, 40, 75, 0.98);
  backdrop-filter: blur(10px);
  padding: 5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  pointer-events: auto;
}

.mobile-menu-overlay.active .mobile-nav {
  transform: translateX(0);
}

.mobile-nav-link {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.2s;
  display: block;
}

.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #00D9A3;
}

.mobile-cta-button {
  background: linear-gradient(135deg, #00D9A3 0%, #00B386 100%);
  color: #fff;
  text-decoration: none;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  text-align: center;
  font-weight: 600;
  margin-top: 0.5rem;
  transition: 0.2s;
  display: block;
}

.mobile-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 179, 134, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .main-header {
    background: #ffffff;
  }

  .main-header .logo-text {
    color: #0A284B;
  }

  .mobile-menu-toggle span {
    background: #0A284B;
  }

  .main-header.scrolled {
    background: rgba(10, 40, 75, 0.92);
    backdrop-filter: blur(10px);
  }

  .main-header.scrolled .logo-text {
    color: #ffffff;
  }

  .main-header.scrolled .mobile-menu-toggle span {
    background: #ffffff;
  }
}

/* ===== BODY PADDING FOR FIXED HEADER ===== */
body {
  padding-top: 80px;
}

/* === Mobile hamburger visibility === */
@media (max-width: 768px){
  .desktop-nav{ display: none; }         /* verberg desktop menu op mobiel */
  .mobile-menu-toggle{ display: inline-flex; cursor: pointer; }
}

/* === Desktop: geen hamburger nodig === */
@media (min-width: 769px){
  .mobile-menu-toggle{ display: none; }
}

/* === Overlay basis & zichtbaar als active === */
.mobile-menu-overlay{
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0,0,0,.55);
  z-index: 9999;               /* boven de content */
}
.mobile-menu-overlay.active{
  display: block;
}

