/* =====================================================================
   Instant Instructions — hoofdnavigatie (single source)
   Gegenereerd in de pagina's via scripts/apply-nav.py — bewerk de markup
   NIET per pagina. Styling staat hier; gedrag in /assets/js/nav.js.

   Brand:  petrol #08313a · aqua #4ea8a3 · rood #cc1c17
   Font:   Bai Jamjuree (per pagina al geladen)
   Breakpoint hamburger: < 992px
   ===================================================================== */

.ii-hdr,
.ii-hdr *,
.ii-mobile,
.ii-mobile * {
  box-sizing: border-box;
  font-family: 'Bai Jamjuree', system-ui, sans-serif;
}

:root {
  --iihdr-petrol: #08313a;
  --iihdr-aqua: #4ea8a3;
  --iihdr-red: #cc1c17;
  --iihdr-red-dark: #b01713;
  --iihdr-ink: #08313a;
  --iihdr-ink-60: #4a5d62;
  --iihdr-line: rgba(8, 49, 58, 0.12);
  --iihdr-h: 64px;
}

/* ── Skip-to-content ─────────────────────────────────────────────── */
.ii-skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1100;
  background: var(--iihdr-petrol);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: top 0.18s ease;
}
.ii-skip:focus {
  top: 12px;
  outline: 3px solid var(--iihdr-aqua);
  outline-offset: 2px;
}

/* ── Sticky header (krimpt niet — alleen schaduw bij scroll) ─────── */
.ii-hdr {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--iihdr-line);
  box-shadow: 0 0 0 rgba(8, 49, 58, 0);
  transition: box-shadow 0.22s ease;
}
.ii-hdr.is-scrolled {
  box-shadow: 0 6px 22px rgba(8, 49, 58, 0.10);
}

/* Neutraliseer oude, paginabrede `nav {}`-regels die anders dubbel
   zouden aanslaan op de geneste <nav> binnen de nieuwe header. */
.ii-hdr nav {
  position: static;
  background: none;
  border: 0;
  backdrop-filter: none;
  box-shadow: none;
}

.ii-hdr__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: var(--iihdr-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

/* ── Logo ────────────────────────────────────────────────────────── */
.ii-hdr__logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.03em;
  color: var(--iihdr-ink);
  text-decoration: none;
  white-space: nowrap;
  flex: 0 0 auto;
}
.ii-hdr__logo span { color: var(--iihdr-aqua); }

/* ── Desktop nav ─────────────────────────────────────────────────── */
.ii-hdr__nav { flex: 1 1 auto; }

.ii-hdr__menu {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ii-hdr__item { position: relative; }

.ii-hdr__top {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  color: var(--iihdr-ink-60);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 10px 12px;
  text-decoration: none;
  border-radius: 6px;
}
.ii-hdr__top::after {
  /* aqua hover-onderlijn */
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--iihdr-aqua);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}
.ii-hdr__top:hover,
.ii-hdr__top:focus-visible { color: var(--iihdr-ink); }
.ii-hdr__top:hover::after,
.ii-hdr__top:focus-visible::after,
.ii-hdr__item.is-current > .ii-hdr__top::after { transform: scaleX(1); }
.ii-hdr__item.is-current > .ii-hdr__top { color: var(--iihdr-ink); }

.ii-hdr__chev {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}
.ii-hdr__top[aria-expanded="true"] .ii-hdr__chev { transform: rotate(180deg); }

/* ── Dropdowns (desktop: hover + focus + aria-expanded) ──────────── */
.ii-hdr__dropdown {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 230px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--iihdr-line);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(8, 49, 58, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 10;
}
.ii-has-dropdown:hover > .ii-hdr__dropdown,
.ii-has-dropdown:focus-within > .ii-hdr__dropdown,
.ii-hdr__top[aria-expanded="true"] + .ii-hdr__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ii-hdr__dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--iihdr-ink);
  text-decoration: none;
  white-space: nowrap;
}
.ii-hdr__dropdown a:hover,
.ii-hdr__dropdown a:focus-visible {
  background: rgba(78, 168, 163, 0.12);
  color: var(--iihdr-petrol);
}

/* ── Rechterzijde: taal · login · CTA ────────────────────────────── */
.ii-hdr__right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
  margin-left: auto;
}

