/* Header styles for Zoravia CZ */

.zc-header {
  position: sticky;
  top: 0;
  z-index: 45;
}

.zc-header-inner {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-border-subtle);
}

.zc-header-bar {
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

/* Branding */
.zc-header-brand {
  display: flex;
  align-items: center;
}

.zc-header-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.zc-header-logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-pill);
  background-image: var(--gradient-rainbow-strong);
  box-shadow: var(--shadow-sm);
}

.zc-header-logo-text {
  display: flex;
  flex-direction: column;
}

.zc-header-logo-title {
  font-weight: 700;
  font-size: var(--font-size-lg);
  letter-spacing: -0.02em;
}

.zc-header-logo-subtitle {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* Navigation */
.zc-header-nav {
  display: flex;
  align-items: center;
}

.zc-header-menu {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.zc-header-item {
  display: flex;
  align-items: center;
}

.zc-header-link {
  position: relative;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--gray-700);
  padding: 0.25rem 0;
}

.zc-header-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.1rem;
  width: 0;
  height: 2px;
  border-radius: var(--radius-pill);
  background-image: var(--gradient-rainbow-strong);
  transition: width var(--transition-base);
}

.zc-header-link:hover::after,
.zc-header-link:focus-visible::after {
  width: 100%;
}

.zc-header-cta .button {
  font-size: var(--font-size-xs);
  padding-inline: 1.1rem;
}

/* Mobile toggle */
.zc-header-toggle {
  display: inline-flex;
  flex-direction: column;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.zc-header-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  width: 1.2rem;
}

.zc-header-toggle-icon span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: var(--radius-pill);
  background: var(--gray-800);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* Mobile layout default (no JS) */
@media (max-width: 767.98px) {
  .zc-header-bar {
    height: auto;
    padding-block: 0.6rem;
  }

  .zc-header-menu {
    position: absolute;
    inset-inline: 0;
    top: calc(var(--age-banner-height) + var(--nav-height));
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4);
    gap: var(--space-3);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--color-border-subtle);
  }

  .zc-header-cta {
    width: 100%;
  }

  .zc-header-cta .button {
    width: 100%;
    justify-content: center;
  }
}

/* JS-enhanced states */
@media (max-width: 767.98px) {
  .js-nav-enhanced .zc-header-menu {
    display: none;
  }

  .js-nav-enhanced .zc-header-menu.is-open {
    display: flex;
  }

  .zc-header-toggle.is-active .zc-header-toggle-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .zc-header-toggle.is-active .zc-header-toggle-icon span:nth-child(2) {
    opacity: 0;
  }

  .zc-header-toggle.is-active .zc-header-toggle-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

@media (min-width: 768px) {
  .zc-header-toggle {
    display: none;
  }
}

/* Sticky CTA button on mobile */
.zc-sticky-cta-btn {
  width: 100%;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.zc-sticky-cta-btn i {
  font-size: 0.9rem;
}
