/* Plugin-owned Timber header/footer styles. Loaded only when this renderer is enabled. */
.ad-site-header,
.ad-site-footer {
  --ad-hf-white: var(--ad-color-white, #ffffff);
  --ad-hf-blue: var(--ad-color-blue-deep, #001133);
  --ad-hf-blue-muted: rgba(0, 17, 51, 0.6);
  --ad-hf-teal: var(--ad-color-teal, #46c9ce);
  --ad-hf-teal-active: var(--ad-color-teal-active, #0ea9af);
  --ad-hf-font: var(--ad-font-primary, "Figtree", Arial, sans-serif);
  --ad-hf-shell: 1344px;
  --ad-hf-shadow: 0 24px 70px rgba(0, 17, 51, 0.14);
  font-family: var(--ad-hf-font);
}

.ad-site-header *,
.ad-site-header *::before,
.ad-site-header *::after,
.ad-site-footer *,
.ad-site-footer *::before,
.ad-site-footer *::after {
  box-sizing: border-box;
}

.ad-site-header a,
.ad-site-footer a {
  color: inherit;
  text-decoration: none;
}

.ad-site-header button {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.ad-site-header ul,
.ad-site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ad-site-header .brxe-section,
.ad-site-header .brxe-container,
.ad-site-header .brxe-block,
.ad-site-header .brxe-div,
.ad-site-header .brxe-nav-menu,
.ad-site-header .brx-submenu-toggle,
.ad-site-footer .brxe-section,
.ad-site-footer .brxe-container,
.ad-site-footer .brxe-block,
.ad-site-footer .brxe-div {
  display: flex;
}

.ad-site-header {
  position: relative;
  z-index: 1000;
  width: 100%;
  background: var(--ad-hf-white);
}

.ad-site-header .main-header-v2 {
  position: relative;
  width: 100%;
  background: var(--ad-hf-white);
}

.ad-site-header .main-header-v2__container {
  flex-direction: row;
  width: 100%;
  margin: 0 auto;
}

.ad-site-header .main-header-v2__brand-logo,
.ad-site-header .main-header-v2__brand-logo picture,
.ad-site-header .main-header-v2__brand-logo img {
  display: block;
}

.ad-site-header .main-header-v2__brand-logo img {
  object-fit: contain;
}

.ad-site-header .bricks-nav-menu-wrapper,
.ad-site-header .bricks-nav-menu-wrapper > ul,
.ad-site-header .bricks-mobile-menu-wrapper,
.ad-site-header .bricks-mobile-menu-wrapper > ul {
  display: flex;
}

.ad-site-header .bricks-nav-menu {
  flex-direction: row;
}

.ad-site-header .bricks-nav-menu > li {
  position: relative;
}

.ad-site-header .brx-submenu-toggle {
  flex-direction: row;
  align-items: center;
}

.ad-site-header .brx-submenu-toggle > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ad-site-header .menu-item-icon,
.ad-site-header .ion-ios-arrow-down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.ad-site-header .ion-ios-arrow-down::before {
  content: "";
  display: block;
  width: 0.45em;
  height: 0.45em;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-0.14em) rotate(45deg);
}

.ad-site-header .sub-menu,
.ad-site-header .brx-megamenu {
  display: none;
  margin: 0;
  padding: 0;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  color: #081a2b;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: normal;
}

.ad-site-header .main-header-v2__menu .menu-item-has-children:hover > .sub-menu,
.ad-site-header .main-header-v2__menu .menu-item-has-children:focus-within > .sub-menu,
.ad-site-header .menu-item-has-children.ad-menu-item-open > .sub-menu,
.ad-site-header .main-header-v2__menu .menu-item-has-children:hover > .brx-megamenu,
.ad-site-header .main-header-v2__menu .menu-item-has-children:focus-within > .brx-megamenu,
.ad-site-header .menu-item-has-children.ad-menu-item-open > .brx-megamenu {
  display: block;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto;
}

/*
 * Desktop mega/dropdown: fade in/out (matches staging's 0.2s transition instead
 * of an instant snap). Scoped to >=1101px so the mobile offcanvas accordion keeps
 * its display:none toggle (collapsed items must not occupy space). The desktop
 * panels are position:absolute, so keeping them rendered has no layout impact.
 */
@media (min-width: 1101px) {
  .ad-site-header .main-header-v2__menu .sub-menu,
  .ad-site-header .main-header-v2__menu .brx-megamenu {
    display: block;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  }
}

.ad-site-header .main-header-v2__menu .sub-menu {
  position: absolute;
  top: calc(100% + 20px);
  left: 0;
  z-index: 998;
  width: max-content;
  min-width: 0;
  padding: 13.5068px;
  border: 0;
  border-radius: 6.66667px;
  background: var(--ad-hf-white);
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.1);
}

.ad-site-header .main-header-v2__menu .sub-menu .sub-menu {
  top: -13.5068px;
  left: 100%;
}

/* Anchor nested submenus to their parent item, not the outer dropdown. */
.ad-site-header .main-header-v2__menu .sub-menu .menu-item {
  position: relative;
}

.ad-site-header .main-header-v2__menu .sub-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: normal;
  width: 100%;
  min-height: 46px;
  padding: 15px 13.5068px;
  color: rgba(0, 17, 51, 0.9);
  font-size: 14px;
  /* Sentence-case dropdown links (About Us / Pricing) to match the Services
     mega menu. Section labels + top bar stay uppercase. */
  font-weight: 500;
  line-height: 16px;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
}

.ad-site-header .main-header-v2__menu .sub-menu .brx-submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: normal;
  width: 100%;
  min-height: 46px;
  padding: 0;
}

.ad-site-header .main-header-v2__menu .sub-menu .brx-submenu-toggle > a {
  flex: 1 1 auto;
  width: auto;
}

.ad-site-header .main-header-v2__menu .sub-menu .brx-submenu-toggle > button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 37.1875px;
  height: 44px;
  min-height: 44px;
  padding: 15px 13.5068px;
  margin: 0;
  color: rgba(0, 17, 51, 0.9);
  opacity: 1;
}

