/* Top bar — inspired by official HW menubar, our own spin */
.site-topbar.header,
.site-topbar .hw-header-menubar,
.site-topbar .hp-topbar-inner {
  overflow: visible;
}

.site-topbar .hw-header-menubar {
  position: relative;
  background:
    radial-gradient(rgba(255, 255, 255, 0.07) 0.7px, transparent 0.8px),
    linear-gradient(180deg, rgba(28, 22, 18, 0.96) 0%, rgba(10, 10, 14, 0.98) 100%);
  background-size: 5px 5px, auto;
  border-top: 2px solid #c45a12;
  border-bottom: 1px solid rgba(0, 0, 0, 0.85);
  backdrop-filter: none;
}

.site-topbar .hp-topbar-inner {
  height: 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
}

.site-topbar .hp-brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  justify-self: start;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  min-width: 0;
  height: 100%;
  padding: 0 14px 0 4px;
  transition: opacity 0.2s ease;
}

.site-topbar .hp-brand:hover {
  opacity: 0.92;
  transform: none;
}

.site-topbar .hp-brand .logo-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #0a0a0c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.site-topbar .hp-brand .logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: none;
}

.site-topbar .hp-brand .logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.site-topbar .hp-brand .logo-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
}

.site-topbar .hp-brand .logo-subtitle {
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.1;
  color: #c9a227;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.site-topbar .hp-nav {
  grid-column: 2;
  justify-content: center;
  justify-self: center;
  width: auto;
  height: calc(100% - 10px);
  padding: 0 14px;
  border-left: 1px solid rgba(0, 0, 0, 0.7);
  border-right: 1px solid rgba(0, 0, 0, 0.7);
  box-shadow:
    1px 0 0 rgba(255, 255, 255, 0.05),
    -1px 0 0 rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.18);
}

.site-topbar .hp-nav::before {
  display: none;
}

.site-topbar .hp-nav .hw-nav-menu {
  gap: 18px !important;
  height: 100%;
}

.site-topbar .hp-nav .hw-nav-menu li {
  display: flex;
  align-items: center;
  height: 100%;
  position: relative;
}

.site-topbar .hp-nav .hw-nav-menu li + li::before {
  content: none;
}

.site-topbar .hp-nav .hw-nav-menu > li > a {
  font-family: Verdana, Roboto, "Droid Sans", Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #ffb84a !important;
  text-shadow:
    0 1px 0 #000,
    0 2px 0 rgba(0, 0, 0, 0.85),
    1px 1px 0 #000 !important;
  padding: 0 4px 0 18px !important;
  border-radius: 0;
  background: transparent !important;
  position: relative;
  line-height: 1;
  transition: color 0.15s ease, filter 0.15s ease;
}

.site-topbar .hp-nav .hw-nav-menu > li > a::before {
  content: "»" !important;
  display: block !important;
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-52%);
  color: #ff7a18;
  font-size: 15px;
  font-weight: 900;
  text-shadow: 0 1px 0 #000;
  letter-spacing: -2px;
}

.site-topbar .hp-nav .hw-nav-menu > li > a:hover {
  color: #ffe08a !important;
  background: transparent !important;
  filter: brightness(1.08);
}

.site-topbar .hp-nav .hw-nav-menu > li:first-child > a {
  color: #ffb84a !important;
}

/* Get Started dropdown — official HW style */
.site-topbar .hp-nav .hp-nav-has-sub {
  position: relative;
}

.site-topbar .hp-nav .hp-nav-sub {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 196px;
  margin: 0;
  padding: 10px 0 8px;
  list-style: none;
  background: #000;
  border: 1px solid #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
  z-index: 1400;
}

/* Hover bridge — keeps menu open without highlighting first item */
.site-topbar .hp-nav .hp-nav-has-sub::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}

.site-topbar .hp-nav .hp-nav-sub::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #fff;
  pointer-events: none;
}

.site-topbar .hp-nav .hp-nav-sub::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #000;
}

.site-topbar .hp-nav .hp-nav-has-sub.is-open > .hp-nav-sub {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%);
}

.site-topbar .hp-nav .hp-nav-sub li {
  display: block;
  height: auto;
  margin: 0;
}

.site-topbar .hp-nav .hp-nav-sub a,
.site-topbar .hp-nav .hp-nav-sub a:visited,
.site-topbar .hp-nav .hp-nav-sub a:focus {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 7px 16px 7px 14px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #fff !important;
  text-shadow: none !important;
  white-space: nowrap;
  line-height: 1.2 !important;
  background: transparent !important;
  filter: none !important;
}

.site-topbar .hp-nav .hp-nav-sub a::before {
  content: "»" !important;
  position: static !important;
  transform: none !important;
  color: #8a8a8a !important;
  font-size: 13px !important;
  text-shadow: none !important;
  letter-spacing: 0 !important;
}

.site-topbar .hp-nav .hp-nav-sub a:hover {
  color: #ffb84a !important;
  text-shadow:
    0 1px 0 #000,
    0 2px 0 rgba(0, 0, 0, 0.85),
    1px 1px 0 #000 !important;
  filter: none;
}

.site-topbar .hp-nav .hp-nav-sub a:hover::before {
  color: #ffb84a !important;
  text-shadow: 0 1px 0 #000 !important;
}

.site-topbar .hp-social {
  gap: 8px;
  justify-self: end;
  height: 100%;
  padding-left: 12px;
  display: flex;
  align-items: center;
}

.site-topbar .hp-social .hw-social-link {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.85);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-topbar .hp-social .hw-social-link:hover {
  background: rgba(255, 106, 0, 0.2);
  border-color: rgba(255, 210, 74, 0.45);
  color: #ffd24a;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .site-topbar .hp-topbar-inner {
    grid-template-columns: auto 1fr auto;
    height: 54px;
  }

  .hp-brand {
    padding-right: 8px;
    gap: 10px;
  }

  .site-topbar .hp-brand .logo-icon {
    width: 38px;
    height: 38px;
  }

  .site-topbar .hp-brand .logo-title {
    font-size: 0.92rem;
  }

  .site-topbar .hp-brand .logo-subtitle {
    font-size: 0.56rem;
    letter-spacing: 0.1em;
  }

  .site-topbar .hp-nav {
    grid-column: auto;
    justify-content: center;
    justify-self: center;
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
  }

  .site-topbar .hp-nav .hp-nav-sub {
    position: static;
    transform: none;
    left: auto;
    top: auto;
    min-width: 0;
    width: 100%;
    margin: 6px 0 0;
    padding: 8px 0;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: none;
  }

  .site-topbar .hp-nav .hp-nav-sub::before,
  .site-topbar .hp-nav .hp-nav-sub::after {
    display: none;
  }

  .site-topbar .hp-nav .hp-nav-has-sub.is-open > .hp-nav-sub {
    display: block;
  }

  .site-topbar .hp-nav .hw-nav-menu li.hp-nav-has-sub {
    flex-direction: column;
    align-items: stretch;
    height: auto;
  }
}

@media (max-width: 560px) {
  .site-topbar .hp-brand .logo-title {
    font-size: 0.82rem;
  }

  .site-topbar .hp-brand .logo-subtitle {
    font-size: 0.5rem;
    letter-spacing: 0.08em;
  }

  .site-topbar .hp-brand .logo-icon {
    width: 34px;
    height: 34px;
  }
}
