.ha-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(248, 244, 238, 0.98);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(140, 120, 100, 0.18);
}

.ha-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.ha-header__brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.ha-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #2a231c;
}

.ha-header__logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #f7f1ea 0, #e0cfba 45%, #8b6a4a 100%);
  box-shadow: 0 4px 10px rgba(60, 42, 30, 0.25);
}

.ha-header__logo-text {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
  text-transform: uppercase;
}

.ha-header__nav {
  flex: 1 1 auto;
}

.ha-header__nav-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ha-header__nav-item {
  position: relative;
}

.ha-header__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: #4b3b2c;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.ha-header__nav-link:focus-visible {
  outline: 2px solid #7f5b3c;
  outline-offset: 3px;
}

.ha-header__nav-link:hover {
  background-color: rgba(139, 106, 74, 0.12);
  color: #2a231c;
}

.ha-header__nav-item--icon .ha-header__nav-link {
  padding-inline: 0.65rem;
}

.ha-header__nav-item--icon i {
  font-size: 1rem;
}

.ha-header__nav-text {
  display: inline-block;
}

.ha-header__toggle {
  display: none;
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(139, 106, 74, 0.4);
  background: rgba(248, 244, 238, 0.95);
  padding: 0;
  cursor: pointer;
}

.ha-header__toggle:focus-visible {
  outline: 2px solid #7f5b3c;
  outline-offset: 3px;
}

.ha-header__toggle-bar {
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  height: 2px;
  border-radius: 999px;
  background-color: #3a2d22;
  transition: transform 0.18s ease, opacity 0.18s ease, top 0.18s ease, bottom 0.18s ease;
}

.ha-header__toggle-bar:nth-child(1) {
  top: 0.7rem;
}

.ha-header__toggle-bar:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.ha-header__toggle-bar:nth-child(3) {
  bottom: 0.7rem;
}

.ha-header__toggle[aria-expanded="true"] .ha-header__toggle-bar:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(42deg);
}

.ha-header__toggle[aria-expanded="true"] .ha-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.ha-header__toggle[aria-expanded="true"] .ha-header__toggle-bar:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-42deg);
}

@media (max-width: 768px) {
  .ha-header__inner {
    padding-block: 0.5rem;
  }

  .ha-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .ha-header__nav {
    position: fixed;
    inset-inline: 0;
    top: 3.5rem;
    background: rgba(248, 244, 238, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(140, 120, 100, 0.18);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.18s ease-out, opacity 0.18s ease-out, visibility 0.18s linear;
  }

  .ha-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1.25rem 1.1rem;
    gap: 0.1rem;
  }

  .ha-header__nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.7rem 0.9rem;
    border-radius: 0.75rem;
    font-size: 0.92rem;
  }

  .ha-header__nav-item--icon .ha-header__nav-link {
    justify-content: flex-start;
    gap: 0.55rem;
  }

  .ha-header__nav--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 520px) {
  .ha-header__logo-text {
    font-size: 1rem;
  }

  .ha-header__logo-mark {
    width: 28px;
    height: 28px;
  }

  .ha-header__nav-text {
    font-size: 0.86rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ha-header,
  .ha-header__nav,
  .ha-header__toggle-bar,
  .ha-header__nav-link {
    scroll-behavior: auto;
    transition: none !important;
  }
}
