/* Site header with Bell-style mega menus (classic/header-bell.html). Theme font Montserrat; navy #0A285A.
   The menu bar shows from 1024px wide (laptops, iPad landscape); narrower screens get the full-screen menu. */
.hx { --hx-navy: #0A285A; --hx-ink: #1b2433; --hx-muted: #5d6b82; --hx-rule: #e5e8ee; --hx-tint: #eef1f5; --hx-h: 72px;
  position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--hx-rule);
  font-family: Montserrat, "Open Sans", Arial, sans-serif; }
.hx *, .hx *::before, .hx *::after { box-sizing: border-box; }
.hx a { text-decoration: none; }
/* the WordPress theme styles every <button> (dark fill, capitals); undo that inside the header */
.hx button { background: none !important; box-shadow: none !important; text-transform: none !important; text-shadow: none !important;
  margin: 0; min-width: 0; letter-spacing: normal; border: 0; color: inherit; cursor: pointer; font-family: inherit; }
.hx button:hover, .hx button:focus, .hx button:active { color: inherit; }
.hx a:focus-visible, .hx button:focus-visible, .hx summary:focus-visible { outline: 2px solid var(--hx-navy); outline-offset: 2px; }

/* The bar itself matches the WordPress theme exactly: 90px, white, faint shadow, 100px logo, 1160px container,
   13px Montserrat links in #777 that turn navy on hover and for the current page. */
.hx { --hx-h: 90px; border-bottom: 0; box-shadow: rgba(0, 0, 0, .16) 0 0 2px 1px; }
.hx-bar { max-width: 1200px; margin: 0 auto; padding: 0 20px; height: var(--hx-h); display: flex; align-items: center; gap: 20px; }
.hx-logo { flex: 0 0 auto; display: block; line-height: 0; }
.hx-logo img { width: 100px; height: auto; display: block; }
.hx-nav { flex: 0 1 auto; margin-left: auto; margin-right: -15px; }
.hx-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.hx-item { display: flex; }
.hx .hx-top { display: inline-flex; align-items: center; height: var(--hx-h); padding: 0 15px; border-radius: 0 !important;
  font: 400 13px/1 Montserrat, Arial, Helvetica, sans-serif; color: #777; white-space: nowrap; transition: color .15s; }
.hx .hx-top:hover, .hx .hx-item.is-open > .hx-top, .hx .hx-top[aria-current], .hx .hx-top:focus { color: var(--hx-navy); }
/* keyboard focus on the bar: a navy underline under the word (a ring around the full 90px-tall link looked like a box) */
.hx .hx-top:focus-visible { outline: none !important; box-shadow: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

.hx-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hx-phone { padding: 0 10px; font: 600 14px/1 Montserrat, Arial, sans-serif; color: var(--hx-ink); white-space: nowrap; }
.hx-phone:hover { color: var(--hx-navy); text-decoration: underline; }
.hx-cta { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 20px; background: var(--hx-navy); color: #fff !important;
  font: 600 15px/1 Montserrat, Arial, sans-serif; border-radius: 4px; white-space: nowrap; transition: background-color .2s; }
.hx-cta::after { content: "\2192"; font-size: 17px; transition: transform .2s; }
.hx-cta:hover { background: #071d42; }
.hx-cta:hover::after { transform: translateX(3px); }

/* Mega panels: full width under the bar */
.hx-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--hx-rule);
  box-shadow: 0 24px 40px -24px rgba(10, 40, 90, .28); max-height: calc(100vh - var(--hx-bottom, var(--hx-h))); overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility 0s .18s; }
.hx-item.is-open > .hx-panel { visibility: visible; opacity: 1; transform: none; transition: opacity .18s, transform .18s; }
.hx-panel-inner { max-width: 1200px; margin: 0 auto; padding: 24px 20px 40px; }
.hx-panel-head { display: flex; align-items: center; gap: 24px; margin-bottom: 26px; }
.hx-panel-title { margin: 0; font: 600 23px/1.25 Montserrat, Arial, sans-serif; color: var(--hx-ink); letter-spacing: -0.2px; }
a.hx-panel-title::after { content: "\00a0\00a0\2192"; transition: margin .2s; }
a.hx-panel-title:hover { color: var(--hx-navy); }
.hx-tabs { display: inline-flex; margin-left: auto; background: var(--hx-tint); border-radius: 4px; }
.hx .hx-tab { height: 50px; padding: 0 24px; border-radius: 4px !important; font: 600 16px/1 Montserrat, Arial, sans-serif; color: var(--hx-muted); }
.hx .hx-tab[aria-selected="true"] { background: var(--hx-navy) !important; color: #fff; }
.hx .hx-tab:not([aria-selected="true"]):hover { color: var(--hx-ink); }
.hx .hx-close { position: relative; flex: 0 0 44px; width: 44px; height: 44px; margin-left: 12px; }
.hx-panel-head > .hx-panel-title + .hx-close { margin-left: auto; }
.hx-close::before, .hx-close::after { content: ""; position: absolute; left: 10px; right: 10px; top: 21px; height: 2.5px; background: var(--hx-ink); }
.hx-close::before { transform: rotate(45deg); }
.hx-close::after { transform: rotate(-45deg); }

.hx-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px 16px; }
.hx-cards[hidden] { display: none; }
.hx-card { display: flex; flex-direction: column; gap: 16px; color: var(--hx-ink); }
.hx-card img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 4px; display: block; transition: opacity .2s; }
.hx-card span { display: flex; align-items: baseline; gap: 10px; font: 600 17px/1.3 Montserrat, Arial, sans-serif; color: var(--hx-ink); }
.hx-card span::after { content: "\2192"; flex: 0 0 auto; transition: transform .2s; }
.hx-card:hover img { opacity: .9; }
.hx-card:hover span { color: var(--hx-navy); }
.hx-card:hover span::after { transform: translateX(4px); }