.ad-site-header .main-header-v2__menu .sub-menu .brx-submenu-toggle > button .menu-item-icon {
  width: 14px;
  height: 14px;
  font-size: 14px;
  line-height: 14px;
  transform: rotate(-90deg);
}

.ad-site-header .main-header-v2__menu .sub-menu .menu-item:hover {
  background-color: rgb(247, 247, 247);
  border-radius: 5px;
}

.ad-site-header .main-header-v2__menu .sub-menu a:hover,
.ad-site-header .main-header-v2__menu .sub-menu .brx-submenu-toggle:hover,
.ad-site-header .main-header-v2__menu .sub-menu li:hover > a,
.ad-site-header .main-header-v2__menu .sub-menu li:hover > .brx-submenu-toggle > a,
.ad-site-header .main-header-v2__menu .sub-menu li:focus-within > a,
.ad-site-header .main-header-v2__menu .sub-menu li:focus-within > .brx-submenu-toggle {
  color: rgb(0, 17, 51);
}

.ad-site-header .main-header-v2__menu > .bricks-nav-menu-wrapper > .bricks-nav-menu > li > .brx-megamenu {
  position: absolute;
  top: 89.5px;
  left: 0 !important;
  right: 0;
  z-index: 998;
  width: 100%;
  min-width: 0 !important;
  padding: 0;
  transform: none !important;
  border-top: 0;
  background: transparent;
  box-shadow: none;
}

.ad-site-header .bricks-mobile-menu-wrapper,
.ad-site-header .bricks-mobile-menu-toggle,
.ad-site-header .bricks-mobile-menu-overlay {
  display: none;
}

.ad-site-header .offcanvas-menu {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 999;
  display: flex;
  width: 100vw;
  max-width: 100vw;
  transform: translateX(-100%);
  transition: transform 180ms ease;
  pointer-events: none;
}

