/* Header styles for PolishBiznetwork */

.pb-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #0b4ca8 0%, #0f6bdc 50%, #0b4ca8 100%);
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

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

.pb-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.pb-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.pb-header__logo-link:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.pb-header__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.75rem;
  background: #ffffff;
  color: #0b4ca8;
  font-weight: 700;
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
}

.pb-header__logo-text {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* Navigation */

.pb-header__nav {
  display: flex;
}

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

.pb-header__nav-item {}

.pb-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  color: #e6f1ff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.pb-header__nav-link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  opacity: 0;
  transform: scaleX(0.5);
  transform-origin: center;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.pb-header__nav-link:hover,
.pb-header__nav-link:focus-visible {
  background: rgba(10, 15, 30, 0.12);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.pb-header__nav-link:hover::after,
.pb-header__nav-link:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.pb-header__nav-link:focus-visible {
  outline: none;
}

.pb-header__nav-item--highlight .pb-header__nav-link--primary {
  background: #ffffff;
  color: #0b4ca8;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.pb-header__nav-item--highlight .pb-header__nav-link--primary:hover,
.pb-header__nav-item--highlight .pb-header__nav-link--primary:focus-visible {
  background: #f4f7ff;
  color: #06306a;
  transform: translateY(-1px);
}

/* Mobile toggle */

.pb-header__toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(5, 31, 80, 0.4);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

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

.pb-header__toggle:hover {
  background: rgba(5, 31, 80, 0.7);
  border-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.pb-header__toggle-bar {
  position: absolute;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease, bottom 0.18s ease;
}

.pb-header__toggle-bar:nth-child(1) {
  top: 13px;
}

.pb-header__toggle-bar:nth-child(2) {
  top: 19px;
}

.pb-header__toggle-bar:nth-child(3) {
  top: 25px;
}

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

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

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

/* Responsive behavior */

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

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

  .pb-header__nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 56px;
    background: rgba(3, 18, 48, 0.98);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .pb-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1.25rem;
    gap: 0.25rem;
  }

  .pb-header__nav-link {
    justify-content: space-between;
    padding: 0.7rem 0.9rem;
    border-radius: 0.75rem;
    font-size: 1rem;
  }

  .pb-header__nav-item--highlight .pb-header__nav-link--primary {
    justify-content: center;
    margin-top: 0.4rem;
  }

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

  .pb-header--no-scroll {
    overflow: hidden;
  }
}

@media (min-width: 769px) {
  .pb-header__nav {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}