/* Phones and tablets: logo, Contact, menu button; the menu opens full screen */
.hx .hx-burger { display: none; position: relative; width: 48px; height: 48px; border: 1px solid var(--hx-rule) !important; border-radius: 4px !important; background: #fff !important; }
.hx-burger span, .hx-burger span::before, .hx-burger span::after { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--hx-ink); content: ""; transition: transform .2s; }
.hx-burger span { top: 23px; }
.hx-burger span::before { left: 0; right: 0; top: -7px; }
.hx-burger span::after { left: 0; right: 0; top: 7px; }
.hx.is-mobile-open .hx-burger span { background: transparent; }
.hx.is-mobile-open .hx-burger span::before { transform: translateY(7px) rotate(45deg); }
.hx.is-mobile-open .hx-burger span::after { transform: translateY(-7px) rotate(-45deg); }
.hx-mobile { position: fixed; left: 0; right: 0; top: var(--hx-bottom, var(--hx-h)); overscroll-behavior: contain; bottom: 0; background: #fff; overflow-y: auto; padding: 8px 20px 40px; border-top: 1px solid var(--hx-rule); }
.hx-mobile nav { max-width: 640px; margin: 0 auto; }
.hx-mobile summary, .hx-mobile a, .hx .hx-burger { -webkit-tap-highlight-color: rgba(10, 40, 90, .08); }
.hx-m-link, .hx-m-group summary { display: flex; align-items: center; justify-content: space-between; min-height: 58px; border-bottom: 1px solid var(--hx-rule);
  font: 600 18px/1.2 Montserrat, Arial, sans-serif; color: var(--hx-ink); cursor: pointer; list-style: none; }
.hx-m-group summary::-webkit-details-marker { display: none; }
.hx-m-group summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--hx-ink); border-bottom: 2px solid var(--hx-ink); transform: rotate(45deg); margin-right: 4px; transition: transform .2s; }
.hx-m-group[open] summary::after { transform: rotate(225deg); }
.hx-m-group[open] { padding-bottom: 10px; border-bottom: 1px solid var(--hx-rule); }
.hx-m-group[open] summary { border-bottom: 0; }
.hx-m-group a { display: flex; align-items: center; min-height: 46px; padding-left: 14px; font: 500 16px/1.2 Montserrat, Arial, sans-serif; color: var(--hx-navy); }
.hx-group { margin: 14px 0 2px 14px; font: 700 11px/1.2 Montserrat, Arial, sans-serif; letter-spacing: 1.6px; text-transform: uppercase; color: var(--hx-muted); }
.hx-m-actions { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.hx-m-actions .hx-cta { justify-content: center; height: 54px; font-size: 16px; }
.hx-m-actions .hx-phone { text-align: center; font-size: 16px; padding: 10px; }
/* lock the page behind the open phone menu on the root only: the theme gives html and body height:100%, so
   overflow:hidden on body would clip it to one screen and jump the page back to the top */
html.hx-lock { overflow: hidden; }
/* the theme's back-to-top button sits above the header's layer; keep it off the open phone menu */
body.hx-lock #back-to-top { display: none !important; }
/* jump links from the panels land below the sticky header */
html { scroll-padding-top: 110px; }

.hx-m-group a.hx-m-sub { padding-left: 30px; font-weight: 400; }
/* Services has five cards (2026-11-06, the live site's five): one row of five, not four and an orphan */
#hx-services .hx-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1199px) {
  .hx .hx-top { padding: 0 9px; }
  .hx-nav { margin-right: -9px; }
  .hx-card span { font-size: 15px; }
}
/* the logo lines up with the theme's page container (top strip icons, footer logo) at every width, as on WordPress */
@media (min-width: 960px) and (max-width: 1199px) { .hx-bar, .hx-panel-inner { max-width: 960px; } }
/* phones and tablets: the bar and the open menu's list share the theme container's edges */
@media (min-width: 768px) and (max-width: 959px) { .hx-bar { max-width: 768px; padding: 0 10px; } .hx-mobile { padding-left: 0; padding-right: 0; } .hx-mobile nav { max-width: 748px; } }
@media (min-width: 480px) and (max-width: 767px) { .hx-bar { max-width: 420px; padding: 0; } .hx-mobile { padding-left: 0; padding-right: 0; } .hx-mobile nav { max-width: 420px; } }
@media (max-width: 479px) { .hx-bar { max-width: 300px; padding: 0; } .hx-mobile { padding-left: 0; padding-right: 0; } .hx-mobile nav { max-width: 300px; } }
@media (max-width: 1023px) {
  .hx { --hx-h: 72px; }
  .hx-nav { display: none; }
  .hx .hx-burger { display: inline-block; margin-left: auto; }
}
@media (min-width: 1024px) { .hx-mobile { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .hx *, .hx *::before, .hx *::after { transition: none !important; } }

/* ENG + Live is a <button> (no page of its own, 2026-11-12): look exactly like the link items */
.hx button.hx-top { background: none; border: 0; margin: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
