/* Header-specific styles for Carpat Quest */

.cq-header {
  background: linear-gradient(to bottom, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.9));
}

.cq-header__inner {
  min-height: 64px;
}

.cq-header__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.cq-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.cq-header__logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: radial-gradient(circle at 20% 0, rgba(34, 197, 94, 0.6), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(55, 65, 81, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.9);
  position: relative;
  overflow: hidden;
}

.cq-header__logo-chip {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.6), 0 0 14px rgba(34, 197, 94, 0.8);
}

.cq-header__text-group {
  display: flex;
  flex-direction: column;
}

.cq-header__title {
  font-family: var(--font-heading);
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.96rem;
}

.cq-header__subtitle {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cq-header__nav-wrapper {
  display: flex;
  align-items: center;
}

.cq-header__nav-list {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cq-header__nav-item {
  list-style: none;
}

.cq-header__nav-cta .cq-header__cta-link {
  padding-inline: 16px;
  padding-block: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(34, 197, 94, 0.85);
  background: radial-gradient(circle at 10% 0%, #22c55e, #16a34a 40%, #15803d 100%);
  color: #03150a;
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.35);
}

.cq-header__cta-link:hover {
  color: #010b05;
}

.cq-header__cta-link::after {
  content: "\f061";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.65rem;
}

/* Mobile menu toggle */

.cq-header__toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
  background-color: rgba(15, 23, 42, 0.95);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 4px;
}

.cq-header__toggle-bar {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--color-text);
  transition: transform var(--transition-base), opacity var(--transition-base), top var(--transition-base), bottom var(--transition-base);
}

.cq-header__toggle--open .cq-header__toggle-bar:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}

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

.cq-header__toggle--open .cq-header__toggle-bar:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}

/* Responsive layout */

@media (max-width: 768px) {
  .cq-header__toggle {
    display: inline-flex;
  }

  .cq-header__nav-wrapper {
    position: fixed;
    inset-inline: 0;
    top: 56px;
    background: rgba(2, 6, 23, 0.98);
    border-bottom: 1px solid var(--color-border-strong);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-base), opacity var(--transition-base);
  }

  .cq-header__nav-wrapper--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .cq-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4);
    gap: var(--space-3);
  }

  .cq-header__nav-cta {
    width: 100%;
  }

  .cq-header__nav-cta .cq-header__cta-link {
    justify-content: center;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .cq-header__subtitle {
    display: none;
  }
}
