/* CSS Variabelen voor kleuren */
:root {
  --mc-green: #00c875;
  --mc-cyan: #00fff0;  /* Updated to match plan picker cyan */
  --mc-dark: #0b1b1a;
  --mc-light: #ffffff;
}

/* Fix body/html achtergrond voor header */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important; /* Prevent horizontal scroll that causes white bars */
  max-width: 100% !important; /* Additional safety to prevent width overflow */
}

/* Header container fixes */
.site-header, .full-width-nav {
  background: #000 !important;
}

/* Header with static bottom border like plan picker */
.site-header {
  position: relative;
  overflow: hidden;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent 10%, 
    rgba(0,255,240,0.3) 25%, 
    var(--mc-cyan) 50%, 
    rgba(0,255,240,0.3) 75%, 
    transparent 90%);
  border-radius: 2px;
  opacity: 0.8;
  box-shadow: 0 0 8px rgba(0,255,240,0.3);
}

/* 🍔 NIEUWE HAMBURGER MENU STYLES - Volledig van scratch */
.mobile-menu-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.hamburger-btn {
  display: none;
  background: rgba(0, 200, 117, 0.2);
  border: 2px solid var(--mc-green);
  cursor: pointer;
  padding: 10px;
  z-index: 10000 !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 200, 117, 0.3);
}

.hamburger-btn:hover {
  background: rgba(0, 200, 117, 0.2);
  border-color: var(--mc-cyan);
  transform: scale(1.05);
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background: var(--mc-light);
  margin: 2px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
  display: block;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation - FULLSCREEN OVERLAY */
.mobile-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important; /* Use 100% instead of 100vw to prevent white bars */
  height: 100vh !important;
  background: rgba(11, 27, 26, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  z-index: 999999 !important;
  transform: translateX(100%) !important;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  /* Escape all container restrictions */
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  outline: none !important;
}

.mobile-nav.active {
  transform: translateX(0) !important;
  display: block !important;
  visibility: visible !important;
}

.mobile-nav-content {
  padding: 120px 40px 60px;
  height: 100vh;
  max-width: 500px;
  margin: 0 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Close button for fullscreen menu */
.mobile-nav-close {
  position: absolute;
  top: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.1);
  border: 2px solid var(--mc-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
}

.mobile-nav-close:hover {
  background: var(--mc-green);
  transform: scale(1.1);
}

.mobile-nav-close::before,
.mobile-nav-close::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 1px;
}

.mobile-nav-close::before {
  transform: rotate(45deg);
}

.mobile-nav-close::after {
  transform: rotate(-45deg);
}

.mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mobile-menu li {
  margin: 0;
}

.mobile-menu a {
  display: flex;
  align-items: center;
  padding: 24px 32px;
  color: var(--mc-light);
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.1);
  margin-bottom: 16px;
  min-height: 72px;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.mobile-menu a:hover,
.mobile-menu a:focus {
  background: linear-gradient(135deg, var(--mc-green), var(--mc-cyan));
  color: var(--mc-dark);
  transform: translateX(8px) scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 200, 117, 0.4);
  border-color: var(--mc-green);
}

/* Overlay - Nu geïntegreerd in mobile-nav */
.mobile-nav-overlay {
  display: none !important;
  /* Overlay functionality is now built into .mobile-nav */
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Header algemeen */
.full-width-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000 !important;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.5rem 1rem; /* Was 0.5rem - nu 3x meer verticale ruimte */
  min-height: 120px; /* Minimum hoogte voor meer ruimte */
  overflow: visible !important;
  width: 100% !important; /* Use 100% instead of 100vw to prevent horizontal scroll */
  margin: 0 !important;
  box-sizing: border-box;
}

