/* Header styles for Zavero PL */

.zv-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #0f172a;
  color: #f9fafb;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  backdrop-filter: blur(14px);
}

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

.zv-header__brand {
  display: flex;
  align-items: center;
}

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

.zv-header__logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #38bdf8, #1e3a8a 40%, #020617 100%);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.4), 0 10px 25px rgba(15, 23, 42, 0.75);
}

.zv-header__logo-text {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.zv-header__logo-text--accent {
  color: #38bdf8;
}

.zv-header__nav {
  flex: 1 1 auto;
}

.zv-header__nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.zv-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  color: #e5e7eb;
  text-decoration: none;
  padding: 0.35rem 0;
  transition: color 0.18s ease-out;
}

.zv-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  transition: width 0.2s ease-out;
}

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

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

.zv-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.zv-header__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  border: 1px solid transparent;
  text-decoration: none;
  color: #e5e7eb;
  background: transparent;
  transition: background-color 0.18s ease-out, color 0.18s ease-out, border-color 0.18s ease-out, box-shadow 0.18s ease-out;
}

.zv-header__action--primary {
  background: linear-gradient(135deg, #0ea5e9, #38bdf8);
  color: #0b1120;
  border-color: transparent;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(8, 47, 73, 0.4);
}

.zv-header__action--primary:hover,
.zv-header__action--primary:focus-visible {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #020617;
}

.zv-header__action--icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 999px;
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.8);
}

.zv-header__action--icon i {
  font-size: 0.95rem;
}

.zv-header__action--icon:hover,
.zv-header__action--icon:focus-visible {
  background: rgba(30, 64, 175, 0.9);
  border-color: #38bdf8;
  color: #e0f2fe;
}

.zv-header__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
  cursor: pointer;
  transition: background-color 0.18s ease-out, border-color 0.18s ease-out, box-shadow 0.18s ease-out, transform 0.18s ease-out;
}

.zv-header__toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background-color: #e5e7eb;
  transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}

.zv-header__toggle:focus-visible,
.zv-header__action:focus-visible,
.zv-header__nav-link:focus-visible,
.zv-header__logo-link:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
}

/* Mobile layout */
@media (max-width: 768px) {
  .zv-header__inner {
    padding: 0.5rem 1rem;
  }

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

  .zv-header__nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #020617;
    border-bottom: 1px solid rgba(30, 64, 175, 0.6);
    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;
  }

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

  .zv-header__nav-link {
    padding-block: 0.55rem;
  }

  .zv-header__actions {
    display: none;
  }

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

  .zv-header--menu-open .zv-header__toggle {
    border-color: #38bdf8;
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.8);
  }

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

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

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

/* Medium and up */
@media (min-width: 769px) {
  .zv-header__nav {
    display: block;
  }
}
