/* ================================================
   1. Mobiele elementen op desktop verbergen
   ================================================ */
@media (min-width: 1190px) {
  #custom-mobile-toggle,
  #custom-mobile-overlay {
    display: none !important;
  }
}

/* ================================================
   2. Mobiele menu styling (actief op mobiel)
   ================================================ */
@media (max-width: 1190px) {
    .desktop-nav {
        display: none !important;
    }
    .et_pb_section.mobile-nav {
        display: block !important;
    }
  /* Verberg Divi's standaard hamburger */
  .et_mobile_nav_menu,
  .mobile_menu_bar,
  .mobile_nav {
    display: none !important;
  }
    
  .et_pb_menu_0_tb_header.et_pb_menu,
  .et_pb_menu_0_tb_header .et_pb_menu_inner_container {
      height: 100% !important; 
  }

  .et_pb_menu_0_tb_header .et_pb_menu_inner_container {
      display: flex !important;
      align-items: center !important;
  }

  .et_pb_menu_0_tb_header .et_pb_menu__logo-wrap {
      margin-top: 0 !important;
      margin-bottom: 0 !important;
  }


  /* Toggle button */
  .custom-mobile-toggle {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10002;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  /* --- SVG STYLING --- */
  .hamburger-svg {
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    transition: stroke 0.3s ease;
  }

  .hamburger-line {
    transform-origin: center;
    transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out;
  }
  
  /* Open-state: animatie naar 'X' */
  .custom-mobile-toggle.open .hamburger-svg {
    stroke: #FCD431; 
  }

  .custom-mobile-toggle.open .hamburger-line.top {
    transform: translateY(4px) rotate(45deg);
  }
  
  .custom-mobile-toggle.open .hamburger-line.middle {
    opacity: 0;
  }
  
  .custom-mobile-toggle.open .hamburger-line.bottom {
    transform: translateY(-8px) rotate(-45deg);
  }
  /* --- EINDE SVG STYLING --- */

  /* Overlay */
#custom-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #031724;
    background: linear-gradient(135deg, #031724 0%, #0a2a40 100%);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease-in-out, visibility 0s linear .35s;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px 34px;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}
  #custom-mobile-overlay.open {
      opacity: 1;
      visibility: visible;
      transition-delay: 0s;
  }

  /* Menu styling */
  .custom-mobile-nav { 
    width: 100%; 
    max-width: 900px; 
    padding: 0;
  }
  .custom-mobile-menu { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
  }
  
  /* Verberg de items initieel */
  .custom-mobile-menu li {
    margin: 0;
    opacity: 0;
  }
  
  /* Staggered animatie - "spice" */
  #custom-mobile-overlay.open .custom-mobile-menu li {
      opacity: 0;
      transform: translateY(20px);
      animation: slideUpFadeIn 0.4s ease-out forwards;
  }
  
  #custom-mobile-overlay.open .custom-mobile-menu li:nth-child(1) { animation-delay: 0.2s; }
  #custom-mobile-overlay.open .custom-mobile-menu li:nth-child(2) { animation-delay: 0.25s; }
  #custom-mobile-overlay.open .custom-mobile-menu li:nth-child(3) { animation-delay: 0.3s; }
  #custom-mobile-overlay.open .custom-mobile-menu li:nth-child(4) { animation-delay: 0.35s; }
  #custom-mobile-overlay.open .custom-mobile-menu li:nth-child(5) { animation-delay: 0.4s; }
  #custom-mobile-overlay.open .custom-mobile-menu li:nth-child(6) { animation-delay: 0.45s; }
  /* Voeg meer nth-child regels toe als het menu meer items heeft */
  
  .custom-mobile-menu li a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    display: block;
    text-decoration: none;
    color: #ffffff;
    font-size: 21px;
    line-height: 1.3;
    text-align: center;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease, background-color 0.3s ease;
  }
  
  .custom-mobile-menu li:first-child a {
      border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .custom-mobile-menu li a:hover,
  .custom-mobile-menu li a:focus {
    color: #FCD431;
    background-color: rgba(255, 255, 255, 0.05);
  }

  /* Voorkom body scroll als menu open is */
  body.custom-mobile-open { overflow: hidden; height: 100%; }
}

/* --- Styling voor de nieuwe menu-elementen --- */
  
  .custom-mobile-extras {
    margin-top: 25px;
    padding-top: 25px;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  
  /* 1. De CTA Knop */
  .button-mobile-cta {
    display: block;
    background: #FCD431;
    color: #031724;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin-bottom: 30px;
  }
  
  .button-mobile-cta:hover {
    background: #ffffff;
    color: #031724;
  }
  
  /* 2. De Contact Info */
  .mobile-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 35px;
  }
  
  .mobile-contact-link {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .mobile-contact-link:hover {
    color: #FCD431;
  }
  
  /* Voeg iconen toe met CSS ::before */
  .mobile-contact-link.phone::before,
  .mobile-contact-link.email::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #FCD431;
    margin-right: 12px;
    font-size: 16px;
  }
  
  .mobile-contact-link.phone::before {
    content: "\f095"; /* Font Awesome telefoon-icoon */
  }
  
  .mobile-contact-link.email::before {
    content: "\f0e0"; /* Font Awesome envelop-icoon */
  }
  
  /* 3. De Social Icons */
  .mobile-social-icons {
    display: flex;
    justify-content: center;
    gap: 28px;
  }
  
  .mobile-social-icons a {
    color: #ffffff;
    font-size: 26px;
    text-decoration: none;
    transition: all 0.3s ease;
  }
  
  .mobile-social-icons a:hover {
    color: #FCD431;
    transform: scale(1.1);
  }
  
  /* --- Animaties voor de nieuwe elementen --- */
  
  /* Zorg dat de nieuwe elementen ook 'in-faden' */
  .custom-mobile-extras > * {
    opacity: 0;
  }
  
  #custom-mobile-overlay.open .custom-mobile-extras > * {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUpFadeIn 0.4s ease-out forwards;
  }
  
  /* Stagger de animatie na de menu-items */
  /* Pas '0.45s' aan o.b.v. je laatste menu-item */
  #custom-mobile-overlay.open .button-mobile-cta { animation-delay: 0.45s; }
  #custom-mobile-overlay.open .mobile-contact-info { animation-delay: 0.5s; }
  #custom-mobile-overlay.open .mobile-social-icons { animation-delay: 0.55s; }

/* Keyframes voor de animaties */
@keyframes slideUpFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================
   Tablet-specifieke centrering
   ================================================ */
/* Deze regel geldt enkel tussen 981px en 1024px */
@media (min-width: 768px) and (max-width: 1190px) {
  .custom-mobile-toggle {
    top: 28px !important; 
    right: 10%;
  }

}