/* ── Reset ── */
.header ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header a {
  text-decoration: none;
  color: inherit;
}

/* Icon base */
.header .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.header .icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

/* ── Topbar ── */
.header__topbar {
  background-color: var(--color-bg-dark);
}

.header__topbar-container {
  padding: 0 1.5rem;
  height: 3.1875rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header__topbar-left {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-white);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-medium);
  flex: 1;
}

.header__topbar-left .icon {
  font-size: 0.875rem;
}

.header__topbar-center {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-white);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-medium);
}

.header__topbar-center strong {
  color: var(--color-white);
}

.header__status-dot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: var(--radius-full);
  background-color: hsla(142, 71%, 45%, 0.28);
  flex-shrink: 0;
  margin-right: 0.25rem;
}

.header__status-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: var(--radius-full);
  background-color: var(--color-green);
}

@keyframes status-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 hsla(142, 71%, 45%, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px hsla(142, 71%, 45%, 0);
  }
}

.header__status-dot {
  animation: status-pulse 2s ease-in-out infinite;
}

.header__status-dot--closed {
  background-color: hsla(0, 71%, 45%, 0.28);
  animation-name: status-pulse-closed;
}

.header__status-dot--closed::after {
  background-color: hsl(0, 71%, 45%);
}

@keyframes status-pulse-closed {
  0%, 100% {
    box-shadow: 0 0 0 0 hsla(0, 71%, 45%, 0.4);
  }
  50% {
    box-shadow: 0 0 0 4px hsla(0, 71%, 45%, 0);
  }
}

.header__topbar-phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  padding: 0.375rem 0.75rem;
  color: var(--color-white);
  font-size: 0.9375rem;
  font-weight: var(--font-weight-medium);
  transition: border-color 0.15s ease;
}

.header__topbar-phone:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.header__topbar-phone .icon {
  font-size: 0.75rem;
}

.header__topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  justify-content: flex-end;
}

.header__topbar-right img {
  height: 1.5rem;
  width: auto;
  opacity: 0.9;
}

/* ── Topbar responsive ── */
@media (max-width: 768px) {
  .header__topbar-container {
    padding: 0 1.25rem;
  }

  .header__topbar-left,
  .header__topbar-right,
  .header__topbar-phone {
    display: none;
  }

  .header__topbar-container {
    justify-content: center;
  }
}

@media ( min-width: 80rem ) {
  .header__topbar-left {
    display: flex;
  }
}

/* ── Main Nav ── */
.header__nav {
  position: relative;
  background-color: var(--color-white);
  transition: box-shadow 0.2s ease;
}

.header__nav--scrolled {
  box-shadow: 0 2px 8px hsla(230, 72%, 18%, 0.06);
}

.header__nav-container {
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  height: 6rem;
  gap: 1rem;
}

/* Logo */
.header__logo {
  flex-shrink: 0;
}

.header__logo a {
  display: flex;
  align-items: center;
}

.header__logo img {
  height: 3rem;
  width: auto;
  max-width: none;
}

/* Nav links */
.header__nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  justify-content: center;
}

.header__nav-links > li {
  position: relative;
}

.header__nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 0.3125rem;
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.header__nav-links > li > a:hover {
  color: var(--color-secondary);
}

.header__nav-links > li > a .icon {
  font-size: 0.5625rem;
  margin-top: 0.0625rem;
  color: var(--color-primary);
  transition: color 0.15s ease, transform 0.2s ease;
}

.header__nav-links > li > a:hover .icon {
  color: var(--color-secondary);
}

/* Submenu dropdown */
.header__nav-links .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 13rem;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px hsla(230, 72%, 18%, 0.1), 0 2px 8px hsla(230, 72%, 18%, 0.06);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(0.5rem);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 110;
}

.header__nav-container .header__nav-item--has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-25%) translateY(0);
}

.header__nav-container .header__nav-item--has-children:hover > a .icon {
  transform: rotate(180deg);
}

/* Parent dropdown trigger (e.g. Schepen) only opens the submenu — keep the
   default cursor. The submenu items below are the real links (pointer). */
.header__nav-links > .header__nav-item--has-children > a {
  cursor: default;
}

