/*
 * Shared EBSS public header dropdown typography.
 * Industries uses links while Services also uses native buttons. Safari/macOS
 * does not reliably make button controls inherit the surrounding page font,
 * so keep every mega-menu control on one explicit EBSS type system.
 */
html body .site-header .ebss-industries-mega,
html body .site-header .ebss-services-mega,
html body .site-header .ebss-services-flyout,
html body .site-header .ebss-industries-mega a,
html body .site-header .ebss-services-mega a,
html body .site-header .ebss-industries-mega button,
html body .site-header .ebss-services-mega button,
html body .site-header .ebss-industries-toggle,
html body .site-header .ebss-services-toggle{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-style:normal!important;
  font-synthesis:none;
}

html body .site-header .ebss-service-category-trigger,
html body .site-header .ebss-industries-toggle,
html body .site-header .ebss-services-toggle{
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}

html body .site-header .ebss-industries-mega-head strong,
html body .site-header .ebss-services-mega-head strong{
  font-size:14px!important;
  font-weight:800!important;
  letter-spacing:0!important;
  line-height:1.3!important;
}

html body .site-header .ebss-industries-mega-head span,
html body .site-header .ebss-services-mega-head span,
html body .site-header .ebss-service-category-copy span{
  font-size:12px!important;
  font-weight:500!important;
  letter-spacing:0!important;
  line-height:1.45!important;
}

html body .site-header .ebss-industry-mega-link,
html body .site-header .ebss-service-category-copy strong,
html body .site-header .ebss-service-flyout-link,
html body .site-header .ebss-industries-mega-actions a,
html body .site-header .ebss-services-mega-actions a{
  font-size:13px!important;
  font-weight:700!important;
  letter-spacing:0!important;
  line-height:1.35!important;
}

html body .site-header .ebss-service-category-copy strong{
  text-transform:none!important;
}

html body .site-header .ebss-services-flyout-title{
  font-size:13px!important;
  font-weight:800!important;
  letter-spacing:0!important;
  line-height:1.35!important;
  text-transform:none!important;
}

/*
 * Desktop mega-menu interaction.
 * The original header used very wide invisible pseudo-element hover bridges.
 * Those bridges overlapped the neighboring Industries/Services controls, so
 * both menus could compete for hover and a pointer could fall through a dead
 * gap while moving into the panel. Keep the panel physically attached to its
 * parent instead and let whichever parent is actually hovered win.
 */
@media(min-width:981px){
  html body .site-header .ebss-industries-nav::before,
  html body .site-header .ebss-services-nav::before{
    content:none!important;
    display:none!important;
    pointer-events:none!important;
  }

  html body .site-header .ebss-industries-mega,
  html body .site-header .ebss-services-mega{
    top:100%!important;
    margin-top:0!important;
  }

  html body .site-header .nav-links:has(.ebss-industries-nav:hover) .ebss-industries-nav{
    z-index:100!important;
  }

  html body .site-header .nav-links:has(.ebss-services-nav:hover) .ebss-services-nav{
    z-index:100!important;
  }

  html body .site-header .nav-links:has(.ebss-industries-nav:hover) .ebss-services-mega{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }

  html body .site-header .nav-links:has(.ebss-services-nav:hover) .ebss-industries-mega{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
  }
}

.ebss-industry-menu{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:12px;
  margin:0 0 24px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
}

.ebss-industry-tab{
  appearance:none;
  width:100%;
  min-height:68px;
  display:flex;
  align-items:center;
  gap:11px;
  padding:11px 13px;
  border:1px solid #dde5ef;
  border-radius:14px;
  background:#fff;
  color:#506079;
  box-shadow:0 5px 16px rgba(27,55,94,.055);
  font:inherit;
  font-size:12px;
  line-height:1.25;
  font-weight:800;
  text-align:left;
  white-space:normal;
  cursor:pointer;
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease,background .18s ease,color .18s ease;
}

.ebss-industry-tab::before{
  content:'🏢';
  flex:0 0 34px;
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:#f3f6fa;
  font-size:17px;
  line-height:1;
  filter:saturate(.92);
  transition:background .18s ease,transform .18s ease;
}

.ebss-industry-tab[data-industry-target="auto-repair"]::before{content:'🚗'}
.ebss-industry-tab[data-industry-target="contractors"]::before{content:'🏗️'}
.ebss-industry-tab[data-industry-target="hvac"]::before{content:'🌡️'}
.ebss-industry-tab[data-industry-target="landscaping"]::before{content:'🌿'}
.ebss-industry-tab[data-industry-target="plumbing"]::before{content:'🚰'}
.ebss-industry-tab[data-industry-target="cleaning-services"]::before{content:'🧹'}
.ebss-industry-tab[data-industry-target="property-management"]::before{content:'🏢'}
.ebss-industry-tab[data-industry-target="it-managed-services"]::before{content:'💻'}
.ebss-industry-tab[data-industry-target="professional-services"]::before{content:'💼'}
.ebss-industry-tab[data-industry-target="law-firms"]::before{content:'⚖️'}
.ebss-industry-tab[data-industry-target="salons-spas"]::before{content:'✂️'}
.ebss-industry-tab[data-industry-target="pest-control"]::before{content:'🛡️'}

