/* ==========================================================================
   Pole Position Pro — unified EN header menu + footer (SINGLE SOURCE OF TRUTH)
   Version v1 (2026-10-19). Every shop./casestudies./app.poleposition.pro page loads this file.
   Do NOT edit per page — change it here, then bump the ?v= asset version.
   All rules live under #hn / #hf, so a page's own CSS cannot break them.
   ========================================================================== */

#hn, #hn *, #hn *::before, #hn *::after { box-sizing: border-box; }
#hn {
  --hn-navy: #0B132B;
  --hn-line: rgba(248,245,238,.12);
  --hn-gold: #C9A66B;
  --hn-gold-l: #DDBB86;
  --hn-cream: #FFFDF8;
  --hn-muted: #C7C2B4;
  position: relative; z-index: 1000; display: block; width: 100%;
  margin: 0; padding: 0;
  background: var(--hn-navy); border-bottom: 1px solid var(--hn-line);
  font-family: 'Inter', Arial, sans-serif; font-size: 16px; line-height: 1.2; font-weight: 400;
  text-align: left; text-transform: none; letter-spacing: normal;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
#hn .hn-bar {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: 100%; max-width: 1280px; height: 64px; margin: 0 auto; padding: 0 32px;
}
#hn .hn-logo {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin: 0; padding: 0;
  font-family: 'Space Grotesk', Arial, sans-serif; font-weight: 700; font-size: 13px; line-height: 1;
  letter-spacing: 2px; text-transform: uppercase; white-space: nowrap;
  color: var(--hn-cream); text-decoration: none; background: none; border: 0;
}
#hn .hn-logo svg { display: block; width: 26px; height: 26px; flex-shrink: 0; }
#hn .hn-logo span { color: inherit; font: inherit; letter-spacing: inherit; }

#hn .hn-menu { display: flex; align-items: center; gap: 20px; flex-shrink: 0; margin: 0; padding: 0; background: none; border: 0; }
#hn .hn-list { display: flex; align-items: center; gap: 16px; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
#hn .hn-list li { display: block; margin: 0; padding: 0; list-style: none; border: 0; background: none; }
#hn .hn-list a {
  display: inline-block; margin: 0; padding: 0;
  font-family: 'Space Grotesk', Arial, sans-serif; font-weight: 600; font-size: 11px; line-height: 1.2;
  letter-spacing: .02em; text-transform: none; white-space: nowrap;
  color: var(--hn-muted); text-decoration: none; background: none; border: 0;
  transition: color .15s ease;
}
#hn .hn-list a:hover, #hn .hn-list a:focus-visible, #hn .hn-list a[aria-current="page"] { color: var(--hn-gold-l); }
#hn .hn-list .hn-lang a { border: 1px solid rgba(201,166,107,.28); border-radius: 20px; padding: 3px 9px; }
#hn .hn-list .hn-lang a:hover { border-color: var(--hn-gold); }

#hn .hn-cta {
  display: inline-flex; align-items: center; justify-content: center; margin: 0;
  padding: 9px 18px; border: 1px solid var(--hn-gold); border-radius: 2px; background: transparent;
  font-family: 'Inter', Arial, sans-serif; font-weight: 600; font-size: 12.5px; line-height: 1.2;
  letter-spacing: normal; text-transform: none; white-space: nowrap;
  color: var(--hn-gold); text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
#hn .hn-cta:hover, #hn .hn-cta:focus-visible { background: var(--hn-gold); color: var(--hn-navy); }

#hn .hn-burger {
  display: none; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; margin: 0; padding: 0;
  background: transparent; border: 1px solid rgba(201,166,107,.35); border-radius: 2px; cursor: pointer;
  color: var(--hn-cream); -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent;
}
#hn .hn-burger:focus-visible, #hn a:focus-visible { outline: 2px solid var(--hn-gold-l); outline-offset: 2px; }
#hn .hn-burger-box { position: relative; display: block; width: 20px; height: 14px; }
#hn .hn-burger-box i {
  position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; border-radius: 1px;
  transition: transform .2s ease, opacity .15s ease, top .2s ease;
}
#hn .hn-burger-box i:nth-child(1) { top: 0; }
#hn .hn-burger-box i:nth-child(2) { top: 6px; }
#hn .hn-burger-box i:nth-child(3) { top: 12px; }
#hn.hn-open .hn-burger-box i:nth-child(1) { top: 6px; transform: rotate(45deg); }
#hn.hn-open .hn-burger-box i:nth-child(2) { opacity: 0; }
#hn.hn-open .hn-burger-box i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* ---- Collapsed (mobile/tablet) state: hamburger + dropdown panel ----
   The same block is generated twice: @media (max-width:1179px) AND .hn-compact
   (pp-nav.js adds the latter if the menu would not fit on one row for any reason). */
