/* MEP Estimate-X · MEP Tools header aligned with the main website */
.tools-site-header{
  position:sticky;top:0;z-index:100;width:100%;height:78px;margin:0;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  padding:10px max(36px,calc((100vw - 1456px)/2));
  border:0;border-bottom:1px solid #e5eef7;border-radius:0;
  background:rgba(255,255,255,.93);
  box-shadow:0 1px 12px rgba(60,97,132,.03);
  backdrop-filter:blur(15px);-webkit-backdrop-filter:blur(15px)
}
.tools-site-header a{text-decoration:none}
.tools-brand{display:flex;align-items:center;flex-shrink:0;color:#071d42}
.tools-brand .brand-copy{display:flex;flex-direction:column;gap:5px}
.tools-brand .brand-copy strong{display:flex;align-items:center;white-space:nowrap;font-size:26px;line-height:1;letter-spacing:-1px;font-weight:800}
.tools-brand .brand-copy strong img{display:inline-block;width:39px;height:42px;margin-inline-start:0;filter:drop-shadow(0 3px 2px rgba(7,59,98,.12))}
.tools-brand .brand-copy small{font-size:8px;line-height:1.2;letter-spacing:2.25px;color:#667e9a;font-weight:600;white-space:nowrap}
.tools-site-header .links{display:flex;align-items:center;justify-content:center;gap:29px;flex:1;font-size:12px;font-weight:600;white-space:nowrap}
.tools-site-header .links a{position:relative;padding:15px 0;color:#27405f}
.tools-site-header .links a::after{content:"";position:absolute;bottom:4px;inset-inline:0;height:2px;background:#0868ff;transform:scaleX(0);transition:transform .18s ease}
.tools-site-header .links a:hover,.tools-site-header .links a.active{color:#0868ff}
.tools-site-header .links a:hover::after,.tools-site-header .links a.active::after{transform:scaleX(1)}
.tools-header-actions{display:flex;align-items:center;gap:18px;flex-shrink:0}
.tools-language-switch{display:flex;align-items:center;gap:0;font-size:11px}
.tools-language-switch a{min-width:32px;padding:8px 6px;text-align:center;border-radius:7px;line-height:1;color:#355170}
.tools-language-switch a[aria-current="true"]{background:#0868ff;color:#fff;box-shadow:0 4px 12px rgba(8,104,255,.18)}
.tools-header-cta{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:13px 22px;border-radius:12px;background:linear-gradient(112deg,#0069cf,#092d58);color:#fff;font-size:12px;font-weight:700;box-shadow:0 6px 16px rgba(18,62,102,.15);transition:transform .18s ease,box-shadow .18s ease}
.tools-header-cta:hover{transform:translateY(-1px);box-shadow:0 9px 22px rgba(18,62,102,.20)}
.tools-menu-toggle{display:none;width:34px;height:36px;place-items:center;border:0;border-radius:9px;background:#f3f8fe;color:#163a67;cursor:pointer}
.tools-menu-toggle svg{width:20px;height:20px}
.tools-mobile-nav{display:none;position:absolute;top:100%;inset-inline:16px;padding:9px;border:1px solid #dce8f5;border-radius:14px;background:rgba(255,255,255,.98);box-shadow:0 18px 45px rgba(12,54,103,.16);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.tools-mobile-nav[data-open="true"]{display:grid}
.tools-mobile-nav a{padding:12px 13px;border-radius:9px;color:#244a75;font-size:12px;font-weight:700}
.tools-mobile-nav a:hover,.tools-mobile-nav a.active{background:#edf6ff;color:#0868ff}
@media(max-width:1180px){
  .tools-site-header .links{gap:20px;font-size:11px}
  .tools-header-actions{gap:10px}
  .tools-header-cta{padding-inline:16px}
}
@media(max-width:1000px){
  .tools-site-header{height:73px}
  .tools-site-header .links{display:none}
  .tools-menu-toggle{display:grid}
  .tools-brand .brand-copy strong{font-size:23px}
}
@media(max-width:760px){
  .tools-site-header{height:65px;padding:8px 17px;gap:6px}
  .tools-brand .brand-copy strong{font-size:20px;letter-spacing:-.8px}
  .tools-brand .brand-copy strong img{width:31px;height:33px}
  .tools-brand .brand-copy small{display:none}
  .tools-header-actions{gap:4px}
  .tools-header-cta{display:none}
  .tools-language-switch{font-size:9px}
  .tools-language-switch a{min-width:25px;padding:7px 4px}
  .tools-menu-toggle{width:29px;height:32px;background:transparent}
  .tools-mobile-nav{inset-inline:10px}
}
@media(max-width:380px){
  .tools-site-header{padding-inline:10px;gap:5px}
  .tools-brand .brand-copy strong{font-size:18px}
  .tools-brand .brand-copy strong img{width:28px;height:30px}
  .tools-language-switch a{min-width:23px;padding-inline:3px}
}