.ad-site-header[data-ad-menu-open="true"] .offcanvas-menu {
  transform: translateX(0);
  pointer-events: auto;
}

.ad-site-header .offcanvas__content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  flex-direction: column;
  gap: 24px;
  padding: 80px 19.2083px 24.4375px;
  background: var(--ad-hf-white);
  box-shadow: none;
}

.ad-site-header .offcanvas__logo {
  position: absolute;
  top: 8px;
  left: 19.2083px;
  z-index: 3;
  display: block;
  width: 84px;
  height: auto;
  line-height: 0;
}

.ad-site-header .offcanvas__logo img {
  display: block;
  width: 84px;
  height: auto;
}

.ad-site-header .offcanvas__backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: none;
  width: 100vw;
  min-height: 100vh;
  background: rgba(0, 17, 51, 0.32);
}

.ad-site-header[data-ad-menu-open="true"] .offcanvas__backdrop {
  display: block;
}

.ad-site-header .offcanvas__mobile-menu,
.ad-site-header .offcanvas__mobile-menu nav,
.ad-site-header .offcanvas__mobile-menu ul {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.ad-site-header .offcanvas__mobile-menu .bricks-nav-menu {
  gap: 0;
}

.ad-site-header .offcanvas__mobile-menu li {
  width: 100%;
}

.ad-site-header .offcanvas__mobile-menu a,
.ad-site-header .offcanvas__mobile-menu .brx-submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 45.2px;
  color: var(--ad-hf-blue-muted);
  font-size: 14.1458px;
  font-weight: 600;
  letter-spacing: normal;
  line-height: 21.2188px;
  text-transform: uppercase;
}

.ad-site-header .offcanvas__mobile-menu a:focus,
.ad-site-header .offcanvas__mobile-menu .brx-submenu-toggle:has(> a:focus) > button {
  color: var(--ad-hf-blue-muted);
  outline: none;
}

.ad-site-header .offcanvas__mobile-menu a:focus,
.ad-site-header .offcanvas__mobile-menu a:focus-visible {
  outline: 1px solid var(--ad-hf-teal-active);
  outline-offset: -1px;
}

.ad-site-header .offcanvas__mobile-menu button:focus,
.ad-site-header .offcanvas__mobile-menu button:focus-visible {
  outline: 1px solid var(--ad-hf-teal-active);
  outline-offset: 0;
}

.ad-site-header .main-header-v2__toggle:focus {
  outline: none;
}

.ad-site-header .main-header-v2__toggle:focus-visible {
  outline: var(--ad-focus-ring-width, 2px) solid var(--ad-focus-ring-color, var(--ad-hf-teal-active));
  outline-offset: var(--ad-focus-ring-offset, 2px);
}

.ad-site-header .offcanvas__mobile-menu > nav > .bricks-nav-menu > li > .brx-submenu-toggle > a {
  flex: 1 1 auto;
  width: auto;
  min-height: 45.2px;
}

.ad-site-header .offcanvas__mobile-menu > nav > .bricks-nav-menu > li > .brx-submenu-toggle > button {
  flex: 0 0 14.1458px;
  width: 14.1458px;
  height: 38.1458px;
  min-height: 38.1458px;
  padding: 0;
  margin: 0;
}

.ad-site-header .offcanvas__mobile-menu > nav > .bricks-nav-menu > li > .brx-submenu-toggle > button .menu-item-icon {
  width: 14.1458px;
  height: 14.1458px;
  font-size: 14.1458px;
  line-height: 14.1458px;
}

.ad-site-header .offcanvas__mobile-menu .sub-menu,
.ad-site-header .offcanvas__mobile-menu .brx-megamenu {
  position: static;
  display: none !important;
  width: 100%;
  padding: 0;
  border: 0;
  box-shadow: none;
  transform: none;
  background: transparent;
  color: #081a2b;
  font-size: 14.1458px;
  font-weight: 400;
  line-height: 20.14px;
  letter-spacing: normal;
}

