/* Header-specific styles for Zlatovia */

.zla-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.zla-header-inner {
  position: relative;
}

/* Logo styling */
.zla-header-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 59, 141, 0.06), rgba(59, 130, 246, 0.06));
}

.zla-header-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: conic-gradient(from 160deg, var(--color-primary), var(--color-accent-yellow), var(--color-secondary), var(--color-accent-teal));
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.zla-header-logo-mark-inner {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
}

.zla-header-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--color-text);
}

/* Desktop nav layout */
.zla-header-nav {
  display: flex;
  align-items: center;
}

.zla-header-nav-left {
  margin-right: auto;
}

.zla-header-nav-right {
  margin-left: auto;
}

.zla-header-nav-list {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.zla-header-nav-item--desktop-only {
  display: inline-flex;
}

.zla-header-nav-item--cta .zla-header-cta {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.zla-header-cta {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background-color: rgba(248, 250, 252, 0.9);
}

.zla-header-cta:hover {
  background-color: #ffffff;
}

/* Mobile toggle */
.zla-header-toggle {
  display: none;
  position: absolute;
  left: 0.75rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  background-color: rgba(248, 250, 252, 0.9);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.zla-header-toggle-bar {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--color-text);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.zla-header-toggle-bar + .zla-header-toggle-bar {
  margin-top: 3px;
}

.zla-header-toggle.is-active .zla-header-toggle-bar:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.zla-header-toggle.is-active .zla-header-toggle-bar:nth-child(2) {
  opacity: 0;
}

.zla-header-toggle.is-active .zla-header-toggle-bar:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

/* Mobile nav panel */
.zla-header-mobile {
  position: absolute;
  inset-inline: 0;
  top: calc(var(--header-height));
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.zla-header-mobile-list {
  display: flex;
  flex-direction: column;
  padding: 0.9rem 0;
  gap: 0.1rem;
}

.zla-header-mobile-item a.nav-link {
  display: block;
  padding: 0.65rem 0.5rem;
}

.zla-header-mobile-item--cta {
  padding: 0.6rem 0.5rem 0.2rem;
}

.zla-header-mobile-item--cta .btn-primary {
  width: 100%;
}

/* State class when mobile menu is open */
.zla-header-mobile--open {
  animation: zla-header-slide-down 200ms ease-out forwards;
}

@keyframes zla-header-slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive behavior */
@media (max-width: 960px) {
  .zla-header-toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .zla-header-nav-left,
  .zla-header-nav-right {
    display: none;
  }

  .zla-header-nav-item--desktop-only {
    display: none;
  }
}

@media (max-width: 600px) {
  .zla-header-logo-link {
    padding-inline: 0.6rem;
  }

  .zla-header-logo-text {
    font-size: 0.74rem;
  }
}
