/* ============================================================
   BLACKBADGE — site header (one component for every page)
   Fully scoped under .bbh / .bbh-panel so page styles can't change it.
   ============================================================ */
.bbh, .bbh *, .bbh-panel, .bbh-panel *{box-sizing:border-box;}
.bbh{
  --bbh-bg:rgba(11,11,13,.94); --bbh-ink:#F7F3EA; --bbh-mute:rgba(247,243,234,.62);
  --bbh-line:rgba(247,243,234,.09); --bbh-accent:#8FB4DB; --bbh-btn:#3E5C82; --bbh-btn-2:#4A6C96;
  --bbh-h:76px; --bbh-font:'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  position:sticky; top:0; left:0; right:0; z-index:500; height:var(--bbh-h);
  background:var(--bbh-bg); -webkit-backdrop-filter:blur(16px) saturate(140%); backdrop-filter:blur(16px) saturate(140%);
  border-bottom:1px solid var(--bbh-line); font-family:var(--bbh-font); color:var(--bbh-ink);
  transition:height .25s ease, box-shadow .25s ease, background-color .25s ease; padding:0 !important; margin:0;
}
.bbh--overlay{position:fixed;}
.bbh.is-scrolled, .bbh.scrolled{--bbh-h:66px; box-shadow:0 10px 30px -18px rgba(0,0,0,.8); background:rgba(11,11,13,.97);}
.bbh a{color:inherit; text-decoration:none;}
.bbh ul{list-style:none; margin:0; padding:0;}
.bbh-inner{max-width:1240px; height:100%; margin:0 auto; padding:0 24px; display:flex; align-items:center; gap:28px;}

