/*
  HireKeyz Phase 2.5 — Global navigation & interior page shell
  Classes: .hk-global-header / .hk-global-footer / .hk-global-*
  Never hide these with legacy chrome rules.
*/

:root {
  --hk-navy-950: #061326;
  --hk-navy-900: #071b33;
  --hk-navy-800: #0f2e55;
  --hk-navy-700: #16456f;
  --hk-orange-500: #f07020;
  --hk-orange-600: #d95f12;
  --hk-cream-50: #fbfaf7;
  --hk-cream-100: #f6f3ee;
  --hk-white: #ffffff;
  --hk-ink-900: #111827;
  --hk-ink-700: #374151;
  --hk-ink-500: #6b7280;
  --hk-line: rgba(15, 46, 85, 0.14);
  --hk-shadow: 0 16px 42px rgba(6, 19, 38, 0.12);
  --hk-radius: 14px;
  --hk-container: 1180px;
  --hk-font: "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ---- Hide LEGACY chrome sitewide; never hide .hk-global-* ---- */
body.hk-shell-unified .navbar-area,
body.hk-shell-unified .main-nav,
body.hk-shell-unified .ubermenu,
body.hk-shell-unified .u-header,
body.hk-shell-unified [class*="u-header__"],
body.hk-shell-unified .header-area,
body.hk-shell-unified .footer-area,
body.hk-shell-unified footer.footer-area,
body.hk-shell-unified .hk-phase2-quicknav,
body.hk-shell-unified #magic-cursor,
body.hk-shell-unified .loader-wrap,
body.hk-shell-unified .preloader,
body:has(.hk-global-header) .navbar-area,
body:has(.hk-global-header) .main-nav,
body:has(.hk-global-header) .ubermenu,
body:has(.hk-global-header) .u-header,
body:has(.hk-global-header) [class*="u-header__"],
body:has(.hk-global-header) .header-area,
body:has(.hk-global-header) .footer-area,
body:has(.hk-global-header) footer.footer-area,
body:has(.hk-global-header) .hk-phase2-quicknav,
body:has(.hk-global-header) #magic-cursor,
body:has(.hk-global-header) .loader-wrap,
body:has(.hk-global-header) .preloader {
  display: none !important;
}

body.hk-shell-unified,
body:has(.hk-global-header) {
  padding-top: 0 !important;
}

/* Keep V4 homepage chrome-hide in sync without smothering global shell */
body.hk-v4-homepage-active .hk-global-header,
body.hk-v4-homepage-active .hk-global-footer,
body:has(.hk-v4-homepage) .hk-global-header,
body:has(.hk-v4-homepage) .hk-global-footer {
  display: block !important;
}

.hk-global-shell {
  width: min(100% - 32px, var(--hk-container));
  margin: 0 auto;
}

.hk-global-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(251, 250, 247, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hk-line);
  font-family: var(--hk-font);
  color: var(--hk-ink-900);
}

.hk-global-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
}

.hk-global-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.hk-global-brand img {
  display: block;
  height: 42px;
  width: auto;
  max-width: 200px;
}

.hk-global-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.hk-global-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 4px;
}

.hk-global-menu > li {
  position: relative;
}

.hk-top-link,
.hk-dd-toggle {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--hk-ink-700);
  font: inherit;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  padding: 10px 9px;
  border-radius: 10px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.hk-top-link:hover,
.hk-dd-toggle:hover,
.hk-has-dd.open > .hk-dd-toggle {
  color: var(--hk-navy-800);
  background: var(--hk-cream-100);
}

.hk-dd {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 280px;
  max-width: 340px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: var(--hk-white);
  border: 1px solid var(--hk-line);
  border-radius: var(--hk-radius);
  box-shadow: var(--hk-shadow);
  z-index: 1200;
}

.hk-has-dd.open > .hk-dd,
.hk-has-dd:hover > .hk-dd {
  display: block;
}

.hk-dd a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--hk-ink-700);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.35;
}

.hk-dd a:hover {
  background: var(--hk-cream-100);
  color: var(--hk-navy-800);
}

.hk-global-ctas {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.hk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.hk-btn-primary {
  background: var(--hk-orange-500);
  color: #fff;
}

.hk-btn-primary:hover {
  background: var(--hk-orange-600);
  color: #fff;
}

.hk-btn-outline {
  background: transparent;
  border-color: rgba(15, 46, 85, 0.28);
  color: var(--hk-navy-800);
}

.hk-btn-outline:hover {
  border-color: var(--hk-navy-800);
  background: var(--hk-cream-100);
}

.hk-global-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--hk-line);
  background: var(--hk-white);
  color: var(--hk-navy-800);
  cursor: pointer;
}

.hk-global-mobile {
  display: none;
  padding: 8px 0 16px;
}

.hk-global-mobile a {
  display: block;
  padding: 12px 10px;
  border-radius: 12px;
  color: var(--hk-ink-700);
  text-decoration: none;
  font-weight: 750;
}

.hk-global-mobile a:hover {
  background: var(--hk-cream-100);
}

.hk-global-mobile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.hk-global-mobile-actions .hk-btn {
  width: 100%;
}

/* Footer */
.hk-global-footer {
  background: linear-gradient(180deg, #0b2442 0%, #061326 100%);
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--hk-font);
  padding: 42px 0 28px;
  margin-top: 0;
}

.hk-global-fraud {
  background: rgba(240, 112, 32, 0.14);
  border: 1px solid rgba(240, 112, 32, 0.35);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 28px;
  color: #ffe8d6;
  font-size: 14px;
  line-height: 1.5;
}

.hk-global-fraud a {
  color: #fff;
  font-weight: 700;
}

.hk-global-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(6, 1fr);
  gap: 22px 18px;
}

.hk-global-footer-brand img {
  display: block;
  height: 40px;
  width: auto;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}

.hk-global-footer h3 {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.hk-global-footer p,
.hk-global-footer li {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
}

.hk-global-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.hk-global-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.hk-global-footer a:hover {
  color: #fff;
}

.hk-global-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.hk-global-socials a {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
}

.hk-global-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

/* Interior content breathing room under sticky header */
body.hk-shell-unified:not(.hk-v4-homepage-active) .hk-page-main,
body:has(.hk-global-header):not(:has(.hk-v4-homepage)) main,
body:has(.hk-global-header):not(:has(.hk-v4-homepage)) .main-content,
body:has(.hk-global-header):not(:has(.hk-v4-homepage)) .content-area {
  /* soft spacing; templates vary */
}

@media (max-width: 1180px) {
  .hk-global-menu > li:nth-child(n + 7) {
    display: none;
  }
  .hk-global-ctas .hk-btn-outline {
    display: none;
  }
}

@media (max-width: 980px) {
  .hk-global-nav,
  .hk-global-ctas {
    display: none;
  }
  .hk-global-toggle {
    display: grid;
    margin-left: auto;
  }
  .hk-global-mobile.is-open {
    display: block;
  }
  .hk-global-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hk-global-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .hk-global-brand img {
    height: 36px;
  }
  .hk-global-footer-grid {
    grid-template-columns: 1fr;
  }
  .hk-global-footer-bottom {
    display: block;
  }
  .hk-global-footer-bottom div {
    margin-top: 8px;
  }
  .hk-global-mobile-actions {
    grid-template-columns: 1fr;
  }
}
