/* EPA site header (S1) — Theme Builder Header "epa-site-header" + parts/epa-nav.php + epa-nav.js.
   Port of the design's floating header card (home.css L452-L566, light "product UI" tokens L768-L775, dark-theme
   shadow L787), measured with tools/show.js on index@1440/1024/390:
     >= 1081px  two rows in a 104px card: actions (How it works, demo, Log in) over the page links; logo 66px tall
     641-1080   one 72px row: logo 52px, demo pill, menu toggle; the panel opens below the row
     <= 640px   card inset 12px, padding 0 14px, radius 0 0 16px 16px, logo 42px; <= 420px "Book a demo"
   The header overlays the first band by its own height (margin-bottom: -height), as the design does on every page,
   so each page's first section carries its own top clearance. */
:root{--epa-hdr-h:72px}
@media (min-width:1081px){:root{--epa-hdr-h:104px}}
html.lp-focus body.epa-lp-page{--epa-hdr-h:72px}

/* the Elementor location is the sticky box (a sticky child of a same-height wrapper would never stick) */
.elementor-location-header{position:sticky;top:0;z-index:50;margin-bottom:calc(-1 * var(--epa-hdr-h));pointer-events:none}
body.admin-bar .elementor-location-header{top:var(--wp-admin--admin-bar--height,32px)}
.elementor-location-header .epa-hdr.e-con{padding:0;background:none}
.elementor-location-header .epa-hdr-wrap.e-con{max-width:1240px;width:100%;margin-inline:auto;padding:0 32px;box-sizing:border-box}
.elementor-location-header .epa-hdr-card.e-con{
  pointer-events:auto;background:#fff;border-radius:0 0 20px 20px;padding:0 28px;
  box-shadow:0 8px 28px rgba(0,0,0,.4);transition:box-shadow 200ms,background 200ms;
}
.elementor-location-header .epa-hdr-card.e-con.is-scrolled{background:rgba(255,255,255,.94);-webkit-backdrop-filter:saturate(180%) blur(16px);backdrop-filter:saturate(180%) blur(16px)}
.elementor-location-header .epa-hdr-row.e-con{--flex-direction:row;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:24px;min-height:72px}
.elementor-location-header .epa-hdr-right.e-con{--width:auto;width:auto!important;flex:0 0 auto!important;margin-left:auto!important;align-items:flex-end!important}

/* logo (design EPALogo h=52; home.css L606 66px >= 1081, L218 42px <= 640) */
.elementor-location-header .epa-hdr-logo{flex:0 0 auto!important;width:auto!important;line-height:0}
.elementor-location-header .epa-hdr-logo a{display:flex}
.elementor-location-header .epa-hdr-logo img{display:block;height:52px!important;width:auto!important;max-width:none!important}

