/* Shared footer. Keep the WordPress menus, form and logo links intact. */
.site-bottom .foot-panel2 .footer-sitemap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  gap: 36px;
  align-items: start;
  margin-inline: 0;
  padding: 34px 0 28px !important;
}

.site-bottom .footer-sitemap > .wpb_column,
.site-bottom .footer-sitemap .footer-nav > .wpb_column {
  float: none;
  width: auto;
  min-width: 0;
}

.site-bottom .footer-sitemap > .wpb_column > .vc_column-inner,
.site-bottom .footer-sitemap .footer-nav > .wpb_column > .vc_column-inner {
  padding: 0;
}

.site-bottom .footer-sitemap .bold-title { margin-bottom: 16px !important; }
.site-bottom .footer-sitemap .bold-title :is(p, h4) {
  margin: 0;
  color: #b8c5d8;
  font-size: 12px;
  letter-spacing: .14em;
}

.site-bottom .footer-sitemap .footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  container-type: inline-size;
}

.site-bottom .footer-sitemap .footer-nav::before,
.site-bottom .footer-sitemap .footer-nav::after { display: none; }

.site-bottom .footer-nav .menu {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: baseline;
  margin: 0;
}

.site-bottom .footer-nav .menu > li { margin: 0; min-width: 0; }
.site-bottom .footer-nav .menu > li > a {
  color: #87b4ff;
  font-size: 14px;
  font-weight: 700;
}

.site-bottom .footer-nav .menu > .menu-item-has-children:has(> .sub-menu > li:nth-child(2)) {
  grid-column: 1 / -1;
}

.site-bottom .footer-nav .menu > .menu-item-has-children:has(> .sub-menu > li:nth-child(2)) > a {
  color: #fff;
  font-size: 17px;
}

.site-bottom .footer-nav .menu ul { margin: 9px 0 0; }
.site-bottom .footer-nav .menu ul > li {
  margin: 0 0 4px;
  break-inside: avoid;
  line-height: 1.32;
}
.site-bottom .footer-nav .menu ul > li > a { color: #dee5f0; font-size: 13px; }
.site-bottom .footer-nav .menu a:hover,
.site-bottom .footer-nav .menu a:focus-visible { color: #fff; text-decoration: underline; }

.site-bottom .footer-nav #menu-footer-menu-1 > li:last-child { justify-self: start; }
.site-bottom .footer-nav #menu-footer-menu-1 { grid-template-columns: auto 1fr; }
.site-bottom .footer-nav #menu-footer-menu-2 > li:last-child {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: baseline;
}
.site-bottom .footer-nav #menu-footer-menu-2 > li:last-child > .sub-menu { margin: 0; }

@container (min-width: 600px) {
  .site-bottom .footer-nav .menu > .menu-item-has-children:has(> .sub-menu > li:nth-child(2)) > .sub-menu {
    columns: 2;
    column-gap: 16px;
  }
  .site-bottom .footer-nav #menu-footer-menu-2 > li:first-child {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    z-index: 1;
  }
  .site-bottom .footer-nav #menu-footer-menu-2 > .menu-item-has-children:has(> .sub-menu > li:nth-child(2)) {
    grid-row: 1;
  }
}

.site-bottom .footer-sitemap .footer-form {
  max-width: none;
  border-left: 1px solid #2c3543;
  padding-left: 24px;
}
.site-bottom .footer-sitemap .footer-form h4 { color: #87b4ff; }
.site-bottom .footer-sitemap .footer-form > .vc_column-inner > .wpb_wrapper > .wpb_text_column {
  margin-bottom: 12px;
}
.site-bottom .footer-sitemap .footer-form .form-group { margin-bottom: 7px; }
.site-bottom .footer-sitemap .footer-form .btn { font-size: 18px; }
.site-bottom .footer-sitemap .footer-form .social-block { margin-top: 8px; }

/* WPBakery supplies the full-width blue background; align its contents with the sitemap. */
.site-bottom .foot-panel2 .site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 24px;
  padding: 16px max(82px, calc((100vw - 1180px) / 2)) 16px max(22px, calc((100vw - 1180px) / 2)) !important;
  box-sizing: border-box;
}
.site-bottom .foot-panel2 .site-footer::before,
.site-bottom .foot-panel2 .site-footer::after { display: none; }
.site-bottom .site-footer > .wpb_column {
  float: none;
  width: auto;
  min-width: 0;
}
.site-bottom .site-footer > .wpb_column > .vc_column-inner { padding: 0; }
.site-bottom .site-footer .wpb_content_element,
.site-bottom .site-footer p { margin: 0 !important; }
.site-bottom .site-footer > .wpb_column:first-child p {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.site-bottom .site-footer > .wpb_column:last-child p {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 0;
  font-size: 0;
  line-height: 0;
}
.site-bottom .site-footer img {
  display: block;
  max-width: 100%;
  height: auto !important;
  margin: 0 !important;
}
.site-bottom .site-footer img[src*="expertise-com"] { width: 120px !important; }
.site-bottom .site-footer img[src*="google-reviews"] { width: 92px !important; }
.site-bottom .site-footer img[src*="yelp"] { width: 64px !important; }
.site-bottom .site-footer img[src*="Equal-Housing"] { width: 58px !important; }
.site-bottom .site-footer > .wpb_column:last-child p > :not(:first-child) {
  margin-inline-start: 16px !important;
}

@media (max-width: 850px) {
  .site-bottom .foot-panel2 .footer-sitemap { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .site-bottom .footer-sitemap .footer-form {
    width: 100%;
    max-width: 480px;
    border-left: 0;
    border-top: 1px solid #2c3543;
    padding: 20px 0 0;
  }
  .site-bottom .foot-panel2 .site-footer {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 22px !important;
    text-align: center;
  }
  .site-bottom .site-footer > .wpb_column:last-child p { justify-content: center; }
}
@media (max-width: 500px) {
  .site-bottom .foot-panel2 .footer-sitemap { padding: 24px 7px !important; }
  .site-bottom .footer-sitemap .footer-nav { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .site-bottom .footer-nav .menu > .menu-item-has-children:has(> .sub-menu > li:nth-child(2)) > .sub-menu {
    columns: 2;
    column-gap: 14px;
  }
  .site-bottom .foot-panel2 .site-footer { padding-bottom: 24px !important; }
  .site-bottom .site-footer > .wpb_column:last-child { grid-row: 1; }
  .site-bottom .site-footer > .wpb_column:last-child p { row-gap: 8px; }
  .site-bottom .site-footer > .wpb_column:last-child p > :not(:first-child) { margin-inline-start: 12px !important; }
  .site-bottom .site-footer img[src*="expertise-com"] { width: 88px !important; }
  .site-bottom .site-footer img[src*="google-reviews"] { width: 71px !important; }
  .site-bottom .site-footer img[src*="yelp"] { width: 49px !important; }
  .site-bottom .site-footer img[src*="Equal-Housing"] { width: 46px !important; }
}
