/* Source of truth: Eddie's Uplift Partners header spec (/workspace/uplift-header-spec), Nov 22 2026.
   Fonts are self-hosted (CSP font-src 'self'). Bar starts solid on these light pages. */
@font-face { font-family: 'Manrope'; src: url(/target/header/fonts/manrope-variable.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Hind'; src: url(/target/header/fonts/hind-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Hind'; src: url(/target/header/fonts/hind-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Hind'; src: url(/target/header/fonts/hind-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }

/* Uplift Partners header — standalone drop-in for React.
   Measured from the live Elementor header template (ID 125) on
   https://www.upliftpartners.com/ on 2026-11-22.
   Breakpoints match Elementor: tablet 1024px, mobile 767px.
*/

:root {
  --up-navy: #1d2f55;
  --up-navy-deep: #162340;
  --up-bronze: #8c7051;
  --up-bronze-dark: #544331;
  --up-accent: #415a4c;
  --up-white: #ffffff;
  --up-page: #eceeed;
  --up-text: #2e2e2e;
  --up-header-radius: 20px;
  --up-bar-max: 1170px;
  --up-font-hind: "Hind", sans-serif;
  --up-font-manrope: "Manrope", sans-serif;
}

.up-site-header,
.up-site-header * {
  box-sizing: border-box;
}

.up-site-header {
  background-color: var(--up-page);
  margin: 0;
  padding: 0;
}

/* Outer shell: side gutters + negative margin so the bar overlays the hero. */
.up-header-shell {
  position: relative;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
  margin: 0 0 -100px;
}

.up-header-spacer {
  width: 100%;
  height: 50px;
  flex: 0 0 50px;
}

/* The floating rounded bar. Transparent at rest (hero shows through).
   Solid navy when .is-sticky is applied (scroll / Elementor sticky--active). */
.up-header {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  border-radius: var(--up-header-radius);
  background-color: rgba(29, 47, 85, 0);
  transition: background-color 0.3s;
  position: sticky;
  top: 10px;
  z-index: 99;
  min-height: 56.8px;
}

.up-header.is-sticky,
.up-header.elementor-sticky--active {
  background-color: rgba(29, 47, 85, 1);
}

.up-header-inner {
  width: 100%;
  max-width: var(--up-bar-max);
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
}

/* Logos */
.up-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  text-decoration: none;
  line-height: 0;
}

.up-logo--desktop img {
  display: block;
  width: 240px;
  height: auto;
  max-width: none;
}

.up-logo--mobile {
  display: none;
}

.up-logo--mobile img {
  display: block;
  width: 40px;
  height: 40px;
}

/* Desktop / tablet horizontal nav */
.up-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

.up-nav-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.up-nav-list > li {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 0;
  padding: 0;
}

.up-nav-list > li > a {
  display: flex;
  flex-direction: row;
  align-items: center;
  color: var(--up-white);
  fill: var(--up-white);
  font-family: var(--up-font-hind);
  font-size: 17px; /* 1.0625rem */
  font-weight: 600;
  line-height: 1.3em;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  padding: 0;
  /* --e-nav-menu-horizontal-menu-item-margin: calc(30px / 2) → 15px on each side, 30px between items.
     The live menu drops the outer side margin on the first and last items. */
  margin: 0 15px;
  white-space: nowrap;
  background: transparent;
}
.up-nav-list > li:first-child > a {
  margin-left: 0;
}
.up-nav-list > li:last-child > a {
  margin-right: 0;
}

/* Live site hover/active color is declared as accent #415A4C, but a more
   specific color:#fff rule wins, so the item stays white. Match that. */
.up-nav-list > li > a:hover,
.up-nav-list > li > a:focus,
.up-nav-list > li > a[aria-current="page"],
.up-nav-list > li.is-active > a {
  color: var(--up-white);
}

.up-caret {
  /* Live .sub-arrow: 22px box, padding-left 10px, font-size 17px.
     That leaves a ~13px gap from the label to the 9px chevron and makes
     the 1440 menu run Services x≈520 through Live Mandates ending x≈1031. */
  display: inline-block;
  box-sizing: border-box;
  width: 22px;
  height: 17px;
  padding-left: 10px;
  margin-left: 0;
  font-size: 17px;
  line-height: 17px;
  flex: 0 0 22px;
}

.up-caret svg {
  display: block;
  width: 9px;
  height: 9px;
  fill: currentColor;
}

/* Desktop dropdowns */
.up-sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  min-width: 220px;
  background-color: var(--up-white);
  border-radius: 20px;
  overflow: hidden;
  z-index: 200;
}

.up-nav-list > li:hover > .up-sub,
.up-nav-list > li:focus-within > .up-sub {
  display: block;
}

.up-sub a {
  display: block;
  font-family: var(--up-font-hind);
  font-size: 16px; /* 1rem, typography "text" */
  font-weight: 400;
  line-height: 1.3em;
  letter-spacing: normal;
  text-transform: none;
  text-decoration: none;
  color: var(--up-navy);
  background-color: transparent;
  padding: 14px 20px;
}

.up-sub a:hover,
.up-sub a:focus,
.up-sub a[aria-current="page"] {
  background-color: var(--up-page);
  color: var(--up-navy);
}

/* CTA — kit button: bronze fill, Manrope 16px/800, 30px radius, 8px 5px.
   Header widget hover is also bronze, so fill does not change. */
.up-cta {
  display: inline-block;
  flex: 0 0 auto;
  align-self: center;
  font-family: var(--up-font-manrope);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3em;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  text-decoration: none;
  color: var(--up-white);
  background-color: var(--up-bronze);
  border: 0;
  border-radius: 30px;
  padding: 8px 5px;
  min-width: 128px;
  box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.up-cta:hover,
.up-cta:focus {
  color: var(--up-white);
  background-color: var(--up-bronze);
  box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.15);
}

/* Hamburger — hidden on desktop; 30px icon at tablet, padded to ~45px */
.up-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: 45px;
  height: 50px;
  padding: 7.5px;
  border: 0;
  border-radius: 10px;
  background: rgba(140, 112, 81, 0);
  color: var(--up-white);
  cursor: pointer;
  flex: 0 0 45px;
}

