/* Header-specific styles for Cantina y Cartas */

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

.header-inner {
  height: var(--header-height);
}

.site-branding {
  display: flex;
  align-items: center;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #ffffff, rgba(92, 141, 243, 0.4));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
  position: relative;
}

.brand-chip {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(243, 154, 200, 0.9);
  box-shadow: inset 0 0 0 2px rgba(92, 141, 243, 0.7);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  line-height: var(--line-height-tight);
}

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

/* Navigation */
.nav {
  position: fixed;
  inset-inline: 0;
  top: var(--header-height);
  background: rgba(247, 249, 255, 0.98);
  backdrop-filter: blur(16px);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.nav-list {
  flex-direction: column;
  padding: var(--space-3) var(--space-4) var(--space-4);
}

.nav-item-cta .nav-link--cta {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.nav-item-cta .nav-link--cta:hover {
  color: #ffffff;
}

/* Desktop layout */
@media (min-width: 960px) {
  .nav {
    position: static;
    max-height: none;
    background: transparent;
    overflow: visible;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    padding: 0;
  }
}

/* Mobile open state (controlled via JS) */
.header.nav-open .nav {
  max-height: 320px;
}

.header.nav-open .nav-toggle {
  box-shadow: var(--shadow-sm);
}

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

.header.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

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

/* Nav toggle alignment tweak for small screens */
@media (max-width: 959.98px) {
  .header-inner {
    gap: var(--space-4);
  }
}