.ii-hdr__lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}
.ii-hdr__lang-link {
  color: var(--iihdr-ink-60);
  text-decoration: none;
  font-weight: 500;
  padding: 2px 2px;
  border-radius: 4px;
}
.ii-hdr__lang-link.is-active { color: var(--iihdr-petrol); font-weight: 700; }
.ii-hdr__lang-link:hover { color: var(--iihdr-petrol); }
.ii-hdr__lang-sep { color: var(--iihdr-line); }
/* EN-link verbergen tot er Engelse content is: voeg data-en-ready="false"
   toe op .ii-hdr om de toggle te dempen. Standaard zichtbaar. */
.ii-hdr[data-en-ready="false"] .ii-hdr__lang-en,
.ii-hdr[data-en-ready="false"] .ii-hdr__lang-sep { display: none; }

.ii-hdr__login {
  font-size: 14px;
  font-weight: 500;
  color: var(--iihdr-ink-60);
  text-decoration: none;
  white-space: nowrap;
}
.ii-hdr__login:hover { color: var(--iihdr-petrol); text-decoration: underline; }

.ii-hdr__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--iihdr-red);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 9px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease;
}
.ii-hdr__cta:hover { background: var(--iihdr-red-dark); color: #fff; }

/* ── Hamburger ───────────────────────────────────────────────────── */
.ii-hdr__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.ii-hdr__burger span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: var(--iihdr-petrol);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ── Zichtbare focus-states (overal) ─────────────────────────────── */
.ii-hdr a:focus-visible,
.ii-hdr button:focus-visible,
.ii-mobile a:focus-visible,
.ii-mobile button:focus-visible,
.ii-skip:focus-visible {
  outline: 3px solid var(--iihdr-aqua);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ── Mobiel menu (accordions) ────────────────────────────────────── */
.ii-mobile {
  position: fixed;
  inset: var(--iihdr-h) 0 0 0;
  z-index: 999;
  background: rgba(8, 49, 58, 0.45);
  overflow-y: auto;
}
.ii-mobile[hidden] { display: none; }

.ii-mobile__panel {
  background: #fff;
  padding: 20px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ii-mobile__cta {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--iihdr-red);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px;
  border-radius: 10px;
  text-decoration: none;
  margin-bottom: 10px;
}
.ii-mobile__cta:hover { background: var(--iihdr-red-dark); color: #fff; }

.ii-mobile__list { list-style: none; margin: 0; padding: 0; }
.ii-mobile__list > li { border-bottom: 1px solid var(--iihdr-line); }

.ii-mobile__link,
.ii-mobile__acc {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--iihdr-petrol);
  background: none;
  border: 0;
  text-align: left;
  padding: 16px 4px;
  text-decoration: none;
  cursor: pointer;
}
.ii-mobile__acc .ii-hdr__chev { width: 16px; height: 16px; }

.ii-mobile__sub {
  list-style: none;
  margin: 0 0 8px;
  padding: 0 4px 4px;
}
.ii-mobile__sub[hidden] { display: none; }
.ii-mobile__sub a {
  display: block;
  padding: 11px 12px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--iihdr-ink-60);
  text-decoration: none;
  border-radius: 8px;
}
.ii-mobile__sub a:hover { background: rgba(78, 168, 163, 0.12); color: var(--iihdr-petrol); }

.ii-mobile__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--iihdr-line);
}
.ii-mobile__foot a { color: var(--iihdr-ink-60); text-decoration: none; font-weight: 500; }
.ii-mobile__foot a:hover { color: var(--iihdr-petrol); }

/* ── Responsief schakelpunt ──────────────────────────────────────── */
@media (max-width: 991px) {
  .ii-hdr__nav,
  .ii-hdr__lang,
  .ii-hdr__login,
  .ii-hdr__cta { display: none; }
  .ii-hdr__burger { display: flex; }
}
@media (min-width: 992px) {
  .ii-mobile { display: none !important; }
}

/* ── prefers-reduced-motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ii-hdr,
  .ii-skip,
  .ii-hdr__top::after,
  .ii-hdr__chev,
  .ii-hdr__dropdown,
  .ii-hdr__cta,
  .ii-hdr__burger span { transition: none !important; }
}
