/* Header, topbar, hoofdmenu, megamenu en mobiel paneel.
   Waarden uit het origineel: .header, .topbar, .desktop-navigation, .mega-menu, .mobile-menu-overlay, .hamburger. */

/* ---------- Header ---------- */
/* Two rows on desktop, as in the original design: a small top row with secondary links, then
   logo, main menu and the two buttons. Transparant boven de hero, wit zodra er gescrold wordt. */
.header {
  position: fixed;
  z-index: 50;
  width: 100%;
  padding-block: 0.625rem;
  color: var(--color-primary);
  transition: background-color 0.25s var(--ease-in-out), box-shadow 0.25s var(--ease-in-out), color 0.25s var(--ease-in-out);
}
@media not all and (min-width: 64rem) { .header { background-color: var(--color-white); } }
@media (min-width: 64rem) { .header { padding-block: 1.25rem 1.5rem; color: var(--color-white); } }
@media (min-width: 80rem) { .header { padding-bottom: 1.75rem; } }

/* zachte verloop achter de transparante header (alleen desktop) */
.header::after {
  content: "";
  z-index: -10;
  display: none;
  position: absolute;
  inset: 0 0 -2rem;
  background-image: linear-gradient(rgb(0 0 0 / 0.45), transparent);
  pointer-events: none;
}
@media (min-width: 64rem) {
  .header::after { display: block; }
  .header__logo { filter: brightness(0%) invert(100%); }
}

/* massieve header: andere pagina's, gescrold, of een menu open */
.header--solid,
.is-scrolled .header,
.mega-open .header { background-color: var(--color-white); color: var(--color-primary); }
.is-scrolled .header,
.mega-open .header { box-shadow: 0 1px 0 rgb(0 0 148 / 0.08), 0 8px 24px -12px rgb(0 0 148 / 0.15); }
.header--solid::after,
.is-scrolled .header::after,
.mega-open .header::after { display: none; }
.header--solid .header__logo,
.is-scrolled .header__logo,
.mega-open .header__logo { filter: none; }

/* ---------- Top row: secondary links + Store and Support chips ---------- */
.header__top { display: none; }
@media (min-width: 64rem) {
  .header__top { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; margin-bottom: 0.375rem; font-size: 1rem; line-height: 1.5; }
}
@media (min-width: 96rem) { .header__top { margin-bottom: 0.125rem; } }
.topnav { display: flex; align-items: center; gap: 1.5rem; margin: 0; padding: 0; list-style-type: none; }
.topnav__link {
  border-bottom: 1px solid transparent;
  color: inherit;
  text-decoration-line: none;
  transition: border-color 0.3s var(--ease-in-out);
}
@media (hover: hover) { .topnav__link:hover { border-color: currentColor; } }
.topnav__link[aria-current="page"] { border-color: currentColor; }
.header__chips { display: flex; align-items: center; gap: 0.5rem; }
.header__chip {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-lg);
  background-color: var(--color-accent);
  color: var(--color-primary);
  text-decoration-line: none;
  transition: all 0.3s var(--ease-in-out);
}
@media (hover: hover) { .header__chip:hover { background-color: var(--color-primary); color: var(--color-white); } }
.header__chip[aria-current="page"] { background-color: var(--color-primary); color: var(--color-white); }
.header__chip-icon { width: 1rem; height: 1rem; }

/* ---------- Main row: logo, menu, buttons ---------- */
/* Bottom-aligned like the original: the logo stands on the same line as the menu and buttons. */
.header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
@media (min-width: 64rem) { .header__bar { align-items: flex-end; gap: 0; } }
.header__brand { flex-shrink: 0; }
.header__brand a { display: block; }
.header__logo { display: block; width: auto; height: 32px; }
@media (min-width: 64rem) {
  .header__brand { padding-right: 1rem; translate: 0 -0.5rem; }
  .header__logo { width: 136px; height: auto; }
}
@media (min-width: 80rem) {
  .header__brand { padding-right: 2.5rem; }
  .header__logo { width: 200px; }
}
@media (min-width: 96rem) { .header__brand { padding-right: 3.5rem; } }

