/* Header / navigatie — component, zie site-header.js */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

site-header {
  display: block;
}

.site-header {
  background: var(--bg-dark);
  color: var(--text-on-dark);
  position: relative;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

.site-header__logo {
  color: var(--text-on-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

.site-header__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}

.site-header__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-on-dark);
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__item {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-nav__link,
.site-nav__trigger {
  display: block;
  width: 100%;
  text-align: left;
  color: var(--text-on-dark);
  font-family: var(--font-body);
  font-size: 1rem;
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.9rem 0;
}

.mega-menu {
  display: none;
  padding: 0 0 1rem 1rem;
}

.site-nav__item--has-menu.is-open .mega-menu {
  display: block;
}

.mega-menu__heading {
  margin: 0 0 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
}

.mega-menu__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.mega-menu__card {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  padding: 0.5rem 0;
}

.mega-menu__card-title {
  color: inherit;
  font-weight: 600;
}

.mega-menu__card-subtitle {
  color: var(--accent);
  font-size: 0.875rem;
}

.mega-menu__cta {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  border-radius: 8px;
}

.mega-menu__cta-text {
  margin: 0 0 0.75rem;
}

.button {
  display: inline-block;
  background: var(--bg-light);
  color: var(--text-on-light);
  text-decoration: none;
  font-weight: 600;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
}

/* Mobiel: nav + mega-menu's ingeklapt achter de hamburger */
.site-nav {
  display: none;
}

.site-header--nav-open .site-nav {
  display: block;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Desktop: horizontale nav met mega-menu's als overlay */
@media (min-width: 900px) {
  .site-header__toggle {
    display: none;
  }

  .site-nav {
    display: block;
  }

  .site-nav__list {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .site-nav__item {
    border-top: 0;
    position: relative;
  }

  .site-nav__link,
  .site-nav__trigger {
    width: auto;
    padding: 0.5rem 0;
  }

  .mega-menu {
    position: absolute;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%);
    width: min(760px, 90vw);
    background: var(--bg-light);
    color: var(--text-on-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  }

  .mega-menu__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem 2rem;
  }

  .mega-menu__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }

  .mega-menu__cta-text {
    margin: 0;
  }
}