.up-toggle svg {
  display: block;
  width: 30px;
  height: 30px;
  fill: var(--up-white);
}

.up-toggle .up-toggle-close {
  display: none;
}

.up-header.is-open .up-toggle .up-toggle-open {
  display: none;
}

.up-header.is-open .up-toggle .up-toggle-close {
  display: block;
}

/* Mobile contact envelope — hidden on desktop/tablet */
.up-contact-icon {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 10px;
  border-radius: 50%;
  background-color: var(--up-bronze);
  color: var(--up-white);
  flex: 0 0 40px;
  text-decoration: none;
}

.up-contact-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: var(--up-white);
}

.up-contact-icon:hover,
.up-contact-icon:focus {
  background-color: var(--up-bronze-dark);
}

/* ---------- Tablet (Elementor): max-width 1024px ---------- */
@media (max-width: 1024px) {
  .up-header-shell {
    padding: 0 20px;
    margin-bottom: -70px;
  }

  .up-header-spacer {
    height: 20px;
    flex-basis: 20px;
  }

  .up-header {
    min-height: 70px;
  }

  .up-header-inner {
    padding: 0;
  }

  .up-logo--desktop img {
    width: 220px;
    max-width: none;
  }

  /* Horizontal menu hides; hamburger + flyout appear. CTA still visible. */
  .up-nav-desktop {
    display: none;
  }

  .up-toggle {
    display: flex;
  }

  .up-flyout {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    width: auto;
    min-width: 220px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    background-color: var(--up-white);
    border-radius: 20px;
    overflow: hidden;
    z-index: 200;
  }

  .up-header.is-open .up-flyout {
    display: block;
  }

  .up-flyout a {
    display: block;
    font-family: var(--up-font-hind);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3em;
    color: var(--up-navy);
    text-decoration: none;
    padding: 12px 25px;
  }

  .up-flyout a:hover,
  .up-flyout a:focus {
    background-color: var(--up-page);
  }

  .up-flyout .up-flyout-parent {
    font-weight: 600;
  }
}