.mainnav { display: none; }
@media (min-width: 64rem) { .mainnav { display: block; margin-right: auto; } }
.mainnav__list { display: flex; align-items: center; column-gap: 0.25rem; margin: 0; padding: 0; list-style-type: none; }
.mainnav__item { position: relative; }
.mainnav__link {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-2xl);
  padding: 0.25rem 1rem;
  font-size: 1.1875rem; /* 19px; original 20px */
  line-height: 1.4;
  color: inherit;
  white-space: nowrap;
  text-decoration-line: none;
  transition: background-color 0.3s var(--ease-in-out), color 0.3s var(--ease-in-out);
}
@media (min-width: 80rem) { .mainnav__link { font-size: 21px; } } /* original 23px */
@media (hover: hover) { .mainnav__link:hover { background-color: rgb(255 255 255 / 0.15); } }
@media (hover: hover) {
  .header--solid .mainnav__link:hover,
  .is-scrolled .mainnav__link:hover,
  .mega-open .mainnav__link:hover { background-color: var(--color-accent); }
}
.mainnav__link[aria-current="page"],
.mainnav__item.is-active > .mainnav__link { background-color: var(--color-accent); color: var(--color-primary); }

.mainnav__arrow {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  margin-left: 0.375rem;
  transition: rotate 0.3s var(--ease-default);
}
.mainnav__item.is-active .mainnav__arrow { rotate: 180deg; }

/* 64–80rem: the row only just fits (and loses ~17px to a classic scrollbar on Windows), so the
   menu links and the logo get a little less room */
@media (min-width: 64rem) and (max-width: 79.999rem) {
  .header__top { margin-bottom: 0.875rem; } /* the smaller logo and buttons need more air below the top row */
  .header__brand { padding-right: 1rem; }
  .mainnav__link { padding-inline: 0.625rem; }
}

/* the two buttons, right */
.header__actions { display: none; }
@media (min-width: 64rem) { .header__actions { display: flex; align-items: center; gap: 0.75rem; white-space: nowrap; } }
/* a bit smaller than the page buttons: 18px, 36px high */
.header__actions .btn { min-height: 2.25rem; padding: 0.375rem 1rem; font-size: 1.125rem; }

.header__call--support { background-color: var(--color-pink); }

/* ---------- Mobiel: bellen + hamburger ---------- */
.header__mobile { display: flex; align-items: center; gap: 0.5rem; }
@media (min-width: 64rem) { .header__mobile { display: none; } }
.header__call {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background-color: var(--color-accent);
  color: var(--color-primary);
}
/* Icon size in the round buttons (the SVG files carry their own width/height:
   chat.svg is 48px, which overflowed the 40px button). The chat glyph fills
   ~73% of its viewBox, so 22px matches the 15×16 phone glyph. */
.header__call svg { width: 1rem; height: 1rem; }
.header__call--support svg { width: 1.375rem; height: 1.375rem; }

.hamburger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background-color: var(--color-primary);
  color: var(--color-secondary);
  cursor: pointer;
}
.hamburger__box { position: relative; display: inline-block; width: 1.125rem; height: 1.125rem; } /* was 1.5rem */
.hamburger__inner,
.hamburger__inner::before,
.hamburger__inner::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 3.40282e38px;
  background-color: currentColor;
  transition: all 0.3s var(--ease-in-out);
}
.hamburger__inner { top: 50%; translate: 0 -50%; }
.hamburger__inner::before { content: ""; top: -6px; }
.hamburger__inner::after { content: ""; top: 6px; }
.hamburger[aria-expanded="true"] .hamburger__inner { background-color: transparent; }
.hamburger[aria-expanded="true"] .hamburger__inner::before { top: 0; rotate: 45deg; }
.hamburger[aria-expanded="true"] .hamburger__inner::after { top: 0; rotate: -45deg; }

/* ---------- Support-uitlichting (mobiel) ---------- */
.support-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem;
  border-radius: var(--radius-lg);
  color: var(--color-primary);
  text-decoration-line: none;
}
.support-card__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-lg);
  background-color: var(--color-primary);
  color: var(--color-pink);
}
.support-card__icon svg { width: 1.375rem; height: 1.375rem; }
.support-card__title { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; line-height: 1.3; }
.support-card__arrow { width: 0.5rem; height: 0.5rem; transition: translate 0.2s var(--ease-in-out); }
@media (hover: hover) { .support-card:hover .support-card__arrow { translate: 3px 0; } }
.support-card__text { display: block; margin-top: 0.125rem; font-size: 0.875rem; line-height: 1.4; opacity: 0.8; }
.support-card__phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0.5rem 0.375rem 3.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-primary);
  text-decoration-line: none;
}
.support-card__phone .dropdown__icon { width: 1rem; height: 1rem; }
@media (hover: hover) { .support-card__phone:hover { text-decoration-line: underline; } }
.mobile-menu__support { margin-top: 1.5rem; padding: 0.5rem; border-radius: var(--radius-2xl); background-color: var(--color-pink); }
.mobile-menu__support .support-card__title { font-size: 1.25rem; }

