/* Header styles for Ink Distriict */
.id-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(3, 3, 3, 0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.id-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.id-header__branding {
  display: flex;
  align-items: center;
}

.id-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #f5f5f5;
}

.id-header__logo-mark {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 250, 250, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: radial-gradient(circle at 10% 0%, #1a1a1a 0, #050505 52%, #111 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02), 0 16px 40px rgba(0, 0, 0, 0.8);
}

.id-header__logo-text {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #fafafa;
  white-space: nowrap;
}

/* Navigation */
.id-header__nav {
  display: flex;
}

.id-header__nav-list {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.id-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  font-family: "Questrial", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e0e0e0;
  padding: 0.25rem 0;
}

.id-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #ffffff, #999999);
  transition: width 0.18s ease-out;
}

.id-header__nav-link:hover::after,
.id-header__nav-link:focus-visible::after {
  width: 100%;
}

.id-header__nav-link:hover,
.id-header__nav-link:focus-visible {
  color: #ffffff;
}

.id-header__nav-item--cta {
  margin-left: 0.2rem;
}

.id-header__nav-link--cta {
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: radial-gradient(circle at 0 0, rgba(255, 255, 255, 0.12), rgba(17, 17, 17, 0.96));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
}

.id-header__nav-link--cta::after {
  display: none;
}

.id-header__nav-link--cta:hover,
.id-header__nav-link--cta:focus-visible {
  border-color: #ffffff;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85);
}

/* Mobile toggle */
.id-header__toggle {
  display: none;
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(10, 10, 10, 0.95);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.id-header__toggle-bar {
  position: absolute;
  width: 1.2rem;
  height: 2px;
  background: #f5f5f5;
  transition: transform 0.18s ease-out, opacity 0.14s ease-out, top 0.16s ease-out, bottom 0.16s ease-out;
}

.id-header__toggle-bar:nth-child(1) {
  top: 0.8rem;
}

.id-header__toggle-bar:nth-child(2) {
  top: 1.15rem;
}

.id-header__toggle-bar:nth-child(3) {
  bottom: 0.8rem;
}

.id-header__toggle.is-open .id-header__toggle-bar:nth-child(1) {
  top: 1.15rem;
  transform: rotate(45deg);
}

.id-header__toggle.is-open .id-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.id-header__toggle.is-open .id-header__toggle-bar:nth-child(3) {
  bottom: 1.15rem;
  transform: rotate(-45deg);
}

/* Focus states */
.id-header__logo-link:focus-visible,
.id-header__toggle:focus-visible,
.id-header__nav-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 768px) {
  .id-header__inner {
    padding-inline: 1rem;
  }

  .id-header__toggle {
    display: inline-flex;
  }

  .id-header__nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: rgba(3, 3, 3, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform-origin: top;
    transform: scaleY(1);
  }

  .id-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 1.25rem 1rem;
  }

  .id-header__nav-item--cta {
    width: 100%;
  }

  .id-header__nav-link--cta {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* JS will toggle this class on body; base.css should ensure nav is visible when JS is disabled */
  body.id-nav-collapsed .id-header__nav {
    display: none;
  }

  body.id-nav-open .id-header__nav {
    display: block;
  }
}

@media (min-width: 769px) {
  body.id-nav-collapsed .id-header__nav,
  body.id-nav-open .id-header__nav {
    display: flex;
  }
}