.ad-site-header .offcanvas__mobile-menu .menu-item-has-children.ad-menu-item-open > .sub-menu,
.ad-site-header .offcanvas__mobile-menu .menu-item-has-children.ad-menu-item-open > .brx-megamenu {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto;
}

.ad-site-header .offcanvas__mobile-menu .mega-services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.ad-site-header .offcanvas__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  min-height: 50.141px;
  padding: 15px 30px;
  border-radius: 6.66667px;
  background: var(--ad-hf-teal-active);
  color: var(--ad-hf-white);
  font-size: 14.1458px;
  font-weight: 600;
  line-height: 20.14px;
  text-transform: none;
}

html.ad-site-menu-open {
  overflow: hidden;
}

.ad-site-footer {
  width: 100%;
  background: var(--ad-hf-white);
  color: #081a2b;
  font-size: var(--text-m);
  line-height: calc(var(--text-m) + 0.6rem);
}

.ad-site-footer .footer {
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 90px 60px;
}

.ad-site-footer .footer__container {
  width: 100%;
  max-width: 1280px;
  flex-direction: column;
  gap: 67.5px;
}

.ad-site-footer .footer__container-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 45px 0;
  width: 100%;
}

.ad-site-footer .footer__container-left {
  flex: 0 1 50%;
  flex-direction: column;
  gap: 20px;
}

.ad-site-footer .footer__logo,
.ad-site-footer .footer__logo img {
  display: block;
  width: 250px;
  max-width: 100%;
  height: auto;
}

.ad-site-footer .footer__description {
  width: 270px;
  max-width: 100%;
  color: #081a2b;
  font-size: 19.2px;
  line-height: 22px;
}

.ad-site-footer .footer__description p,
.ad-site-footer .footer-legal__link-text {
  margin: 0;
}

.ad-site-footer .footer__container-right {
  flex: 0 1 50%;
  flex-direction: row;
  justify-content: flex-end;
  gap: 67.5px;
}

.ad-site-footer .footer__menu-section,
.ad-site-footer .footer-menu {
  flex-direction: column;
}

.ad-site-footer .footer-menu {
  gap: 10px;
  /* Right-align footer columns to match staging (Bricks sets align-items:flex-end). */
  align-items: flex-end;
  text-align: right;
}

.ad-site-footer .footer-menu__link {
  display: list-item;
  font-size: 14px;
  line-height: 22px;
}

.ad-site-footer .footer-menu__link-text,
.ad-site-footer .footer-legal__link-text {
  display: inline-flex !important;
  align-items: center;
  color: #081a2b;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
}

.ad-site-footer .footer-menu__link-text:hover,
.ad-site-footer .footer-legal__link-text:hover {
  color: #081a2b;
}

.ad-site-footer .footer-social {
  flex-direction: row;
  gap: 10px;
  width: 100%;
  margin-top: 0;
}

.ad-site-footer .footer-social__icon {
  display: inline;
  width: 15px;
  height: auto;
}

/* Footer social icons: the inline SVG fill is brand blue; staging renders them
   dark. Override the fill to match. */
.ad-site-footer .footer-social a svg,
.ad-site-footer .footer-social__icon,
.ad-site-footer .footer-social__icon path,
.ad-site-footer .footer-social a svg path {
  fill: var(--ad-color-blue-deep);
}

.ad-site-footer .bm-footer-2__bottom,
.ad-site-footer .bm-footer-2-bottom__container,
.ad-site-footer .footer-nav-legal {
  width: 100%;
}

.ad-site-footer .footer-legal-nav {
  display: flex;
  flex-direction: row;
  gap: 0 16px;
  justify-content: center;
  flex-wrap: wrap;
  width: auto;
  margin: 0 auto;
  padding-top: 0;
  border-top: 0;
}

.ad-site-footer .footer-legal__link-text {
  color: rgba(0, 0, 0, 0.4);
}

