.site-header {
  position: sticky;
  top: 0;
  z-index: 110;
  background: var(--ls-primary);
}

body.admin-bar .site-header {
  top: var(--wp-admin--admin-bar--height, 32px);
}

/* Het telefoonicoon wordt pas na een bevestigde open-status zichtbaar. */
#telefoon-bolletje[hidden] {
  display: none !important;
}

.topbar {
  background: var(--ls-teal-dark);
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 400;
}

.topbar__inner {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 28px;
}

.review-pill,
.topbar__links,
.topbar__contact,
.topbar__contact a {
  display: flex;
  align-items: center;
}

.review-pill {
  gap: 7px;
  color: var(--ls-white);
  white-space: nowrap;
}

.review-stars {
  display: inline-flex;
  gap: 1px;
}

.review-stars svg {
  width: 14px;
  height: 14px;
  color: var(--ls-lime);
}

.topbar__links {
  gap: 22px;
  margin-left: auto;
}

.topbar__links a,
.topbar__contact a {
  color: inherit;
  text-decoration: none;
}

.topbar__links a:hover,
.topbar__contact a:hover {
  color: var(--ls-white);
}

.topbar__contact {
  gap: 24px;
}

.topbar__contact a {
  gap: 8px;
}

.topbar__contact svg {
  width: 15px;
  height: 15px;
  color: var(--ls-lime);
}

.language-flags {
  display: flex;
  align-items: center;
  gap: 7px;
}

.flag {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
  opacity: 0.72;
  transition: opacity var(--ls-motion-fast) ease, outline-color var(--ls-motion-fast) ease;
}

.flag:hover,
.flag:focus-visible,
.flag.is-current {
  opacity: 1;
}

.flag.is-current {
  outline: 2px solid var(--ls-lime);
  outline-offset: 2px;
}

.flag--nl {
  background: linear-gradient(to bottom, #ae1c28 0 33.33%, #fff 33.33% 66.66%, #21468b 66.66% 100%);
}

.flag--gb {
  background: #012169 url("../images/flag-gb.svg") center / cover no-repeat;
}

.flag--be {
  background: linear-gradient(to right, #1a1a1a 0 33.33%, #ffd90c 33.33% 66.66%, #ed2939 66.66% 100%);
}

.desktop-nav-wrap {
  position: relative;
  z-index: 70;
  border-bottom: 1px solid var(--ls-white);
  background: var(--ls-primary);
  color: var(--ls-white);
}

.desktop-nav {
  display: flex;
  min-height: 83px;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
}

.brand img {
  width: 160px;
  height: auto;
}

.desktop-menu {
  display: flex;
  align-self: stretch;
  align-items: stretch;
  gap: 2px;
  margin-left: auto;
}

.desktop-menu > button,
.desktop-menu > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 13px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  font-weight: 300;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ls-motion-fast) ease;
}

.desktop-menu > button svg {
  width: 14px;
  height: 14px;
	color: var(--ls-cyan);
}

.desktop-menu > button:hover,
.desktop-menu > button.is-active,
.desktop-menu > a:hover,
.desktop-menu > a[aria-current="page"] {
  color: var(--ls-cyan);
}

.header-quote-link {
  min-height: 50px;
  padding: 8px 8px 8px 16px;
  white-space: nowrap;
}

.mega-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 60;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--ls-primary);
  box-shadow: 0 28px 70px rgba(0, 21, 24, 0.35);
}

.mega-menu:not([hidden]) {
  animation: ls-mega-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.mega-menu__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 70px;
  padding-block: 42px;
}

.mega-menu__title {
  margin-bottom: 20px;
  color: var(--ls-white);
  font-size: 24px;
  font-weight: 400;
}

.mega-menu__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 34px;
}

.mega-menu__links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  text-decoration: none;
}

.mega-menu__links a:hover,
.mega-menu__links a:focus-visible {
  color: var(--ls-cyan);
}

.mega-menu__links svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--ls-cyan);
}

.mega-menu__image {
  width: 100%;
  height: 230px;
  padding: 18px;
  border-radius: 40px 0 40px 0;
  background: transparent;
  object-fit: contain;
}

.mega-menu__image.is-photo {
  padding: 0;
  object-fit: cover;
}

.mega-menu__image.is-changing {
  animation: ls-mega-image-in 220ms ease both;
}

