/* ============================================
   Header — waarden uit post-1376.css, gecontroleerd in capture/live/styles/home-*.json
   Blijft bovenaan staan (sticky). In het origineel is de balk fixed met een onzichtbare kopie als ruimtehouder;
   sticky geeft hetzelfde beeld en groeit vanzelf mee als het menu over twee regels loopt (systeemfont op 1152px).
   ============================================ */
.site-header { position: sticky; top: 0; z-index: 95; }

.site-header__bar {
  position: relative;
  display: flex;
  min-height: 80px;
  background-color: var(--color-primary);
}

.site-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* Logo: 14% van de binnenbreedte, met 20px uitloop aan beide kanten (Elementor-marge -20px) */
.site-header__logo {
  flex: 0 1 auto;
  width: calc(14% + 40px);
  margin: 0 -20px;
  display: block;
}
.site-header__wordmark { display: block; width: 82%; margin: 0 auto; border-radius: 0; }
.site-header__brandmark { display: none; border-radius: 0; }
.site-header__phone { display: none; }

.site-header__cta { flex-shrink: 0; }

/* Hoofdmenu (desktop) */
.menu { display: flex; flex-direction: column; }
.menu__toggle { display: none; }
.menu__hoofd { display: flex; flex-wrap: wrap; justify-content: flex-end; margin: 0; padding: 0; list-style: none; }
.menu__item { position: relative; }
.menu__link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 13px 20px;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-white);
  transition: color 0.4s, background-color 0.4s;
}

/* --------------------------------------------
   Tablet 768–1024: hamburger + uitklappaneel in de balk.
   Het origineel heeft hier een donkere hamburger op donkere achtergrond (zie NOTES.md);
   letterlijk overgenomen.
   -------------------------------------------- */
@media (max-width: 1024px) {
  /* vaste hoogte: het uitgeklapte menu vergroot de balk over de inhoud heen (zoals in het origineel) */
  .site-header { height: 80px; }
  .site-header__bar { padding: 0 5%; }
  .site-header__wordmark { width: 94%; }

  .menu__toggle {
    display: flex;
    align-self: flex-end;
    align-items: center;
    justify-content: center;
    padding: 9.75px;
    border: 0;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--color-primary);
    fill: var(--color-primary);
    font-size: 39px;
    cursor: pointer;
  }
  .menu__icon { display: block; width: 1em; height: 1em; fill: currentColor; }
  .menu__icon--close, .menu__icon--open-mobiel { display: none; }
  .menu__toggle[aria-expanded="true"] .menu__icon--open { display: none; }
  .menu__toggle[aria-expanded="true"] .menu__icon--close { display: block; }

  .menu__hoofd {
    flex-direction: column;
    flex-wrap: nowrap;
    width: max-content;
    margin-top: 10px;
    max-height: 0;
    overflow: hidden;
    background-color: var(--color-white);
    transform: scaleY(0);
    transform-origin: top;
    transition: max-height 0.3s, transform 0.3s;
  }
  .menu__toggle[aria-expanded="true"] + .menu__hoofd { max-height: 100vh; transform: scaleY(1); }
  .menu__link {
    padding: 10px 20px;
    font-size: 16px;
    letter-spacing: -0.9px;
    color: var(--color-primary);
  }
}
@media (max-width: 1024px) {
  .menu__link[aria-current="page"] { background-color: #3f444b; } /* Elementor-standaard voor het actieve item in het tabletpaneel */
}
@media (max-width: 1024px) and (hover: hover) {
  .menu__hoofd .menu__link:hover { background-color: #33373d; color: var(--color-white); }
}

/* --------------------------------------------
   Mobiel ≤767: beeldmerk · bellen · knop · hamburger; paneel over de volle breedte
   -------------------------------------------- */
@media (max-width: 767px) {
  .site-header { height: 87.5px; }
  .site-header__bar { padding: 20px; min-height: 50px; }
  .site-header__inner { max-width: none; gap: 14px; } /* kit-afstand; 20px past niet op 320px */

  .site-header__logo { width: 35px; margin: 0; flex: 0 0 auto; }
  .site-header__wordmark { display: none; }
  .site-header__brandmark { display: block; width: 85%; margin: 0; }

  .site-header__phone {
    display: block;
    order: 2;
    width: 30px;
    height: 29.5px;
    color: var(--color-white);
    fill: var(--color-white);
  }
  .site-header__phone svg { display: block; width: 30px; height: 30px; }

  .site-header__cta { order: 3; padding: 7px 15px; }

  .menu { order: 4; position: static; }
  /* mobiel heeft in het origineel een eigen icoon: drie dunne, afgeronde lijnen */
  .menu__icon--open { display: none; }
  .menu__toggle[aria-expanded="false"] .menu__icon--open-mobiel { display: block; }
  .menu__toggle {
    align-self: auto;
    align-items: flex-start;
    width: 43.5px;
    height: 47.5px;
    padding: 7.25px;
    border-radius: 0;
    background-color: transparent;
    color: var(--color-white);
    fill: var(--color-white);
    font-size: 29px;
  }

  .menu__hoofd {
    position: absolute;
    top: calc(100% - 4px);
    border-top: 4px solid var(--color-white); /* witte rand boven het paneel, deels over de balk (origineel) */
    left: 0;
    z-index: 9997;
    width: 100%;
    margin-top: 0;
    background-color: var(--color-cream);
  }
  .menu__link {
    padding: 23px 22px;
    font-size: 15px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: 0;
  }
  .menu__link[aria-current="page"] { background-color: #f9fafd; }
}
@media (max-width: 767px) and (hover: hover) {
  .menu__hoofd .menu__link:hover { background-color: #f9fafd; color: var(--color-primary); }
}
