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

.shell-header__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding-block: var(--space-4);
  padding-inline: var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

.shell-header__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
}

.shell-header__brand-text {
  display: flex;
  flex-direction: column;
}

.shell-header__brand-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shell-header__brand-subtitle {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
}

/* Nav layout */
.shell-header__nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.shell-header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-soft);
}

.shell-header__nav-item a {
  padding-block: 0.25rem;
  border-bottom: 1px solid transparent;
}

.shell-header__nav-item a:hover,
.shell-header__nav-item a:focus-visible {
  color: var(--color-primary-deep);
  border-color: rgba(198, 69, 51, 0.5);
}

/* CTA alignment */
.shell-header__cta {
  flex-shrink: 0;
}

/* Mobile toggle */
.shell-header__menu-toggle {
  display: none;
  align-items: center;
  gap: var(--space-3);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-soft);
  background-color: rgba(255, 250, 243, 0.96);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-soft);
  box-shadow: var(--shadow-soft);
}

.shell-header__menu-toggle:hover {
  border-color: rgba(198, 69, 51, 0.4);
}

.shell-header__menu-icon {
  width: 18px;
  height: 14px;
  position: relative;
}

.shell-header__menu-icon span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(135deg, #c64533, #d7a022);
  transition: transform var(--transition-base), opacity var(--transition-fast), top var(--transition-base), bottom var(--transition-base);
}

.shell-header__menu-icon span:first-child {
  top: 0;
}

.shell-header__menu-icon span:last-child {
  bottom: 0;
}

.shell-header__menu-toggle[aria-expanded="true"] .shell-header__menu-icon span:first-child {
  top: 6px;
  transform: rotate(45deg);
}

.shell-header__menu-toggle[aria-expanded="true"] .shell-header__menu-icon span:last-child {
  bottom: 6px;
  transform: rotate(-45deg);
}

.shell-header__menu-toggle[aria-expanded="true"] .shell-header__menu-label::after {
  content: " bezár";
}

/* Backdrop for mobile nav */
.shell-header__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 14, 5, 0.38);
  backdrop-filter: blur(4px);
  z-index: -1;
}

.shell-header__backdrop.is-visible {
  z-index: 30;
}

/* Mobile nav panel */
@media (max-width: 768px) {
  .shell-header__inner {
    padding-inline: var(--space-6);
  }

  .shell-header__nav {
    position: fixed;
    inset: 76px var(--space-6) auto var(--space-6);
    max-width: 420px;
    margin-inline: auto;
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at top left, #fffaf3 0, #ffffff 55%, #fbf3e5 100%);
    box-shadow: var(--shadow-elevated);
    padding: var(--space-6);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base), transform var(--transition-base);
  }

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

  .shell-header__nav-item--hide-mobile {
    display: none;
  }

  .shell-header__menu-toggle {
    display: inline-flex;
  }

  .shell-header__cta {
    display: none;
  }

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

@media (max-width: 520px) {
  .shell-header__brand-subtitle {
    display: none;
  }
}

@media (min-width: 769px) {
  .shell-header__backdrop {
    display: none;
  }
}
