/* Split Screen Grid navbar (Style 2) */

.rvh-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-height);
}

.rvh-header__bar {
  height: 100%;
  background: var(--color-surface);
  border-bottom: 2px solid var(--color-border-strong);
  box-shadow: var(--shadow-soft);
}

.rvh-header__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-4);
  height: var(--header-height);
}

.rvh-header__start {
  justify-self: start;
  min-width: 0;
}

.rvh-header__center {
  justify-self: center;
}

.rvh-header__end {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.rvh-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-text);
  min-width: 0;
}

.rvh-header__brand:hover {
  color: var(--color-text);
}

.rvh-header__logo-mark {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-accent-mustard) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-primary);
}

.rvh-header__logo-chip {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 250, 245, 0.85);
}

.rvh-header__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}

.rvh-header__brand-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rvh-header__brand-name span {
  color: var(--color-primary);
}

.rvh-header__brand-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

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

.rvh-header__nav-link {
  position: relative;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding-block: 0.35rem;
}

.rvh-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.rvh-header__nav-link:hover,
.rvh-header__nav-link--active {
  color: var(--color-text);
}

.rvh-header__nav-link:hover::after,
.rvh-header__nav-link--active::after {
  width: 100%;
}

.rvh-header__utility {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  background: var(--color-background);
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}

.rvh-header__utility:hover {
  color: var(--color-text);
  background: var(--color-surface-alt);
  border-color: var(--color-border-strong);
}

.rvh-header__utility-label {
  display: inline;
}

.rvh-header__cta {
  font-size: 0.68rem;
  padding: 0.65rem 1.1rem;
  white-space: nowrap;
}

.rvh-header__toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-border-strong);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  background: var(--color-background);
  color: inherit;
}

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

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

.rvh-header__toggle--open .rvh-header__toggle-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}

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

body {
  padding-top: var(--header-height);
}

@media (max-width: 1024px) {
  .rvh-header__brand-name {
    max-width: 11rem;
  }

  .rvh-header__nav-list {
    gap: var(--space-3);
  }
}

@media (max-width: 900px) {
  .rvh-header__utility-label {
    display: none;
  }
}

@media (max-width: 768px) {
  .rvh-header__grid {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .rvh-header__center {
    position: fixed;
    inset-inline: 0;
    top: var(--header-height);
    background: var(--color-surface);
    border-bottom: 2px solid var(--color-border-strong);
    padding: var(--space-4) var(--container-padding-x) var(--space-6);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base), transform var(--transition-base);
    justify-self: stretch;
  }

  .rvh-header__center--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .rvh-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
    width: 100%;
  }

  .rvh-header__toggle {
    display: inline-flex;
  }

  .rvh-header__cta {
    display: none;
  }
}

@media (max-width: 480px) {
  .rvh-header__brand-tagline {
    display: none;
  }
}
