/* Header styles for PolishOutdoorLiving */

.pol-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(15, 22, 17, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #ffffff;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.22);
}

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

.pol-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.pol-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.pol-header__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #f5f3ec 0, #f5f3ec 32%, #8b6b45 60%, #354136 100%);
  box-shadow: 0 0 0 2px rgba(245, 243, 236, 0.35), 0 10px 18px rgba(0, 0, 0, 0.35);
}

.pol-header__logo-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.pol-header__logo-main {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
}

.pol-header__logo-sub {
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.78;
}

.pol-header__nav {
  display: flex;
}

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

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

.pol-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: #f5f3ec;
  border: 1px solid transparent;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.pol-header__nav-link::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0.2rem;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(209, 184, 131, 0), rgba(209, 184, 131, 0.9), rgba(209, 184, 131, 0));
  opacity: 0;
  transform: scaleX(0.6);
  transform-origin: center;
  transition: opacity 160ms ease, transform 160ms ease;
}

.pol-header__nav-link:hover,
.pol-header__nav-link:focus-visible {
  background-color: rgba(245, 243, 236, 0.08);
  border-color: rgba(209, 184, 131, 0.55);
  box-shadow: 0 0 0 1px rgba(149, 126, 86, 0.5);
  outline: none;
}

.pol-header__nav-link:hover::after,
.pol-header__nav-link:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.pol-header__nav-item--cta .pol-header__nav-link--cta {
  background: linear-gradient(135deg, #b79665, #8b6b45);
  color: #121212;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.pol-header__nav-item--cta .pol-header__nav-link--cta::after {
  display: none;
}

.pol-header__nav-item--cta .pol-header__nav-link--cta:hover,
.pol-header__nav-item--cta .pol-header__nav-link--cta:focus-visible {
  background: linear-gradient(135deg, #c7a876, #98754b);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.pol-header__toggle {
  display: none;
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(245, 243, 236, 0.25);
  background-color: rgba(8, 12, 9, 0.9);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.pol-header__toggle-bar {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background-color: #f5f3ec;
  display: block;
  transition: transform 160ms ease, opacity 160ms ease, background-color 160ms ease;
}

.pol-header__toggle-bar + .pol-header__toggle-bar {
  margin-top: 4px;
}

.pol-header__toggle:focus-visible {
  outline: 2px solid #d1b883;
  outline-offset: 2px;
}

.pol-header__toggle[aria-expanded="true"] .pol-header__toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

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

.pol-header__toggle[aria-expanded="true"] .pol-header__toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

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

  .pol-header__logo-main {
    font-size: 0.95rem;
  }

  .pol-header__logo-sub {
    display: none;
  }

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

  .pol-header__nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: rgba(10, 15, 11, 0.98);
    border-bottom: 1px solid rgba(245, 243, 236, 0.12);
    transform-origin: top;
    transform: scaleY(0.85);
    opacity: 0;
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .pol-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.15rem;
  }

  .pol-header__nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.6rem 0.05rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(245, 243, 236, 0.06);
  }

  .pol-header__nav-item--cta .pol-header__nav-link--cta {
    margin-top: 0.2rem;
    border-radius: 999px;
    justify-content: center;
  }

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

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

.pol-header__nav-link:focus-visible,
.pol-header__toggle:focus-visible {
  outline: 2px solid #d1b883;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .pol-header__inner {
    gap: 0.5rem;
  }

  .pol-header__logo-mark {
    width: 34px;
    height: 34px;
  }

  .pol-header__logo-main {
    font-size: 0.9rem;
  }
}