.hp-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(248, 245, 239, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

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

.hp-header__brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.hp-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.hp-header__logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #f5d9b7, #d4b99c);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 6px 14px rgba(0, 0, 0, 0.08);
}

.hp-header__site-name {
  font-family: "Playfair Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #2e261f;
}

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

.hp-header__nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
}

.hp-header__nav-link {
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: #4b433b;
  position: relative;
  padding-block: 0.35rem;
}

.hp-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.1rem;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #d6af84, #c28b5b);
  transition: width 0.18s ease-out;
}

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

.hp-header__nav-link:hover,
.hp-header__nav-link:focus-visible {
  color: #2e261f;
}

.hp-header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hp-header__action-link {
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(44, 35, 28, 0.12);
  background: #ffffff;
  color: #2e261f;
  text-decoration: none;
  transition: background-color 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.hp-header__action-link--primary {
  background: linear-gradient(135deg, #d6af84, #c28b5b);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.hp-header__action-link--primary:hover,
.hp-header__action-link--primary:focus-visible {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  filter: brightness(1.02);
}

.hp-header__action-icon {
  border: none;
  background: transparent;
  padding: 0.35rem;
  border-radius: 999px;
  color: #4b433b;
  cursor: pointer;
}

.hp-header__action-icon:hover,
.hp-header__action-icon:focus-visible {
  background-color: rgba(0, 0, 0, 0.04);
}

.hp-header__menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(44, 35, 28, 0.14);
  background: #ffffff;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  color: #2e261f;
}

.hp-header__menu-toggle-box {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
}

.hp-header__menu-toggle-line {
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background-color: #2e261f;
  transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}

.hp-header__menu-toggle-text {
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
}

.hp-header__menu-toggle--open .hp-header__menu-toggle-line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.hp-header__menu-toggle--open .hp-header__menu-toggle-line:nth-child(2) {
  opacity: 0;
}

.hp-header__menu-toggle--open .hp-header__menu-toggle-line:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.hp-header__menu-toggle--open .hp-header__menu-toggle-text::after {
  content: "";
}

.hp-header__menu-toggle:focus-visible,
.hp-header__action-link:focus-visible,
.hp-header__action-icon:focus-visible,
.hp-header__nav-link:focus-visible {
  outline: 2px solid #c28b5b;
  outline-offset: 3px;
}

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

  .hp-header__nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #f8f5ef;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transform-origin: top;
    transform: scaleY(0.98);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease-out, transform 0.18s ease-out, visibility 0.18s ease-out;
  }

  .hp-header__nav--open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .hp-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 1.25rem 0.75rem;
    gap: 0.25rem;
  }

  .hp-header__nav-link {
    display: block;
    width: 100%;
    padding-block: 0.45rem;
  }

  .hp-header__actions {
    gap: 0.35rem;
  }

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

@media (max-width: 520px) {
  .hp-header__site-name {
    font-size: 1.05rem;
  }

  .hp-header__action-link--primary {
    padding-inline: 0.75rem;
  }

  .hp-header__actions {
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hp-header *,
  .hp-header *::before,
  .hp-header *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
