/* PolishWarehouse - Header Styles */

.pw-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0f172a; /* navy-ish */
  color: #f9fafb;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

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

.pw-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.pw-header__logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.4rem;
  background: linear-gradient(135deg, #0f172a 0%, #1f2937 55%, #f97316 100%);
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.6), 0 10px 18px rgba(15, 23, 42, 0.65);
  position: relative;
}

.pw-header__logo-mark::before,
.pw-header__logo-mark::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 0.25rem;
  border: 1px solid rgba(248, 250, 252, 0.6);
}

.pw-header__logo-mark::after {
  inset: 32%;
  border-color: rgba(248, 250, 252, 0.85);
}

.pw-header__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.pw-header__brand-name {
  font-family: "Oswald", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1rem;
}

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

/* Navigation */

.pw-header__nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

.pw-header__nav-link {
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  color: #e5e7eb;
  text-decoration: none;
  position: relative;
  padding-block: 0.25rem;
}

.pw-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #f97316;
  transition: width 0.18s ease-out;
}

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

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

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

/* Call-to-action button */

.pw-header__cta-wrapper {
  margin-left: 0.5rem;
}

.pw-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: #f97316;
  color: #0f172a!important;
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.45);
  transition: background 0.15s ease-out, color 0.15s ease-out, box-shadow 0.15s ease-out, transform 0.1s ease-out;
}

.pw-header__cta:hover {
  background: #fb923c;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.6);
  transform: translateY(-1px);
}

.pw-header__cta:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.5);
}

.pw-header__cta:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

/* Mobile toggle */

.pw-header__toggle {
  display: none;
  background: transparent;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  padding: 0.4rem 0.5rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
}

.pw-header__toggle-bar {
  width: 1.2rem;
  height: 2px;
  background: #e5e7eb;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease, width 0.2s ease;
}

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

/* Toggle animation when active */

.pw-header__toggle[aria-expanded="true"] .pw-header__toggle-bar:nth-child(1) {
  transform: translateY(4px) rotate(42deg);
}

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

.pw-header__toggle[aria-expanded="true"] .pw-header__toggle-bar:nth-child(3) {
  transform: translateY(-4px) rotate(-42deg);
}

/* Responsive */

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

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

  .pw-header__nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #020617;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    transform-origin: top;
    transform: scaleY(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
    flex-direction: column;
    align-items: stretch;
    padding-inline: 1rem;
    padding-bottom: 0.75rem;
  }

  .pw-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    padding-top: 0.35rem;
  }

  .pw-header__nav-link {
    display: block;
    width: 100%;
    padding-block: 0.45rem;
  }

  .pw-header__nav-link::after {
    bottom: 0.15rem;
  }

  .pw-header__cta-wrapper {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .pw-header__cta {
    width: 100%;
    justify-content: center;
  }

  .pw-header__nav--open {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }
}

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

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