/* CSS Document - Enhanced with Smooth Animations */

/* =============================================
   DESKTOP NAV
   ============================================= */

#nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

#nav > ul {
  display: inline-block;
  margin-bottom: -6px;
  float: left;
}

#nav > ul > li {
  display: inline-block;
  z-index: 99;
  position: relative;
}

#nav ul li a {
  display: block;
  color: #fff;
  text-decoration: none;
  position: relative;
  z-index: 100;
  font-size: 18px;
  width: auto;
  font-weight: 400;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#nav ul li:hover a {
  text-decoration: none;
}

#nav > ul > li > a {
  padding-left: 20px;
  padding-right: 20px;
  line-height: 95px;
  transition: line-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.3s ease;
}

/* Sticky state */
#headerwrapper.stick #nav > ul > li > a {
  line-height: 75px;
}

#nav ul li a:hover {
  color: #e7610d;
  transform: translateY(-1px);
}

/* Current page indicator */
#nav ul > li.mx_current > a:after {
  content: "";
  width: 100%;
  height: 2px;
  background-color: #212529;
  display: block;
  position: relative;
  bottom: 30px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: slideIn 0.5s ease-out;
}

#nav ul > li > ul >li.mx_current > a:after {background-color: transparent;}

@keyframes slideIn {
  from { width: 0; opacity: 0; }
  to   { width: 100%; opacity: 1; }
}

/* Laatste menu item = knop */
#nav > ul > li:last-child > a {
  background: #e7610d;
  color: #FFFFFF !important;
  padding: 12px 30px;
  border-radius: 25px;
  line-height: normal;
  margin-top: 30px;
  font-weight: 500;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(255, 119, 70, 0.3);
  animation: pulse 2s infinite;
}

#nav > ul > li:last-child > a:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px rgba(255, 119, 70, 0.5);
  background: #000;
  color: #FFFFFF !important;
}

#nav > ul > li:last-child.mx_current > a:after {
  display: none;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(255, 119, 70, 0.3); }
  50%       { box-shadow: 0 4px 25px rgba(255, 119, 70, 0.6); }
}

/* =============================================
   DESKTOP DROPDOWN - 2e niveau
   Gebruik visibility ipv display:none zodat
   CSS transitions werken
   ============================================= */

#nav ul ul {
  position: absolute;
  top: 95px;
  left: 0;
  margin: 0;
  width: auto;
  min-width: 190px;
  white-space: nowrap;
  padding-top: 6px;
  padding-bottom: 6px;
  z-index: 99;
  background-color: #FFFFFF;
  border-radius: 20px;
  box-shadow: 0px 0px 6px 0px rgba(153, 153, 153, 0.4);

  /* Verborgen via visibility zodat animatie werkt */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0.3s,
              top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#headerwrapper.stick #nav ul ul {
  top: 75px;
}

#nav ul li:hover > ul {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0s,
              top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#nav ul ul > li.mx_current > a {
  color: #e7610d;
	    background-color: rgba(231, 97, 13, 0.05);
}

#nav ul ul a {
  padding-top: 9px;
  padding-bottom: 7px;
  padding-left: 20px;
  padding-right: 25px;
  margin-left: 0;
  border-top: 0;
  font-size: 15px;
  line-height: 17px;
  text-align: left;
  color: #575756;
  text-transform: none;
  transition: all 0.25s ease;
}

#nav ul ul > li.mx_last a {
  padding-bottom: 10px;
}

#nav ul ul a:hover {
  color: #e7610d;
  padding-left: 25px;
  background-color: rgba(231, 97, 13, 0.05);
}

/* =============================================
   DESKTOP DROPDOWN - 3e niveau
   ============================================= */

#nav ul ul ul {
  left: 100%;
  top: auto;
  margin-top: -35px;
  margin-left: 0;
  background-clip: padding-box;
  min-width: 260px;
  width: auto;
  border-left: 10px solid rgba(0, 0, 0, 0);
  border-top: 0;
  white-space: normal;
  transform: translateX(-10px);
}

#nav ul ul li:hover > ul {
  left: 100%;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

#nav ul ul ul a {
  padding-right: 20px;
}

#nav li:hover {
  z-index: 100;
}

/* =============================================
   MOBIEL MENU
   ============================================= */

#menu .container-bar,
.icon-menu {
  display: none;
  cursor: pointer;
  transition: transform 0.3s ease;
}

#menu {
  position: fixed;
  background: linear-gradient(to bottom, #e96613 0%, #f08a33 60%, #f9b558 100%);
  top: 0;
  right: -640px;
  height: 100%;
  z-index: 99;
  padding: 20px 50px;
  width: 640px;
  max-width: 100%;
  color: #ffffff;
  overflow-y: auto;
  transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.5s ease;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0);
	        padding-top: 75px;
}

#menu::after {
  content: "";
  position: absolute;
 left: 50%;
    top: -10px;
  transform: translateX(-50%);
  background-image: url("../images/logo-meekes-de-vries-2-zwart.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  width: 200px;
  height: 150px;
  pointer-events: none;
  z-index: 100;
}

#menu.show {
  right: 0;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.3);
}

#menu ul {
  list-style: none;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
}

#menu > ul:last-of-type {
  margin-bottom: 180px; /* ruimte voor logo onderaan */
}

#menu ul li {
  position: relative;
}

#menu ul li a {
  color: #FFFFFF;
  font-size: 20px;
  line-height: 42px;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease, padding-left 0.3s ease;
  display: block;
  position: relative;
  padding-left: 0;
  padding-right: 30px; /* ruimte voor het pijltje */
}

#menu ul li a:hover {
  color: #000;
  padding-left: 10px;
}

#menu ul li.mx_current > a {
  text-decoration: underline;
}

/* Pijltje bij parent items */
#menu ul li.mx_parent > a:after {
  content: "\f067";
  font-family: 'Line Awesome Free';
  font-weight: 900;
  display: block;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  transition: transform 0.3s ease;
}

#menu ul li.mx_parent.open > a:after {
  transform: translateY(-50%) rotate(45deg);
}

#menu ul li.mx_parent li.mx_current > a {
      color: #000;
    text-decoration: none;
}

/* =============================================
   MOBIEL SUBMENU
   jQuery slideToggle beheert display
   ============================================= */

#menu ul li ul {
  display: none;
  padding: 0;
  margin: 0;
}

#menu ul li ul li a {
  padding-left: 30px;
  font-size: 17px;
  line-height: 38px;
}

#menu ul li ul li ul li a {
  padding-left: 60px;
  font-size: 15px;
  line-height: 34px;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media screen and (max-width: 1200px) {
	#menu > ul > li.mx_last > a {
    background: #000;
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-block;
}

	
  #menu .container-bar,
  .icon-menu {
    display: block;
  }

  #nav {
    display: none;
  }
}

@media screen and (max-width: 640px) {
  #menu .container-bar {
    right: 12px;
  }

  #menu.stick .container-bar {
    position: absolute;
  }

  #menu {
    padding-left: 25px;
    padding-right: 25px;
	  padding-top: 75px;
    width: 100%;
    right: -100%;
  }
}

/* =============================================
   OVERIGE
   ============================================= */

html {
  scroll-behavior: smooth;
}

#headerwrapper {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#headerwrapper.stick {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}