/* Header styles for PolishB2BServices */

.pbs-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #0b1b3b; /* deep blue */
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

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

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

.pbs-header__logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #00a2b8, #27ae60);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.pbs-header__logo-text {
  display: flex;
  flex-direction: column;
}

.pbs-header__logo-name {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
}

.pbs-header__logo-tagline {
  font-size: 0.75rem;
  opacity: 0.85;
}

.pbs-header__nav {
  display: flex;
}

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

.pbs-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: #e5efff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.pbs-header__nav-link::after {
  content: "";
  position: absolute;
  inset: auto 0 -0.2rem 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00a2b8, #27ae60);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.pbs-header__nav-link:hover,
.pbs-header__nav-link:focus-visible {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  outline: none;
}

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

.pbs-header__nav-link--cta {
  background: linear-gradient(135deg, #00a2b8, #27ae60);
  color: #ffffff;
  padding-inline: 1rem;
}

.pbs-header__nav-link--cta:hover,
.pbs-header__nav-link--cta:focus-visible {
  background: linear-gradient(135deg, #00b8d0, #2ecc71);
}

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

/* Mobile toggle */
.pbs-header__toggle {
  display: none;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pbs-header__toggle:focus-visible {
  outline: 2px solid #00a2b8;
  outline-offset: 2px;
}

.pbs-header__toggle-bar {
  position: absolute;
  width: 1.3rem;
  height: 2px;
  border-radius: 999px;
  background-color: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

.pbs-header__toggle-bar:nth-child(1) {
  top: 0.85rem;
}

.pbs-header__toggle-bar:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.pbs-header__toggle-bar:nth-child(3) {
  bottom: 0.85rem;
}

.pbs-header__toggle--open .pbs-header__toggle-bar:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

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

.pbs-header__toggle--open .pbs-header__toggle-bar:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

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

  .pbs-header__logo-tagline {
    display: none;
  }

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

  .pbs-header__nav {
    position: fixed;
    inset: 3.75rem 0 auto 0;
    background-color: #0b1b3b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-120%);
    transition: transform 0.2s ease;
  }

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

  .pbs-header__nav-item {
    width: 100%;
  }

  .pbs-header__nav-link,
  .pbs-header__nav-link--cta {
    width: 100%;
    justify-content: flex-start;
    padding: 0.7rem 0.85rem;
  }

  .pbs-header__nav-link::after {
    display: none;
  }

  .pbs-header__nav--open {
    transform: translateY(0);
  }

  body.pbs-header--nav-open {
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pbs-header__nav,
  .pbs-header__nav-link,
  .pbs-header__toggle-bar {
    transition: none !important;
  }
}
