/* Header-specific styles for VOODIES LTD */

.voodies-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border-subtle);
  backdrop-filter: blur(12px);
}

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

.voodies-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.voodies-header__logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  background: var(--color-primary-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.voodies-header__logo-mark .fa-seedling {
  font-size: 1.1rem;
}

.voodies-header__text-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.voodies-header__name {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
  white-space: nowrap;
}

.voodies-header__tagline {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* Nav layout */

.voodies-header__nav {
  margin-left: auto;
}

.voodies-header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.voodies-header__nav-item {}

.voodies-header__nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  text-decoration: none;
}

.voodies-header__nav-link:hover,
.voodies-header__nav-link:focus-visible {
  color: var(--color-primary-dark);
  background-color: var(--gray-100);
}

.voodies-header__nav-link[aria-current="page"],
.voodies-header__nav-link.is-active {
  color: var(--color-primary-dark);
  background-color: var(--color-primary-soft);
}

.voodies-header__nav-link--cta {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.voodies-header__nav-link--cta:hover,
.voodies-header__nav-link--cta:focus-visible {
  background-color: var(--color-primary-dark);
  color: #ffffff;
}

/* Mobile menu toggle */

.voodies-header__menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-subtle);
  background-color: #ffffff;
  color: var(--color-text);
}

.voodies-header__menu-toggle:hover,
.voodies-header__menu-toggle:focus-visible {
  background-color: var(--gray-100);
}

.voodies-header__menu-icon {
  position: relative;
  width: 1.15rem;
  height: 1.15rem;
}

.voodies-header__menu-icon::before,
.voodies-header__menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 0.12rem;
  border-radius: 999px;
  background-color: var(--color-text);
  transition: transform var(--transition-normal), top var(--transition-normal), opacity var(--transition-fast);
}

.voodies-header__menu-icon::before {
  top: 0.25rem;
}

.voodies-header__menu-icon::after {
  top: 0.7rem;
}

.voodies-header__menu-toggle[aria-expanded="true"] .voodies-header__menu-icon::before {
  top: 0.48rem;
  transform: rotate(45deg);
}

.voodies-header__menu-toggle[aria-expanded="true"] .voodies-header__menu-icon::after {
  top: 0.48rem;
  transform: rotate(-45deg);
}

.voodies-header__menu-text {
  font-size: 0.8rem;
}

/* Responsive behavior */

@media (max-width: 768px) {
  .voodies-header__tagline {
    display: none;
  }

  .voodies-header__nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background-color: #ffffff;
    border-bottom: 1px solid var(--color-border-subtle);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    transform-origin: top;
  }

  .voodies-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-3) var(--space-4) var(--space-4);
  }

  .voodies-header__nav-link {
    width: 100%;
    padding: 0.6rem 0.75rem;
  }

  .voodies-header__nav-item--cta .voodies-header__nav-link--cta {
    justify-content: center;
    text-align: center;
  }

  .voodies-header__nav {
    display: none;
  }

  .voodies-header__nav.is-open {
    display: block;
  }
}

@media (min-width: 769px) {
  .voodies-header__menu-toggle {
    display: none;
  }

  .voodies-header__nav {
    position: static;
    box-shadow: none;
    border-bottom: 0;
  }
}

/* Utility when menu is open on mobile */

.voodies-header--menu-open {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}
