/* Big Helpers shared company shell and deep-page conversion layer.
   Loaded after legacy page styles and activated by bh-deep-ui-v2.js. */

body.bh-shell-v2 {
  --bh-ink: #0a2540;
  --bh-muted: #526276;
  --bh-line: #dce5ef;
  --bh-blue: #0b63ce;
  --bh-blue-dark: #084f9f;
  --bh-blue-soft: #edf5ff;
  --bh-green: #1e9f57;
  --bh-gold: #f5b301;
  --bh-surface: #f7fafc;
  --bh-white: #fff;
  color: var(--bh-ink);
  background: var(--bh-white);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.bh-shell-v2 *,
.bh-shell-v2 *::before,
.bh-shell-v2 *::after { box-sizing: border-box; }

.bh-shell-v2 :where(a, button, summary):focus-visible {
  outline: 3px solid rgba(11, 99, 206, .32);
  outline-offset: 3px;
}

.bh-shell-v2 :where(h1, h2, h3, h4) {
  text-wrap: balance;
}

.bh-shell-v2 :where(p, li) {
  text-wrap: pretty;
}

.bh-shell-trust {
  position: relative;
  z-index: 1002;
  min-height: 32px;
  padding: 7px 20px;
  background: var(--bh-ink);
  color: #cfe1ff;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: .01em;
  text-align: center;
}

.bh-shell-trust a {
  color: inherit;
  text-decoration: none;
}

.bh-shell-trust strong {
  color: var(--bh-white);
  font-weight: 750;
}

.bh-shell-trust .bh-trust-link {
  color: #fff1b2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bh-site-nav {
  position: sticky;
  top: 0;
  z-index: 1001;
  width: 100%;
  border-bottom: 1px solid rgba(10, 37, 64, .09);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 28px rgba(10, 37, 64, .045);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
}

.bh-nav-inner {
  display: flex;
  align-items: center;
  min-height: 72px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 22px;
}

.bh-nav-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  color: var(--bh-ink);
  text-decoration: none;
}

.bh-nav-logo:hover { text-decoration: none; }

.bh-nav-logo img {
  display: block;
  width: auto;
  height: 36px;
}

.bh-menu-toggle {
  display: none;
  min-height: 42px;
  margin-left: auto;
  padding: 9px 15px;
  border: 1px solid var(--bh-line);
  border-radius: 10px;
  background: var(--bh-white);
  color: var(--bh-ink);
  font: 750 14px/1 inherit;
  cursor: pointer;
}

.bh-nav-drawer {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  gap: 3px;
}

.bh-nav-group {
  position: relative;
}

.bh-nav-group > summary,
.bh-nav-direct {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--bh-ink);
  font: 700 14px/1.2 inherit;
  text-decoration: none;
  cursor: pointer;
  list-style-position: inside;
  white-space: nowrap;
}

.bh-nav-group > summary:hover,
.bh-nav-group[open] > summary,
.bh-nav-direct:hover,
.bh-nav-direct[aria-current="page"] {
  background: var(--bh-blue-soft);
  color: var(--bh-blue-dark);
  text-decoration: none;
}

.bh-nav-group > summary::marker {
  color: var(--bh-blue);
  font-size: .7em;
}

.bh-menu-note { display: none; }

.bh-mega-panel {
  position: absolute;
  top: calc(100% + 13px);
  left: 0;
  width: min(720px, calc(100vw - 40px));
  padding: 22px;
  border: 1px solid var(--bh-line);
  border-radius: 18px;
  background: var(--bh-white);
  box-shadow: 0 24px 70px rgba(10, 37, 64, .16);
}

.bh-nav-group:nth-of-type(2) .bh-mega-panel {
  left: -110px;
}

.bh-nav-group:nth-of-type(3) .bh-mega-panel {
  left: -225px;
}

.bh-mega-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 22px;
}