@media (max-width: 1100px) {
  .ad-site-header .main-header-v2 {
    min-height: 55px;
    padding: 8px 19.2083px;
    border-bottom: 0;
  }

  .ad-site-header .main-header-v2__container {
    align-items: center;
    justify-content: space-between;
  }

  .ad-site-header .main-header-v2__brand-logo,
  .ad-site-header .main-header-v2__brand-logo picture,
  .ad-site-header .main-header-v2__brand-logo img {
    width: 84px;
    height: auto;
  }

  .ad-site-header .main-header-v2__menu,
  .ad-site-header .main-header-v2__btn {
    display: none;
  }

  .ad-site-header .main-header-v2__toggle {
    position: relative;
    z-index: 1002;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 24px;
    padding: 0;
    transform: scale(0.6);
    transform-origin: center center;
  }

  .ad-site-header .main-header-v2__toggle .brxa-wrap,
  .ad-site-header .main-header-v2__toggle .brxa-inner,
  .ad-site-header .main-header-v2__toggle .brxa-inner::before,
  .ad-site-header .main-header-v2__toggle .brxa-inner::after {
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: rgba(0, 17, 51, 0.6);
  }

  .ad-site-header .main-header-v2__toggle .brxa-wrap {
    position: relative;
    height: 24px;
    background: transparent;
  }

  .ad-site-header .main-header-v2__toggle .brxa-inner {
    position: absolute;
    top: 12px;
    left: 0;
  }

  .ad-site-header .main-header-v2__toggle .brxa-inner::before,
  .ad-site-header .main-header-v2__toggle .brxa-inner::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .ad-site-header .main-header-v2__toggle .brxa-inner::before {
    top: -10px;
  }

  .ad-site-header .main-header-v2__toggle .brxa-inner::after {
    top: 10px;
  }

  .ad-site-header[data-ad-menu-open="true"] .main-header-v2__toggle .brxa-inner {
    background: rgba(0, 17, 51, 0.6);
    transform: rotate(45deg);
  }

  .ad-site-header[data-ad-menu-open="true"] .main-header-v2__toggle .brxa-inner::before {
    top: 0;
    transform: none;
  }

  .ad-site-header[data-ad-menu-open="true"] .main-header-v2__toggle .brxa-inner::after {
    top: 0;
    transform: rotate(-90deg);
  }

  .ad-site-footer .footer {
    padding: 51.0625px 19.2083px;
  }

  .ad-site-footer .footer__container {
    gap: 44.4577px;
  }

  .ad-site-footer .footer__container-top,
  .ad-site-footer .footer__container-right {
    flex-direction: column;
    gap: 69.1622px 0;
  }

  .ad-site-footer .footer__container-left {
    flex-basis: auto;
    gap: 18.15px 0;
  }

  .ad-site-footer .footer__description {
    width: 250px;
    font-size: 16.975px;
    line-height: 22.97px;
  }

  .ad-site-footer .footer__container-right {
    gap: 37.7583px 44.4577px;
    justify-content: space-between;
  }

  /* Mobile: footer link columns stack and LEFT-align (matches staging). The
     desktop base rule right-aligns .footer-menu to match staging's wide footer;
     that must not bleed into the stacked mobile layout. */
  .ad-site-footer .footer-menu {
    width: fit-content;
    align-items: flex-start;
    text-align: left;
  }

  .ad-site-footer .footer-menu__link {
    font-size: 13.07px;
    line-height: 20.14px;
  }

  .ad-site-footer .footer-menu__link-text,
  .ad-site-footer .footer-legal__link-text {
    font-size: 13.07px;
    line-height: 20.14px;
  }

  .ad-site-footer .footer-legal-nav {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 0;
  }
}

.mega-services {
  background-color: var(--white);
  padding-top: var(--space-m);
  padding-bottom: var(--space-m);
}

.ad-site-header .mega-services {
  display: flex;
  justify-content: center;
  width: 100%;
  background-color: var(--ad-hf-white);
  padding-top: var(--space-m, 32px);
  padding-bottom: var(--space-m, 32px);
}

