:root {
  --public-header-white: #fff;
  --public-header-maroon: #8a1538;
  --public-header-dark: #4d071f;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--public-header-white);
  background: rgba(42, 5, 18, 0.76);
  backdrop-filter: blur(18px);
}

.site-header .container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header .nav-wrap {
  position: relative;
  display: flex;
  gap: 26px;
  align-items: center;
  min-height: 76px;
}

.site-header .brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: inherit;
  font-family: "Cairo", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.site-header .brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  max-width: 100%;
  object-fit: contain;
}

.site-header .main-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
}

.site-header .main-nav a {
  position: relative;
  padding: 12px 13px;
  color: rgba(255, 255, 255, 0.86);
  font-family: "Tajawal", sans-serif;
  font-size: 0.91rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-header .main-nav a::after {
  position: absolute;
  inset: auto 13px 5px;
  height: 2px;
  background: var(--public-header-white);
  content: "";
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.site-header .main-nav a:hover,
.site-header .main-nav a:focus-visible,
.site-header .main-nav a.is-active,
.site-header .main-nav a[aria-current="page"] {
  color: var(--public-header-white);
}

.site-header .main-nav a:hover::after,
.site-header .main-nav a:focus-visible::after,
.site-header .main-nav a.is-active::after,
.site-header .main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-header .nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.site-header .button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 15px;
  color: inherit;
  font-family: "Tajawal", sans-serif;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-header .button:hover {
  transform: translateY(-2px);
}

.site-header .button.small {
  min-height: 39px;
  padding-inline: 15px;
  border-radius: 12px;
  font-size: 0.85rem;
}

.site-header .button.primary {
  color: var(--public-header-dark);
  background: var(--public-header-white);
  box-shadow: none;
}

.site-header .button.ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--public-header-white);
  background: rgba(255, 255, 255, 0.08);
}

.site-header .menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  color: var(--public-header-white);
  background: rgba(255, 255, 255, 0.09);
  cursor: pointer;
}

.site-header .menu-button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@media (max-width: 1040px) {
  .site-header .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline: 20px;
    display: none;
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 17px;
    background: rgba(54, 5, 23, 0.97);
    box-shadow: 0 20px 50px rgba(22, 2, 9, 0.28);
  }

  .site-header .main-nav.is-open {
    display: grid;
  }

  .site-header .main-nav a {
    padding: 13px;
  }

  .site-header .nav-actions {
    margin-inline-start: auto;
  }

  .site-header .menu-button {
    display: inline-flex;
  }
}

@media (max-width: 760px) {
  .site-header .container {
    width: min(100% - 28px, 1180px);
  }

  .site-header .nav-wrap {
    gap: 9px;
    min-height: 68px;
  }

  .site-header .brand {
    min-width: 0;
    font-size: 0.83rem;
  }

  .site-header .brand span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-header .brand-mark {
    flex: 0 0 auto;
    width: 41px;
    height: 41px;
  }

  .site-header .nav-actions .button.ghost {
    display: none;
  }

  .site-header .nav-actions .button.primary {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 0.76rem;
  }
}

@media (max-width: 430px) {
  .site-header .nav-actions .button.primary {
    display: none;
  }
}
