/* ═══════════════════════════════════════════════════════════
   MoreJobsLocal — GLOBAL.CSS
   Canonical, site-wide styles for the shared header, drawer,
   and footer. Do NOT duplicate these rules into per-page
   stylesheets. Edit here once; every page picks it up.

   Design tokens (--cyan, --hdr-h, --ease, etc.) are expected to
   be defined by each page's primary stylesheet (inline <style>
   in index.html, legal.css for legal pages). This file only
   consumes them.
   ═══════════════════════════════════════════════════════════ */


/* ─── FLOATING PILL HEADER ────────────────────────────────── */
.hdr {
  position: fixed; left: 0; right: 0; top: 12px; z-index: 900;
  display: flex; justify-content: center; pointer-events: none;
  transition: top .28s var(--ease);
}
.hdr__wrap {
  pointer-events: auto;
  display: flex; align-items: center; gap: 24px;
  padding: 0 10px 0 20px; height: var(--hdr-h);
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid transparent; border-radius: 14px;
  width: min(1140px, calc(100vw - 24px));
  transition: width .32s var(--ease), background .22s var(--ease),
              border-color .22s var(--ease), box-shadow .22s var(--ease),
              backdrop-filter .22s var(--ease);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.hdr.is-pill .hdr__wrap {
  width: min(960px, calc(100vw - 24px));
  background: rgba(10, 10, 10, 0.88);
  border-color: var(--cyan-glow);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px var(--cyan-dim) inset,
    0 0 24px var(--cyan-dim);
}
.hdr__logo {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 18px; color: var(--white); letter-spacing: -0.3px;
  display: flex; align-items: center; gap: 9px; flex-shrink: 0;
}
.hdr__dot {
  width: 8px; height: 8px; background: var(--cyan);
  border-radius: 50%; box-shadow: 0 0 10px var(--cyan);
  animation: mjl-pulse 2s ease-in-out infinite;
}
@keyframes mjl-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.25); }
}
.hdr__logo .accent { color: var(--cyan); font-weight: 700; }
.hdr__logo .wordmark { display: inline-flex; gap: 0.08em; }
.hdr__logo .wordmark > span + span { margin-left: 0; }
.hdr__nav {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center; list-style: none;
}
.hdr__nav a {
  color: var(--gray); font-size: 13.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 6px;
  transition: color .15s var(--ease), background .15s var(--ease);
  white-space: nowrap;
}
.hdr__nav a:hover { color: var(--white); background: var(--cyan-dim); }
.hdr__cta {
  background: var(--cyan); color: var(--bg);
  padding: 10px 18px; border-radius: 8px;
  font-weight: 600; font-size: 13px; letter-spacing: 0.2px;
  transition: all .2s var(--ease); flex-shrink: 0; white-space: nowrap;
}
.hdr__cta:hover {
  background: var(--cyan-bright);
  box-shadow: 0 0 20px var(--cyan-glow);
  transform: translateY(-1px);
}
.hdr__burger {
  display: none; width: 40px; height: 40px;
  border-radius: 8px; background: var(--cyan-dim);
  border: 1px solid var(--cyan-glow);
  align-items: center; justify-content: center; flex-shrink: 0;
}
.hdr__burger i {
  display: block; width: 16px; height: 2px;
  background: var(--cyan); border-radius: 2px; position: relative;
}
.hdr__burger i::before, .hdr__burger i::after {
  content: ''; position: absolute; left: 0;
  width: 16px; height: 2px; background: var(--cyan); border-radius: 2px;
}
.hdr__burger i::before { top: -5px; }
.hdr__burger i::after  { top:  5px; }


/* ─── MOBILE DRAWER ───────────────────────────────────────── */
.drawer-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(6px);
  z-index: 9500; opacity: 0; pointer-events: none;
  transition: opacity .22s var(--ease);
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 9600;
  width: min(88vw, 360px); background: var(--bg);
  border-left: 1px solid var(--cyan-glow);
  padding: 24px; transform: translateX(100%);
  transition: transform .28s var(--ease);
  display: flex; flex-direction: column; gap: 6px;
}
.drawer.open { transform: translateX(0); }
.drawer__close {
  align-self: flex-end; width: 36px; height: 36px;
  border-radius: 8px; background: var(--surface3);
  color: var(--gray); font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.drawer a {
  color: var(--white); font-size: 16px; font-weight: 500;
  padding: 14px 16px; border-radius: 8px;
  border: 1px solid var(--border);
  transition: all .15s var(--ease);
}
.drawer a:hover { border-color: var(--cyan-glow); background: var(--cyan-dim); color: var(--cyan); }
.drawer .drawer__cta {
  background: var(--cyan); color: var(--bg);
  font-weight: 600; text-align: center;
  border-color: var(--cyan); margin-top: 8px;
}


/* ─── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border);
  padding: 64px 52px 40px;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand h3 {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 22px; margin: 0 0 16px; letter-spacing: -0.3px;
  display: flex; align-items: center; gap: 9px;
}
.footer-brand h3 .accent { color: var(--cyan); }
.footer-brand p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--gray);
  line-height: 1.6; max-width: 320px;
  margin: 0;
}
.footer-col h4 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white); margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--gray);
  transition: color .2s var(--ease);
}
.footer-col a:hover { color: var(--cyan); }
.footer-col a.placeholder {
  color: var(--gray-dim); cursor: not-allowed; font-style: italic;
}
.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--gray-dim);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
}


/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 960px) {
  .hdr__nav, .hdr__cta { display: none; }
  .hdr__burger { display: inline-flex; }
  .hdr__wrap { padding: 0 8px 0 18px; gap: 8px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; gap: 28px; padding-left: 18px; padding-right: 18px; }
  .hdr__wrap { padding: 0 6px 0 14px; height: 56px; }
  .hdr__logo { font-size: 16px; }
}

/* iOS safe-area + touch targets */
@supports (padding: max(0px)) {
  .hdr { padding-top: env(safe-area-inset-top); }
}
@media (hover: none) and (pointer: coarse) {
  .hdr__cta, .hdr__burger { min-height: 44px; }
}
