/* Header-specific styles for Distriict24 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.header-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.header-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, #ffffff, var(--color-primary-soft));
  color: var(--color-primary-deep);
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 10px 24px rgba(38, 5, 92, 0.16);
}

.header-logo-text {
  display: flex;
  flex-direction: column;
}

.header-logo-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary-deep);
}

.header-logo-subtitle {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Desktop nav enhancements */
.header-nav-list {
  align-items: center;
}

.header-nav-link {
  position: relative;
}

.header-nav-link--highlight {
  padding-inline: 1rem;
  padding-block: 0.45rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #a889ff, #7e4bff 45%, #4a1f88 100%);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.header-nav-link--highlight::after {
  display: none;
}

.header-nav-link--highlight:hover {
  box-shadow: var(--shadow-medium);
}

/* Mobile nav */
.header-nav-mobile {
  display: none;
  background: linear-gradient(150deg, #ffffff 0%, #f6f2fb 40%, #f9f5f1 100%);
  border-bottom: 1px solid rgba(226, 221, 232, 0.7);
}

.header-nav-mobile--open {
  display: block;
}

.header-nav-mobile-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 0.75rem 1rem;
}

.header-nav-mobile-link {
  display: block;
  padding: 0.55rem 0.1rem;
  font-size: 0.9rem;
  color: var(--color-gray-800);
}

.header-nav-mobile-link--primary {
  margin-top: 0.25rem;
  margin-bottom: 0.2rem;
  padding: 0.65rem 0.1rem;
  border-radius: var(--radius-pill);
  text-align: center;
  background: linear-gradient(135deg, #a889ff, #7e4bff 45%, #4a1f88 100%);
  color: #ffffff;
}

/* When JS is disabled, keep mobile menu visible on small screens only via CSS if needed.
   JavaScript will manage open/close classes dynamically. */

@media (min-width: 960px) {
  .header-nav-mobile {
    display: none !important;
  }
}
