/* Header styles for PolishLogisticshub */

.plh-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 26, 44, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(151, 171, 194, 0.25);
}

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

.plh-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #f7fbff;
  white-space: nowrap;
}

.plh-header__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 0.75rem;
  background: radial-gradient(circle at 30% 20%, #36b9ff, #0b314a 55%, #020b13 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.plh-header__logo-icon {
  font-family: "Roboto Slab", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e9f4ff;
}

.plh-header__brand-text {
  display: flex;
  flex-direction: column;
}

.plh-header__brand-name {
  font-family: "Roboto Slab", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.plh-header__brand-tagline {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ab4ce;
}

/* Navigation */

.plh-header__nav {
  margin-left: auto;
}

.plh-header__nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.plh-header__nav-item {
  position: relative;
}

.plh-header__nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #dbe8f5;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.08s ease;
}

.plh-header__nav-link:hover,
.plh-header__nav-link:focus-visible {
  background-color: rgba(80, 162, 227, 0.16);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(111, 191, 255, 0.65);
  outline: none;
}

.plh-header__nav-link:active {
  transform: translateY(1px);
  box-shadow: 0 0 0 1px rgba(111, 191, 255, 0.85);
}

.plh-header__nav-item--cta .plh-header__nav-link--cta {
  background: linear-gradient(135deg, #3fb4ff, #3b82f6);
  color: #04101e;
  box-shadow: 0 8px 18px rgba(21, 123, 210, 0.55);
}

.plh-header__nav-item--cta .plh-header__nav-link--cta:hover,
.plh-header__nav-item--cta .plh-header__nav-link--cta:focus-visible {
  background: linear-gradient(135deg, #59c3ff, #4f8df7);
  color: #020710;
}

/* Mobile toggle */

.plh-header__toggle {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  margin-left: auto;
  border-radius: 999px;
  border: 1px solid rgba(150, 176, 204, 0.6);
  background: radial-gradient(circle at 30% 20%, rgba(63, 180, 255, 0.16), rgba(4, 14, 25, 0.96));
  cursor: pointer;
  color: #f1f7ff;
}

.plh-header__toggle-bar {
  width: 1.3rem;
  height: 2px;
  border-radius: 999px;
  background-color: currentColor;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.plh-header__toggle:focus-visible {
  outline: 2px solid #7bc2ff;
  outline-offset: 3px;
}

/* Open state animations */

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

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

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

/* Layout: mobile-first */

.plh-header__nav {
  position: fixed;
  inset-inline: 0;
  top: 3.5rem;
  background: radial-gradient(circle at 0 0, rgba(63, 180, 255, 0.16), rgba(2, 8, 16, 0.98));
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.18s ease-out, opacity 0.18s ease-out, visibility 0.18s linear;
}

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

.plh-header__nav-link {
  width: 100%;
  justify-content: flex-start;
}

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

/* Ensure nav is usable without JS: show as static block under header when no JS toggling */

.no-js .plh-header__nav {
  position: static;
  transform: none;
  opacity: 1;
  visibility: visible;
  background: transparent;
}

.no-js .plh-header__toggle {
  display: none;
}

/* Larger screens */

@media (min-width: 768px) {
  .plh-header__inner {
    padding-inline: 1.5rem;
  }

  .plh-header__toggle {
    display: none;
  }

  .plh-header__nav {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: transparent;
  }

  .plh-header__nav-list {
    flex-direction: row;
    padding: 0;
  }

  .plh-header__nav-link {
    width: auto;
    justify-content: center;
  }
}

@media (min-width: 1024px) {
  .plh-header__inner {
    max-width: 1280px;
  }

  .plh-header__brand-name {
    font-size: 1.1rem;
  }

  .plh-header__brand-tagline {
    font-size: 0.75rem;
  }
}