.mega-menu__brands {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.mega-menu__brands > p {
  margin: 0;
  color: var(--ls-white);
  font-size: 19px;
  font-weight: 400;
}

.mega-menu__brand-links {
  display: grid;
  min-width: 0;
  align-items: center;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}

.mega-menu__brand-links a {
  display: grid;
  width: 100%;
  min-width: 0;
  height: 66px;
  place-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px 0 18px 0;
  background: var(--ls-white);
  transition: border-color var(--ls-motion-fast) ease, transform var(--ls-motion-fast) ease;
}

.mega-menu__brand-links a:hover,
.mega-menu__brand-links a:focus-visible {
  border-color: var(--ls-cyan);
  transform: translateY(-2px);
}

.mega-menu__brand-links img {
  width: 100%;
  height: 38px;
  object-fit: contain;
}

.mobile-header,
.mobile-drawer {
  display: none;
}

.event-notice {
  background: var(--ls-lime);
  color: var(--ls-primary);
}

.event-notice__inner {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-block: 8px;
}

.event-notice__text {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}

.event-notice__text strong {
  font-family: "Sansation", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.event-notice__button {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 14px 7px 16px;
  border-radius: var(--ls-radius-small);
  background: var(--ls-primary);
  color: var(--ls-white);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--ls-motion-fast) ease;
}

.event-notice__button:hover {
  background: var(--ls-teal-dark);
  color: var(--ls-white);
}

.event-notice__button:focus-visible {
  outline-color: var(--ls-white);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--ls-primary);
}

.event-notice__button svg {
  width: 16px;
  height: 16px;
}

@keyframes ls-mega-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

@keyframes ls-mega-image-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

