/* Shared site header (every page): css/nav.css + js/nav.js
   Desktop: logo · Work Services Industries Areas [Free tools ▾] Undrworld · phone · "Book a free call" pill
   Phone (≤760px): logo · round phone · round burger → the full-screen .menu
   The header uses its own tokens so it renders the same on every stylesheet. */
.sh {
  --sh-red: #c8ff00; --sh-ink: #f1ece4; --sh-dim: #bdb7af; --sh-muted: #8b8680;
  --sh-sans: "Inter", system-ui, sans-serif; --sh-pad: var(--gutter, clamp(18px, 4vw, 64px));
  position: sticky; top: 0; left: 0; right: 0; z-index: 40; box-sizing: border-box;
  display: flex; align-items: center; gap: 28px; padding: 16px var(--sh-pad);
  font-family: var(--sh-sans); font-size: 13px; line-height: 1; color: var(--sh-ink);
  background: rgba(8,8,8,.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.09);
  transition: background .35s, border-color .35s;
}
.sh *, .sh *::before, .sh *::after { box-sizing: border-box; }
.sh a, .sh button { color: inherit; text-decoration: none; font-family: inherit; }
.sh a:hover { color: var(--sh-ink); }
/* over the home / Undrworld hero: transparent until the page scrolls (js/nav.js adds .sh-solid) */
.sh-over { position: fixed; background: linear-gradient(rgba(8,8,8,.75), rgba(8,8,8,0)); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; }
.sh-over.sh-solid { background: rgba(8,8,8,.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom-color: rgba(255,255,255,.09); }

/* logo */
.sh-logo { display: inline-flex; align-items: center; gap: 12px; color: #f5f1e8; flex: none; }
.sh-logo svg { width: 28px; height: 26px; overflow: visible; display: block; }
.sh-logo .door { fill: var(--sh-red); filter: drop-shadow(0 0 8px rgba(200,255,0,.8)); transition: filter .4s; }
.sh-logo:hover .door { filter: drop-shadow(0 0 12px var(--sh-red)) brightness(1.3); }
.sh-logo span { font: 800 12.5px "Orbitron", var(--sh-sans); letter-spacing: .26em; color: #f5f1e8; }

/* links */
.sh-links { display: flex; align-items: center; gap: 26px; margin-left: 8px; }
.sh-links > a, .sh-dd-btn { position: relative; padding: 6px 0; color: var(--sh-dim); font-size: 13px; font-weight: 400; letter-spacing: .01em; transition: color .2s; white-space: nowrap; }
.sh-links > a::after, .sh-dd-btn::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor; transition: right .3s; }
.sh-links > a:hover::after, .sh-links > a[aria-current]::after, .sh-dd:hover .sh-dd-btn::after, .sh-dd-btn[aria-expanded="true"]::after, .sh-dd-btn[aria-current]::after { right: 0; }
.sh-links > a:hover, .sh-links > a[aria-current], .sh-dd:hover .sh-dd-btn, .sh-dd-btn[aria-expanded="true"], .sh-dd-btn[aria-current] { color: var(--sh-ink); }
.sh-links > a.sh-ex, .sh-links > a.sh-ex:hover { color: var(--sh-red); text-shadow: 0 0 14px rgba(200,255,0,.45); }
.sh-links > a.sh-ex::after { background: var(--sh-red); }

/* Free tools dropdown */
.sh-dd { position: relative; }
.sh-dd-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; }
.sh-dd-btn svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .25s; }
.sh-dd:hover .sh-dd-btn svg, .sh-dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.sh-dd-menu { position: absolute; left: -14px; top: calc(100% + 10px); min-width: 230px; padding: 8px; border-radius: 14px; background: rgba(12,12,12,.96);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 20px 50px rgba(0,0,0,.6), 0 0 0 1px rgba(200,255,0,.08);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
.sh-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* keeps hover alive across the gap */
.sh-dd:hover .sh-dd-menu, .sh-dd.open .sh-dd-menu, .sh-dd:focus-within .sh-dd-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .2s, visibility 0s; }
.sh-dd-menu a { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 9px; color: var(--sh-ink); font-size: 13.5px; font-weight: 500; transition: background .2s; }
.sh-dd-menu a small { font-size: 11px; font-weight: 400; color: var(--sh-muted); letter-spacing: .02em; }
.sh-dd-menu a:hover, .sh-dd-menu a[aria-current] { background: rgba(200,255,0,.1); }
.sh-dd-menu a[aria-current] { color: var(--sh-red); }
.sh-dd-menu a.sh-hot small { color: var(--sh-red); }

/* right side: page slot (Log in / My audits), phone, pill, phone icon + burger (phones only) */
.sh-right { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.sh-phone { font-size: 13px; font-weight: 500; color: var(--sh-ink); white-space: nowrap; letter-spacing: .01em; transition: color .2s; }
.sh-phone:hover { color: var(--sh-red); }
.sh-cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 30px; border: 1px solid rgba(200,255,0,.6); background: rgba(200,255,0,.1);
  color: var(--sh-ink); font-size: 12px; font-weight: 500; letter-spacing: .04em; white-space: nowrap; box-shadow: 0 0 18px rgba(200,255,0,.25); transition: background .25s, box-shadow .25s, color .25s; }
