/* ==========================================================================
   VDH Transport – Final Header + Slide Down Menu
   ========================================================================== */

:root {
  --vdh-blue: #0168b5;
  --vdh-blue-dark: #01519a;
  --vdh-white: #ffffff;
  --vdh-header-h: 84px;
  --vdh-header-h-scrolled: 72px;
  --vdh-ease: cubic-bezier(0.76, 0, 0.24, 1);
  --vdh-font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Basis ─────────────────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

body.vdh-menu-open {
  overflow: hidden;
}

/* ── Header ────────────────────────────────────────────────────────────── */
.vdh-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  height: var(--vdh-header-h);
  background: transparent;
  transition:
    height 0.35s var(--vdh-ease),
    background 0.35s var(--vdh-ease),
    box-shadow 0.35s var(--vdh-ease);
}

.vdh-header.is-scrolled,
.vdh-header.menu-open {
  background: var(--vdh-white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.vdh-header.is-scrolled {
  height: var(--vdh-header-h-scrolled);
}

.vdh-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  height: 100%;
  margin: 0 auto;
  padding: 0 40px;
  transition: padding 0.35s var(--vdh-ease);
}

.vdh-header.is-scrolled .vdh-header__inner {
  padding: 0 32px;
}

.vdh-header__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.vdh-header__logo-img {
  display: block;
  width: auto;
  height: 46px;
  transition: height 0.35s var(--vdh-ease);
}

.vdh-header.is-scrolled .vdh-header__logo-img {
  height: 40px;
}

.vdh-header__logo-text {
  font-family: var(--vdh-font);
  font-size: 1.35rem;
  font-weight: 800;
  color: #0a2b57;
  text-decoration: none;
}

.vdh-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.vdh-header__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--vdh-white);
  text-decoration: none;
  border-radius: 50%;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    transform 0.3s ease;
}

.vdh-header__icon-btn i {
  display: block;
  font-size: 20px;
  line-height: 1;
}

.vdh-header__icon-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.vdh-header.is-scrolled .vdh-header__icon-btn,
.vdh-header.menu-open .vdh-header__icon-btn {
  color: var(--vdh-blue);
}

.vdh-header.is-scrolled .vdh-header__icon-btn:hover,
.vdh-header.menu-open .vdh-header__icon-btn:hover {
  background: rgba(1, 104, 181, 0.08);
}

/* ── Hamburger ─────────────────────────────────────────────────────────── */
.vdh-header__hamburger {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  margin-left: 4px;
  padding: 0;
  background: var(--vdh-blue);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition:
    background 0.2s ease,
    width 0.35s var(--vdh-ease),
    height 0.35s var(--vdh-ease);
  outline: none;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.vdh-header__hamburger:hover,
.vdh-header__hamburger:focus,
.vdh-header__hamburger:active,
.vdh-header__hamburger:focus-visible,
.vdh-header__hamburger.is-active {
  outline: none;
  box-shadow: none;
}

.vdh-header__hamburger:hover {
  background: var(--vdh-blue-dark);
}

.vdh-header__hamburger:focus,
.vdh-header__hamburger:active,
.vdh-header__hamburger:focus-visible,
.vdh-header__hamburger.is-active {
  background: var(--vdh-blue);
}

.vdh-header.is-scrolled .vdh-header__hamburger {
  width: 42px;
  height: 42px;
}

.vdh-header__hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--vdh-white);
  border-radius: 2px;
  transform-origin: center;
  transition:
    transform 0.35s var(--vdh-ease),
    opacity 0.25s var(--vdh-ease);
}

.vdh-header__hamburger:focus .vdh-header__hamburger-line,
.vdh-header__hamburger:active .vdh-header__hamburger-line,
.vdh-header__hamburger.is-active .vdh-header__hamburger-line {
  background: var(--vdh-white);
}

.vdh-header__hamburger.is-active .vdh-header__hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.vdh-header__hamburger.is-active .vdh-header__hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.vdh-header__hamburger.is-active .vdh-header__hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Overlay ───────────────────────────────────────────────────────────── */
.vdh-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 8990;
  background: var(--vdh-blue);
  transform: translateY(-100%);
  transition: transform 0.65s var(--vdh-ease);
  pointer-events: none;
  overflow-y: auto;
}

.vdh-nav-overlay.is-open {
  transform: translateY(0);
  pointer-events: auto;
}

.vdh-nav-overlay__nav {
  min-height: 100dvh;
  padding: 0 0 0 clamp(40px, 8vw, 60px);
  display: flex;
  align-items: center;
}

/* ── Menu lijst ────────────────────────────────────────────────────────── */
.vdh-nav-overlay__list,
.vdh-nav-overlay__list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.vdh-nav-overlay__list > li {
  position: relative;
  margin: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.45s var(--vdh-ease),
    transform 0.45s var(--vdh-ease);
}

.vdh-nav-overlay__list > li:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.vdh-nav-overlay.is-open .vdh-nav-overlay__list > li {
  opacity: 1;
  transform: translateY(0);
}

.vdh-nav-overlay.is-open .vdh-nav-overlay__list > li:nth-child(1) { transition-delay: 0.12s; }
.vdh-nav-overlay.is-open .vdh-nav-overlay__list > li:nth-child(2) { transition-delay: 0.18s; }
.vdh-nav-overlay.is-open .vdh-nav-overlay__list > li:nth-child(3) { transition-delay: 0.24s; }
.vdh-nav-overlay.is-open .vdh-nav-overlay__list > li:nth-child(4) { transition-delay: 0.30s; }
.vdh-nav-overlay.is-open .vdh-nav-overlay__list > li:nth-child(5) { transition-delay: 0.36s; }
.vdh-nav-overlay.is-open .vdh-nav-overlay__list > li:nth-child(6) { transition-delay: 0.42s; }
.vdh-nav-overlay.is-open .vdh-nav-overlay__list > li:nth-child(7) { transition-delay: 0.48s; }
.vdh-nav-overlay.is-open .vdh-nav-overlay__list > li:nth-child(8) { transition-delay: 0.54s; }
.vdh-nav-overlay.is-open .vdh-nav-overlay__list > li:nth-child(9) { transition-delay: 0.60s; }
.vdh-nav-overlay.is-open .vdh-nav-overlay__list > li:nth-child(10) { transition-delay: 0.66s; }