.bh-mega-eyebrow {
  margin: 0 0 10px;
  color: var(--bh-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bh-mega-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.bh-mega-link {
  display: block;
  min-width: 0;
  padding: 12px;
  border-radius: 11px;
  color: var(--bh-ink);
  text-decoration: none;
}

.bh-mega-link:hover,
.bh-mega-link[aria-current="page"] {
  background: var(--bh-blue-soft);
  color: var(--bh-ink);
  text-decoration: none;
}

.bh-mega-link strong {
  display: block;
  margin-bottom: 3px;
  color: var(--bh-ink);
  font-size: 14px;
  line-height: 1.3;
}

.bh-mega-link span {
  display: block;
  color: var(--bh-muted);
  font-size: 12px;
  line-height: 1.45;
}

.bh-mega-route {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 18px;
  border: 1px solid #cfe1ff;
  border-radius: 14px;
  background: linear-gradient(155deg, var(--bh-blue-soft), #fff);
}

.bh-mega-route strong {
  display: block;
  margin-bottom: 7px;
  color: var(--bh-ink);
  font-size: 17px;
  line-height: 1.25;
}

.bh-mega-route p {
  margin: 0 0 16px;
  color: var(--bh-muted);
  font-size: 12.5px;
  line-height: 1.55;
}

.bh-mega-route a {
  display: inline-flex;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--bh-blue);
  color: var(--bh-white);
  font-size: 12.5px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.bh-mega-route a:hover {
  background: var(--bh-blue-dark);
  color: var(--bh-white);
  text-decoration: none;
}

.bh-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.bh-nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.bh-nav-action:hover { text-decoration: none; }

.bh-nav-action-secondary {
  border: 1px solid var(--bh-line);
  background: var(--bh-white);
  color: var(--bh-ink);
}

.bh-nav-action-secondary:hover {
  border-color: #b9c9da;
  color: var(--bh-blue-dark);
}

.bh-nav-action-primary {
  border: 1px solid var(--bh-blue);
  background: var(--bh-blue);
  color: var(--bh-white);
}

.bh-nav-action-primary:hover {
  border-color: var(--bh-blue-dark);
  background: var(--bh-blue-dark);
  color: var(--bh-white);
}

body.bh-shell-v2:not(.bh-home) :where(.svc-hero, .ind-hero, .t-hero, .hub-hero, .h-hero, .lang-hero, header.hero) {
  padding-top: clamp(58px, 7vw, 84px) !important;
  padding-bottom: clamp(58px, 7vw, 84px) !important;
  background: linear-gradient(125deg, #0a2540 0%, #0b4f9f 58%, #176fd4 100%) !important;
}

body.bh-shell-v2:not(.bh-home) :where(.svc-hero, .ind-hero, .t-hero, .hub-hero, .h-hero, .lang-hero, header.hero) h1 {
  max-width: 900px;
  margin-bottom: 18px !important;
  font-size: clamp(38px, 4.4vw, 58px) !important;
  line-height: 1.06 !important;
  letter-spacing: -1.6px !important;
}

body.bh-shell-v2:not(.bh-home) :where(.svc-hero, .ind-hero, .t-hero, .hub-hero, .h-hero, .lang-hero, header.hero) p {
  max-width: 760px;
  font-size: clamp(16px, 1.5vw, 19px) !important;
  line-height: 1.65 !important;
}

.bh-shell-v2 .art-hero {
  padding-top: clamp(48px, 6vw, 72px) !important;
  padding-bottom: clamp(36px, 5vw, 56px) !important;
  background: linear-gradient(180deg, #fff 0%, #f7fafc 100%) !important;
}

.bh-shell-v2 .art-hero h1 {
  max-width: 1000px;
  font-size: clamp(36px, 4vw, 54px) !important;
  line-height: 1.1 !important;
  letter-spacing: -1.4px !important;
}

.bh-hero-actions {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px !important;
  margin-top: 26px;
}

.bh-hero-actions .bh-lead-button,
.bh-route-actions .bh-lead-button,
.bh-footer-cta-actions .bh-lead-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.bh-lead-button:hover { text-decoration: none; }

.bh-lead-button-primary {
  background: var(--bh-blue);
  color: var(--bh-white);
}

.bh-lead-button-primary:hover {
  background: var(--bh-blue-dark);
  color: var(--bh-white);
}

.bh-hero-actions .bh-lead-button-primary {
  background: var(--bh-white);
  color: var(--bh-ink);
}

.bh-hero-actions .bh-lead-button-primary:hover {
  background: #eef5ff;
  color: var(--bh-blue-dark);
}

.bh-lead-button-secondary {
  border-color: var(--bh-line);
  background: var(--bh-white);
  color: var(--bh-ink);
}

.bh-hero-actions .bh-lead-button-secondary {
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .1);
  color: var(--bh-white);
}

.bh-lead-button-secondary:hover {
  border-color: #b8c9db;
  color: var(--bh-blue-dark);
}

.bh-hero-actions .bh-lead-button-secondary:hover {
  border-color: var(--bh-white);
  background: rgba(255, 255, 255, .18);
  color: var(--bh-white);
}

.bh-route-band {
  border-bottom: 1px solid var(--bh-line);
  background: var(--bh-surface);
  padding: 18px 24px;
}

.bh-route-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  min-height: 82px;
  margin: 0 auto;
  gap: 24px;
  padding: 18px 22px;
  border: 1px solid var(--bh-line);
  border-radius: 16px;
  background: var(--bh-white);
  box-shadow: 0 10px 32px rgba(10, 37, 64, .045);
}

.bh-route-copy strong {
  display: block;
  margin-bottom: 4px;
  color: var(--bh-ink);
  font-size: 17px;
  line-height: 1.25;
}

.bh-route-copy span {
  display: block;
  max-width: 650px;
  color: var(--bh-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.bh-route-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.bh-route-actions .bh-lead-button {
  min-height: 42px;
  padding: 9px 14px;
  font-size: 12.5px;
}

.bh-route-actions .bh-lead-button-secondary {
  border-color: var(--bh-line);
  background: var(--bh-white);
  color: var(--bh-ink);
}

.bh-shell-v2 :where(.section, .cat-section, article.body) {
  scroll-margin-top: 94px;
}

.bh-shell-v2 :where(.post-card, .svc-card, .ind-card, .feat, .tier, .case, .why-card, .proj-card, .spec-card, .faq-item, .rel-link, .ind) {
  border-color: var(--bh-line) !important;
  border-radius: 16px !important;
}

.bh-shell-v2 :where(.post-card, .svc-card, .ind-card, .feat, .tier, .case, .why-card, .proj-card, .spec-card, .rel-link, .ind):hover {
  box-shadow: 0 14px 34px rgba(10, 37, 64, .08) !important;
}

body.bh-shell-v2:not(.bh-home) :where(.svc-card, .ind-card) > .ic {
  display: none !important;
}

body.bh-shell-v2:not(.bh-home) :where(.svc-card, .ind-card) {
  border-top: 3px solid #cfe1ff !important;
}

.bh-shell-v2 article.body {
  max-width: 820px;
  font-size: 17px;
  line-height: 1.78;
}

.bh-shell-v2 article.body :where(h2, h3) {
  letter-spacing: -.35px;
}

.bh-shell-v2 article.body table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.bh-shell-v2 .bh-trust-strip {
  display: none !important;
}

.bh-footer {
  margin-top: 0;
  padding: 0;
  background: var(--bh-surface);
  color: var(--bh-ink);
  text-align: left;
  font-size: 14px;
}

.bh-footer a {
  color: var(--bh-ink);
  text-decoration: none;
}

.bh-footer a:hover {
  color: var(--bh-blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bh-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 24px 24px;
}

.bh-footer-cta {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  margin-bottom: 46px;
  padding: 30px 32px;
  border-radius: 20px;
  background: var(--bh-ink);
  color: var(--bh-white);
}

.bh-footer-cta h2 {
  margin: 0 0 7px;
  color: var(--bh-white);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -.7px;
}

.bh-footer-cta p {
  max-width: 680px;
  margin: 0;
  color: #cfe1ff;
  font-size: 14px;
  line-height: 1.6;
}

.bh-footer-cta-actions {
  display: flex;
  gap: 8px;
}

.bh-footer-cta .bh-lead-button-primary {
  background: var(--bh-white);
  color: var(--bh-ink);
}

.bh-footer-cta .bh-lead-button-secondary {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .08);
  color: var(--bh-white);
}

.bh-footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(130px, 1fr));
  gap: 30px;
}

.bh-footer-brand img {
  display: block;
  width: auto;
  height: 38px;
  margin-bottom: 14px;
}

.bh-footer-brand p {
  max-width: 350px;
  margin: 0 0 15px;
  color: var(--bh-muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.bh-footer-brand .bh-footer-proof {
  color: var(--bh-ink);
  font-weight: 700;
}

.bh-footer-col h3 {
  margin: 3px 0 14px;
  color: var(--bh-ink);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bh-footer-col a {
  display: block;
  margin-bottom: 8px;
  color: var(--bh-muted);
  font-size: 13.5px;
}

.bh-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--bh-line);
  gap: 18px;
  color: var(--bh-muted);
  font-size: 12px;
}

.bh-footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

/* The homepage's older visual refresh paints every footer teal with !important.
   Keep that treatment on the CTA above, but isolate the shared footer as the
   calm, readable closing surface used across the rest of the site. */
body.bh-shell-v2.bh-home footer.bh-footer {
  padding: 0 !important;
  border-top: 1px solid var(--bh-line);
  background: var(--bh-surface) !important;
  color: var(--bh-ink) !important;
  line-height: 1.5 !important;
}

body.bh-shell-v2.bh-home footer.bh-footer a {
  color: var(--bh-ink) !important;
}

body.bh-shell-v2.bh-home footer.bh-footer .bh-footer-col a {
  color: var(--bh-muted) !important;
}

body.bh-shell-v2.bh-home footer.bh-footer a:hover {
  color: var(--bh-blue-dark) !important;
}

.bh-mobile-leadbar { display: none; }

.bh-shell-v2 :where(.bh-sticky-wa, .wa-float) {
  display: none !important;
}

@media (max-width: 1080px) {
  .bh-nav-inner { gap: 12px; }
  .bh-nav-group > summary,
  .bh-nav-direct { padding-inline: 9px; font-size: 13px; }
  .bh-nav-actions .bh-nav-action-secondary { display: none; }
}

@media (max-width: 920px) {
  body.bh-shell-v2.bh-menu-lock { overflow: hidden; }

  .bh-nav-inner {
    min-height: 66px;
    padding-inline: 18px;
  }

  .bh-nav-logo img { height: 33px; }

  .bh-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .bh-nav-drawer {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100svh - 66px);
    padding: 14px 18px 20px;
    overflow-y: auto;
    border-top: 1px solid var(--bh-line);
    background: var(--bh-white);
    box-shadow: 0 22px 50px rgba(10, 37, 64, .15);
    overflow-anchor: none;
  }

  .bh-site-nav.bh-menu-open {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 2147483001;
  }

  .bh-site-nav.bh-menu-open .bh-nav-drawer {
    display: block;
  }

  body.bh-menu-lock :where(.bh-mobile-leadbar, .bh-chat) {
    display: none !important;
  }

  .bh-nav-group,
  .bh-nav-direct { width: 100%; }

  .bh-nav-group {
    border-bottom: 1px solid var(--bh-line);
  }

  .bh-nav-group > summary,
  .bh-nav-direct {
    display: flex;
    width: 100%;
    min-height: 50px;
    padding: 14px 4px;
    border-radius: 0;
    font-size: 15px;
  }

  .bh-nav-group > summary {
    justify-content: space-between;
  }

  .bh-menu-note {
    display: inline;
    margin-left: auto;
    color: var(--bh-muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .bh-nav-group > summary:hover,
  .bh-nav-group[open] > summary,
  .bh-nav-direct:hover,
  .bh-nav-direct[aria-current="page"] {
    background: transparent;
    color: var(--bh-blue-dark);
  }

  .bh-mega-panel,
  .bh-nav-group:nth-of-type(2) .bh-mega-panel,
  .bh-nav-group:nth-of-type(3) .bh-mega-panel {
    position: static;
    width: 100%;
    padding: 2px 0 16px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .bh-mega-layout { grid-template-columns: 1fr; gap: 12px; }
  .bh-mega-links { grid-template-columns: 1fr 1fr; gap: 3px; }
  .bh-mega-link { padding: 10px 8px; }
  .bh-mega-route { min-height: 0; padding: 15px; }

  .bh-nav-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--bh-line);
  }

  .bh-nav-actions .bh-nav-action-secondary { display: inline-flex; }

  .bh-footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .bh-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .bh-shell-trust {
    min-height: 30px;
    padding: 6px 12px;
    font-size: 10.5px;
  }

  .bh-shell-trust .bh-trust-extra { display: none; }

  body.bh-shell-v2:not(.bh-home) :where(.svc-hero, .ind-hero, .t-hero, .hub-hero, .h-hero, .lang-hero, header.hero) {
    padding: 54px 20px !important;
  }

  body.bh-shell-v2:not(.bh-home) :where(.svc-hero, .ind-hero, .t-hero, .hub-hero, .h-hero, .lang-hero, header.hero) h1,
  .bh-shell-v2 .art-hero h1 {
    font-size: clamp(34px, 10vw, 43px) !important;
    line-height: 1.07 !important;
    letter-spacing: -1.1px !important;
  }

  .bh-shell-v2 .art-hero { padding-inline: 20px !important; }
  .bh-shell-v2 .byline { align-items: flex-start; }

  .bh-route-band { padding: 14px 14px 16px; }

  .bh-route-card {
    display: block;
    padding: 18px;
  }

  .bh-route-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 15px;
  }

  .bh-route-actions .bh-lead-button { padding-inline: 9px; }

  .bh-footer-inner { padding: 30px 18px 92px; }

  .bh-footer-cta {
    display: none;
  }

  .bh-footer-cta-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 20px;
  }

  .bh-footer-grid { grid-template-columns: 1fr 1fr; gap: 24px 18px; }
  .bh-footer-brand { grid-column: 1 / -1; }

  .bh-footer-bottom {
    display: block;
    margin-top: 30px;
  }

  .bh-footer-bottom-links {
    justify-content: flex-start;
    margin-top: 12px;
  }

  .bh-mobile-leadbar {
    position: fixed;
    z-index: 2147482999;
    left: 10px;
    right: 82px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 6px;
    padding: 6px;
    border: 1px solid rgba(10, 37, 64, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 14px 40px rgba(10, 37, 64, .18);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .bh-mobile-leadbar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 9px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 850;
    text-align: center;
    text-decoration: none;
  }

  .bh-mobile-leadbar .bh-mobile-primary {
    background: var(--bh-blue);
    color: var(--bh-white);
  }

  .bh-mobile-leadbar .bh-mobile-secondary {
    border: 1px solid var(--bh-line);
    background: var(--bh-white);
    color: var(--bh-ink);
  }
}

@media (max-width: 430px) {
  .bh-nav-inner { padding-inline: 14px; }
  .bh-nav-logo img { height: 30px; }
  .bh-mega-links { grid-template-columns: 1fr; }
  .bh-mega-link span { display: none; }
  .bh-route-actions { grid-template-columns: 1fr; }
  .bh-footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; }
  .bh-footer-brand { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .bh-shell-v2 *,
  .bh-shell-v2 *::before,
  .bh-shell-v2 *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .bh-shell-trust,
  .bh-site-nav,
  .bh-route-band,
  .bh-mobile-leadbar,
  .bh-footer-cta { display: none !important; }
  .bh-footer { background: #fff; }
}