.mega-services__grid {
  display: grid;
  align-items: initial;
  grid-gap: var(--space-xs);
  grid-template-columns: var(--grid-auto-4);
  max-width: 1344px;
  width: 100%;
}

.ad-site-header .mega-services__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: var(--space-xs, 16px);
  max-width: 1344px;
  width: 100%;
}

.ad-site-header .mega-services__col,
.ad-site-header .mega-services__header,
.ad-site-header .mega-services__nav-box,
.ad-site-header .mega-services__inner-nav {
  display: flex;
  flex-direction: column;
}

.mega-services__header {
  font-size: 14px;
  letter-spacing: 0;
  row-gap: 4px;
  padding-right: var(--space-m);
  padding-bottom: var(--space-xs);
  padding-left: var(--space-m);
}

.mega-services__col-label {
  /* was an h3; div keeps the heading's inherited var-driven props explicitly */
  color: var(--h3-color);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: var(--h3-line-height);
  max-width: var(--h3-max-width);
  text-wrap: var(--heading-text-wrap);
}

.mega-services__col-description {
  min-height: 40px;
}

.mega-services__nav-box {
  background-color: #fafcff;
  border-radius: 16px;
  padding: var(--space-m);
  row-gap: 8px;
  flex-grow: 1;
}

.mega-services__main-link {
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 17, 51, 0.1);
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  font-size: 16px;
  color: rgba(0, 17, 51, 0.6);
  font-weight: 600;
}

.ad-site-header .mega-services__main-link {
  color: rgba(0, 17, 51, 0.6);
}

.mega-services__main-link:hover {
  color: #001133;
}

.mega-services__inner-nav {
  row-gap: 4px;
}

.mega-services__inner-link {
  padding: 8px 12px;
  border-radius: 4px;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: rgba(0, 17, 51, 0.6);
}

.ad-site-header .mega-services__inner-link {
  color: rgba(0, 17, 51, 0.6);
}

.mega-services__inner-link:hover {
  background-color: rgba(0, 17, 51, 0.03);
  color: #001133;
}

@media (max-width: 1100px) {
  .ad-site-header .offcanvas__mobile-menu .sub-menu a,
  .ad-site-header .offcanvas__mobile-menu .sub-menu .brx-submenu-toggle {
    min-height: 32px;
    padding: 8px 12px;
    color: rgba(0, 17, 51, 0.6);
    font-size: 13.0729px;
    font-weight: 600;
    letter-spacing: 1px;
    line-height: 16px;
    text-transform: capitalize;
  }

  .ad-site-header .offcanvas__mobile-menu .sub-menu .brx-submenu-toggle {
    padding: 0;
  }

  .ad-site-header .offcanvas__mobile-menu .sub-menu .brx-submenu-toggle > button {
    width: 37.1875px;
    height: 32px;
    min-height: 32px;
    padding: 8px 12px;
  }

  .ad-site-header .offcanvas__mobile-menu .brx-megamenu .mega-services {
    padding: 0;
  }

  .ad-site-header .offcanvas__mobile-menu .mega-services__grid {
    gap: 18.1406px;
  }

  .ad-site-header .offcanvas__mobile-menu .mega-services__main-link {
    min-height: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 20.14px;
  }

  .ad-site-header .offcanvas__mobile-menu .mega-services__inner-link {
    min-height: 0;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 20.14px;
    text-transform: none;
  }

  .mega-services {
    padding: 0;
  }

  .mega-services__header {
    padding-right: 0;
    padding-left: 0;
  }
}

