/* Site header — floating pill nav (replaces the old fixed full-width header
   and the fullscreen overlay menu it used to open). Fixed-position, floats
   over the hero/content rather than pushing it down. */

.site-header-pill {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  box-sizing: border-box;
  height: 50px;
  display: flex;
  align-items: center;
  /* simple floating pill: solid white, soft shadow for lift, no border */
  background: #fff;
  border: none;
  border-radius: 999px;
  padding: 0 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  max-width: calc(100% - 32px);
  transition: box-shadow 0.2s, transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              max-width 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              left 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              right 0.32s cubic-bezier(0.4, 0, 0.2, 1),
              width 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header-pill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: 100%;
}

.site-header-logo-crop {
  display: block;
  height: 24px;
  width: auto;
  flex-shrink: 0;
}
.site-header-logo-crop img {
  display: block;
  height: 100%;
  width: auto;
}
/* Two logo images share the same slot — the icon mark (desktop, inside the
   pill) and the long wordmark (mobile, floating with no pill behind it).
   Only one is ever visible; the mobile media query below swaps which.
   Needs the .site-header-logo-crop prefix to out-specificity the
   `.site-header-logo-crop img { display: block; }` rule above — a bare
   `.site-header-logo-mobile { display: none; }` loses to it and both show. */
.site-header-logo-crop .site-header-logo-mobile { display: none; }

.site-header-nav-links {
  display: flex;
  gap: 26px;
}
.site-header-nav-links a {
  font: 700 12.5px/1 "Open Sans", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #292724;
  text-decoration: none;
}
.site-header-nav-links a:hover,
.site-header-nav-links a[aria-current="page"] {
  color: #eb008b;
}

.site-header-hamburger {
  /* sized/positioned for the mobile circle button — it's display:none
     outside the max-width:480px breakpoint below, so these values are
     never seen anywhere but there. */
  display: none;
  width: 50px;
  height: 50px;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0;
  border-radius: 50%;
}
.site-header-hamburger span {
  position: absolute;
  left: 15px;
  right: 15px;
  height: 2px;
  background: #1c1b1a;
  border-radius: 1px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease,
              top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header-hamburger span:nth-child(1) { top: 18px; }
.site-header-hamburger span:nth-child(2) { top: 24px; }
.site-header-hamburger span:nth-child(3) { top: 30px; }

/* hamburger morphs into a cross when the menu panel is open */
.site-header-pill.expanded .site-header-hamburger span:nth-child(1) { top: 24px; transform: rotate(45deg); }
.site-header-pill.expanded .site-header-hamburger span:nth-child(2) { opacity: 0; }
.site-header-pill.expanded .site-header-hamburger span:nth-child(3) { top: 24px; transform: rotate(-45deg); }

/* The menu is a separate floating panel anchored under the pill, not part of
   its box — it fades and drops in slightly. The pill itself never changes
   size or shape when opened. */
.site-header-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  padding: 6px 8px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header-pill.expanded .site-header-menu-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.site-header-menu-panel a {
  font: 700 13px/1 "Open Sans", sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #292724;
  text-decoration: none;
  padding: 14px 10px;
  border-radius: 10px;
}
.site-header-menu-panel a:not(:last-child) {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.site-header-menu-panel a[aria-current="page"] { color: #eb008b; }

@media (max-width: 480px) {
  /* Mobile drops the pill chrome entirely — no white background, no
     shadow, no rounded box. .site-header-pill becomes an invisible
     positioning shell (still fixed, same top/left/right/height) so the
     menu panel below keeps the exact same anchor and reveal it always
     had. Inside it: the long-form wordmark logo floats centered with no
     background of its own, and the hamburger gets its own circular
     button — the pill's old white background + shadow, just round —
     pinned to the right corner. */
  .site-header-pill {
    top: 12px;
    left: 16px;
    right: 16px;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    transform: none;
    width: auto;
    max-width: none;
  }
  .site-header-pill-row {
    position: relative;
    justify-content: flex-end;
  }
  .site-header-logo-crop {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 28px;
  }
  .site-header-logo-crop .site-header-logo-desktop { display: none; }
  .site-header-logo-crop .site-header-logo-mobile { display: block; }
  .site-header-nav-links { display: none; }
  .site-header-hamburger {
    display: block;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  }
}