@media (max-width: 1110px) {
  .desktop-nav {
    gap: 18px;
  }

  .desktop-menu > button,
  .desktop-menu > a {
    padding-inline: 8px;
  }

  .header-quote-link {
    display: none;
  }

  .mega-menu__brand-links {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 821px) and (max-width: 900px) {
  .review-pill {
    display: none;
  }

  .topbar__inner,
  .desktop-nav {
    gap: 10px;
  }

  .desktop-nav .brand img {
    width: 110px;
  }

  .desktop-menu > button,
  .desktop-menu > a {
    padding-inline: 4px;
    font-size: 16px;
  }
}

@media (max-width: 820px) {
  body.has-mobile-menu {
    overflow: hidden;
  }

  .topbar,
  .desktop-nav-wrap {
    display: none;
  }

  .mobile-header {
    position: relative;
    z-index: 102;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 20px;
    border-bottom: 1px solid rgba(45, 176, 191, 0.55);
    background: var(--ls-primary);
    color: var(--ls-white);
  }

  .event-notice__inner {
    display: grid;
    min-height: 64px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding-block: 10px;
  }

  .event-notice__text {
    display: grid;
    gap: 1px;
    font-size: 14px;
    text-align: left;
  }

  .event-notice__text strong {
    font-size: 16px;
  }

  .event-notice__button {
    min-height: 38px;
    padding-inline: 13px;
    font-size: 14px;
  }

  .mobile-header .brand img {
    width: 108px;
  }

  .mobile-header__actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .mobile-header__actions > a:not(.mobile-quote),
  .mobile-menu-toggle {
    display: grid;
    width: 32px;
    height: 44px;
    place-items: center;
    border: 0;
    background: transparent;
    color: var(--ls-lime);
  }

  .mobile-header__actions svg {
    width: 20px;
    height: 20px;
  }

  .mobile-header__phone-icon {
    display: block;
    width: 21px;
    height: 23px;
  }

  .mobile-quote {
    min-height: 32px;
    margin-inline: 9px;
    padding: 4px 8px 3px;
    border-radius: 5px;
    background: var(--ls-cyan);
    color: var(--ls-white);
    font-size: 16px;
    font-weight: 400;
    text-decoration: none;
  }

  .mobile-menu-toggle {
    position: relative;
    color: var(--ls-cyan);
  }

  .mobile-menu-toggle .menu-icon {
    position: absolute;
    width: 28px;
    height: 28px;
    transition: opacity 220ms ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .menu-icon--open {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }

  .menu-icon--close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.75);
  }

  .mobile-menu-toggle.is-open .menu-icon--open {
    opacity: 0;
    transform: rotate(90deg) scale(0.75);
  }

  .mobile-menu-toggle.is-open .menu-icon--close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }

  .mobile-drawer {
    position: fixed;
    inset: 76px 0 0;
    z-index: 100;
    display: block;
    pointer-events: none;
    visibility: hidden;
  }

  .mobile-drawer.is-open {
    pointer-events: auto;
    visibility: visible;
  }

  .mobile-drawer__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    border: 0;
    background: rgba(0, 21, 24, 0.62);
    opacity: 0;
    transition: opacity 260ms ease;
  }

  .mobile-drawer.is-open .mobile-drawer__backdrop {
    opacity: 1;
  }

  .mobile-panel {
    position: relative;
    z-index: 2;
    width: min(100%, 430px);
    height: 100%;
    overflow-y: auto;
    padding: 18px 20px max(12px, env(safe-area-inset-bottom));
    background-color: var(--ls-primary);
    background-image: url("../images/shapes-background.svg");
    background-position: 120% 95%;
    background-repeat: no-repeat;
    background-size: 85% auto;
    color: var(--ls-white);
    transform: translateX(-102%);
    transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .mobile-drawer.is-open .mobile-panel {
    transform: translateX(0);
  }

  .mobile-panel__view {
    min-height: 100%;
  }

  .mobile-panel__view.is-forward {
    animation: ls-panel-forward 260ms ease both;
  }

  .mobile-panel__view.is-back {
    animation: ls-panel-back 260ms ease both;
  }

  .mobile-list {
    display: grid;
    margin-bottom: 16px;
  }

  .mobile-utility-list {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: -12px;
    margin-bottom: 14px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .mobile-utility-list .mobile-menu-button {
    width: auto;
    min-height: 44px;
    flex: 0 0 auto;
    justify-content: flex-start;
    padding: 8px 0;
    font-size: 15px;
    font-weight: 400;
    text-align: left;
  }

  .mobile-utility-list .mobile-menu-button:hover,
  .mobile-utility-list .mobile-menu-button:focus-visible {
    color: var(--ls-cyan);
  }

  .mobile-drawer-quote {
    margin-top: 2px;
  }

  .mobile-sublist {
    padding-bottom: 30px;
  }

  .mobile-brand-menu {
    display: grid;
    gap: 14px;
    padding: 22px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .mobile-brand-menu > strong {
    color: var(--ls-white);
    font-size: 17px;
  }

  .mobile-brand-menu > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-brand-menu a {
    display: grid;
    min-height: 70px;
    place-items: center;
    padding: 12px;
    border-radius: 16px 0 16px 0;
    background: var(--ls-white);
  }

  .mobile-brand-menu img {
    width: 100%;
    height: 40px;
    object-fit: contain;
  }

  .mobile-menu-button,
  .mobile-back {
    display: flex;
    width: 100%;
    min-height: 45px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: var(--ls-white);
    font-size: 17px;
    font-weight: 300;
    text-align: left;
    text-decoration: none;
  }

  .mobile-menu-button svg,
  .mobile-back svg {
    width: 17px;
    height: 17px;
    color: var(--ls-cyan);
  }

  .mobile-back {
    justify-content: flex-start;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.76);
  }

  .mobile-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    margin-top: 14px;
    padding: 0 4px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
  }

  .mobile-contact > a {
    display: flex;
    min-height: 38px;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
  }

  .mobile-contact svg {
    width: 14px;
    height: 14px;
    color: var(--ls-lime);
  }

  .mobile-contact .language-flags {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 38px;
    margin-top: 8px;
    padding-left: 0;
  }

  .mobile-contact .flag {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  @keyframes ls-panel-forward {
    from { transform: translateX(36px); }
  }

  @keyframes ls-panel-back {
    from { transform: translateX(-30px); }
  }
}

@media (max-width: 560px) {
  .mobile-menu-toggle {
    width: 40px;
  }
}

@media (max-width: 380px) {
  .mobile-quote {
    margin-inline: 4px;
  }
}

/* WordPress maakt de adminbar op kleine schermen niet sticky. */
@media (max-width: 600px) {
  body.admin-bar .site-header {
    top: 0;
  }
}

@media (max-width: 360px) {
  .mobile-header {
    gap: 10px;
    padding-inline: 14px;
  }

  .mobile-header .brand img {
    width: 95px;
  }

  .mobile-header__actions {
    gap: 4px;
  }

  .mobile-header__actions > a:not(.mobile-quote) {
    width: 28px;
  }

  .mobile-quote {
    margin-inline: 0;
    font-size: 14px;
  }

  .mobile-menu-toggle {
    width: 36px;
  }

  .event-notice__inner {
    gap: 8px;
  }

  .event-notice__text strong {
    font-size: 15px;
  }

  .event-notice__button {
    gap: 5px;
    padding-inline: 10px;
  }
}
