.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 50px 109px;
  transition: background-color 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(16, 16, 16, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  padding: 30px 109px;
}

/* --- LOGO & NAV LAYOUT (Flexbox 3-Section) --- */
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Spread sections left/center/right */
  width: 100%;
  position: relative;
  height: 100%;
}

/* 1. Left Section (Logo) */
.nav-section-left {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

/* 2. Center Section (Navigation Links) */
.nav-section-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  width: auto;
  white-space: nowrap;
  margin-top: 7px;
  /* Visual alignment with logo bottom */
}

/* 3. Right Section (Actions) */
.nav-section-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 7px;
}

/* -- Components -- */

.logo-left {
  display: flex;
  align-items: center;
  z-index: 20;
  position: relative;
}

.logo-left img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.nav-desktop-center {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link.secondary {
  color: var(--color-text-dark);
}

.nav-link.secondary:hover {
  color: var(--color-text-light);
}

/* Global box-sizing for navbar context if missing */
* {
  box-sizing: border-box;
}

/* --- HEADER ACTIONS (Right) --- */
.header-actions {
  display: flex;
  align-items: center;
  /* Icons/Buttons center align */
  gap: 0;
  position: relative;
  /* In Flow */
  margin-left: 20px;
  /* Gap from Right Nav */
  white-space: nowrap;
}

/* Login link styling moved to specific section below */



/* --- Globale Stijlen --- */
/* Anti-FOC (Flash Of Old Content) Fix */
[data-cms] {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.cms-loaded {
  opacity: 1 !important;
}

/* Remove blue tap highlight and focus outline */
* {
  -webkit-tap-highlight-color: transparent;
}

*:focus {
  outline: none;
}

/* --- Taal Dropdown Stijlen --- */
.lang-dropdown-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  padding-right: 30px;
  /* Increased symmetric spacing */
  border-right: 1px solid #555;
  /* Visible separator */
  height: 24px;
  /* Fixed height for separator line */
}

.lang-flag {
  width: 24px;
  height: 18px;
  /* Fixed height */
  border-radius: 2px;
  object-fit: cover;
  display: block;
}


.lang-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-dark);
  /* Gray */
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  /* RESET DEFAULT MARGINS */
  transition: color 0.3s ease;
}

.lang-selector:hover {
  color: var(--color-text-light);
}

.lang-chevron {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.lang-dropdown-wrapper.active .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  background: #1c1c1c;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px;
  min-width: auto;
  /* Removed fixed 140px width */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 101;
  flex-direction: column;
  gap: 4px;
}

.lang-dropdown-wrapper.active .lang-menu {
  display: flex;
}

.lang-option {
  padding: 8px 16px;
  color: var(--color-text-medium);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s;
  text-align: left;
}

.lang-option:hover {
  background: #282828;
  color: white;
}

.lang-option.active {
  color: var(--color-primary);
}

/* --- Mobiele Navigatie Stijlen --- */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 1001;
}

.mobile-nav-toggle .icon-hamburger,
.mobile-nav-toggle .icon-close {
  width: 24px;
  height: 24px;
  color: var(--color-text-light);
}

.mobile-nav-toggle .icon-close {
  display: none;
}

.mobile-nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background: var(--color-background);
  border-right: 1px solid var(--color-border);
  padding: 80px 30px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
}

.mobile-nav-menu.is-open {
  transform: translateX(0);
}

.mobile-nav-menu .nav-link {
  font-size: 18px;
  font-weight: 500;
}

.mobile-nav-menu .nav-link.secondary {
  color: var(--color-text-dark);
  margin-top: 20px;
  margin-left: 0;
  /* Reset global margin for mobile alignment */
}

/* Mobiel taal menu */
.mobile-lang-group {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  display: flex !important;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}

.mobile-lang-link {
  font-size: 16px;
  color: var(--color-text-dark);
  cursor: pointer;
}

.mobile-lang-link.active {
  color: var(--color-primary);
  font-weight: 700;
}

.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

.mobile-nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* --- Responsive Media Queries (Navigatie Specifiek) --- */
@media (max-width: 1050px) {
  .site-header {
    padding: 50px 40px;
  }

  .site-header.scrolled {
    padding: 35px 40px;
  }

  /* VERBERG TAAL SELECTIE OP MOBIEL/TABLET ZOALS GEVRAAGD */
  .lang-dropdown-wrapper {
    display: none !important;
  }

  /* RESET: On mobile, everything changes */
  .header-container {
    justify-content: center;
    position: relative;
    /* Essential for absolute positioning of children */
    height: 100%;
    /* Ensure container has height */
  }

  /* Align to right edge of container */
  .mobile-nav-toggle {
    display: block !important;
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    /* Vertically center the toggle */
  }

  /* VERBERG DESKTOP NAV & RIGHT ACTIONS */
  .nav-section-center,
  .nav-section-right {
    display: none !important;
    /* Ensure right section is GONE so it doesn't take space */
  }

  /* Force Logo Visibility and TRUE Centering */
  .nav-section-left {
    display: flex !important;
    opacity: 1 !important;
    width: auto;
    /* Let width be determined by content */
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    /* True center relative to container */
    top: 50%;
    pointer-events: none;
    /* Let clicks pass through container if needed */
    z-index: 10;
    margin: 0;
    /* remove any potential margins */
  }

  /* Make logo clickable */
  .logo-left {
    pointer-events: auto;
  }
}

/* Ensure Login Link is Gray (overrides white default) */
/* Ensure Login Link is Gray (overrides white default) */
.header-actions .login-link {
  margin-left: 30px;
  margin-right: 0;
  color: #909090 !important;
  font-weight: 400;
  text-decoration: none;
}

.header-actions .login-link:hover {
  color: #ffffff !important;
}

@media (max-width: 768px) {
  .site-header {
    padding: 50px 20px;
  }

  .site-header.scrolled {
    padding: 35px 20px;
  }

  .mobile-nav-toggle {
    right: 0px;
    /* Aligned with new padding */
  }
}

/* --- SCROLL DOWN INDICATOR --- */