.header__nav-links .sub-menu li a {
  cursor: pointer;
}

.header__nav-links .sub-menu li a {
  display: block;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  color: var(--color-primary);
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.header__nav-links .sub-menu li a:hover {
  color: var(--color-secondary);
  background-color: hsla(234, 40%, 94%, 0.5);
}

/* Nav actions */
.header__nav-actions {
  display: flex;
  align-items: stretch;
  gap: 1rem;
  flex-shrink: 0;
}

/* Language selector */
.header__lang-selector {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background-color: var(--color-primary-dark-light);
  border: none;
  border-bottom: 3px solid var(--color-primary-dark);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.75rem;
  cursor: pointer;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  transition: background-color 0.25s ease;
}

.header__lang-selector:hover {
  background-color: var(--color-primary-dark);
}

.header__lang-selector:hover .icon--chevron-down {
  color: var(--color-white);
}

.header__flag {
  width: 1.375rem;
  height: 1.375rem;
  flex-shrink: 0;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.header__lang-selector .icon {
  font-size: 0.625rem;
  color: var( --color-text-heading );
  transition: color 0.25s ease;
}

/* Language dropdown */
.header__lang-dropdown {
  position: relative;
}

.header__lang-options {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 100;
  margin: 0;
  padding: 0.5rem 0;
  list-style: none;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  min-width: 10rem;
}

.header__lang-option {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem;
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: background-color 0.15s ease;
  white-space: nowrap;
}

.header__lang-option:hover {
  background-color: var(--color-primary-dark-light);
}

/* CTA button */
.header a.header__cta-btn {
  display: flex;
  gap: 0.5rem;
  color: var(--color-white);
}

.header__cta-btn .icon {
  font-size: 1rem;
}

@media ( min-width: 80rem ) {

  .header__nav-links {
    gap: 1.375rem;
  }

  .header__nav-container {
    gap: 2rem;
  }
}

/* ── Hamburger toggle button (hidden on desktop) ── */
.header__nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: hsla(234, 40%, 94%, 1);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  margin-left: auto;
  font-size: 1.125rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.header__nav-toggle:hover {
  background-color: hsla(234, 40%, 88%, 1);
}

/* ── Mobile menu panel ── */
.header__nav-mobile {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--color-white);
  border-top: 1px solid hsla(234, 40%, 94%, 1);
  box-shadow: 0 8px 24px hsla(230, 72%, 18%, 0.1);
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.header__nav-mobile[hidden] {
  display: none;
}

.header__nav-mobile .header__nav-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  flex: unset;
  justify-content: flex-start;
}

.header__nav-mobile .header__nav-links > li {
  width: 100%;
  border-bottom: 1px solid hsla(234, 40%, 94%, 1);
}

.header__nav-mobile .header__nav-links > li > a {
  padding: 0.875rem 0;
  width: 100%;
}

.header__nav-mobile .sub-menu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  min-width: unset;
  padding: 0 0 0.5rem 1rem;
  border-radius: 0;
  display: none;
}

.header__nav-mobile .header__nav-item--has-children.is-open > .sub-menu {
  display: block;
}

.header__nav-mobile .header__nav-item--has-children.is-open > a .icon svg {
  transform: rotate(180deg);
}

.header__nav-mobile .sub-menu li a {
  padding: 0.5rem 0;
}

.header__nav-mobile-actions {
  padding-top: 1rem;
  display: flex;
  gap: 1rem;
}

/* ── Mobile breakpoint: < 64rem ── */
@media (max-width: 64rem) {
  .header__nav-links,
  .header__nav-actions {
    display: none;
  }

  .header__nav-toggle {
    display: flex;
  }

  .header__nav-container {
    height: 4.5rem;
  }

  .header__nav-links .sub-menu li a:hover {
    background-color: transparent;
  }

  .header__lang-options {
    right: auto;
    left: 0;
  }
}

@media ( min-width: 64rem ) {
  .header__logo img {
    height: 2.5rem;
  }
}

@media ( min-width: 80rem ) {
  .header__logo img {
    height: 3.75rem;
  }
}

@media ( min-width: 83.75rem ) {
  .header__topbar-container,
  .header__nav-container {
    padding: 0 2.5rem;
  }
}
