/* Header / navigatie — component, zie 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;
}

body {
  margin: 0;
  background: var(--bg-light);
  font-family: var(--font-body);
}

body.has-locked-scroll {
  overflow: hidden;
}

site-header {
  display: block;
}

.site-header {
  background: var(--bg-light);
  color: var(--text-on-light);
  margin: 20px clamp(16px, 4vw, 32px);
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.05), 0 10px 30px rgba(10, 10, 10, 0.08);
  position: relative;
  z-index: 200;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 1.1rem 1.75rem;
}

.site-header__logo {
  position: relative;
  z-index: 250;
  color: var(--text-on-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
}

.site-header__toggle {
  position: relative;
  z-index: 250;
  width: 28px;
  height: 20px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.site-header__toggle-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-on-light);
  transition: top 0.25s ease, transform 0.25s ease;
}

.site-header__toggle-bar--top {
  top: 0;
}

.site-header__toggle-bar--bottom {
  top: 18px;
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar--top {
  top: 9px;
  transform: rotate(45deg);
}

.site-header__toggle[aria-expanded="true"] .site-header__toggle-bar--bottom {
  top: 9px;
  transform: rotate(-45deg);
}

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

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

.site-nav__link,
.site-nav__trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  text-align: left;
  color: var(--text-on-light);
  font-family: var(--font-body);
  font-size: 1.1rem;
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  padding: 0.9rem 1rem;
  transition: background-color 0.15s ease;
}

.site-nav__link:hover,
.site-nav__trigger:hover {
  background: rgba(104, 104, 104, 0.12);
}

.site-nav__link--cta {
  background: rgba(104, 104, 104, 0.14);
  font-weight: 600;
}

.site-nav__link--cta:hover {
  background: rgba(104, 104, 104, 0.22);
}

.site-nav__chevron {
  transition: transform 0.2s ease;
}

.site-nav__item--has-menu.is-open .site-nav__chevron {
  transform: rotate(180deg);
}

.mega-menu {
  display: none;
  padding: 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;
  color: var(--text-on-light);
}

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

.mega-menu__card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-decoration: none;
  border-radius: 14px;
  padding: 0.65rem;
  transition: background-color 0.15s ease;
}

.mega-menu__card:hover {
  background: rgba(104, 104, 104, 0.12);
}

.mega-menu__icon {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(10, 10, 10, 0.06);
  color: var(--text-on-light);
}

.mega-menu__icon svg {
  width: 20px;
  height: 20px;
}

.mega-menu__card-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mega-menu__card-title {
  color: var(--text-on-light);
  font-weight: 600;
}

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

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

.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;
  transition: filter 0.15s ease;
  white-space: nowrap;
}

.button:hover {
  filter: brightness(0.95);
}

/* Mobiel: fullscreen menu achter de hamburger */
.site-nav {
  display: none;
}

.site-header--nav-open .site-nav {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--bg-light);
  overflow-y: auto;
  padding: 7rem 1.25rem 2rem;
}

.site-header--nav-open .site-nav__list {
  border-top: 1px solid rgba(10, 10, 10, 0.08);
}

/* 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: 0.25rem;
  }

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

  .site-nav__link,
  .site-nav__trigger {
    width: auto;
    font-size: 1rem;
    padding: 0.6rem 1rem;
  }

  .mega-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    width: auto;
    padding: 2rem;
    border-radius: 24px;
    box-shadow: 0 1px 2px rgba(10, 10, 10, 0.05), 0 20px 45px rgba(10, 10, 10, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);

    /* Glaseffect — exact zoals aangeleverd */
    background-color: rgba(255, 255, 255, 0.6) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
  }

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

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

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