/* Site navigation (include-nav.php), 2026-10-31 rebuild.
   Self-contained: nothing here depends on header-v6.css or Bootstrap.
   992px and up: same look as the old subpage header (measured from
   include-header.php): fixed, 131px, white logo panel on the left third,
   navy bar, white uppercase Merriweather Sans links. Below 992px: sticky
   white bar with logo + menu button, links in a panel. */
.gbb-nav {
  --gbb-nav-navy: #003a70;
  --gbb-nav-accent: #5887da;
  --gbb-nav-line: #e3e7ec;
  position: sticky;
  top: 0;
  z-index: 1000;
}
/* Very light shadow once the page scrolls (js/gbb-nav.js sets .is-scrolled) */
.gbb-nav-bar {
  transition: box-shadow .2s;
}
.gbb-nav.is-scrolled .gbb-nav-bar {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.gbb-nav a:focus-visible,
.gbb-nav button:focus-visible {
  outline: 2px solid var(--gbb-nav-accent);
  outline-offset: 2px;
}
.gbb-nav-links,
.gbb-nav-menu {
  margin: 0;
  padding: 0;
  list-style: none;
}
.gbb-nav-menu-btn {
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.gbb-nav-menu-btn svg {
  transition: transform .2s;
}
.gbb-nav-menu-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.gbb-nav-menu:not(.is-open) {
  display: none;
}
.gbb-nav-review,
.gbb-nav-icon {
  display: inline-flex;
  align-items: center;
  color: var(--gbb-nav-navy);
  text-decoration: none;
}
.gbb-nav-review {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.gbb-nav-review:hover,
.gbb-nav-review:focus,
.gbb-nav-icon:hover,
.gbb-nav-icon:focus {
  color: var(--gbb-nav-navy);
  text-decoration: underline;
}
.gbb-nav-sep {
  width: 1px;
  height: 14px;
  margin: 0 12px 0 14px;
  background: var(--gbb-nav-line);
}

/* Review/social bubble, top right from 992px; same look as the old home
   page header's .gbb-topbar-bubble */
.gbb-nav-bubble {
  display: none;
}
@media (min-width: 992px) {
  .gbb-nav-bubble {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 3px 20px 4px 26px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-top: 0;
    border-right: 0;
    border-radius: 0 0 0 10px;
  }
  .gbb-nav-bubble .gbb-nav-review {
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .5px;
    color: #5a6570;
  }
  .gbb-nav-bubble .gbb-nav-sep {
    margin: 0;
    background: #d5d5d5;
  }
  .gbb-nav-bubble .gbb-nav-icon {
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    color: #8a939b;
  }
  .gbb-nav-bubble .gbb-nav-icon + .gbb-nav-icon {
    margin-left: -8px;
  }
  .gbb-nav-bubble .gbb-nav-review:hover,
  .gbb-nav-bubble .gbb-nav-review:focus,
  .gbb-nav-bubble .gbb-nav-icon:hover,
  .gbb-nav-bubble .gbb-nav-icon:focus {
    color: #003a70;
  }
  .gbb-nav-bubble .gbb-nav-icon:hover,
  .gbb-nav-bubble .gbb-nav-icon:focus {
    text-decoration: none;
  }
}

/* Below 992px: white bar, menu button, links in a panel */
@media (max-width: 991px) {
  .gbb-nav {
    font-family: 'Public Sans', sans-serif;
  }
  .gbb-nav-bar {
    background: #fff;
    border-bottom: 1px solid var(--gbb-nav-line);
  }
  .gbb-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 96px;
    padding: 0 40px;
  }
  .gbb-nav-brand img {
    display: block;
    width: auto;
    height: 70px;
  }
  .gbb-nav-toggle {
    width: 44px;
    height: 44px;
    margin-right: -10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--gbb-nav-navy);
    cursor: pointer;
  }
  .gbb-nav-toggle-bars,
  .gbb-nav-toggle-bars::before,
  .gbb-nav-toggle-bars::after {
    display: block;
    width: 24px;
    height: 2px;
    margin: 0 auto;
    background: currentColor;
    transition: transform .2s, background-color .2s;
  }
  .gbb-nav-toggle-bars {
    position: relative;
  }
  .gbb-nav-toggle-bars::before,
  .gbb-nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .gbb-nav-toggle-bars::before { top: -7px; }
  .gbb-nav-toggle-bars::after { top: 7px; }
  .gbb-nav-toggle[aria-expanded="true"] .gbb-nav-toggle-bars { background: transparent; }
  .gbb-nav-toggle[aria-expanded="true"] .gbb-nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .gbb-nav-toggle[aria-expanded="true"] .gbb-nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }
  .gbb-nav-panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding: 8px 24px 24px;
    background: #fff;
    border-bottom: 1px solid var(--gbb-nav-line);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .08);
  }
  .gbb-nav-panel.is-open {
    display: block;
  }
  .gbb-nav-links > li {
    border-bottom: 1px solid var(--gbb-nav-line);
  }
  .gbb-nav-links > li > a,
  .gbb-nav-menu-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 14px 0;
    font-size: 17px;
    font-weight: 600;
    color: var(--gbb-nav-navy);
    text-align: left;
    text-decoration: none;
  }
  .gbb-nav-menu {
    padding-bottom: 8px;
  }
  .gbb-nav-menu a {
    display: block;
    padding: 10px 0 10px 16px;
    font-size: 16px;
    color: var(--gbb-nav-navy);
    text-decoration: none;
  }
  .gbb-nav-menu a:hover,
  .gbb-nav-menu a:focus {
    color: var(--gbb-nav-navy);
    text-decoration: underline;
  }
  .gbb-nav-menu a[aria-current="page"] {
    font-weight: 700;
  }
  .gbb-nav-pay {
    display: block;
    margin-top: 20px;
    padding: 12px 18px;
    border-radius: 4px;
    background: var(--gbb-nav-navy);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    text-decoration: none;
  }
  .gbb-nav-pay:hover,
  .gbb-nav-pay:focus {
    background: #002a52;
    color: #fff;
    text-decoration: none;
  }
  .gbb-nav-panel-social {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
  }
  .gbb-nav-panel-social .gbb-nav-icon {
    padding: 10px;
  }
}
@media (max-width: 575px) {
  .gbb-nav-inner {
    height: 84px;
    padding: 0 16px;
  }
  .gbb-nav-brand img {
    height: 60px;
  }
  .gbb-nav-panel {
    max-height: calc(100vh - 84px);
    padding: 8px 16px 24px;
  }
}