.sh-cta::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sh-red); box-shadow: 0 0 10px var(--sh-red); }
.sh-cta:hover { background: var(--sh-red); color: #0a0a0a; box-shadow: 0 0 26px rgba(200,255,0,.5); }
.sh-cta:hover::before { background: #0a0a0a; box-shadow: none; }
.sh-phone-ic, .nav-burger { display: none; }
.sh-phone-ic { place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(200,255,0,.6); background: rgba(8,8,8,.6); flex: none; }
.sh-phone-ic svg { width: 16px; height: 16px; fill: var(--sh-ink); }

/* account controls that audit / create drop into .sh-right */
.sh-right .me { display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--sh-muted); }
.sh-right .me[hidden], .sh-right .me-in[hidden] { display: none; }

/* burger (phones) */
.nav-burger { place-items: center; width: 40px; height: 40px; margin: 0; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(8,8,8,.6); cursor: pointer; position: relative; z-index: 60; flex: none; }
.nav-burger span { position: absolute; left: 11px; top: 19px; width: 16px; height: 1.5px; background: var(--sh-ink, #f1ece4); transform-origin: 50% 50%; transition: transform .3s, opacity .3s; }
.nav-burger span:nth-child(1) { transform: translateY(-5.5px); }
.nav-burger span:nth-child(3) { transform: translateY(5.5px); }
.menu-open .nav-burger { border-color: rgba(200,255,0,.6); }
.menu-open .nav-burger span:nth-child(1) { transform: rotate(45deg); }
.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
.menu-open .nav-burger span:nth-child(3) { transform: rotate(-45deg); }

/* full-screen menu (phones) */
.menu { position: fixed; inset: 0; z-index: 39; display: flex; flex-direction: column; justify-content: center; gap: 28px; padding: 90px var(--gutter, 18px) 40px; background: rgba(8,8,8,.96);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; pointer-events: none; transition: opacity .3s; overflow-y: auto; }
.menu-open .menu { opacity: 1; pointer-events: auto; }
body.menu-open { overflow: hidden; }
.menu-links { display: flex; flex-direction: column; gap: 4px; }
.menu-links a { display: flex; align-items: center; gap: 12px; padding: 12px 0; font-family: var(--display, "Anton", Impact, sans-serif); text-transform: uppercase; font-size: clamp(28px, 8vw, 44px); line-height: 1; color: #f1ece4; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.08);
  transform: translateY(14px); opacity: 0; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .45s; }
.menu-open .menu-links a { transform: none; opacity: 1; }
.menu-links a:nth-child(2) { transition-delay: .04s } .menu-links a:nth-child(3) { transition-delay: .08s } .menu-links a:nth-child(4) { transition-delay: .12s } .menu-links a:nth-child(5) { transition-delay: .16s }
.menu-links a:nth-child(6) { transition-delay: .2s } .menu-links a:nth-child(7) { transition-delay: .24s } .menu-links a:nth-child(8) { transition-delay: .28s } .menu-links a:nth-child(9) { transition-delay: .32s }
.menu-links a i { font: 500 9px "Inter", system-ui, sans-serif; font-style: normal; letter-spacing: .16em; text-transform: uppercase; background: #c8ff00; color: #0a0a0a; padding: 3px 7px; border-radius: 10px; }
.menu-links a[aria-current] { color: #c8ff00; }
.menu-links a.menu-hot, .menu-links a.menu-ex { color: #c8ff00; }
.menu-call { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 14px 20px; border-radius: 60px; background: #c8ff00; color: #0a0a0a; font: 600 11.5px "Inter", system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.menu-call .red-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #0a0a0a; box-shadow: none; }

@media (max-width: 1040px) {
  .sh-links { gap: 20px; }
  .sh-phone { display: none; }
}
@media (max-width: 900px) {
  .sh-right .me-hi { display: none; }
}
@media (min-width: 761px) { .menu, .nav-burger { display: none !important; } }
@media (max-width: 760px) {
  .sh { padding: 12px var(--sh-pad); gap: 12px; }
  .sh-logo svg { width: 26px; height: 24px; }
  .sh-logo span { font-size: 11px; letter-spacing: .2em; }
  .sh-links, .sh-cta, .sh-phone { display: none; }
  .sh-right { gap: 10px; }
  .sh-phone-ic { display: inline-grid; }
  .nav-burger { display: inline-grid; }
  .sh-right .me { gap: 8px; }
  .sh-right .me-mine, .sh-right .me-left, .sh-right .me-out, .sh-right .me-in { white-space: nowrap; font-size: 10px; letter-spacing: .1em; }
  .sh-right .me-mine, .sh-right .me-left { padding: 4px 8px; }
  .sh:has(.me:not([hidden])) .sh-logo span { display: none; } /* signed-in controls need the room */
}
@media (max-width: 340px) { .sh-logo span { display: none; } }
@media (prefers-reduced-motion: reduce) { .sh, .sh-dd-menu, .menu, .menu-links a { transition: none; } }
@media print { .sh, .menu { display: none !important; } }
