html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 40px;
}

.slider-anchor {
  display: block;
  position: relative;
  top: -150px;     /* hoogte van je fixed menu */
  height: 0;
  visibility: hidden;
}

/* EXTRA offset alleen voor Eindhoven */
#eindhoven.slider-anchor {
  top: -110px; /* iets verder scrollen */
}

#best.slider-anchor {
  top: -110px; /* iets verder scrollen */
}

/* section {
  scroll-margin-top: 120px; hoogte header 
} */

/* ===== MENU ===== */
.header {
    padding: 0;
    margin: 0;
}

/* Verberg het nieuwe centrale logo op desktop, omdat de Walker het logo al regelt */
.nav-logo-centered {
    display: none;
}

.nav-menu {
    position: fixed;
    margin-top: 50px;
    top: 0;
    z-index: 1000; /* Zorg dat het bovenop andere elementen staat */
    left: 50%;
    transform: translateX(-50%);
    width: 80%; 
    z-index: 1000;

    transition: margin-top 0.3s ease; /* smooth animatie */
}

.nav-menu.is-scrolled {
  margin-top: 26px;          /* SCROLL state */
}

.nav-menu.is-scrolled .nav-list {
  padding: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.nav-list {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    background-color: #FF752B;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.menu-item, .menu-logo {
    list-style: none;
}

.menu-item {
  display: flex;
  align-items: center;
}

.menu-logo {
  display: flex;
  align-items: center;
}

.menu-item a {
    text-decoration: none;
  text-transform: uppercase;
  position: relative;
  color: #ffffff;
  position: relative;
  display: inline-block;
  padding: 8px 14px;   /* ruimte rond tekst */
  text-decoration: none;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease;
}

.menu-item a::before {
  content: '';
  position: absolute;
  inset: 3px;          /* marge binnen de link */
  background-color: #000;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s ease;
  z-index: -1;
  border-radius: 6px;
}

.menu-item a:hover::before {
  transform: scaleY(1);
}

.menu-item a:hover {
  color: #ffffff;
}

.menu-item a::after {
  display: none;
}

  /* ===== FOOTER ===== */
.footer {
  background-color: #FF752B;
  padding: 5px 270px;
  display: flex;
  gap: 500px;
}

.footer a {
  text-transform: none;
}

#menu-nav-footer {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 5px;
}

.footer-img {
  height: 150px;
  margin-top: 85px;
}

/* Zorg dat nav-list position relative is */
.nav-list {
  position: relative;
}

/* Logo container */
.menu-logo {
  position: relative;
  flex: 0 0 140px;   /* ← ruimte die het logo inneemt in de flex */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Logo afbeelding */
.nav-logo-img {
  height: 100px;              /* groter maken */
  position: absolute;
  top: 50%;
  transform: translate(-50%, -75%);
}

/* =================================
   BACK TO TOP BUTTON
================================= */

.button-primary.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  
  /* Start onzichtbaar */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.3s ease;
  transform: translateY(20px); /* Klein hupje bij verschijnen */
}

/* Wanneer de knop actief is (via JS) */
.button-primary.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* De zwarte "deur" */
.button-primary.back-to-top .inner {
  width: 50px;
  height: 50px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 10px;
  transition: transform 0.35s cubic-bezier(.4, 0, .2, 1);
}

/* Icoon styling */
.button-primary.back-to-top i {
  color: #fff;
  font-size: 20px;
}

/* Garage-deur effect op hover */
.button-primary.back-to-top:hover .inner {
  transform: translateY(110%);
}

/* Oranje achtergrond icoon (onder de deur) */
.button-primary.back-to-top::after {
  content: "\f077"; /* Font Awesome chevron-up */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.button-primary.back-to-top:hover::after {
  opacity: 1;
}

/* Grote schermen */
@media (min-width: 1600px) {
  .footer {
    padding: 5px 345px;
	gap: 535px
  }
}
/* =================================
   TABLET FIX (Tussen Desktop en Mobiel)
   ================================= */
@media (min-width: 993px) and (max-width: 1400px) {
    /* ===== FOOTER ===== */
  .footer {
    padding: 40px 0; /* Ruimte boven en onder de footer */
    display: flex;
    gap: 585px;
    justify-content: center; /* Zorg dat de inhoud gecentreerd staat */
  }

  /* Dit nieuwe element zorgt voor de uitlijning met je formulier */
  .footer-container {
    width: 100%;
    max-width: 1100px; /* Zelfde breedte als je garage-card en formulier */
    margin: 0 auto;
    justify-content: space-between; /* Tekst links, logo rechts */
    align-items: center;
    padding: 0 20px; /* Veiligheidsmarge voor tablet */
  }

  #menu-nav-footer {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .footer-img {
    height: 120px; /* Iets subtieler op tablet/kleine desktop */
    width: auto;
  }
}

/* ==========================================================================
   MOBILE.CSS - ORANJE BALK + LOGO MIDDEN + HAMBURGER RECHTS
   ========================================================================== */

