.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  color: var(--white);
  background: var(--red);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  transition:
    height var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.site-header.is-scrolled {
  height: 72px;
  box-shadow: var(--shadow-header);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}

.brand-badge {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 0 rgba(17, 17, 17, 0.08);
  transition:
    width var(--dur) var(--ease),
    height var(--dur) var(--ease);
}

.brand-badge img {
  width: auto;
  height: 38px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.05em;
  color: var(--white);
}

.brand-sub {
  display: none;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.13em;
  color: var(--white);
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item {
  position: static;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.055em;
  color: var(--white);
  text-transform: uppercase;
  white-space: nowrap;
  background: transparent;
  border: 0;
  transition: color var(--dur) var(--ease);
}

.nav-link::after {
  position: absolute;
  right: 8px;
  bottom: 6px;
  left: 8px;
  height: 2px;
  content: "";
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.nav-item.has-menu > .nav-link::before {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  height: 24px;
  content: "";
}

.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after,
.nav-item.is-open > .nav-link::after {
  transform: scaleX(1);
}

.nav-link:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.chev {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
}

.nav-item.is-open .chev {
  transform: rotate(180deg);
}

.header-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-inline: 4px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
}

.lang-btn {
  padding: 4px 2px;
  font-size: inherit;
  font-weight: 500;
  color: var(--white);
  background: none;
  border: 0;
}

.lang-btn.is-active {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lang-btn:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition:
    color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-cta {
  height: 42px;
  padding: 0 16px;
  color: var(--red);
  background: var(--white);
  border-color: var(--white);
}

.btn-cta:hover {
  color: var(--red-dark);
  background: var(--off-white);
}

.btn-cta:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.menu-toggle,
.nav-close {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

.nav-head,
.nav-foot {
  display: none;
}

/* Mega menu */
.mega-menu {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  z-index: 1001;
  padding: 28px 32px;
  color: var(--ink);
  background: var(--white);
  border-top: 3px solid var(--red);
  border-radius: 0 0 4px 4px;
  box-shadow: var(--shadow-menu);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease);
}

.nav-item.is-open > .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  gap: 32px;
  align-items: stretch;
}

.mega-eyebrow {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  color: var(--red);
  text-transform: uppercase;
}

.mega-eyebrow--spaced {
  margin-top: 18px;
}

.mega-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 24px;
}

.mega-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-2);
  border-radius: 3px;
  transition:
    color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    padding-left var(--dur) var(--ease),
    padding-right var(--dur) var(--ease);
}

.mega-link::after {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--grey-500);
  content: "\2192";
  transition:
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.mega-link:hover {
  padding-left: 14px;
  color: var(--red-deep);
  background: var(--red-tint);
}

.mega-link:hover::after {
  color: var(--red);
  transform: translateX(2px);
}

.mega-link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

.mega-feature {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  background: var(--off-white);
  border-inline-start: 3px solid var(--red);
}

.mega-feature-tag {
  margin-bottom: 8px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.14em;
  color: var(--red);
  text-transform: uppercase;
}

.mega-feature-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-transform: uppercase;
}

.mega-feature-meta {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--grey-600);
}

.mega-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--red);
  text-transform: uppercase;
}

.mega-feature-link::after {
  content: "\2192";
  transition: transform var(--dur) var(--ease);
}

.mega-feature-link:hover::after {
  transform: translateX(3px);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(17, 17, 17, 0.5);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 280ms var(--ease),
    visibility 280ms var(--ease);
}

.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

/* RTL */
html[dir="rtl"] .brand-text {
  text-align: right;
}

html[dir="rtl"] .mega-link:hover {
  padding-left: 10px;
  padding-right: 14px;
}

html[dir="rtl"] .mega-link:hover::after {
  transform: translateX(-2px);
}

html[dir="rtl"] .mega-feature-link::after {
  content: "\2190";
}

html[dir="rtl"] .mega-feature-link:hover::after {
  transform: translateX(-3px);
}

/* Compact desktop range */
@media (min-width: 1200px) and (max-width: 1360px) {
  .brand-sub {
    display: none;
  }

  .brand-name {
    font-size: 28px;
  }

  .header-inner {
    gap: 16px;
  }

  .nav-link {
    padding-inline: 7px;
    font-size: 11px;
  }

  .nav-link::after {
    right: 7px;
    left: 7px;
  }

  .btn-cta {
    padding-inline: 13px;
  }
}