.site-header { 
  position: relative; 
  width: 100%; 
  box-sizing: border-box; 
  overflow: visible !important;
  background: #000 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Logo - Responsive proportional sizing - FORCE OVERRIDE */
.site-logo img, 
.site-logo svg,
.site-branding img,
.site-branding svg { 
  height: 15vh !important; /* Perfect size to fill nav space nicely */
  min-height: 7rem !important; /* Was 10rem - now 112px minimum (smaller) */
  max-height: 12rem !important; /* Was 20rem - now 192px maximum (much smaller) */
  width: auto !important; 
  display: block !important; 
  flex: 0 0 auto !important;
  object-fit: contain !important;
}

/* Tablet logo sizing - FORCE OVERRIDE */
@media (max-width: 1024px) and (min-width: 769px) {
  .site-logo img, 
  .site-logo svg,
  .site-branding img,
  .site-branding svg {
    height: 10vh !important; /* Was 12vh - now smaller for better balance */
    min-height: 5rem !important; /* Was 6rem - now 80px minimum (smaller) */
    max-height: 8rem !important; /* Was 10rem - now 128px maximum (smaller) */
  }
}

/* Responsive logo for mobile - Proportional sizing - FORCE OVERRIDE */
@media (max-width: 768px) {
  .site-logo img, 
  .site-logo svg,
  .site-branding img,
  .site-branding svg { 
    height: 8vh !important; /* Was 10vh - now smaller for mobile balance */
    min-height: 4rem !important; /* Was 5rem - now 64px minimum (smaller) */
    max-height: 6rem !important; /* Was 7rem - now 96px maximum (smaller) */
    width: auto !important;
    object-fit: contain !important;
  }
  
  /* Ensure logo container has proper space */
  .site-branding, .site-logo {
    flex-shrink: 0;
    min-width: 4rem; /* Proportional minimum width */
    max-width: 6rem; /* Prevent oversized container */
    display: flex;
    align-items: center;
  }
}

/* DESKTOP DROPDOWN NAVIGATION - VEEL DUIDELIJKER */
.desktop-nav {
  display: flex;
}

.desktop-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 24px;
  align-items: center;
}

.desktop-menu > li {
  position: relative;
}

.desktop-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-menu a:hover {
  background: rgba(0, 200, 117, 0.1);
  color: var(--mc-green);
}

/* Dropdown styling - VEEL DUIDELIJKER */
.desktop-menu .dropdown {
  position: relative;
}

.desktop-menu .dropdown-toggle {
  cursor: pointer;
}

.desktop-menu .dropdown-arrow {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.desktop-menu .dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.desktop-menu .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #0b1b1a;
  border: 2px solid rgba(0, 200, 117, 0.4);
  border-radius: 8px;
  padding: 8px 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  z-index: 1001;
}

.desktop-menu .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.desktop-menu .dropdown-menu li {
  margin: 0;
}

.desktop-menu .dropdown-menu a {
  padding: 12px 16px;
  border-radius: 0;
  display: block;
  color: white;
}

.desktop-menu .dropdown-menu a:hover {
  background: rgba(0, 200, 117, 0.1);
  color: var(--mc-green);
}

/* MOBILE DROPDOWN NAVIGATION */
.mobile-menu .dropdown-item {
  position: relative;
  margin-bottom: 5px;
}

.mobile-menu .dropdown-toggle {
  justify-content: space-between;
  width: 100%;
  cursor: pointer;
}

.mobile-menu .dropdown-arrow {
  font-size: 14px;
  transition: transform 0.3s ease;
  color: var(--mc-green);
  font-weight: bold;
}

.mobile-menu .dropdown-item.active .dropdown-arrow {
  transform: rotate(180deg);
}

.mobile-menu .dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: rgba(0,0,0,0.4);
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  list-style: none;
  padding: 0;
}

.mobile-menu .dropdown-item.active .dropdown-menu {
  max-height: 300px;
  padding: 10px 0;
}

.mobile-menu .dropdown-menu li {
  margin: 6px 0;
}

.mobile-menu .dropdown-menu a {
  padding: 16px 24px;
  margin: 0 8px;
  font-size: 16px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  min-height: 52px;
}

@media (max-width: 768px) {
  .hamburger-btn {
    display: flex !important;
    position: relative;
    margin-left: auto;
    margin-right: 15px;
    z-index: 999998 !important;
    order: 2;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .desktop-nav {
    display: none !important;
  }
  
  .mobile-menu-wrapper {
    display: flex !important;
    align-items: center;
    order: 2;
    z-index: 999998 !important;
    overflow: visible !important;
  }
  
  .site-branding, .site-logo {
    order: 1;
    flex-shrink: 0;
  }
  
  .site-header {
    padding: 10px 0;
    max-width: 100%;
    overflow: visible !important;
    margin: 0;
    position: relative;
    z-index: 100;
    background: #000 !important;
    width: 100%;
  }
  
  .full-width-nav {
    max-width: 100% !important;
    width: 100% !important; /* Use 100% instead of 100vw to prevent white bars */
    min-height: 100px; /* Minimum hoogte ook op mobile */
    overflow: visible !important;
    margin: 0 !important;
    padding: 1rem 25px !important; /* Meer verticale padding ook op mobile */
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: relative;
    z-index: 100;
    background: #000 !important;
    box-sizing: border-box;
  }
  
  /* Ensure body and html don't restrict the mobile nav */
  body, html {
    overflow-x: hidden;
  }
  
  /* Mobile nav fullscreen override */
  .mobile-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important; /* Use 100% instead of 100vw to prevent white bars */
    height: 100vh !important;
    z-index: 999999 !important;
    transform: translateX(100%) !important;
  }
  
  .mobile-nav.active {
    transform: translateX(0) !important;
  }
  
  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
  }
}