@media (max-width: 767px) {
  .mega-services {
    padding: unset;
  }

  .mega-services__grid {
    grid-template-columns: var(--grid-1);
    grid-gap: var(--space-s);
  }

  .ad-site-header .mega-services__grid {
    grid-template-columns: 1fr;
    gap: var(--space-s, 20px);
  }

  .mega-services__col-description {
    min-height: auto;
  }

  .mega-services__nav-box {
    background-color: transparent;
    padding-top: unset;
    padding-right: unset;
    padding-bottom: var(--space-xs);
    padding-left: unset;
    border-bottom: 1px solid rgba(0, 17, 51, 0.5);
    border-radius: 0;
  }
}

#brx-header[data-ad-renderer="timber"] {
  --ad-header-nav-muted: color-mix(in srgb, var(--ad-color-blue-deep) 60%, transparent);
}

#brx-header[data-ad-renderer="timber"] .main-header-v2 {
  background-color: var(--ad-color-white);
}

@media (min-width: 1101px) {
  #brx-header[data-ad-renderer="timber"] .main-header-v2 {
    box-sizing: border-box;
    height: 100px;
    min-height: 0;
    padding: 30px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    align-items: center;
    justify-content: center;
  }

  #brx-header[data-ad-renderer="timber"] .main-header-v2__container {
    width: 100%;
    max-width: 1600px;
    min-width: 1px;
    min-height: 40px;
    gap: 0;
    align-items: flex-end;
    justify-content: space-between;
  }

  #brx-header[data-ad-renderer="timber"] .main-header-v2__brand {
    flex: 0 0 300px;
    width: 300px;
    max-width: 300px;
    min-height: 40px;
    align-items: flex-end;
    justify-content: flex-start;
  }

  #brx-header[data-ad-renderer="timber"] .main-header-v2__brand-logo {
    display: block;
    width: 250px;
    height: 40px;
    line-height: 0;
    /* Optical nudge: lift the horizontal wordmark a few px off the bottom line
       so it visually centers against the bottom-justified nav (Lynda's note). */
    margin-bottom: 4px;
  }

  #brx-header[data-ad-renderer="timber"] .main-header-v2__brand-logo picture {
    display: block;
    width: 250px;
    height: 40px;
  }

  #brx-header[data-ad-renderer="timber"] .main-header-v2__brand-logo img {
    display: block;
    width: 250px;
    height: 40px;
    max-width: none;
    object-fit: contain;
    filter: none;
  }

  #brx-header[data-ad-renderer="timber"] .main-header-v2__menu {
    display: flex;
    flex: 0 0 auto;
    gap: 0;
    height: 16px;
    min-height: 16px;
    width: auto;
    max-width: none;
    margin-left: auto;
    align-self: flex-end;
  }

  #brx-header[data-ad-renderer="timber"] .main-header-v2__menu .bricks-nav-menu {
    height: 16px;
    min-height: 16px;
    gap: 0;
    align-items: center;
  }

  #brx-header[data-ad-renderer="timber"] .main-header-v2__menu .bricks-nav-menu-wrapper {
    height: 16px;
    min-height: 16px;
  }

  #brx-header[data-ad-renderer="timber"] .main-header-v2__menu .bricks-nav-menu > li {
    margin: 0;
  }

  #brx-header[data-ad-renderer="timber"] .main-header-v2__menu .bricks-nav-menu > li.brx-has-megamenu {
    position: static;
  }

  #brx-header[data-ad-renderer="timber"] .main-header-v2__menu .bricks-nav-menu > li > a,
  #brx-header[data-ad-renderer="timber"] .main-header-v2__menu .bricks-nav-menu > li > .brx-submenu-toggle {
    display: flex;
    min-height: 16px;
    padding: 0 10px;
    border-radius: 5px;
    gap: 3px;
    align-items: center;
    color: var(--ad-header-nav-muted);
  }

  #brx-header[data-ad-renderer="timber"] .main-header-v2__menu .bricks-nav-menu > li > a,
  #brx-header[data-ad-renderer="timber"] .main-header-v2__menu .bricks-nav-menu > li > .brx-submenu-toggle > a {
    padding: 0;
    font-family: var(--ad-font-primary);
    font-size: var(--ad-type-size-sm);
    font-weight: var(--ad-font-weight-semibold);
    line-height: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--ad-header-nav-muted);
  }

  #brx-header[data-ad-renderer="timber"] .main-header-v2__menu .bricks-nav-menu > li > .brx-submenu-toggle > button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    min-height: 15px;
    padding: 0;
    margin: 0;
    color: var(--ad-header-nav-muted);
    font-weight: var(--ad-font-weight-semibold);
    line-height: 24px;
    opacity: 0.6;
  }

  #brx-header[data-ad-renderer="timber"] .main-header-v2__menu .bricks-nav-menu > li > .brx-submenu-toggle > button .menu-item-icon {
    width: 15px;
    height: 15px;
    font-size: 15px;
    line-height: 15px;
  }

  #brx-header[data-ad-renderer="timber"] .main-header-v2__btn {
    flex-shrink: 0;
    min-height: 44px;
    margin-left: 40px;
    padding: 14px 20px;
    border-radius: var(--ad-radius-sm);
    background-color: var(--ad-color-teal);
    font-family: var(--ad-font-primary);
    font-size: var(--ad-type-size-sm);
    font-weight: var(--ad-font-weight-semibold);
    line-height: 16px;
    letter-spacing: 0.5px;
    color: var(--ad-color-white);
  }

  /* Hover states (match staging, which gets these from Bricks): top-level nav
     items + chevron darken on hover, and the CTA button lightens. */
  #brx-header[data-ad-renderer="timber"] .main-header-v2__menu .bricks-nav-menu > li:hover > a,
  #brx-header[data-ad-renderer="timber"] .main-header-v2__menu .bricks-nav-menu > li:hover > .brx-submenu-toggle > a,
  #brx-header[data-ad-renderer="timber"] .main-header-v2__menu .bricks-nav-menu > li:hover > .brx-submenu-toggle > button {
    color: rgb(0, 17, 51);
    opacity: 1;
  }

  #brx-header[data-ad-renderer="timber"] .main-header-v2__btn:hover {
    background-color: rgb(86, 194, 199);
    color: var(--ad-color-white);
  }

  #brx-header[data-ad-renderer="timber"] .main-header-v2__toggle {
    display: none;
  }
}