/* ---------- Mobile (Elementor): max-width 767px ---------- */
@media (max-width: 767px) {
  .up-header-shell {
    padding: 0 15px;
    margin-bottom: -70px; /* tablet rule still applies; not restated as -100 */
  }

  .up-header {
    min-height: 60px;
    padding: 0 20px;
  }

  .up-header-inner {
    padding: 0;
    gap: 0;
  }

  .up-logo--desktop {
    display: none;
  }

  .up-logo--mobile {
    display: flex;
  }

  .up-cta {
    display: none;
  }

  .up-contact-icon {
    display: flex;
    margin-left: 10px;
  }

  /* Custom CSS on the live site: dropdown width 100% and margin 0 20px at <=1024.
     Computed at 390 CSS px was closer to a 220px right-aligned panel (see header-spec.md).
     Use the written CSS (full-width with 20px side margin) as the intended behavior. */
  .up-flyout {
    left: 0;
    right: 0;
    width: auto;
    margin: 4px 0 0;
  }
}

/* On our light subdomain pages the bar starts solid navy so white nav text stays
   readable. The live www.upliftpartners.com bar is transparent at rest and turns
   #1D2F55 only when sticky, because a dark hero sits underneath. */
.up-header--solid,
.up-header.up-header--solid {
  background-color: #1d2f55;
}

/* Optional trailing slot (Target pill, profile) used by signed-in app chrome. */
.up-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin-left: 8px;
}

/* Compact signed-in chrome: less vertical space, no gray shell, solid bar. */
.up-site-header.up-compact {
  background-color: transparent;
}
.up-site-header.up-compact .up-header-shell {
  /* Same horizontal gutters as the marketing header; no 50px spacer (logged-in pages have no hero overlay). */
  padding: 10px 40px;
  margin: 0;
}
.up-site-header.up-compact .up-header-spacer {
  display: none;
}
@media (max-width: 1024px) {
  .up-site-header.up-compact .up-header-shell { padding: 10px 20px; }
}
@media (max-width: 767px) {
  .up-site-header.up-compact .up-header-shell { padding: 10px 15px; }
}

/* Light subdomain pages: the live marketing header overlays a dark hero (margin-bottom: -100px).
   Cancel that overlay so page content is not hidden under the solid bar. Restore it only when a
   dark .pl-hero follows the header (dealteam.upliftpartners.com). */
.up-site-header:not(.up-compact) .up-header-shell {
  margin-bottom: 0;
}
.pub:has(.pl-hero) .up-site-header:not(.up-compact) .up-header-shell {
  margin-bottom: -100px;
}
@media (max-width: 1024px) {
  .pub:has(.pl-hero) .up-site-header:not(.up-compact) .up-header-shell {
    margin-bottom: -70px;
  }
}


/* Dec 1 2026 (Quinn): signed-in chrome on mid-width screens. The marketing
   links (Services … Live Mandates) overlapped Contact Us and the wordmark at
   ~1024–1440. Tuck those site links into the existing hamburger below 1600px;
   keep Contact Us, the app links, the name and Sign out visible. The public
   marketing header is unchanged and still folds at 1024. */
.up-site-header.up-compact .up-header-inner {
  position: relative;
}
.up-site-header.up-compact .up-nav-desktop {
  display: none;
}
.up-site-header.up-compact .up-toggle {
  display: flex;
  margin-left: auto;
}
.up-site-header.up-compact .up-tools {
  margin-left: 8px;
}
.up-site-header.up-compact .up-flyout {
  display: none;
  position: absolute;
  top: 100%;
  right: auto;
  left: 0;
  width: auto;
  min-width: 220px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  background-color: var(--up-white);
  border-radius: 20px;
  overflow: hidden;
  z-index: 200;
}
.up-site-header.up-compact .up-header.is-open .up-flyout {
  display: block;
}
.up-site-header.up-compact .up-flyout a {
  display: block;
  font-family: var(--up-font-hind);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.3em;
  color: var(--up-navy);
  text-decoration: none;
  padding: 12px 25px;
}
.up-site-header.up-compact .up-flyout a:hover,
.up-site-header.up-compact .up-flyout a:focus {
  background-color: var(--up-page);
}
.up-site-header.up-compact .up-flyout .up-flyout-parent {
  font-weight: 600;
}
@media (min-width: 1600px) {
  /* Dec 1 2026 (Quinn): match live diligence.upliftpartners.com — the marketing
     nav sits in the space between the logo and the right-hand tools (centered),
     so there is a clear gap after the wordmark before Services, instead of
     packing the menu against the logo. */
  .up-site-header.up-compact .up-nav-desktop {
    display: flex;
    justify-content: center;
  }
  .up-site-header.up-compact .up-toggle {
    display: none;
  }
  .up-site-header.up-compact .up-tools {
    margin-left: 16px;
  }
}