/* Extra mobile navigation fixes */
.mobile-nav.active {
  right: 0 !important;
  display: block !important;
  visibility: visible !important;
  transform: translateZ(0) !important;
}

.mobile-nav-content {
  position: relative;
  z-index: 1;
}

/* Critical mobile nav escape - FULLSCREEN */
@media (max-width: 768px) {
  .mobile-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important; /* Use 100% instead of 100vw to prevent white bars */
    height: 100vh !important;
    z-index: 999999 !important;
    transform: translateX(100%) translateZ(0) !important;
    will-change: transform !important;
    /* Force escape from all containers */
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    max-width: none !important;
    max-height: none !important;
  }
  
  .mobile-nav.active {
    transform: translateX(0) translateZ(0) !important;
  }
  
  /* Completely prevent body scroll and fix positioning */
  body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
  }
  
  /* Ensure no parent container can clip the menu */
  .site-header, .full-width-nav, .mobile-menu-wrapper {
    position: relative !important;
    overflow: visible !important;
    z-index: auto !important;
  }
}

/* Mobile navigation positioning - CLEAN OVERRIDE */
@media (max-width: 768px) {
  .mobile-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    z-index: 9999 !important;
    transform: translateX(100%) !important; /* Hidden by default */
  }
  
  .mobile-nav.active {
    transform: translateX(0) !important; /* Visible when active */
  }
}

