/* ============================================================
   BPHOST shared site header — SINGLE SOURCE for the main site
   AND the WHMCS theme. Namespaced .shdr* so it never collides
   with the legacy theme or WHMCS Bootstrap. Keep this file and
   partials/site_header.php (+ the WHMCS header.tpl copy) in sync.
============================================================ */
/* Brand-red bar: the same #a80400 the home hero starts on, so the two read as one surface. */
.shdr{position:sticky;top:0;z-index:1000;background:#a80400}
/* The bar is sticky, so anything the browser scrolls into view -- an #anchor,
   a focused or invalid form field -- must stop below it, not behind it.
   --shdr-h is the bar's measured height (set by the header script). */
html{scroll-padding-top:calc(var(--shdr-h,84px) + 12px)}
/* Overlay mode (home, opt-in via $shdr_overlay): the bar is part of the hero.
   Transparent, so the hero's mesh runs up behind the menu; a hairline is the
   only boundary; the hero is pulled up under it by the bar's measured height
   (.hero-under-nav). Once the hero has scrolled past, the bar goes solid so
   the menu never sits transparent over the rest of the page. */
.shdr.shdr-overlay{background:transparent;border-bottom:1px solid rgba(255,255,255,.22);transition:background-color .25s ease,border-color .25s ease}
.shdr.shdr-overlay.shdr-solid{background:#a80400;border-bottom-color:rgba(255,255,255,.12)}
/* The open mobile menu makes the bar taller than the hero behind it, so the
   see-through bar showed the white page and the white links vanished:
   an open menu is always solid. */
.shdr.shdr-overlay.shdr-open{background:#a80400;border-bottom-color:rgba(255,255,255,.12)}
.shdr-in{max-width:1680px;margin:0 auto;padding:11px 48px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.shdr-logo{display:block;flex:none;line-height:0}
.shdr-logo img{height:61px;width:auto;display:block}

.shdr-nav{display:flex;align-items:center;gap:0}
.shdr-nav>a{position:relative;font-family:inherit;font-size:16px;font-weight:700;text-transform:uppercase;letter-spacing:.2px;color:rgba(255,255,255,.86);text-decoration:none;padding:10px 13px;line-height:1;white-space:nowrap;transition:color .15s}
.shdr-nav>a::after{content:"";position:absolute;left:13px;right:13px;bottom:0;height:2px;border-radius:2px;background:#fff;transform:scaleX(0);transition:transform .18s}
.shdr-nav>a:hover,.shdr-nav>a.active{color:#fff}
.shdr-nav>a:hover::after,.shdr-nav>a.active::after{transform:scaleX(1)}

.shdr-sep{flex:none;width:1px;height:24px;background:rgba(255,255,255,.35);margin:0 8px 0 16px}
.shdr-act{display:inline-flex;align-items:center;justify-content:center;color:#fff;padding:6px 9px;text-decoration:none;transition:opacity .15s}
.shdr-act:hover{color:#fff;opacity:.75}
.shdr-act svg{width:22px;height:22px;display:block}
/* Login button: shown when nobody is signed in (always on the main site, which
   cannot see the WHMCS session; on /my only when $loggedin is false).
   Selectors are .shdr-nav>a.shdr-login on purpose: the button is a direct <a>
   child of .shdr-nav, so the nav-link rules (.shdr-nav>a, 0,1,1) would otherwise
   win -- their :hover sets color:#fff, which on this button's white hover
   background made the label invisible, and their ::after drew an underline bar. */
.shdr-nav>a.shdr-login{display:inline-flex;align-items:center;gap:7px;margin-left:8px;padding:8px 16px;
  border:1.5px solid rgba(255,255,255,.85);border-radius:999px;color:#fff;font-size:14px;
  line-height:1;white-space:nowrap;transition:background .15s,color .15s,border-color .15s}
.shdr-nav>a.shdr-login::after{display:none}
.shdr-nav>a.shdr-login svg{width:17px;height:17px;display:block;flex:none}
.shdr-nav>a.shdr-login:hover{background:#fff;color:#a80400;border-color:#fff}
.shdr-nav>a.shdr-login:focus-visible{outline:2px solid #fff;outline-offset:3px}

.shdr-burger{display:none;background:none;border:0;flex-direction:column;gap:5px;cursor:pointer;padding:8px}
.shdr-burger span{display:block;width:24px;height:2px;background:#fff}

@media(max-width:980px){
  .shdr-in{padding:10px 20px;flex-wrap:wrap}
  .shdr-logo img{height:54px}
  .shdr-burger{display:flex;order:2}
  .shdr-nav{display:none;order:3;flex-basis:100%;flex-direction:column;align-items:flex-start;gap:0;padding:6px 0 10px}
  .shdr.shdr-open .shdr-nav{display:flex}
  .shdr-nav>a{width:100%;padding:12px 4px}
  .shdr-nav>a::after{left:4px;right:auto;width:28px;bottom:4px}
  .shdr-sep{display:none}
  .shdr-act{padding:12px 4px}
  /* Every nav link goes full-width in the mobile menu; .shdr-act's desktop
     justify-content:center would then float the cart icon to the middle of
     the row, out of line with the links and the Login button. */
  .shdr-nav>a.shdr-act{justify-content:flex-start}
  .shdr-nav>a.shdr-login{width:auto;margin:10px 4px 6px;padding:10px 18px;align-self:flex-start}
}

/* Account menu (WHMCS header.tpl only -- the main site cannot see the WHMCS
   session, so it always shows Login). Opens on hover or keyboard focus; the
   ::before strip bridges the gap so the pointer can travel from icon to menu.
   Inside the mobile menu it unfolds inline as ordinary nav rows. */
.shdr-acct{position:relative;display:flex}
.shdr-acct-menu{display:none;position:absolute;right:0;top:100%;margin-top:10px;min-width:200px;background:#fff;border-radius:10px;box-shadow:0 14px 34px rgba(14,14,18,.2);padding:6px;z-index:1001;text-align:left}
.shdr-acct-menu::before{content:"";position:absolute;left:0;right:0;top:-10px;height:10px}
.shdr-acct:hover .shdr-acct-menu,.shdr-acct:focus-within .shdr-acct-menu{display:block}
.shdr-acct-name{display:block;padding:8px 12px 6px;font-size:12px;color:#5A6472;white-space:nowrap}
.shdr-acct-menu a{display:block;padding:9px 12px;border-radius:7px;color:#0E0E12;font-size:14px;font-weight:600;line-height:1.2;text-decoration:none;white-space:nowrap}
.shdr-acct-menu a:hover,.shdr-acct-menu a:focus{background:#F3F7FA;color:#a80400;text-decoration:none}
.shdr-acct-menu a.shdr-acct-out{margin-top:4px;border-top:1px solid #E7EDF2;border-radius:0 0 7px 7px;color:#a80400}
@media(max-width:980px){
  .shdr-acct{flex-direction:column;align-items:flex-start;width:100%}
  .shdr-acct-menu{display:block;position:static;margin:0;min-width:0;background:none;box-shadow:none;padding:0}
  .shdr-acct-menu::before{display:none}
  .shdr-acct-name{padding:2px 4px 4px;color:rgba(255,255,255,.7)}
  .shdr-acct-menu a,.shdr-acct-menu a.shdr-acct-out{padding:12px 4px;margin:0;border:0;border-radius:0;color:rgba(255,255,255,.86);font-size:16px;font-weight:700;text-transform:uppercase;letter-spacing:.2px}
  .shdr-acct-menu a:hover,.shdr-acct-menu a:focus{background:none;color:#fff}
}

/* ---- promo bar (partials/promo_bar.php) --------------------------------
   Sits above .shdr. Not sticky on purpose: it scrolls away and the nav keeps
   the top. PERMANENT -- no dismiss button. [hidden] is still honoured so the
   bar can be hidden programmatically if it is ever needed. */
.shdr-promo{position:relative;background:#0E0E12;color:#cfd6df;font-size:13.5px;line-height:1.35}
.shdr-promo[hidden]{display:none}
.shdr-promo-in{max-width:1680px;margin:0 auto;padding:9px 48px;display:flex;align-items:center;justify-content:center;gap:26px;flex-wrap:wrap}
.shdr-promo b{color:#fff;font-weight:600}
.shdr-promo .pcode{border:1px dashed rgba(255,255,255,.45);border-radius:5px;padding:2px 8px;margin-left:5px;font:600 12.5px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace;color:#fff;letter-spacing:.04em;background:none;cursor:pointer}
.shdr-promo .pcode:hover{border-color:#fff;background:rgba(255,255,255,.08)}
.shdr-promo .psep{width:1px;height:16px;background:rgba(255,255,255,.2);flex:none}
@media(max-width:1000px){.shdr-promo-in{padding:8px 16px;gap:6px 12px;font-size:12.5px;justify-content:flex-start}.shdr-promo .psep{display:none}}
/* Phones: the bar must not eat the screen. "at checkout" and the CTA go (the
   code chip already says what to do), and each offer gets one tight line. */
@media(max-width:620px){
  .shdr-promo-in{display:block;padding:6px 12px;font-size:11px;line-height:1.55;letter-spacing:-.1px;text-align:center}
  .shdr-promo-in > span{display:block;white-space:nowrap}
  .shdr-promo .pat{display:none}
  .shdr-promo .pcode{padding:0 5px;font-size:10.5px;margin-left:2px}
}
/* the narrowest phones (320-359px) may wrap rather than clip */
@media(max-width:359px){.shdr-promo-in > span{white-space:normal}}