@media (max-width: 1179px) {

#hn .hn-bar { padding: 0 20px; }
#hn .hn-burger { display: inline-flex; }
#hn .hn-menu {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column; align-items: stretch; gap: 0; flex-shrink: 1;
  padding: 6px 20px 22px; background: var(--hn-navy);
  border-top: 1px solid var(--hn-line); border-bottom: 1px solid var(--hn-gold);
  box-shadow: 0 22px 44px rgba(0,0,0,.5);
  max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px);
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
}
#hn.hn-open .hn-menu { display: flex; }
#hn .hn-list { flex-direction: column; align-items: stretch; gap: 0; white-space: normal; }
#hn .hn-list li { border-bottom: 1px solid rgba(248,245,238,.08); }
#hn .hn-list a { display: block; padding: 15px 2px; font-size: 16px; letter-spacing: .01em; }
#hn .hn-list .hn-lang a { border: 0; border-radius: 0; padding: 15px 2px; }
#hn .hn-cta { width: 100%; margin-top: 18px; padding: 15px 18px; font-size: 15px; background: var(--hn-gold); color: var(--hn-navy); }
#hn .hn-cta:hover, #hn .hn-cta:focus-visible { background: var(--hn-gold-l); color: var(--hn-navy); }
}
/* fallback: JS-applied .hn-compact (same rules) */

#hn.hn-compact .hn-bar { padding: 0 20px; }
#hn.hn-compact .hn-burger { display: inline-flex; }
#hn.hn-compact .hn-menu {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  flex-direction: column; align-items: stretch; gap: 0; flex-shrink: 1;
  padding: 6px 20px 22px; background: var(--hn-navy);
  border-top: 1px solid var(--hn-line); border-bottom: 1px solid var(--hn-gold);
  box-shadow: 0 22px 44px rgba(0,0,0,.5);
  max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px);
  overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
}
#hn.hn-compact.hn-open .hn-menu { display: flex; }
#hn.hn-compact .hn-list { flex-direction: column; align-items: stretch; gap: 0; white-space: normal; }
#hn.hn-compact .hn-list li { border-bottom: 1px solid rgba(248,245,238,.08); }
#hn.hn-compact .hn-list a { display: block; padding: 15px 2px; font-size: 16px; letter-spacing: .01em; }
#hn.hn-compact .hn-list .hn-lang a { border: 0; border-radius: 0; padding: 15px 2px; }
#hn.hn-compact .hn-cta { width: 100%; margin-top: 18px; padding: 15px 18px; font-size: 15px; background: var(--hn-gold); color: var(--hn-navy); }
#hn.hn-compact .hn-cta:hover, #hn.hn-compact .hn-cta:focus-visible { background: var(--hn-gold-l); color: var(--hn-navy); }