.vdh-nav-overlay__list > li > a {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 18px 60px;
  text-decoration: none;
  font-family: var(--vdh-font);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.82);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    padding-left 0.25s var(--vdh-ease);
}

.vdh-nav-overlay__list > li:hover > a {
  background: rgba(255, 255, 255, 0.08);
  color: var(--vdh-white);
  padding-left: 70px;
}

.vdh-nav-overlay__list > li.current-menu-item > a,
.vdh-nav-overlay__list > li.current-menu-parent > a,
.vdh-nav-overlay__list > li.current-menu-ancestor > a,
.vdh-nav-overlay__list > li.current_page_item > a {
  position: relative;
  color: var(--vdh-white);
  background: rgba(255, 255, 255, 0.06);
}

.vdh-nav-overlay__list > li.current-menu-item > a::before,
.vdh-nav-overlay__list > li.current-menu-parent > a::before,
.vdh-nav-overlay__list > li.current-menu-ancestor > a::before,
.vdh-nav-overlay__list > li.current_page_item > a::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 60%;
  background: #ffffff;
  opacity: 0.9;
}

/* ── Submenu ───────────────────────────────────────────────────────────── */
.vdh-nav-overlay__list .sub-menu {
  background: rgba(0, 0, 0, 0.08);
}

.vdh-nav-overlay__list .sub-menu li {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.vdh-nav-overlay__list .sub-menu a {
  display: block;
  padding: 12px 72px;
  text-decoration: none;
  font-family: var(--vdh-font);
  font-size: 0.95rem;
  font-weight: 600;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.75);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    padding-left 0.25s var(--vdh-ease);
}

.vdh-nav-overlay__list .sub-menu li:hover > a,
.vdh-nav-overlay__list .sub-menu .current-menu-item > a,
.vdh-nav-overlay__list .sub-menu .current_page_item > a {
  background: rgba(255, 255, 255, 0.08);
  color: var(--vdh-white);
  padding-left: 80px;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .vdh-header__inner {
    padding: 0 28px;
  }

  .vdh-header.is-scrolled .vdh-header__inner {
    padding: 0 24px;
  }

  .vdh-nav-overlay__nav {
    padding-left: 36px;
  }

  .vdh-nav-overlay__list > li > a {
    padding: 16px 40px;
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
  }

  .vdh-nav-overlay__list > li:hover > a {
    padding-left: 48px;
  }

  .vdh-nav-overlay__list > li.current-menu-item > a::before,
  .vdh-nav-overlay__list > li.current-menu-parent > a::before,
  .vdh-nav-overlay__list > li.current-menu-ancestor > a::before,
  .vdh-nav-overlay__list > li.current_page_item > a::before {
    left: 18px;
  }

  .vdh-nav-overlay__list .sub-menu a {
    padding-left: 52px;
    padding-right: 32px;
  }

  .vdh-nav-overlay__list .sub-menu li:hover > a,
  .vdh-nav-overlay__list .sub-menu .current-menu-item > a,
  .vdh-nav-overlay__list .sub-menu .current_page_item > a {
    padding-left: 60px;
  }
}

@media (max-width: 767px) {
  :root {
    --vdh-header-h: 68px;
    --vdh-header-h-scrolled: 60px;
  }

  .vdh-header__inner {
    padding: 0 20px;
  }

  .vdh-header.is-scrolled .vdh-header__inner {
    padding: 0 16px;
  }

  .vdh-header__logo-img {
    height: 38px;
  }

  .vdh-header.is-scrolled .vdh-header__logo-img {
    height: 34px;
  }

  .vdh-header__icon-btn {
    width: 38px;
    height: 38px;
  }

  .vdh-header__icon-btn i {
    font-size: 18px;
  }

  .vdh-header__hamburger {
    width: 42px;
    height: 42px;
    border-radius: 8px;
  }

  .vdh-header.is-scrolled .vdh-header__hamburger {
    width: 38px;
    height: 38px;
  }

  .vdh-nav-overlay__nav {
    min-height: 100dvh;
    padding: 0 0 0 20px;
  }

  .vdh-nav-overlay__list > li {
    margin: 4px 0;
  }

  .vdh-nav-overlay__list > li > a {
    min-height: 50px;
    padding: 16px 30px;
    font-size: 1.1rem;
  }

  .vdh-nav-overlay__list > li:hover > a {
    padding-left: 36px;
  }

  .vdh-nav-overlay__list > li.current-menu-item > a::before,
  .vdh-nav-overlay__list > li.current-menu-parent > a::before,
  .vdh-nav-overlay__list > li.current-menu-ancestor > a::before,
  .vdh-nav-overlay__list > li.current_page_item > a::before {
    left: 16px;
  }

  .vdh-nav-overlay__list .sub-menu a {
    padding: 11px 24px 11px 40px;
    font-size: 0.9rem;
  }

  .vdh-nav-overlay__list .sub-menu li:hover > a,
  .vdh-nav-overlay__list .sub-menu .current-menu-item > a,
  .vdh-nav-overlay__list .sub-menu .current_page_item > a {
    padding-left: 46px;
  }
}