/* brand */
.bbh-brand{flex:none; display:inline-flex; align-items:center; background:#F7F3EA; border-radius:10px; padding:7px 14px; transition:transform .2s ease;}
.bbh-brand:hover{transform:translateY(-1px);}
.bbh-brand img{display:block; height:30px; width:auto;}

/* primary nav */
.bbh-nav{flex:1; display:flex; justify-content:center; height:100%;}
.bbh-list{display:flex; align-items:center; gap:2px; height:100%;}
.bbh-item{position:relative; height:100%; display:flex; align-items:center;}
.bbh-link{position:relative; display:inline-flex; align-items:center; gap:6px; height:40px; padding:0 13px; border:0; background:none; cursor:pointer;
  font:600 14px/1 var(--bbh-font); letter-spacing:.01em; color:var(--bbh-mute) !important; border-radius:9px; white-space:nowrap; transition:color .18s, background-color .18s;}
.bbh-link::after{content:""; position:absolute; left:13px; right:13px; bottom:-1px; height:2px; border-radius:2px; background:var(--bbh-accent); transform:scaleX(0); transform-origin:left; transition:transform .25s ease;}
.bbh-item:hover > .bbh-link, .bbh-item:focus-within > .bbh-link, .bbh-link:hover{color:var(--bbh-ink) !important; background:rgba(247,243,234,.06);}
.bbh-item.is-active > .bbh-link{color:var(--bbh-ink) !important;}
.bbh-item.is-active > .bbh-link::after{transform:scaleX(1);}
.bbh-chev{width:11px; height:11px; opacity:.7; transition:transform .2s ease;}
.bbh-has:hover .bbh-chev, .bbh-has.is-open .bbh-chev{transform:rotate(180deg);}

/* dropdowns */
.bbh-drop{position:absolute; top:calc(100% - 6px); left:50%; min-width:300px; padding:10px; margin-top:0;
  background:#141418; border:1px solid rgba(247,243,234,.1); border-radius:16px; box-shadow:0 30px 60px -20px rgba(0,0,0,.75);
  opacity:0; visibility:hidden; transform:translate(-50%, 8px); transition:opacity .18s ease, transform .18s ease, visibility .18s;}
.bbh-drop::before{content:""; position:absolute; top:-12px; left:0; right:0; height:12px;}
.bbh-has:hover .bbh-drop, .bbh-has:focus-within .bbh-drop, .bbh-has.is-open .bbh-drop{opacity:1; visibility:visible; transform:translate(-50%, 0);}
.bbh-drop--svc{min-width:380px;}
.bbh-drop--2col{min-width:500px;}
.bbh-drop--2col ul{display:grid; grid-template-columns:1fr 1fr; gap:2px;}
.bbh-mi{display:flex; align-items:flex-start; gap:12px; padding:11px 12px; border-radius:11px; transition:background-color .15s;}
.bbh-mi b{display:block; font-size:14px; font-weight:700; color:#fff; line-height:1.3;}
.bbh-mi small{display:block; font-size:12.5px; font-weight:500; color:var(--bbh-mute); margin-top:2px; line-height:1.4;}
.bbh-mi-ic{flex:none; width:34px; height:34px; border-radius:9px; display:grid; place-items:center; background:rgba(143,180,219,.12); color:var(--bbh-accent);}
.bbh-mi:hover, .bbh-ml:hover, .bbh-ma:hover{background:rgba(143,180,219,.1);}
.bbh-mi:hover b{color:var(--bbh-accent);}
.bbh-ml{display:block; padding:10px 12px; border-radius:10px; font-size:13.5px; font-weight:600; color:rgba(247,243,234,.88); line-height:1.35; transition:background-color .15s, color .15s;}
.bbh-ml:hover{color:#fff;}
.bbh-ma{display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:10px; font-size:13.5px; font-weight:600; color:rgba(247,243,234,.88);}
.bbh-code{flex:none; min-width:42px; text-align:center; padding:4px 6px; border-radius:7px; background:rgba(143,180,219,.14); color:var(--bbh-accent); font-size:11.5px; font-weight:800; letter-spacing:.06em;}
.bbh-all{grid-column:1 / -1; border-top:1px solid var(--bbh-line); margin-top:6px; padding-top:6px;}
.bbh-all a{display:block; padding:10px 12px; border-radius:10px; font-size:13.5px; font-weight:700; color:var(--bbh-accent);}
.bbh-all a:hover{background:rgba(143,180,219,.1);}

/* right side */
.bbh-right{flex:none; display:flex; align-items:center; gap:16px;}
.bbh-phone{display:flex; align-items:center; gap:9px; color:var(--bbh-ink) !important; font-weight:700; font-size:13.5px; line-height:1.15; transition:color .18s;}
.bbh-phone svg{color:var(--bbh-accent);}
.bbh-phone small{display:block; font-size:10.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--bbh-mute);}
.bbh-phone:hover{color:var(--bbh-accent) !important;}
.bbh-cta{display:inline-flex; align-items:center; justify-content:center; height:44px; padding:0 22px; border-radius:999px; background:var(--bbh-btn); color:#fff !important;
  font:800 14px/1 var(--bbh-font); letter-spacing:.01em; white-space:nowrap; box-shadow:0 10px 24px -12px rgba(62,92,130,.9); transition:background-color .18s, transform .18s;}
.bbh-cta:hover{background:var(--bbh-btn-2); transform:translateY(-1px);}

/* burger */
.bbh-burger{display:none; width:44px; height:44px; border-radius:11px; border:1px solid var(--bbh-line); background:rgba(247,243,234,.05); cursor:pointer; position:relative; padding:0;}
.bbh-burger span, .bbh-burger span::before, .bbh-burger span::after{position:absolute; left:12px; width:18px; height:2px; border-radius:2px; background:#fff; content:""; transition:transform .25s ease, background-color .25s;}
.bbh-burger span{top:21px;} .bbh-burger span::before{left:0; top:-6px;} .bbh-burger span::after{left:0; top:6px;}
.bbh-burger[aria-expanded="true"] span{background:transparent;}
.bbh-burger[aria-expanded="true"] span::before{transform:translateY(6px) rotate(45deg);}
.bbh-burger[aria-expanded="true"] span::after{transform:translateY(-6px) rotate(-45deg);}

/* mobile panel */
.bbh-panel{position:fixed; left:0; right:0; top:var(--bbh-top,76px); bottom:0; z-index:499; background:#0B0B0D; overflow-y:auto; -webkit-overflow-scrolling:touch;
  font-family:'Manrope', system-ui, sans-serif; color:#F7F3EA; transform:translateX(100%); transition:transform .32s ease; visibility:hidden;}
.bbh-panel.is-open{transform:none; visibility:visible;}
.bbh-panel a{color:inherit; text-decoration:none;}
.bbh-panel-in{padding:12px 20px 40px; max-width:560px; margin:0 auto;}
.bbh-mg{border-bottom:1px solid rgba(247,243,234,.09);}
.bbh-mg summary{list-style:none; display:flex; align-items:center; justify-content:space-between; padding:17px 2px; font-size:18px; font-weight:700; cursor:pointer;}
.bbh-mg summary::-webkit-details-marker{display:none;}
.bbh-mg summary .bbh-chev{width:14px; height:14px; transition:transform .2s;}
.bbh-mg[open] summary .bbh-chev{transform:rotate(180deg);}
.bbh-mg div{display:grid; gap:2px; padding:0 0 14px;}
.bbh-mg div a{padding:10px 12px; border-radius:10px; font-size:15px; font-weight:600; color:rgba(247,243,234,.82);}
.bbh-mg div a:hover, .bbh-mg div a:active{background:rgba(143,180,219,.1); color:#fff;}
.bbh-pl{display:block; padding:17px 2px; font-size:18px; font-weight:700; border-bottom:1px solid rgba(247,243,234,.09);}
.bbh-panel-cta{display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:24px;}
.bbh-panel .bbh-cta{height:50px; width:100%;}
.bbh-app{display:flex; align-items:center; justify-content:center; height:50px; border-radius:999px; border:1px solid rgba(247,243,234,.25); font-weight:800; font-size:14px;}
.bbh-support{display:flex; align-items:center; justify-content:center; gap:8px; margin-top:16px; font-size:14px; font-weight:600; color:rgba(247,243,234,.7) !important;}
.bbh-support svg{color:#8FB4DB;}
body.bbh-lock{overflow:hidden;}

/* responsive */
@media (max-width:1180px){ .bbh-phone span{display:none;} .bbh-link{padding:0 10px;} .bbh-inner{gap:18px;} }
@media (max-width:1040px){
  .bbh-nav, .bbh-phone{display:none;}
  .bbh-burger{display:block;}
  .bbh-inner{justify-content:space-between;}
  .bbh-right{gap:10px;}
}
@media (max-width:420px){
  .bbh{--bbh-h:66px;}
  .bbh-inner{padding:0 14px;}
  .bbh-brand{padding:6px 10px;} .bbh-brand img{height:24px;}
  .bbh-right .bbh-cta{height:40px; padding:0 15px; font-size:13px;}
  .bbh-burger{width:40px; height:40px;} .bbh-burger span{top:19px; left:11px;}
}
@media (prefers-reduced-motion:reduce){ .bbh, .bbh *, .bbh-panel{transition:none !important;} }

/* hide any legacy header bits a page may still carry */
.mobile-panel:not(.bbh-panel){display:none !important;}

/* skip link (scoped here so every page has it, whatever its own CSS) */
.skip-link{position:absolute; left:-9999px; top:8px; z-index:600; background:#fff; color:#0B0B0D; padding:10px 14px; border-radius:8px; font:700 14px/1 'Manrope', system-ui, sans-serif; text-decoration:none;}
.skip-link:focus{left:12px;}
.bbh-drop--2col{min-width:520px;}
