/* Header component styles (build on base.css) */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-index-sticky);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: var(--space-4);
  top: var(--space-4);
  width: auto;
  height: auto;
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: var(--space-4);
}

.brand { display: inline-flex; align-items: center; gap: var(--space-3); color: var(--color-neutral-900); font-weight: var(--font-weight-extrabold); }
.brand-logo { width: 40px; height: 40px; border-radius: var(--radius-full); box-shadow: var(--shadow-xs); }
.brand-name { font-size: var(--font-size-lg); letter-spacing: 0.2px; }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-neutral-200);
  color: var(--color-neutral-800);
  background: var(--color-white);
}
.menu-toggle:hover { background: var(--color-neutral-100); }
.menu-toggle:focus-visible { outline: 3px solid var(--color-primary-light); outline-offset: 2px; }

.nav-primary { display: flex; align-items: center; gap: var(--space-6); }
.nav-list { display: flex; gap: var(--space-4); align-items: center; }
.nav-link {
  display: inline-flex; align-items: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  color: var(--color-neutral-900);
  font-weight: var(--font-weight-semibold);
}
.nav-link:hover { background: var(--color-neutral-100); color: var(--color-primary-dark); }

.nav-cta { display: inline-flex; align-items: center; gap: var(--space-3); }
.contact-cta i, .account-cta i { margin-right: var(--space-2); }

/* Backdrop for mobile nav */
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.35);
  backdrop-filter: blur(1px);
  z-index: var(--z-index-fixed);
}

/* Mobile styles */
@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; }
  .desktop-only { display: none !important; }
  .mobile-only { display: list-item; }

  /* Progressive enhancement: only hide/collapse when JS is enabled */
  .js-enabled .nav-primary {
    position: fixed; top: 0; right: 0; height: 100vh;
    width: min(86vw, 360px);
    flex-direction: column; align-items: stretch; justify-content: space-between;
    padding: var(--space-6);
    background: var(--color-white);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    z-index: calc(var(--z-index-fixed) + 1);
  }
  .js-enabled .nav-primary .nav-list { flex-direction: column; align-items: stretch; gap: var(--space-2); }
  .js-enabled .nav-primary .nav-link { padding: var(--space-3) var(--space-4); }
  .js-enabled .nav-primary.is-open { transform: translateX(0); }

  .js-enabled .nav-backdrop[hidden] { display: none; }
}

@media (min-width: 769px) {
  .mobile-only { display: none !important; }
}
