/* Style 3 — Minimalist Asymmetric header */

.hv-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

body.hv-nav-open {
  overflow: hidden;
}

.hv-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.hv-header__brand {
  flex: 1 1 auto;
  min-width: 0;
}

.hv-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 100%;
}

.hv-header__logo-link:hover .hv-header__site-name {
  color: var(--color-primary);
}

.hv-header__logo-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--color-secondary-soft), var(--color-primary-soft));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-200);
}

.hv-header__leaf {
  width: 18px;
  height: 18px;
  border-radius: 50% 0 50% 50%;
  background: var(--color-secondary);
  transform: rotate(-35deg);
}

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

.hv-header__site-name {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-heading);
  transition: color var(--transition-base);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hv-header__tagline {
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

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

.hv-header__nav-list {
  align-items: center;
  gap: var(--space-5);
}

/* CTA + menu toggle grouped on the right */
.hv-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
  margin-left: var(--space-3);
  position: relative;
  z-index: 110;
}

.hv-header__live-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.45rem 0.9rem 0.45rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-soft);
  color: var(--color-heading);
  font-size: var(--font-size-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hv-header__live-cta:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: var(--color-on-secondary);
}

.hv-header__live-ring {
  position: absolute;
  left: 0.5rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  animation: hv-pulse-ring 2s ease-out infinite;
}

.hv-header__live-core {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  margin-left: 3px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px var(--color-primary-soft);
}

.hv-header__live-label {
  padding-left: var(--space-4);
}

@keyframes hv-pulse-ring {
  0% {
    transform: scale(0.85);
    opacity: 1;
  }
  70% {
    transform: scale(1.65);
    opacity: 0;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

.hv-header__toggle {
  display: inline-flex;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  background-color: var(--color-surface);
  justify-content: center;
  align-items: center;
  gap: 4px;
  color: var(--color-heading);
}

.hv-header__toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: var(--radius-full);
  background-color: var(--color-heading);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

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

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

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

/* Mobile: single bar — brand | CTA + hamburger */
@media (max-width: 768px) {
  .hv-header__inner {
    flex-wrap: nowrap;
    gap: var(--space-2);
  }

  .hv-header__brand {
    flex: 1 1 0;
  }

  .hv-header__site-name {
    font-size: var(--font-size-base);
    letter-spacing: 0.04em;
  }

  .hv-header__tagline {
    display: none;
  }

  .hv-header__actions {
    gap: var(--space-2);
    margin-left: 0;
  }

  .hv-header__live-cta {
    padding: 0.4rem 0.75rem 0.4rem 0.45rem;
    font-size: 0.7rem;
  }

  .hv-header__live-label {
    padding-left: var(--space-3);
  }

  .hv-header__brand {
    position: relative;
    z-index: 110;
  }

  .hv-header__nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    grid-template-rows: 1fr;
    grid-template-columns: 1fr;
    pointer-events: none;
    visibility: hidden;
  }

  .hv-header__nav--open {
    pointer-events: auto;
    visibility: visible;
  }

  .hv-header__nav-backdrop {
    grid-area: 1 / 1;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(44, 54, 48, 0.45);
    backdrop-filter: blur(6px);
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition-base);
  }

  .hv-header__nav--open .hv-header__nav-backdrop {
    opacity: 1;
  }

  .hv-header__nav-panel {
    grid-area: 1 / 1;
    align-self: start;
    justify-self: center;
    width: min(calc(100% - 2 * var(--space-4)), 420px);
    margin-top: calc(64px + var(--space-3));
    padding: var(--space-4);
    border-radius: var(--radius-xl);
    background: var(--color-surface);
    box-shadow: var(--shadow-strong);
    border: 1px solid var(--gray-200);
    transform: translateY(-12px);
    opacity: 0;
    transition: opacity var(--transition-base), transform var(--transition-base);
    pointer-events: auto;
    position: relative;
    z-index: 1;
  }

  .hv-header__nav--open .hv-header__nav-panel {
    opacity: 1;
    transform: translateY(0);
  }

  .hv-header__nav-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--gray-200);
  }

  .hv-header__nav-panel-title {
    font-size: var(--font-size-xs);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 600;
  }

  .hv-header__nav-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-300);
    background: var(--color-surface-soft);
    color: var(--color-heading);
    flex-shrink: 0;
    cursor: pointer;
    transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base);
  }

  .hv-header__nav-close:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-on-secondary);
  }

  .hv-header__nav-close-icon {
    position: relative;
    width: 16px;
    height: 16px;
  }

  .hv-header__nav-close-icon::before,
  .hv-header__nav-close-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: var(--radius-full);
  }

  .hv-header__nav-close-icon::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .hv-header__nav-close-icon::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .hv-header__nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-1);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .hv-header__nav-link {
    display: block;
    padding: var(--space-3) var(--space-2);
    border-radius: var(--radius-sm);
  }

  .hv-header__nav-link:hover {
    background: var(--color-surface-soft);
    color: var(--color-heading);
  }
}

@media (min-width: 769px) {
  .hv-header__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-8);
  }

  .hv-header__brand {
    flex: none;
    z-index: auto;
  }

  .hv-header__nav-backdrop,
  .hv-header__nav-panel-head,
  .hv-header__nav-close {
    display: none;
  }

  .hv-header__nav {
    position: static;
    display: flex;
    justify-self: center;
    z-index: auto;
    visibility: visible;
    pointer-events: auto;
    grid-template-columns: unset;
    grid-template-rows: unset;
  }

  .hv-header__nav-panel {
    display: contents;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    transform: none;
    opacity: 1;
    width: auto;
  }

  .hv-header__site-name {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .hv-header__nav-list {
    display: flex;
  }

  .hv-header__actions {
    margin-left: 0;
    gap: var(--space-3);
  }

  .hv-header__live-cta {
    font-size: var(--font-size-sm);
    padding: 0.45rem 1rem 0.45rem 0.55rem;
  }

  .hv-header__toggle {
    display: none;
  }
}

.hv-header__logo-link:focus-visible,
.hv-header__nav-link:focus-visible,
.hv-header__toggle:focus-visible,
.hv-header__live-cta:focus-visible,
.hv-header__nav-close:focus-visible,
.hv-header__nav-backdrop:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