/* Without JS the menu stays reachable (stacked, no burger) */
#hn:not(.hn-js) .hn-burger { display: none; }
#hn:not(.hn-js) .hn-menu { display: flex; }
@media (max-width: 1179px) { #hn:not(.hn-js) .hn-menu { position: static; box-shadow: none; } }

@media (prefers-reduced-motion: reduce) { #hn * { transition: none !important; } }
@media print { #hn { display: none; } }

/* ==========================================================================
   UNIFIED FOOTER (#hf) — identical on every page; replaces the old footers
   ========================================================================== */
#hf, #hf *, #hf *::before, #hf *::after { box-sizing: border-box; }
#hf {
  position: relative; display: block; clear: both; width: 100%; max-width: none; margin: 0; padding: 0;
  background: #080E21; border: 0; border-top: 1px solid rgba(201,166,107,.45);
  color: #C7C2B4; font-family: 'Inter', Arial, sans-serif; font-size: 14px; line-height: 1.5; font-weight: 400;
  text-align: left; text-transform: none; letter-spacing: normal;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
}
/* Case-study pages: the old footer sat inside .wrap (50px above it) and the body had 70px bottom padding.
   Same spacing above the new footer; the negative bottom margin cancels the 70px padding so no empty strip stays below it. */
body > .wrap ~ #hf { margin: 50px 0 -70px; }
#hf .hf-anchor { all: initial; position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
#hf .hf-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
#hf ul { list-style: none; margin: 0; padding: 0; }
#hf li { margin: 0; padding: 0; list-style: none; }
#hf a { color: inherit; text-decoration: none; background: none; border: 0; }
#hf a:focus-visible { outline: 2px solid #DDBB86; outline-offset: 3px; }

/* strategy-call band */
#hf .hf-cta { background: linear-gradient(135deg, rgba(201,166,107,.16), rgba(201,166,107,.04)); border-bottom: 1px solid rgba(248,245,238,.1); }
#hf .hf-cta-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 34px; padding-bottom: 34px; }
#hf .hf-cta-txt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#hf .hf-cta-txt strong { font-family: 'Space Grotesk', Arial, sans-serif; font-weight: 700; font-size: 22px; line-height: 1.25; color: #FFFDF8; letter-spacing: -.005em; }
#hf .hf-cta-txt span { font-size: 14.5px; color: #C7C2B4; }
#hf .hf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0;
  padding: 15px 26px; border-radius: 2px; border: 1px solid #DDBB86;
  background: linear-gradient(135deg, #DDBB86, #C9A66B); color: #0B132B;
  font-family: 'Space Grotesk', Arial, sans-serif; font-weight: 700; font-size: 14.5px; line-height: 1.2; white-space: nowrap;
  transition: filter .15s ease, transform .15s ease;
}
#hf .hf-btn:hover, #hf .hf-btn:focus-visible { filter: brightness(1.08); transform: translateY(-1px); color: #0B132B; }

/* main grid */
#hf .hf-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.15fr; gap: 48px; padding-top: 56px; padding-bottom: 48px; }
#hf .hf-brand { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
#hf .hf-logo { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  font-family: 'Space Grotesk', Arial, sans-serif; font-weight: 700; font-size: 13px; line-height: 1; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; color: #FFFDF8; }
#hf .hf-logo svg { display: block; width: 26px; height: 26px; flex-shrink: 0; }
#hf .hf-brand p { margin: 0; max-width: 34ch; font-size: 14px; line-height: 1.6; color: #C7C2B4; }
#hf .hf-col { min-width: 0; }
#hf .hf-h { margin: 0 0 14px; font-family: 'Space Grotesk', Arial, sans-serif; font-weight: 700; font-size: 11px; line-height: 1.2; letter-spacing: .16em; text-transform: uppercase; color: #C9A66B; }
#hf .hf-col a { display: inline-block; padding: 6px 0; font-size: 14px; line-height: 1.3; color: #C7C2B4; transition: color .15s ease; }
#hf .hf-col a:hover, #hf .hf-col a:focus-visible { color: #DDBB86; }
#hf .hf-ext { font-size: .8em; margin-left: 3px; }

/* on pages that already end with their own CTA section the band would be a repeat */
#hf.hf-nocta .hf-cta { display: none; }

/* bottom bar */
#hf .hf-bar { border-top: 1px solid rgba(248,245,238,.1); }
#hf .hf-bar-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; padding-top: 20px; padding-bottom: 22px; font-size: 12.5px; line-height: 1.4; color: rgba(199,194,180,.72); }

@media (max-width: 960px) {
  #hf .hf-main { grid-template-columns: 1fr 1fr; gap: 36px 32px; padding-top: 44px; padding-bottom: 36px; }
  #hf .hf-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  #hf .hf-wrap { padding: 0 20px; }
  #hf .hf-cta-in { flex-direction: column; align-items: stretch; gap: 20px; padding-top: 28px; padding-bottom: 28px; }
  #hf .hf-cta-txt strong { font-size: 19px; }
  #hf .hf-btn { width: 100%; padding: 16px 20px; white-space: normal; text-align: center; }
}
@media (max-width: 560px) {
  #hf .hf-col a { padding: 9px 0; }
  #hf .hf-col-contact { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { #hf * { transition: none !important; } }
@media print { #hf .hf-cta { display: none; } }

/* Case studies: the main CTA (book a call) in gold, first — also in the card layout */
.cta-card.hn-call { background: linear-gradient(135deg, #DDBB86, #C9A66B); border-color: #DDBB86; }
.cta-card.hn-call:hover { border-color: #FFFDF8; }
.cta-card.hn-call .cta-title, .cta-card.hn-call .cta-desc, .cta-card.hn-call .cta-link { color: #0B132B; }
.cta-card.hn-call .cta-icon { background: rgba(11,19,43,.12); border-color: rgba(11,19,43,.35); color: #0B132B; }

/* Page-level mobile fix (industry case studies): the "flow" chips were nowrap and pushed the page 130+ px wider than a phone */
@media (max-width: 760px) { .flow .node2 { white-space: normal; } }
/* AI Workforce page: the 3-column role grid had no small-screen rule (404 px wide at 390 px, horizontal scroll) */
@media (max-width: 900px) { .role-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .role-grid { grid-template-columns: 1fr; } }
