/* Proposal P4: floating glass "pill" header.
   The header becomes a rounded, translucent dark-violet capsule with a blur
   behind it, floating 16px from the top of the page, with pill-shaped nav links
   and a white pill call to action. On the homepage the hero slides up behind it. */

.site-header {
  background: transparent;
  border-bottom: 0;
  padding: 16px 16px 0;
  pointer-events: none;
}

.site-header .header-inner {
  pointer-events: auto;
  max-width: 1248px;
  min-height: 66px;
  padding: 8px 12px 8px 20px;
  border-radius: 9999px;
  background: rgba(36, 19, 77, 0.92);
  border: 1px solid rgba(180, 156, 255, 0.25);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  box-shadow: 0 18px 45px rgba(36, 19, 77, 0.28);
}

.site-header .brand span { color: #fff; }

.site-header .nav-desktop {
  justify-content: center;
}

.site-header .nav-desktop a {
  color: #fff;
  border-radius: 9999px;
  padding: 8px 12px;
}

.site-header .nav-desktop a:hover,
.site-header .nav-desktop a:focus-visible,
.site-header .nav-desktop a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.10);
}

.site-header .nav-menu summary {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
  border-color: transparent;
  border-radius: 9999px;
  padding: 8px 16px;
}

.site-header .nav-menu-panel {
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(36, 19, 77, 0.18);
}

.site-header .header-login,
.site-header .header-login:hover,
.site-header .header-login:focus-visible {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border-color: transparent;
  border-radius: 9999px;
}

.site-header .header-apply,
.site-header .header-apply:hover,
.site-header .header-apply:focus-visible {
  background: #fff;
  color: #09001B;
  border-color: #fff;
  border-radius: 9999px;
}

/* Homepage: let the hero run up behind the floating header */
main > .hero:first-child {
  margin-top: -98px;
  padding-top: 170px;
}

@media (max-width: 639px) {
  .site-header { padding: 12px 12px 0; }
  .site-header .header-inner { min-height: 58px; padding: 6px 8px 6px 14px; }
  .site-header .brand span { font-size: 21px; }
  main > .hero:first-child { margin-top: -82px; padding-top: 130px; }
}
