/* Header styles for PolishIndustrialService - builds on base.css */

.pis-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #0b1b2b 0%, #111827 50%, #0b1b2b 100%);
  color: #f9fafb;
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  backdrop-filter: blur(10px);
}

.pis-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;
}

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

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

.pis-header__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, #f97316 0, #ea580c 35%, #1f2937 80%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.35);
}

.pis-header__logo-icon {
  color: #e5e7eb;
  font-size: 1.1rem;
}

.pis-header__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.pis-header__brand-name {
  font-family: "Roboto Condensed", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.pis-header__brand-tagline {
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.75rem;
  color: #cbd5f5;
}

/* Navigation */

.pis-header__nav {
  display: flex;
}

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

.pis-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: #e5e7eb;
  padding: 0.35rem 0;
}

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

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

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

.pis-header__nav-link:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
  border-radius: 4px;
}

.pis-header__nav-item--cta .pis-header__nav-link {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
}

.pis-header__nav-link--cta {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #111827;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.4);
}

.pis-header__nav-link--cta:hover,
.pis-header__nav-link--cta:focus-visible {
  background: linear-gradient(135deg, #fb923c, #f97316);
  color: #030712;
}

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

/* Mobile toggle */

.pis-header__toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  cursor: pointer;
  padding: 0 10px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.pis-header__toggle-bar {
  width: 100%;
  height: 2px;
  background: #f9fafb;
  border-radius: 999px;
  transition: transform 0.18s ease-out, opacity 0.18s ease-out, width 0.18s ease-out;
}

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

/* Open state */

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

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

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

/* Mobile layout */

@media (max-width: 768px) {
  .pis-header__inner {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

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

  .pis-header__nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.5);
    transform-origin: top;
    transform: scaleY(0.9);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease-out, transform 0.18s ease-out, visibility 0.18s ease-out;
  }

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

  .pis-header__nav-link {
    width: 100%;
    padding: 0.4rem 0;
  }

  .pis-header--menu-open .pis-header__nav {
    opacity: 1;
    visibility: visible;
    transform: scaleY(1);
  }

  .pis-header__nav-item--cta {
    align-self: stretch;
  }

  .pis-header__nav-item--cta .pis-header__nav-link--cta {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 0.5rem;
  }
}

/* Medium and up */

@media (min-width: 769px) {
  .pis-header__nav {
    position: static;
  }
}

@media (max-width: 480px) {
  .pis-header__brand-name {
    font-size: 0.85rem;
  }

  .pis-header__brand-tagline {
    display: none;
  }
}
