/* Header styles for HomeComfortPL */

.hc-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #f7f3ee; /* soft beige */
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(10px);
}

.hc-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;
}

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

.hc-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #2f3437; /* warm dark gray */
}

.hc-header__logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #fdfbf8 0%, #f7f3ee 30%, #c7b299 85%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

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

.hc-header__nav {
  display: flex;
}

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

.hc-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #444a47;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.hc-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #8aa58a, #c7b299);
  border-radius: 999px;
  transition: width 0.18s ease-out;
}

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

.hc-header__nav-link:hover,
.hc-header__nav-link:focus-visible {
  color: #2f3437;
}

.hc-header__nav-item--highlight .hc-header__nav-link {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background-color: #2f3437;
  color: #fdfbf8;
}

.hc-header__nav-item--highlight .hc-header__nav-link::after {
  display: none;
}

.hc-header__nav-item--highlight .hc-header__nav-link:hover,
.hc-header__nav-item--highlight .hc-header__nav-link:focus-visible {
  background-color: #44534a;
}

/* Mobile toggle */

.hc-header__toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: #ffffff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.hc-header__toggle-bar {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background-color: #2f3437;
  transition: transform 0.2s ease, opacity 0.2s ease;
}



.hc-header__toggle:focus-visible {
  outline: 2px solid #8aa58a;
  outline-offset: 2px;
}

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

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

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

/* Responsive */

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

  .hc-header__toggle {
    display: inline-flex;
    flex-direction: column;
  }

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

  .hc-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1.25rem 0.9rem;
    gap: 0.25rem;
  }

  .hc-header__nav-link {
    padding: 0.6rem 0.1rem;
  }

  .hc-header--menu-open .hc-header__nav {
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hc-header__nav,
  .hc-header__toggle-bar,
  .hc-header__nav-link::after {
    transition: none !important;
  }
}

/* Focus visible polyfill safety */

.hc-header__nav-link:focus:not(:focus-visible) {
  outline: none;
}