/* action row (design .hdr-util) */
.epa-hdr-util{display:flex;align-items:center;gap:10px}
.epa-hdr-util .epa-desk{display:inline-flex}
.epa-hbtn,.epa-hbtn:hover,.epa-hbtn:focus{
  display:inline-flex!important;align-items:center;justify-content:center;gap:10px;box-sizing:border-box;
  height:36px;padding:0 16px!important;border:1px solid transparent!important;border-radius:999px!important;
  font:500 14px/normal var(--epa-font-sans)!important;letter-spacing:0;white-space:nowrap;text-decoration:none!important;cursor:pointer;
  transition:background-color 120ms,color 120ms;
}
.epa-hbtn--primary{background:#167480!important;color:#fff!important}
.epa-hbtn--primary:hover,.epa-hbtn--primary:focus-visible{background:#115D67!important;color:#fff!important}
.epa-hbtn--soft{background:#EEF7F8!important;color:#167480!important}
.epa-hbtn--soft:hover,.epa-hbtn--soft:focus-visible{background:#D5ECEE!important;color:#167480!important}
.epa-hbtn svg{display:block;flex:none}
.epa-show-xs{display:none}

/* page links (design .nav-link; header copies read the light tokens) */
.epa-nav-link{display:flex;align-items:center;gap:6px;padding:0 14px;font:500 14px/normal var(--epa-font-sans);color:#334155!important;text-decoration:none!important;white-space:nowrap}
.epa-nav-link:hover,.epa-nav-link:focus-visible{color:#1A203E!important}
.epa-nav-link.hot{font-weight:600;color:#167480!important}
.epa-nav-link.hot:hover,.epa-nav-link.hot:focus-visible{color:#115D67!important}
.epa-nav-link svg{display:block;flex:none}
.epa-nav-util{height:40px;padding:0 0 0 8px;gap:8px;color:#0F172A!important}
.epa-nav{display:flex;gap:6px}

/* mobile toggle (design .menu-btn: 40px circle, 1px #E2E8F0, glyph 15px #334155) — pinned against Hello's button reset */
.epa-menu-btn,.epa-menu-btn:hover,.epa-menu-btn:focus{
  display:none;align-items:center;justify-content:center;box-sizing:border-box;width:40px;height:40px;padding:0!important;
  border:1px solid #E2E8F0!important;border-radius:999px!important;background:#fff!important;color:#334155!important;line-height:0;cursor:pointer;
}
.epa-menu-i{display:flex}
.epa-menu-i[hidden]{display:none!important}

/* mobile panel (design .hdr-mob) */
.epa-hdr-mob{display:grid;padding:4px 0 20px;border-top:1px solid #E2E8F0}
/* BugHerd #5: the panel lives in the sticky header, so on short screens (phones held sideways) its last links sat below
   the screen and page scrolling could not reach them. Cap it at the screen height minus the 72px header row and let it
   scroll on its own; portrait phones (panel 457px) are unaffected. */
.epa-hdr-mob{max-height:calc(100vh - 72px);max-height:calc(100svh - 72px);overflow-y:auto;overscroll-behavior:contain}
.epa-hdr-mob[hidden]{display:none!important}
.epa-mob-link,.epa-mob-link:hover,.epa-mob-link:focus{padding:14px 0;border-bottom:1px solid #E2E8F0;font:500 16px/normal var(--epa-font-sans);color:#0F172A!important;text-decoration:none!important}
.epa-mob-link.hot{font-weight:600;color:#167480!important}

/* >= 1081px: two rows */
@media (min-width:1081px){
  .elementor-location-header .epa-hdr-card.e-con{padding:0 36px}
  .elementor-location-header .epa-hdr-row.e-con{min-height:104px}
  .elementor-location-header .epa-hdr-logo img{height:66px!important}
  .epa-hdr-util{height:56px;padding-top:6px;box-sizing:border-box}
  .elementor-location-header .epa-hdr-nav{display:flex;height:48px;margin-right:-14px!important;max-width:none!important;width:auto!important}
  .epa-hdr-nav .epa-nav-link{height:44px;font-size:15px;letter-spacing:.01em;color:#0F172A!important}
  .epa-hdr-nav .epa-nav-link.hot{color:#167480!important}
  .epa-hdr-nav .epa-nav-link:hover{color:#1A203E!important}
  .epa-hdr-nav .epa-nav-link.hot:hover{color:#115D67!important}
  .epa-hdr-mob{display:none!important}
}
/* <= 1080px: one row, the desktop-only items go (home.css L68) */
@media (max-width:1080px){
  .elementor-location-header .epa-desk{display:none!important}
  .epa-menu-btn,.epa-menu-btn:hover,.epa-menu-btn:focus{display:inline-flex!important}
}
@media (max-width:640px){
  .elementor-location-header .epa-hdr-wrap.e-con{padding:0 12px}
  .elementor-location-header .epa-hdr-card.e-con{padding:0 14px;border-radius:0 0 16px 16px}
  .elementor-location-header .epa-hdr-row.e-con{gap:12px}
  .elementor-location-header .epa-hdr-logo img{height:42px!important}
  .epa-hdr-util{gap:8px}
}
@media (max-width:420px){.epa-hide-xs{display:none}.epa-show-xs{display:inline}}