/*
 * Desktop + offcanvas hover states — parity with the staging plugin header.
 * The theme header previously only styled sub-menu link hover; the top-level
 * nav links, their sub-menu toggles, and the "Book an Appointment" primary CTA
 * had no :hover feedback (an earlier attempt used a non-matching `#brx-header >
 * li:hover` selector). These mirror the staging rules:
 *   .main-header-v2__menu .bricks-nav-menu > li:hover > a { color: --secondary-ultra-dark }
 *   .main-header-v2__btn:hover { background-color: rgb(86,194,199); color: #fff }
 * (--secondary-ultra-dark resolves to #013 = rgb(0,17,51).)
 */
.ad-site-header .main-header-v2__menu .bricks-nav-menu > li:hover > a,
.ad-site-header .main-header-v2__menu .bricks-nav-menu > li:hover > .brx-submenu-toggle > * {
  color: rgb(0, 17, 51);
}

.ad-site-header .offcanvas__mobile-menu .bricks-nav-menu > li:hover > a,
.ad-site-header .offcanvas__mobile-menu .bricks-nav-menu > li:hover > .brx-submenu-toggle > * {
  color: rgb(0, 17, 51);
}

.ad-site-header .main-header-v2__btn:hover,
.ad-site-header .offcanvas__btn:hover {
  background-color: rgb(86, 194, 199);
  color: #fff;
}

/*
 * Accessibility skip-links — parity with the staging Bricks skip-links.
 * Hidden above the viewport, slide into view on keyboard focus. Targets
 * #brx-content (the content-region wrapper) and #brx-footer.
 */
.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 100000;
  padding: 11px 30px;
  border-radius: var(--ad-radius-md, 8px);
  background: var(--ad-hf-teal-active);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-250%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.ad-content-region:focus {
  outline: none;
}
