/* Kitchen Furnio - Header Styles */

.kf-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: rgba(245, 245, 247, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-border-subtle);
}

.kf-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.kf-header__brand {
  display: flex;
  align-items: center;
}

.kf-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-serif);
  font-size: var(--font-size-xl);
  color: var(--color-text);
}

.kf-header__logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 30% 70% 60% 40%;
  background: radial-gradient(circle at 30% 20%, #fdf8f3 0, #f7e7d4 45%, #c28a5b 100%);
  box-shadow: var(--shadow-soft);
}

.kf-header__logo-text {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--font-size-sm);
}

/* Navigation */

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

.kf-header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.kf-header__nav-link {
  position: relative;
  font-size: var(--font-size-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 0.25rem 0;
}

.kf-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 0;
  height: 2px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-strong));
  transition: width var(--transition-base);
}

.kf-header__nav-link:hover,
.kf-header__nav-link:focus-visible {
  color: var(--color-text);
}

.kf-header__nav-link:hover::after,
.kf-header__nav-link:focus-visible::after {
  width: 100%;
}

.kf-header__nav-item--accent .kf-header__nav-link {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(194, 138, 91, 0.4);
  background-color: rgba(234, 216, 199, 0.4);
}

.kf-header__nav-link--cta {
  color: var(--color-text);
}

.kf-header__nav-item--accent .kf-header__nav-link::after {
  display: none;
}

.kf-header__nav-item--accent .kf-header__nav-link:hover,
.kf-header__nav-item--accent .kf-header__nav-link:focus-visible {
  background-color: rgba(234, 216, 199, 0.9);
  border-color: var(--color-primary-strong);
}

/* Mobile toggle */

.kf-header__toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-subtle);
  background-color: var(--color-surface);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.kf-header__toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: var(--radius-full);
  background-color: var(--color-text);
  transition: transform var(--transition-base), opacity var(--transition-base), width var(--transition-base);
}

.kf-header__toggle:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

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

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

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

/* Responsive behavior */

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

  .kf-header__nav {
    position: fixed;
    inset: 64px 0 auto 0;
    background-color: rgba(245, 245, 247, 0.98);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--color-border-subtle);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-base), opacity var(--transition-base);
  }

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

  .kf-header--menu-open .kf-header__nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .kf-header__nav-item--accent .kf-header__nav-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (min-width: 961px) {
  .kf-header__nav {
    position: static;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
  }
}
