/* Phone header: logo, call, Get Quote, Menu. Only active when mobile-nav.js adds .swm to the header. */
.swm-actions,.swm-panel{display:none}
@media (max-width:980px){
  header.swm{position:sticky!important;top:0;z-index:50}
  header.swm .wrap.nav{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:space-between!important;height:64px!important;min-height:0!important;padding:0 16px!important;gap:8px!important}
  header.swm .navlinks,header.swm .mainnav,header.swm .hamburger,header.swm .navtoggle,header.swm .nav-right{display:none!important}
  header.swm .logo span,header.swm .logo .word{display:none!important}
  header.swm .logo{display:flex;align-items:center;gap:6px;min-width:0;flex:0 1 auto;font-size:17px!important;white-space:nowrap}
  header.swm .logo img,header.swm .logo svg{width:30px!important;height:auto!important;flex:none}
  header.swm .swm-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex:none}
  .swm-call,.swm-menu{width:44px;height:44px;box-sizing:border-box;border:1px solid #cfe1ea;border-radius:10px;background:#fff;display:grid;place-items:center;color:#0096D0;padding:0;cursor:pointer}
  .swm-call svg,.swm-menu svg{width:22px;height:22px}
  .swm-quote{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border-radius:9px;background:#0096D0;color:#fff!important;font:800 14px Poppins,system-ui,sans-serif;text-decoration:none;white-space:nowrap}
  header.swm .swm-panel{position:absolute;top:100%;left:0;right:0;background:#fff;border-bottom:1px solid #e6eaee;box-shadow:0 18px 30px rgba(0,0,0,.14);padding:4px 16px 16px;max-height:calc(100vh - 64px);overflow-y:auto}
  header.swm:not(.swm-open) .swm-panel{display:none}
  header.swm.swm-open .swm-panel{display:block}
  .swm-panel a{display:flex;align-items:center;min-height:48px;border-bottom:1px solid #f0f2f4;font:700 16px Poppins,system-ui,sans-serif;color:#1d1f21;text-decoration:none}
  .swm-panel a.swm-panel-call{color:#0096D0;border-bottom:0}
}
@media (min-width:350px) and (max-width:980px){
  header.swm .logo>span,header.swm .logo .word{display:inline!important;font:800 14px Poppins,system-ui,sans-serif!important;letter-spacing:-.02em;color:#1d1f21}
  header.swm .logo>span span,header.swm .logo .word span{display:inline!important}
}
@media (max-width:419px){ .swm-call{display:none!important} }
/* Older header (nav.mainnav): links sit directly in the nav, so lay them out in a row on desktop
   and hide its duplicate phone and button (nav-right already has them). */
@media (min-width:981px){
  header .mainnav{display:flex!important;flex-direction:row!important;align-items:center;gap:2px;position:static!important;box-shadow:none!important;border:0!important;background:none!important;padding:0!important;max-height:none!important}
  header .mainnav>a.btn,header .mainnav>a.hide-sm{display:none!important}
  header .mainnav>a{display:block;text-decoration:none;color:#1d1f21;font:600 15px Poppins,system-ui,sans-serif;line-height:1;padding:11px 13px;border-radius:8px;white-space:nowrap}
  header .mainnav>a:hover{color:#0096D0;background:#EAF6FC}
  header .hamburger{display:none!important}
}
