/* Header component for PolishBrandingPro */

.pbp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 11, 26, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

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

.pbp-header__logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 0.9rem;
  background: radial-gradient(circle at 20% 0, #ff7a68, #d83a26 55%, #b02010 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: #ffffff;
}

.pbp-header__logo-text {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f9fafb;
}

.pbp-header__nav {
  display: flex;
}

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

.pbp-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e5e7eb;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.pbp-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff7a68, #ffb347);
  border-radius: 999px;
  transition: width 0.2s ease;
}

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

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

.pbp-header__nav-item--cta .pbp-header__nav-link--cta {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 104, 0.5);
  background: linear-gradient(135deg, #ff7a68, #ffb347);
  color: #050b1a;
  box-shadow: 0 10px 25px rgba(255, 122, 104, 0.35);
}

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

.pbp-header__nav-item--cta .pbp-header__nav-link--cta:hover,
.pbp-header__nav-item--cta .pbp-header__nav-link--cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(255, 122, 104, 0.45);
}

/* Mobile toggle */

.pbp-header__toggle {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  color: #e5e7eb;
}

.pbp-header__toggle-line {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease, bottom 0.18s ease;
}

.pbp-header__toggle-line:nth-child(1) {
  top: 13px;
}

.pbp-header__toggle-line:nth-child(2) {
  top: 19px;
}

.pbp-header__toggle-line:nth-child(3) {
  bottom: 13px;
}

.pbp-header__toggle[aria-expanded="true"] .pbp-header__toggle-line:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}

.pbp-header__toggle[aria-expanded="true"] .pbp-header__toggle-line:nth-child(2) {
  opacity: 0;
}

.pbp-header__toggle[aria-expanded="true"] .pbp-header__toggle-line:nth-child(3) {
  bottom: 19px;
  transform: rotate(-45deg);
}

/* Responsive layout */

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

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

  .pbp-header__nav {
    position: fixed;
    inset: 64px 0 auto 0;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.2s ease-out, opacity 0.2s ease-out, visibility 0.2s;
    background: radial-gradient(circle at 0 0, rgba(255, 122, 104, 0.08), transparent 55%),
      rgba(5, 11, 26, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  }

  .pbp-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.1rem 1.25rem 1.25rem;
    gap: 0.75rem;
  }

  .pbp-header__nav-link {
    font-size: 0.95rem;
  }

  .pbp-header__nav--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

/* Focus styles */

.pbp-header__logo-link:focus-visible,
.pbp-header__toggle:focus-visible,
.pbp-header__nav-link:focus-visible {
  outline: 2px solid #ffb347;
  outline-offset: 2px;
}