/* 992px and up: the old subpage header. Values are the old header's
   measured ones: 131px tall, logo panel 1/3 wide with the logo right-aligned
   35px from its edge (max 384px wide), links 26px from the top, 70px tall */
@media (min-width: 992px) {
  .gbb-nav {
    position: fixed;
    left: 0;
    right: 0;
    font-family: 'Public Sans', sans-serif;
  }
  .gbb-nav-bar {
    background: var(--gbb-nav-navy);
  }
  .gbb-nav-inner {
    display: flex;
    height: 131px;
  }
  .gbb-nav-brand {
    flex: 0 0 33.3333%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 20px 35px 0 15px;
    background: #fff;
  }
  .gbb-nav-brand img {
    display: block;
    width: 100%;
    max-width: 384px;
    height: auto;
  }
  .gbb-nav-toggle,
  .gbb-nav-panel-social {
    display: none;
  }
  .gbb-nav-panel {
    display: flex;
    align-items: flex-start;
    /* 31px, not the old 26px: centers the capitals' ink in the bar
       (measured 55px above / 64px below at 26px) */
    padding: 31px 0 0 115px;
  }
  .gbb-nav-links {
    display: flex;
  }
  .gbb-nav-links > li {
    position: relative;
  }
  .gbb-nav-links > li > a,
  .gbb-nav-menu-btn,
  .gbb-nav-pay {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 70px;
    padding: 0 40px;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
  }
  .gbb-nav-links > li > a:hover,
  .gbb-nav-links > li > a:focus,
  .gbb-nav-menu-btn:hover,
  .gbb-nav-pay:hover,
  .gbb-nav-pay:focus {
    color: #fff;
    text-decoration: underline;
  }
  /* The arrow sits in Services' right padding so the links keep the old
     header's positions; the menu also opens on hover */
  .gbb-nav-menu-btn {
    position: relative;
  }
  /* 7px after the text (8px to the ink with the 1px letter spacing):
     right = side padding - 10px arrow - 7px */
  .gbb-nav-menu-btn svg {
    position: absolute;
    right: 23px;
    top: 50%;
    width: 10px;
    height: 10px;
    margin-top: -5px;
  }
  .gbb-nav-has-menu:hover > .gbb-nav-menu {
    display: block;
  }
  /* Services dropdown: white panel, soft shadow, navy uppercase items
     (Doug, 2026-11-04; was navy with 12px/40px items). The panel is offset
     by the Services label's side padding minus the item padding so the item
     text lines up under the SERVICES text at every bar width. */
  .gbb-nav-menu {
    position: absolute;
    top: 100%;
    left: 20px;
    min-width: 300px;
    padding: 8px 0;
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .14);
  }
  .gbb-nav-menu a {
    display: block;
    padding: 8px 20px;
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--gbb-nav-navy);
    text-decoration: none;
  }
  .gbb-nav-menu a:hover,
  .gbb-nav-menu a:focus {
    background: #eef2f7;
    color: var(--gbb-nav-navy);
    text-decoration: none;
  }
  .gbb-nav-menu a[aria-current="page"] {
    font-weight: 700;
  }
}
@media (min-width: 992px) and (max-width: 1560px) {
  .gbb-nav-links > li > a,
  .gbb-nav-menu-btn,
  .gbb-nav-pay {
    padding: 0 30px;
    font-size: 15px;
  }
  .gbb-nav-menu-btn svg {
    right: 13px;
  }
  .gbb-nav-menu {
    left: 10px;
  }
}
@media (min-width: 992px) and (max-width: 1320px) {
  .gbb-nav-links > li > a,
  .gbb-nav-menu-btn,
  .gbb-nav-pay {
    padding: 0 20px;
  }
  .gbb-nav-menu-btn svg {
    right: 3px;
  }
  .gbb-nav-menu {
    left: 0;
  }
}
@media (min-width: 992px) and (max-width: 1170px) {
  .gbb-nav-panel {
    padding-left: 25px;
  }
  .gbb-nav-links > li > a,
  .gbb-nav-menu-btn,
  .gbb-nav-pay {
    font-size: 14px;
  }
}

/* The theme's .wrapper has overflow-x: hidden, which makes it a scroll
   container and stops position: sticky (below 992px); clip trims the same
   overflow without that side effect */
.gbb-nav-page .wrapper {
  overflow-x: clip;
  overflow-y: visible;
}

/* Back-to-top button (js/gbb-top.js), 2026-11-02: light blue by default,
   navy on hover, 48px */
.gbb-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: #5887da;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s, visibility .25s, transform .25s, background-color .15s;
}
.gbb-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.gbb-top:hover,
.gbb-top:focus-visible {
  background: #003a70;
}
.gbb-top:focus-visible {
  outline: 2px solid #5887da;
  outline-offset: 2px;
}
@media (max-width: 575px) {
  .gbb-top {
    right: 16px;
    bottom: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .gbb-top {
    transition: none;
  }
}
/* Pages with no hero (legal pages, 404; rollout 2026-11-23): the fixed
   131px bar would cover the top of the card, so the page body starts below
   it. The section's own 80px top padding then matches the gap under the
   sticky bar on phones. */
@media (min-width: 992px) {
  .gbb-nav + .gbb-sub {
    padding-top: 131px;
  }
}
