/* ============================================================
   HEADER – Bootstrap navbar, mobiel menu, rider ticker
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 var(--pad);
  background: transparent;
  transition: background .1s steps(2), box-shadow .1s steps(2);
  border-bottom: 1.5px solid transparent;
}
.navbar.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 0 var(--line);
  border-bottom-color: var(--line-strong);
}
.navbar .navbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

/* Logo */
.navbar-brand.logo {
  text-decoration: none;
  line-height: 1.05;
  padding: 0;
  flex-shrink: 0;
}
.navbar-brand.logo b {
  font-family: var(--font-d);
  font-weight: 900;
  letter-spacing: .04em;
  font-size: 16px;
  text-transform: uppercase;
  display: block;
  color: var(--ink);
}
.navbar-brand.logo span {
  font-family: var(--font-m);
  font-size: 9.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue);
}

/* Desktop nav */
.navbar .nav-desktop {
  display: flex;
  gap: 30px;
  align-items: center;
}
.navbar .nav-desktop a {
  font-family: var(--font-d);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--mist);
  transition: color .05s steps(1);
}
.navbar .nav-desktop a:hover { color: var(--blue); }

/* Header CTA */
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-d);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--on-blue);
  background: var(--blue);
  padding: 10px 18px;
  border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .08s steps(2), box-shadow .08s steps(2);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.header-cta:hover {
  color: var(--on-blue);
  transform: none;
  box-shadow: 5px 5px 0 var(--ink);
}

/* Burger (Bootstrap toggler reset) */
.navbar-toggler {
  border: none;
  padding: 8px;
  background: none;
  box-shadow: none;
}
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler-icon { display: none; }
.navbar-toggler .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: none;
}

/* Bootstrap collapse: mobiel menu (full-screen overlay) */
.navbar-collapse {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: var(--bg);
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad);
  opacity: 0;
  pointer-events: none;
  transition: opacity .1s steps(2);
  border-right: 3px solid var(--blue);
  height: 100vh !important;
}
.navbar-collapse.show {
  opacity: 1;
  pointer-events: auto;
}
.navbar-collapse .navbar-nav { flex-direction: column; }
.navbar-collapse .nav-link {
  font-family: var(--font-d);
  font-size: clamp(24px,6vw,36px);
  font-weight: 900;
  text-transform: uppercase;
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 2px solid var(--line);
  letter-spacing: -.01em;
  color: var(--ink);
}
.navbar-collapse .nav-link:hover { color: var(--blue); }
.navbar-collapse .mm-tel {
  margin-top: 28px;
  border: none;
  color: var(--blue);
  font-family: var(--font-m);
  font-size: 17px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  padding: 0;
}

/* Desktop: collapse normaal zichtbaar */
@media (min-width: 992px) {
  .navbar-collapse {
    position: static;
    inset: auto;
    background: transparent;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    opacity: 1;
    pointer-events: auto;
    border-right: none;
    height: auto !important;
    transition: none;
    padding: 0;
    flex: unset;
    gap: 20px;
  }
  .navbar-collapse .navbar-nav { flex-direction: row; gap: 30px; }
  .navbar-collapse .nav-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--mist);
    border-bottom: none;
    padding: 0;
    line-height: inherit;
    transition: color .05s steps(1);
  }
  .navbar-collapse .nav-link:hover { color: var(--blue); }
  .navbar-collapse .mm-tel { display: none; }
  .navbar-toggler { display: none; }
  body.menu-open { overflow: visible; }
}

/* ── MOBIEL MENU: gecentreerd, geen scheidingslijnen ─────────── */
@media (max-width: 991px) {
  .navbar-collapse .navbar-nav { align-items: center; }
  .navbar-collapse .nav-link {
    text-align: center;
    border-bottom: none;
    padding: 10px;
  }
}

/* ── NAV HOVER: staccato flits bij mobiel menu ───────────────── */
@keyframes nf-nav-flash {
  0%   { background: transparent; color: var(--ink); }
  16%  { background: var(--blue); color: #fff; }
  33%  { background: transparent; color: var(--ink); }
  50%  { background: var(--blue); color: #fff; }
  66%  { background: transparent; color: var(--ink); }
  83%  { background: var(--blue); color: #fff; }
  100% { background: var(--blue); color: #fff; }
}
@media (max-width: 991px) {
  .navbar-collapse .nav-link:hover,
  .navbar-collapse .nav-link:focus-visible {
    animation: nf-nav-flash .38s steps(1) forwards;
  }
}

/* ── SLUITEN-KNOP: onderaan het mobiele menu ─────────────────── */
.nf-nav-close { list-style: none; text-align: center; }
.nf-close-btn {
  display: inline-block;
  background: none;
  border: 2px solid var(--line-strong);
  color: var(--faint);
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 10px 28px;
  cursor: pointer;
  margin-top: 20px;
  transition: none;
}
.nf-close-btn:hover { border-color: var(--blue); color: var(--blue); }

/* ============================================================
   RIDER TICKER – verticale flikker voor fietserstypes
   ============================================================ */
.rider-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 32px;
  border: 1.5px solid rgba(0,87,255,.45);
  border-left: 3px solid var(--blue);
  padding: 0 14px;
  background: var(--blue-dim);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.rider-ticker::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--blue);
  opacity: .55;
  z-index: 20;
  top: -1px;
  animation: rt-scan 2s steps(32, end) infinite;
}
@keyframes rt-scan {
  from { top: -1px; }
  to   { top: 34px; }
}
.rider-ticker::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blue);
  z-index: 15;
  pointer-events: none;
  animation: rt-flash 1.5s linear infinite;
}
@keyframes rt-flash {
  0%    { opacity: .45; }
  8%    { opacity: 0; }
  99%   { opacity: 0; }
  100%  { opacity: 0; }
}
.rt-label {
  font-family: var(--font-m);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--faint);
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}
.rt-win {
  height: 18px;
  overflow: hidden;
  position: relative;
  z-index: 10;
}
.rt-track {
  display: flex;
  flex-direction: column;
  animation: rt-scroll 9s steps(6, end) infinite;
}
.rt-track b {
  display: block;
  font-family: var(--font-m);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  height: 18px;
  line-height: 18px;
  white-space: nowrap;
}
@keyframes rt-scroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-108px); }
}