/* Hamburger button visibility fix */
@media screen and (max-width: 768px) {
  .hamburger-btn {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10001 !important;
    background: rgba(0, 200, 117, 0.3) !important;
    border: 2px solid #00c875 !important;
  }
  
  .mobile-menu-wrapper {
    display: block !important;
    visibility: visible !important;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .hamburger-btn {
    width: 44px !important;
    height: 44px !important;
    margin-right: 10px !important;
    display: flex !important;
  }
  
  .full-width-nav {
    padding: 0.75rem 10px !important; /* Meer verticale padding ook voor kleine schermen */
    min-height: 80px; /* Minimum hoogte voor kleine schermen */
  }
  
  .mobile-nav {
    width: 95% !important;
  }
  
  /* Extra small logo sizing - FORCE OVERRIDE */
  .site-logo img, 
  .site-logo svg,
  .site-branding img,
  .site-branding svg {
    height: 6vh !important; /* Was 8vh - now smaller for very small screens */
    min-height: 3rem !important; /* Was 4rem - now 48px minimum (smaller) */
    max-height: 4.5rem !important; /* Was 6rem - now 72px maximum (smaller) */
  }
  
  .site-branding, .site-logo {
    min-width: 4rem; /* Was 3rem - more width space */
    max-width: 8rem; /* Was 5rem - more width space */
  }
}

@media (min-width: 769px) {
  .mobile-menu-wrapper {
    display: none;
  }
}

/* =================================================
   FINAL LOGO SIZE OVERRIDE - FORCE ALL CONFLICTS
   ================================================= */

/* Desktop - Force smaller logo */
.site-logo img, 
.site-logo svg,
.site-branding img,
.site-branding svg,
header .site-logo img,
header .site-branding img,
.full-width-nav .site-logo img,
.full-width-nav .site-branding img {
  height: 6vh !important;
  min-height: 3rem !important;
  max-height: 4.5rem !important;
  width: auto !important;
  object-fit: contain !important;
}

/* Tablet - Force smaller logo */
@media (max-width: 1024px) and (min-width: 769px) {
  .site-logo img, 
  .site-logo svg,
  .site-branding img,
  .site-branding svg,
  header .site-logo img,
  header .site-branding img {
    height: 4vh !important;
    min-height: 2.5rem !important;
    max-height: 3.5rem !important;
  }
}

/* Mobile - Compact logo to prevent overlap */
@media (max-width: 768px) {
  .site-logo img, 
  .site-logo svg,
  .site-branding img,
  .site-branding svg,
  header .site-logo img,
  header .site-branding img {
    height: 3vh !important;
    min-height: 2rem !important;
    max-height: 2.5rem !important;
  }
}

/* Extra small - Minimal logo */
@media (max-width: 480px) {
  .site-logo img, 
  .site-logo svg,
  .site-branding img,
  .site-branding svg,
  header .site-logo img,
  header .site-branding img {
    height: 2.5vh !important;
    min-height: 1.8rem !important;
    max-height: 2rem !important;
  }
}

/* =================================================
   HEADER BACKGROUND IMAGE - DESKTOP ONLY
   ================================================= */

/* Hide header background image and placeholder on mobile and tablet */
@media (max-width: 1024px) {
  .site-header,
  header,
  .full-width-nav {
    background-image: none !important;
  }
  
  .header-image {
    display: none !important;
  }
}

/* =================================================
   NAVIGATION TEXT SIZE AND SPACING IMPROVEMENTS
   ================================================= */

/* Desktop - Larger navigation text */
@media (min-width: 1025px) {
  .main-navigation a,
  .desktop-menu a,
  .menu-toggle {
    font-size: 1.2rem !important;
    font-weight: 500 !important;
    padding: 0.8rem 1.2rem !important;
  }
  
  header nav.full-width-nav {
    padding: 1.5rem 0 !important;
    min-height: 120px !important;
  }
}

/* Tablet - Medium navigation text */
@media (max-width: 1024px) and (min-width: 769px) {
  .main-navigation a,
  .desktop-menu a,
  .menu-toggle {
    font-size: 1.1rem !important;
    font-weight: 500 !important;
  }
  
  header nav.full-width-nav {
    padding: 1.2rem 0 !important;
    min-height: 90px !important;
  }
}

/* Mobile - Compact header to prevent overlap */
@media (max-width: 768px) {
  header nav.full-width-nav {
    padding: 0.8rem 1rem !important;
    min-height: 70px !important;
    position: relative !important;
  }
  
  .hamburger-btn {
    font-size: 1rem !important;
    padding: 0.6rem !important;
    min-width: 44px !important;
    min-height: 44px !important;
    position: absolute !important;
    right: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  /* Ensure logo doesn't overlap with hamburger button */
  .site-logo,
  .site-branding {
    margin-right: 0 !important;
    max-width: calc(100% - 70px) !important;
  }
}

/* Extra small - Compact spacing */
@media (max-width: 480px) {
  header nav.full-width-nav {
    padding: 0.6rem 1rem !important;
    min-height: 60px !important;
    position: relative !important;
  }
  
  .site-logo,
  .site-branding {
    margin-right: 0 !important;
    max-width: calc(100% - 60px) !important;
  }
}

/* === MCP: Mobile header sizing & alignment === */
@media (max-width: 768px) {
  .site-header .container,
  .full-width-nav .container {
    display:flex; align-items:center; justify-content:space-between; gap:.75rem;
    padding-top:.25rem; padding-bottom:.25rem;
  }
  .site-logo img, .site-logo svg,
  .site-branding img, .site-branding svg {
    height:44px !important; max-height:44px !important; width:auto !important; object-fit:contain !important;
  }
  .mobile-menu-wrapper { margin-left:auto; display:flex; align-items:center; }
  .hamburger-btn, .hamburger { position:relative; margin:0; padding:10px; height:44px; width:44px; }
}


/* === MCP Update: Thin gradient header to match Plan Picker === */
.site-header{
  background: linear-gradient(90deg, #00fff0, #00c875);
  padding: 8px 12px !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.site-header .full-width-nav{
  min-height: 56px;
}
/* Reduce logo max-height to thin the bar */
.site-header .site-logo img, .site-header .site-logo svg{
  max-height: 48px !important;
}
@media (max-width: 768px){
  .site-header .full-width-nav{ min-height: 48px; }
  .site-header .site-logo img, .site-header .site-logo svg{ max-height: 40px !important; }
}

/* FINAL MOBILE NAV POSITION FIX - MUST BE LAST */
@media (max-width: 768px) {
  .mobile-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    transform: translateX(100%) !important;
    /* Ensure no negative positioning */
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .mobile-nav.active {
    transform: translateX(0) !important;
    right: 0 !important;
    left: 0 !important;
  }
}

/* Accessibility: Static version already respects reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .site-header::after {
    /* Already static - no changes needed */
    opacity: 0.7;
  }
}
