/* Prominent navigation in VONIQ's existing announcement tone. */
:root {
  --header-accent: #e9e5de;
}

.announcement {
  color: var(--header-accent);
}

.header {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr) 148px;
  column-gap: clamp(24px, 3vw, 64px);
  height: 96px;
  padding-inline: clamp(28px, 3.3vw, 64px);
}

.desktop-nav {
  width: max-content;
  max-width: 100%;
  justify-self: center;
  justify-content: center;
  gap: clamp(20px, 1.8vw, 32px);
  min-width: 0;
}

.desktop-nav a,
.mobile-nav a {
  color: var(--header-accent);
  font-family: var(--sans);
  font-size: clamp(13px, 1.08vw, 16px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color .2s ease;
}

.desktop-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 11px;
}

.desktop-nav a::after {
  bottom: 3px;
  background: var(--header-accent);
  opacity: .7;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: #fff7e8;
}

.header-actions {
  justify-self: end;
}

.language {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 44px;
  padding: 10px 24px;
  border: 1px solid var(--header-accent);
  border-radius: 999px;
  background: var(--header-accent);
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease;
}

.language:lang(ar) {
  font-size: 16px;
  letter-spacing: 0;
}

.language:hover {
  border-color: #fff7e8;
  background: #fff7e8;
}

[dir="rtl"] .desktop-nav a,
[dir="rtl"] .mobile-nav a {
  letter-spacing: 0;
  text-transform: none;
}

@media (max-width: 1200px) {
  .header {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 20px;
    height: 89px;
    padding-inline: 24px;
  }

  .brand,
  .brand img {
    width: 200px;
  }

  .brand img {
    height: 75px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-menu {
    display: block;
    min-width: 44px;
    min-height: 44px;
  }

  .header-actions {
    gap: 12px;
  }

  .mobile-nav {
    padding: 12px 28px 20px;
  }

  .mobile-nav a {
    min-height: 48px;
    padding-block: 16px;
    font-size: 14px;
    letter-spacing: 1.3px;
  }
}

@media (max-width: 620px) {
  .header {
    height: 80px;
    column-gap: 12px;
    padding-inline: 8px 16px;
  }

  .brand,
  .brand img {
    width: clamp(132px, 43vw, 172px);
    height: 64px;
  }

  .header-actions {
    gap: 8px;
  }

  .language {
    min-width: 96px;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 12px;
  }

  .language:lang(ar) {
    font-size: 15px;
  }

  .mobile-nav {
    padding-inline: 22px;
  }
}