/* ---------- Megamenu (ontwerp Dizain) ---------- */
.mega-menu {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 30;
  display: none;
  padding-block: 2.5rem;
  border-bottom: 1px solid var(--color-gray-light);
  background-color: var(--color-accent);
  /* lies on top of the page: a soft shadow below it */
  box-shadow: 0 24px 48px -24px rgb(0 0 148 / 0.3), 0 4px 12px -4px rgb(0 0 148 / 0.08);
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s var(--ease-in-out);
}
@media (min-width: 64rem) { .mega-menu { display: block; } }
.mega-menu.is-open { visibility: visible; opacity: 1; }
.mega-menu__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.mega-menu__tagline p { letter-spacing: -0.025em; } /* same tracking as the slogan in the homepage hero */
/* Column as a flex column, the text takes the free space: the buttons and icons line up across
   the columns however many lines the text has. */
.mega-menu__column { display: flex; flex-direction: column; align-items: flex-start; }
.mega-menu__column p { flex-grow: 1; margin-bottom: 1rem; font-size: 0.9375rem; line-height: 1.5; text-wrap: balance; }
/* same size as the header buttons: 18px, 36px high */
.mega-menu__btn { min-height: 2.25rem; padding: 0.375rem 1rem; font-size: 1.125rem; }
@media (min-width: 64rem) { .mega-menu__btn { font-size: 1.125rem; } }
.mega-menu__icons { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; }
/* Subtle: a bit smaller than the 48px drawing and a softer colour, full colour on hover */
.mega-menu__icon { display: flex; color: color-mix(in oklab, var(--color-primary) 55%, transparent); transition: all 0.2s var(--ease-in-out); }
.mega-menu__icon svg { width: 2rem; height: 2rem; }
@media (hover: hover) { .mega-menu__icon:hover { scale: 105% 105%; color: var(--color-primary); } }
.mega-menu__more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--color-primary);
}

/* ---------- Mobiel paneel ---------- */
.mobile-menu {
  position: fixed;
  top: var(--header-mobile-height);
  inset-inline: 0;
  z-index: 40;
  height: 100%;
  padding-bottom: 5rem;
  overflow-y: auto;
  background-color: var(--color-accent);
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s var(--ease-in-out);
}
@media (min-width: 64rem) { .mobile-menu { display: none; } }
.mobile-menu.is-open { visibility: visible; opacity: 1; }
.mobile-menu__inner { padding-block: 2rem; }
.mobile-menu__list { margin: 0; padding: 0; list-style-type: none; }
.mobile-menu__list a {
  display: block;
  padding-block: 0.5rem;
  font-size: 1.5rem;
  line-height: 1.3333;
  color: var(--color-primary);
  text-decoration-line: none;
}
.mobile-menu__list + .mobile-menu__list { margin-top: 1rem; }
.mobile-menu nav + nav { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(0 0 148 / 0.1); }
.mobile-menu__list--small a { padding-block: 0.375rem; font-size: 1.125rem; }
.mobile-menu__cta { display: flex; flex-direction: column; align-items: stretch; gap: 0.75rem; margin-top: 2rem; color: var(--color-primary); }

/* Onzichtbare brug van "Features" naar het megamenu (header-padding + 0.75rem marge). */
@media (min-width: 64rem) and (hover: hover) {
  .mainnav__item--mega::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 2.25rem; }
}

/* Store: eigen menu-item naast Support, licht uitgelicht */
.mainnav__link--store { gap: 0.375rem; padding-inline: 0.75rem; border-radius: var(--radius-lg); background-color: var(--color-pink); color: var(--color-blue-dark); }
@media (hover: hover) { .mainnav .mainnav__link--store:hover { background-color: var(--color-pink); text-decoration: underline; } }