/* Dec 1 2026 (Quinn): on the three portal apps only (not www.upliftpartners.com),
   the header content uses the full width of the bar, with a 32–80px side cushion
   that scales with the viewport (~77px at 1920, mirrored left and right). The
   previous min(1600px, 92vw) row plus inner clamp padding plus 40px shell gutters
   left the logo ~170px in; a later 24–40px cushion was still too tight on the left. */
@media (min-width: 1025px) {
  .up-site-header.up-compact .up-header-shell {
    padding-left: clamp(32px, 4vw, 80px);
    padding-right: clamp(32px, 4vw, 80px);
  }
  .up-site-header.up-compact .up-header-inner {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
    justify-content: space-between;
  }
}
/* Dec 2 2026 (Quinn, from Eddie's live check): the PUBLIC marketing header on every portal (Target signed-out, deals incl. the 404 and
   register-interest, Diligence signed-out) lines up with www.upliftpartners.com. The outer bar is the viewport minus the 40px gutters
   (viewport - 80px) at rest AND when sticky (the fixed bar uses left/right 40px), so nothing jumps on scroll. Inside it the row is capped
   at min(1600px, 92vw), centered, with a clamp(24px, 2.5vw, 48px) side padding and space-between: logo x 93.6 / 208 / 528 at 1440 / 1920 / 2560.
   The signed-in compact bars above keep their own cushion (unchanged). */
@media (min-width: 1025px) {
  .up-site-header:not(.up-compact) .up-header-shell {
    padding-left: 40px;
    padding-right: 40px;
  }
  .up-site-header:not(.up-compact) .up-header-inner {
    width: 100%;
    max-width: min(1600px, 92vw);
    margin: 0 auto;
    padding-left: clamp(24px, 2.5vw, 48px);
    padding-right: clamp(24px, 2.5vw, 48px);
    justify-content: space-between;
  }
}
/* Website pages share theme.css, so .dt-header would otherwise force a fixed
   height, side padding and a bronze rule. Same reset as the staff sheet, but
   the page identity label in .up-tools stays visible (staff hides tools on
   the signed-out marketing header). */