.ebss-industry-tab:hover{
  background:#fff;
  color:#203654;
  border-color:#cbd7e6;
  box-shadow:0 10px 24px rgba(27,55,94,.09);
  transform:translateY(-1px);
}

.ebss-industry-tab:hover::before{transform:scale(1.04)}

.ebss-industry-tab.is-active{
  background:#f7faff;
  color:var(--industry-accent,#1f65df);
  border-color:var(--industry-accent,#1f65df);
  box-shadow:0 11px 26px rgba(27,55,94,.11),inset 0 0 0 1px rgba(255,255,255,.7);
  transform:translateY(-1px);
}

.ebss-industry-tab.is-active::before{
  background:#eaf2ff;
  box-shadow:inset 0 0 0 1px rgba(31,101,223,.10);
}

.ebss-industry-tab:focus-visible{
  outline:3px solid rgba(31,101,223,.18);
  outline-offset:2px;
}

.ebss-industry-roadmap-note{
  margin:18px 0 0;
  padding-top:14px;
  border-top:1px solid #edf1f6;
  color:#8995a7;
  font-size:11px;
  line-height:1.55;
  text-align:center;
}

@media(max-width:1180px){
  .ebss-industry-menu{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media(max-width:960px){
  .ebss-industry-menu{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    overflow:visible;
    padding:0;
  }
}

@media(max-width:650px){
  .ebss-industry-menu{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .ebss-industry-tab{min-height:62px;padding:9px 10px;font-size:11px;border-radius:12px}
  .ebss-industry-tab::before{flex-basis:30px;width:30px;height:30px;font-size:15px;border-radius:9px}
}

/* Keep mega-menu hover/focus feedback visible even against stronger header rules. */
html body.theme-corporate_dark .site-header.theme-corporate_dark .ebss-industries-mega .ebss-industries-mega-actions a:last-child:hover,
html body.theme-corporate_dark .site-header.theme-corporate_dark .ebss-industries-mega .ebss-industries-mega-actions a:last-child:focus{
  background:#174fb8!important;
  color:#fff!important;
  box-shadow:0 6px 16px rgba(31,101,223,.22)!important;
  outline:none!important;
}

html body.theme-corporate_dark .site-header.theme-corporate_dark .ebss-services-mega .ebss-service-flyout-link:hover,
html body.theme-corporate_dark .site-header.theme-corporate_dark .ebss-services-mega .ebss-service-flyout-link:focus{
  background:#eef4ff!important;
  color:#175ed8!important;
  outline:none!important;
}

/* Match the Industries desktop mega menu to the Services vertical navigation language. */
@media(min-width:981px){
  html body .site-header .ebss-industries-mega{
    width:430px!important;
    max-width:calc(100vw - 32px)!important;
    max-height:calc(100vh - 100px)!important;
    overflow-y:auto!important;
    scrollbar-width:none!important;
    -ms-overflow-style:none!important;
    padding:16px!important;
  }

  html body .site-header .ebss-industries-mega::-webkit-scrollbar{
    width:0!important;
    height:0!important;
    display:none!important;
  }

  html body .site-header .ebss-industries-mega-grid{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:4px!important;
    padding:4px 0 10px!important;
  }

  html body.theme-corporate_dark .site-header.theme-corporate_dark .ebss-industries-mega .ebss-industry-mega-link{
    display:block!important;
    min-height:0!important;
    padding:10px 11px!important;
    border-radius:9px!important;
    background:transparent!important;
    color:#233750!important;
    font-size:13px!important;
    font-weight:700!important;
    line-height:1.35!important;
    white-space:normal!important;
  }

  html body.theme-corporate_dark .site-header.theme-corporate_dark .ebss-industries-mega .ebss-industry-mega-link:hover,
  html body.theme-corporate_dark .site-header.theme-corporate_dark .ebss-industries-mega .ebss-industry-mega-link:focus{
    background:#eef4ff!important;
    color:#175ed8!important;
    outline:none!important;
  }

  html body .site-header .ebss-industries-mega-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:6px!important;
  }

  html body .site-header .ebss-industries-mega-actions a{
    width:100%!important;
    justify-content:center!important;
  }
}

/*
 * Uniform mega-menu copy.
 * Remove the redundant “Explore EBSS…” intro blocks and use the same
 * title + short-description rhythm for Industries, service categories,
 * and individual services.
 */
html body .site-header .ebss-industries-mega-head,
html body .site-header .ebss-services-mega-head{
  display:none!important;
}

html body .site-header .ebss-industry-mega-link::after,
html body .site-header .ebss-service-flyout-link::after{
  display:block!important;
  margin-top:3px!important;
  color:#758399!important;
  font-size:11px!important;
  font-weight:500!important;
  line-height:1.35!important;
  letter-spacing:0!important;
  white-space:normal!important;
}

html body .site-header .ebss-industry-mega-link[href$="/industries/auto-repair"]::after{content:"Customers, vehicles, work orders, estimates, invoices, payments, and service history."}
html body .site-header .ebss-industry-mega-link[href$="/industries/contractors"]::after{content:"Clients, properties, projects, estimates, crews, documents, billing, and project progress."}
html body .site-header .ebss-industry-mega-link[href$="/industries/hvac"]::after{content:"Customers, equipment, appointments, technicians, service calls, maintenance, and invoices."}
html body .site-header .ebss-industry-mega-link[href$="/industries/landscaping"]::after{content:"Customers, properties, recurring services, crews, routes, schedules, and billing."}
html body .site-header .ebss-industry-mega-link[href$="/industries/plumbing"]::after{content:"Service requests, properties, dispatch, technicians, estimates, equipment, and invoices."}
html body .site-header .ebss-industry-mega-link[href$="/industries/cleaning-services"]::after{content:"Customers, locations, recurring visits, teams, checklists, schedules, and billing."}
html body .site-header .ebss-industry-mega-link[href$="/industries/property-management"]::after{content:"Owners, properties, units, tenants, maintenance, vendors, documents, and recurring charges."}
html body .site-header .ebss-industry-mega-link[href$="/industries/it-managed-services"]::after{content:"Client companies, contacts, devices, tickets, agreements, projects, documentation, and billing."}
html body .site-header .ebss-industry-mega-link[href$="/industries/professional-services"]::after{content:"Companies, contacts, engagements, projects, documents, meetings, time, and billing."}
html body .site-header .ebss-industry-mega-link[href$="/industries/law-firms"]::after{content:"Clients, matters, deadlines, documents, communications, time, billing, and case history."}
html body .site-header .ebss-industry-mega-link[href$="/industries/salons-spas"]::after{content:"Clients, appointments, services, staff, notes, products, payments, and visit history."}
html body .site-header .ebss-industry-mega-link[href$="/industries/pest-control"]::after{content:"Customers, properties, service plans, routes, technicians, treatments, follow-ups, and billing."}

html body .site-header .ebss-service-flyout-link[href$="/services/eb-smart-solutions-business-platform"]::after{content:"Connect customers, operations, billing, website tools, reporting, and more in one adaptable system."}
html body .site-header .ebss-service-flyout-link[href$="/services/platform-implementation-configuration"]::after{content:"Configure EBSS around your records, roles, terminology, modules, and workflow."}
html body .site-header .ebss-service-flyout-link[href$="/services/data-migration-system-transition"]::after{content:"Move legacy customer, operational, and business data into a cleaner EBSS structure."}
html body .site-header .ebss-service-flyout-link[href$="/services/workflow-automation-integrations"]::after{content:"Reduce repetitive work by connecting processes, triggers, and the systems you already use."}
html body .site-header .ebss-service-flyout-link[href$="/services/custom-development-ongoing-support"]::after{content:"Extend EBSS with tailored capabilities, refinements, and continued technical support."}
html body .site-header .ebss-service-flyout-link[href$="/services/website-design-management"]::after{content:"Create a professional website and keep its pages, content, and presentation current."}
html body .site-header .ebss-service-flyout-link[href$="/services/website-managed-business-presence"]::after{content:"Combine website management with ongoing digital updates and business-facing content support."}
html body .site-header .ebss-service-flyout-link[href$="/services/home-small-business-networking"]::after{content:"Plan, install, and improve reliable wired and wireless connectivity for homes and small businesses."}
html body .site-header .ebss-service-flyout-link[href$="/services/ethernet-network-installation"]::after{content:"Install structured Ethernet cabling and network connections for dependable wired performance."}
html body .site-header .ebss-service-flyout-link[href$="/services/wi-fi-optimization-troubleshooting"]::after{content:"Improve coverage, speed, and stability while resolving weak or unreliable Wi-Fi."}
html body .site-header .ebss-service-flyout-link[href$="/services/smart-home-connected-device-setup"]::after{content:"Configure connected devices, smart technology, and the network foundation behind them."}