/* Header styles for LocalPrintpl */

.lp-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #050b18;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

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

.lp-header__brand {
  display: flex;
  align-items: center;
}

.lp-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 0.6rem;
}

.lp-header__logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: radial-gradient(circle at 30% 30%, #ff4b5c 0, #c1121f 40%, #091228 100%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.14), 0 10px 25px rgba(0, 0, 0, 0.5);
}

.lp-header__logo-text {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Navigation */

.lp-header__nav {
  display: flex;
}

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

.lp-header__nav-link {
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.18s ease-out;
}

.lp-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff4b5c, #ffb703);
  transition: width 0.18s ease-out;
}

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

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

.lp-header__nav-link:focus-visible {
  outline: 2px solid #ffb703;
  outline-offset: 3px;
  border-radius: 4px;
}

.lp-header__nav-item--cta .lp-header__nav-link--cta {
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff4b5c, #ffb703);
  color: #050b18;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

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

.lp-header__nav-item--cta .lp-header__nav-link--cta:hover,
.lp-header__nav-item--cta .lp-header__nav-link--cta:focus-visible {
  background: linear-gradient(135deg, #ff3649, #ffca3a);
  color: #050b18;
}

/* Mobile toggle */

.lp-header__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(5, 11, 24, 0.85);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.lp-header__toggle:focus-visible {
  outline: 2px solid #ffb703;
  outline-offset: 3px;
}

.lp-header__toggle-bar {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background-color: #ffffff;
  display: block;
  transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}

.lp-header__toggle-bar + .lp-header__toggle-bar {
  margin-top: 4px;
}

/* Open state (class toggled by JS) */

.lp-header--menu-open .lp-header__toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.lp-header--menu-open .lp-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.lp-header--menu-open .lp-header__toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile layout */

@media (max-width: 768px) {
  .lp-header__inner {
    padding: 0.6rem 1rem;
  }

  .lp-header__toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .lp-header__nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: rgba(5, 11, 24, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transform-origin: top center;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease-out, transform 0.18s ease-out, visibility 0.18s;
  }

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

  .lp-header__nav-link {
    padding: 0.4rem 0.1rem;
    width: 100%;
  }

  .lp-header__nav-item--cta .lp-header__nav-link--cta {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
  }

  .lp-header--menu-open .lp-header__nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
}

/* Medium screens */

@media (min-width: 769px) and (max-width: 1024px) {
  .lp-header__inner {
    padding-inline: 1.5rem;
  }

  .lp-header__nav-list {
    gap: 1.2rem;
  }

  .lp-header__logo-text {
    font-size: 1rem;
  }
}

/* High contrast support */

@media (prefers-contrast: more) {
  .lp-header {
    border-bottom-color: rgba(255, 255, 255, 0.25);
  }

  .lp-header__nav-link {
    color: #ffffff;
  }
}