.dt-header.up-site-header { display: block; height: auto; padding: 0; }
.dt-header.up-site-header:not(.up-compact) { position: static; border-bottom: 0; background-color: var(--up-page); }
.dt-header.up-site-header .dt-app { color: #fff; }
.dt-header.up-site-header .up-tools .dt-app {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .01em;
  padding: 3px 12px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}


/* Follow-up (Nov 30 2026): public marketing header only.
   At rest the bar stays in flow under the 50px / 20px spacer (live Elementor).
   uplift-header.js adds .is-sticky, which pins the bar with position:fixed; top:10px
   and shows a same-height placeholder so page content is not covered or jumped.
   Signed-in compact chrome is unchanged so Diligence --header-height: 60px and
   the filter rail stay aligned. */
.up-site-header:not(.up-compact) .up-header {
  position: relative;
  top: auto;
}
.up-site-header:not(.up-compact) .up-header.is-sticky {
  position: fixed;
  top: 10px;
  left: 40px;
  right: 40px;
  width: auto;
  z-index: 99;
}
@media (max-width: 1024px) {
  .up-site-header:not(.up-compact) .up-header.is-sticky {
    left: 20px;
    right: 20px;
  }
}
@media (max-width: 767px) {
  .up-site-header:not(.up-compact) .up-header.is-sticky {
    left: 15px;
    right: 15px;
  }
}
.up-header-sticky-fill {
  display: none;
  width: 100%;
  flex: 0 0 auto;
  pointer-events: none;
  visibility: hidden;
}
.up-header-sticky-fill.is-on {
  display: block;
}

/* Public marketing header at tablet (768–1024). Live Elementor template 125
   (measured 2026-11-30): bar 77.59px, inner padding 10px and a 10px inset,
   button stretched to 57.59px. The wordmark and CTA shrink with the live
   flex (nav widget width calc(100% - 275px)); fitted to those measurements:
   logo calc(163.83px + 3.151vw) → 195.34px at 1000 / 188.03px at 768;
   CTA calc(95.72px + 1.845vw) → 114.17px at 1000 / 109.89px at 768.
   Compact signed-in chrome is not included (stays 60px on Diligence). */
@media (min-width: 768px) and (max-width: 1024px) {
  .up-site-header:not(.up-compact) .up-header {
    min-height: 77.59px;
    height: 77.59px;
  }
  .up-site-header:not(.up-compact) .up-header {
    align-items: stretch;
  }
  .up-site-header:not(.up-compact) .up-header-inner {
    padding: 10px 10px;
    align-items: stretch;
    align-self: stretch;
    height: 100%;
    box-sizing: border-box;
  }
  .up-site-header:not(.up-compact) .up-logo--desktop img {
    width: calc(163.83px + 3.151vw);
    max-width: 100%;
    height: auto;
  }
  .up-site-header:not(.up-compact) .up-cta {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    width: calc(95.72px + 1.845vw);
    flex: 0 0 auto;
  }
  .up-site-header:not(.up-compact) .up-logo,
  .up-site-header:not(.up-compact) .up-toggle {
    align-self: center;
  }
}

/* Public desktop bar matches live .elementor-element-64f497a (Eddie, Nov 30 2026):
   57px tall, top 50px at rest / 10px when sticky, logo at top+18, button at top+10,
   sticky fill rgb(29, 47, 85). Tablet 768–1024 stays 77.59px; compact stays 60px. */
@media (min-width: 1025px) {
  .up-site-header:not(.up-compact) .up-header {
    min-height: 57px;
    height: 57px;
  }
  .up-site-header:not(.up-compact) .up-header-inner {
    align-items: flex-start;
    min-height: 57px;
  }
  .up-site-header:not(.up-compact) .up-logo--desktop {
    margin-top: 7.5px;   /* www: logo y = bar top + 17.5 (67.5 at rest, 27.5 sticky) */
  }
  .up-site-header:not(.up-compact) .up-cta {
    align-self: flex-start;
  }
  .up-site-header:not(.up-compact) .up-nav,
  .up-site-header:not(.up-compact) .up-tools {
    align-self: center;
  }
}

/* Dec 2 2026 (Quinn, from Eddie's live check): theme.css gives every `.dt-header a` padding 4px 8px and a 6px radius. On the pages whose header is
   also a .dt-header (Target signed out, the deals 404 and the website pages) that pushed the logo 8px right and 3px down (x 65.6, y 71) and made
   Contact Us 128 x 28.8 with a 6px radius. Undo it for the public bar only, so these match the deals landing: Contact Us 128 x 36.8, 30px radius,
   padding 8px 5px; logo x/y exactly as www. The signed-in compact bar is not touched. */
.dt-header.up-site-header:not(.up-compact) .up-logo {
  padding: 0;
  border-radius: 0;
}
.dt-header.up-site-header:not(.up-compact) .up-cta {
  padding: 8px 5px;
  border-radius: 30px;
}
.dt-header.up-site-header:not(.up-compact) .up-contact-icon {
  padding: 10px;
  border-radius: 50%;
}
.dt-header.up-site-header:not(.up-compact) .up-header a:hover,
.dt-header.up-site-header:not(.up-compact) .up-header a:focus {
  background-color: transparent;
  text-decoration: none;
}
.dt-header.up-site-header:not(.up-compact) .up-header .up-cta:hover,
.dt-header.up-site-header:not(.up-compact) .up-header .up-cta:focus {
  background-color: var(--up-bronze);
}
.dt-header.up-site-header:not(.up-compact) .up-header .up-contact-icon:hover,
.dt-header.up-site-header:not(.up-compact) .up-header .up-contact-icon:focus {
  background-color: var(--up-bronze-dark);
}
.dt-header.up-site-header:not(.up-compact) .up-header .up-sub a:hover,
.dt-header.up-site-header:not(.up-compact) .up-header .up-sub a:focus,
.dt-header.up-site-header:not(.up-compact) .up-header .up-flyout a:hover,
.dt-header.up-site-header:not(.up-compact) .up-header .up-flyout a:focus {
  background-color: var(--up-page);
}
