/* ================================
   NAVBAR
================================= */


/*

LETOP: navbar is beetje afhankelijk op de 
hero section (".hero" class)

tript als je overneemt.
*/

/*logos grootte*/
.logo-dark {
  height: 110px !important;
}

.logo-white{
  height: 100px !important;
}

.navbar {
  position: absolute; top: 0; left: 0; right: 0; height: 110px;
  z-index: 1000; background: transparent; display: flex; align-items: center;
  transition: background .25s ease, box-shadow .25s ease, transform .35s ease, position .25s ease;
}
.nav-inner { max-width: 1120px; width: 100%; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }

/* Logo's */
.brand { position: relative; display: flex; align-items: center; height: 68px; z-index: 10; }
.brand img.logo { height: 90px; width: auto; object-fit: contain; transition: opacity .3s ease; position: absolute; top: 50%; left: 0; transform: translateY(-50%); }
.logo-white { opacity: 1; z-index: 2; }
.logo-dark  { opacity: 0; z-index: 1; }
.navbar.nav-solid .logo-white { opacity: 0; }
.navbar.nav-solid .logo-dark  { opacity: 1; }
@media (max-width: 960px) {
  .logo-white { opacity: 0 !important; }
  .logo-dark  { opacity: 1 !important; }
}

/* Nav links */
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; letter-spacing: .2px; color: #fff; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: #fff; transition: width .2s ease; }
.nav-links a:hover::after { width: 100%; }

.navbar.nav-solid { position: fixed; background: rgba(255, 255, 255, 0.98); backdrop-filter:saturate(1.2) blur(6px); box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.navbar.nav-solid .nav-links a { color:#222; }
.navbar.nav-solid .nav-links a::after { background: var(--mussan-primary); }

/* Burger */
#nav-icon3 { width: 44px; height: 32px; position: relative; cursor: pointer; display: none; z-index: 1100; transition: transform .25s ease; }
#nav-icon3 span { display:block; position:absolute; height:4px; width:100%; background:#fff; border-radius:4px; left:0; transition:all .25s ease-in-out; }
#nav-icon3 span:nth-child(1){ top:0; } #nav-icon3 span:nth-child(2),#nav-icon3 span:nth-child(3){ top:12px; } #nav-icon3 span:nth-child(4){ top:24px; }
#nav-icon3.open span:nth-child(1){ top:16px; width:0; left:50%; }
#nav-icon3.open span:nth-child(2){ transform:rotate(45deg); }
#nav-icon3.open span:nth-child(3){ transform:rotate(-45deg); }
#nav-icon3.open span:nth-child(4){ top:16px; width:0; left:50%; }
.navbar.nav-solid #nav-icon3 span { background: var(--mussan-primary); }
@media (max-width: 960px) { #nav-icon3 { display:block; } }

/* Mobile menu */
@media (max-width: 960px) {
  .navbar { position: fixed; background:#fff !important; backdrop-filter:saturate(1.2) blur(6px); box-shadow:0 6px 20px rgba(0,0,0,.06); }
  #nav-icon3 span { background: var(--mussan-primary); }
  .nav-links {
    position: fixed; top: 88px; right: 0; left: 0; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.08);
    flex-direction: column; transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: all .25s ease; padding: 40px 0; gap:0;
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links li { width: 100%; }
  .nav-links a { display:block; padding:18px 32px; color:var(--mussan-primary); font-size:1.1rem; font-weight:600; border-bottom:1px solid rgba(0,0,0,.05); }
  .nav-links a::after { background: var(--mussan-primary); bottom: 8px; }
}


/* === Navbar slide-in/out on scroll === */
.navbar { will-change: transform, background; }

/* In-sliden wanneer hij solid wordt */
.navbar.nav-solid.nav-slide-in {
  animation: navSlideIn .35s ease-out both;
}

/* Uit-sliden wanneer je terug naar de top gaat */
.navbar.nav-slide-out {
  animation: navSlideOut .30s ease-in both;
}

/* Keyframes */
@keyframes navSlideIn {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}
@keyframes navSlideOut {
  from { transform: translateY(0); }
  to   { transform: translateY(-100%); }
}

/* Respecteer reduce motion */
@media (prefers-reduced-motion: reduce) {
  .navbar.nav-solid.nav-slide-in,
  .navbar.nav-slide-out {
    animation: none !important;
    transform: none !important;
  }
}