@media (max-width: 992px) {

	section {
	  scroll-margin-top: 60px;
	}
	
	#eindhoven.slider-anchor {
	  top: -50px; /* iets verder scrollen */
	}

	#best.slider-anchor {
	  top: -50px; /* iets verder scrollen */
	}
	
    /* 1. De oranje balk (Capsule) */
    .nav-menu {
		background-color: #FF752B !important;
        display: flex !important;
		justify-content: space-between !important;
        width: 95% !important;
        height: 70px !important;
        
        /* FORCEER DE POSITIE NAAR DE BOVENKANT */
        margin: 0px !important; 
        margin-top: 0 !important; /* Expliciet de desktop margin-top killen */
        top: 0px !important;    /* Geeft 15px ruimte tot de schermrand voor de 'capsule' look */
        
        border-radius: 15px !important;
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 9999 !important;
        align-items: center !important;
        padding: 0 20px !important;
        transition: none !important; /* Voorkom dat hij verspringt tijdens scrollen op mobiel */
    }

    /* Verwijder de scroll margin op mobiel volledig */
    .nav-menu.is-scrolled {
        margin-top: 0 !important;
        top: 0 !important;
    }

    /* Hamburger icoon zichtbaar maken */
    .menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 5px !important;
        width: 30px !important;
        height: 25px !important;
        cursor: pointer;
        order: 3; /* Hamburger rechts */
    }

    .menu-toggle .bar {
        display: block !important;
        width: 100% !important;
        height: 3px !important;
        background-color: #ffffff !important; /* Wit icoon op oranje balk */
        border-radius: 2px;
    }

    /* Logo in het midden van de oranje balk */
    .nav-logo-centered {
        display: flex !important;
        order: 2;
        margin: 0 auto !important;
    }

    .nav-logo-centered img {
        height: 45px !important; /* Pas hoogte aan naar wens */
        width: auto !important;
    }

    /* Verberg het logo dat in de nav-list (Walker) zit op mobiel */
    .nav-list .menu-logo {
        display: none !important;
    }

    /* 3. VERBERG de oude navigatie-items */
    .nav-list {
        display: none !important;
    }

    /* 4. De Hamburger (Rechts) */
    .menu-toggle {
        display: flex !important;
        margin-left: auto !important;
        cursor: pointer;
        z-index: 10001 !important;
    }

    /* 5. Uitgeklapt menu styling */
    .nav-list.is-active {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 53px !important;
        left: 0 !important;
        width: 100% !important;
        background-color: #FF752B !important;
        border-radius: 15px !important;
        padding: 0 !important;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
    }

    /* 6. Menu items & Links (Gecorrigeerd en samengevoegd) */
    .nav-list.is-active .menu-item {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 0 !important;
    }

    .nav-list.is-active .menu-item a {
        display: block !important; 
        width: 100% !important;
        padding: 15px 0 !important;
        color: white !important;
        border-top: 1px solid rgba(255,255,255,0.1) !important;
        box-sizing: border-box !important;
        position: relative !important;
        z-index: 1 !important; /* Zorg dat tekst boven de hover-deur staat */
    }

    /* De zwarte hover-deur fix */
    .nav-list.is-active .menu-item a::before {
        inset: 0 !important; 
        border-radius: 0 !important;
        width: 100% !important;
        transform-origin: top !important;
    }

    /* Verberg logo uit de lijst */
    .nav-list .menu-logo {
        display: none !important;
    }

    /* 7. FOOTER - LOGO ONDERAAN */
    .footer {
        padding: 40px 20px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 40px !important;
        text-align: center !important;
        background-color: #FF752B !important;
    }

    .footer nav {
        width: 100% !important;
        order: 1 !important;
    }

    #menu-nav-footer {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        padding: 0 !important;
        list-style: none !important;
        margin: 0 !important;
    }

    .footer a {
        color: white !important;
        text-decoration: none !important;
        font-size: 16px !important;
        display: block !important;
        padding: 5px 0 !important;
        text-transform: none !important;
    }

    .footer-img {
        order: 2 !important;
        height: 100px !important;
        margin-top: 0 !important;
        width: auto !important;
        display: block !important;
    }

    .button-primary.back-to-top {
        bottom: 20px !important;
        right: 20px !important;
        z-index: 999 !important;
    }

    /* Fix voor de zwarte hover breedte in de FOOTER op mobiel */
    #menu-nav-footer .menu-item {
        width: 100% !important;
        display: block !important;
    }

    #menu-nav-footer .menu-item a {
        display: block !important;
        width: 100% !important;
        position: relative !important;
        padding: 10px 0 !important; /* Wat extra ruimte voor de klik-oppervlakte */
        z-index: 1 !important;
    }

    /* Forceer de zwarte 'deur' naar 100% breedte van het scherm */
    #menu-nav-footer .menu-item a::before {
        inset: 0 !important; /* Vult de hele link-ruimte op */
        width: 100% !important;
        transform-origin: top !important;
        border-radius: 0 !important;
    }
}