/* Mobile navigation */
@media (max-width: 1199px) {
  .site-header,
  .site-header.is-scrolled {
    height: var(--header-h);
  }

  .header-inner {
    gap: 12px;
  }

  .brand {
    gap: 10px;
  }

  .brand-badge {
    width: 44px;
    height: 44px;
  }

  .brand-badge img {
    height: 31px;
  }

  .brand-name {
    font-size: 26px;
  }

  .brand-sub {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: 0;
    inset-inline-end: 0;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    width: min(390px, 92vw);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--white);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.24);
    transform: translateX(100%);
    transition: transform 280ms var(--ease);
  }

  html[dir="rtl"] .main-nav {
    transform: translateX(-100%);
  }

  .main-nav.is-open,
  html[dir="rtl"] .main-nav.is-open {
    transform: translateX(0);
  }

  .nav-head {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    padding: 0 20px;
    background: var(--white);
    border-bottom: 1px solid var(--grey-200);
  }

  .nav-head-brand {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .nav-head .brand-badge {
    width: 36px;
    height: 36px;
    background: transparent;
    box-shadow: none;
  }

  .nav-head .brand-badge img {
    height: 30px;
  }

  .nav-head .brand-name {
    font-size: 24px;
    color: var(--red);
  }

  .nav-close {
    display: grid;
    color: var(--ink);
    background: var(--grey-100);
    border-color: var(--grey-100);
  }

  .nav-close svg {
    width: 18px;
    height: 18px;
  }

  .nav-close:hover {
    color: var(--red);
    background: var(--red-tint);
    border-color: var(--red-tint);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px;
  }

  .nav-item {
    border-bottom: 1px solid var(--grey-200);
  }

  .nav-item:last-child {
    border-bottom: 0;
  }

  .nav-link {
    justify-content: space-between;
    width: 100%;
    height: 52px;
    padding: 0 4px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--ink);
    text-transform: none;
  }

  .nav-link::after,
  .nav-item.has-menu > .nav-link::before {
    display: none;
  }

  .nav-link:hover,
  .nav-link:focus-visible,
  .nav-link.is-active,
  .nav-item.is-open > .nav-link {
    color: var(--red);
  }

  .nav-link:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: -2px;
  }

  .chev {
    width: 12px;
    height: 12px;
  }

  .mega-menu {
    position: static;
    display: block;
    width: 100%;
    max-height: 0;
    padding: 0;
    overflow: hidden;
    visibility: hidden;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: none;
    transform: none;
    transition:
      max-height 300ms var(--ease),
      padding 300ms var(--ease),
      visibility 300ms var(--ease);
  }

  .nav-item.is-open > .mega-menu {
    max-height: 620px;
    padding: 0 0 14px;
    visibility: visible;
    pointer-events: auto;
    transform: none;
  }

  .mega-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mega-eyebrow,
  .mega-feature {
    display: none;
  }

  .mega-eyebrow--spaced {
    display: block;
    margin: 12px 4px 4px;
    font-size: 9px;
  }

  .mega-links {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .mega-link {
    padding: 11px 4px;
    font-size: 13px;
    border-radius: 0;
  }

  .mega-link:hover {
    padding-left: 8px;
    background: transparent;
  }

  .mega-link::after {
    font-size: 12px;
  }

  .nav-foot {
    display: block;
    margin-top: auto;
    flex-shrink: 0;
    padding: 20px;
    background: var(--off-white);
    border-top: 1px solid var(--grey-200);
  }

  .nav-foot .lang-switch {
    justify-content: flex-start;
    margin-bottom: 14px;
    padding: 0;
    font-size: 12px;
  }

  .nav-foot .lang-btn {
    color: var(--ink);
  }

  .nav-foot .btn-cta {
    width: 100%;
    color: var(--white);
    background: var(--red);
    border-color: var(--red);
  }

  .nav-foot .btn-cta:hover {
    color: var(--white);
    background: var(--red-dark);
  }

  .nav-foot .btn-cta:focus-visible {
    outline-color: var(--red);
  }

  .nav-socials {
    display: flex;
    gap: 8px;
    margin-top: 16px;
  }

  .nav-socials a {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: var(--grey-600);
    border: 1px solid var(--grey-300);
    border-radius: 50%;
  }

  .nav-socials a:hover {
    color: var(--red);
    border-color: var(--red);
  }

  .nav-socials svg {
    width: 15px;
    height: 15px;
  }

  .header-actions {
    margin-inline-start: auto;
  }

  .header-actions .lang-switch,
  .header-actions .btn-cta {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }
}

@media (max-width: 380px) {
  .brand-name {
    font-size: 24px;
  }

  .brand-badge {
    width: 40px;
    height: 40px;
  }

  .brand-badge img {
    height: 28px;
  }

  .main-nav {
    width: 100vw;
  }
}
