@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/*
 * Production V2 shell only. Page/component styles stay in their own bundles.
 * The .bbsf namespace keeps the shell independent from the legacy theme CSS.
 */
.bbsf-header,
.bbsf-footer {
  --bbsf-navy: #0f1a51;
  --bbsf-blue: #0c3c99;
  --bbsf-bright-blue: #1285cb;
  --bbsf-red: #e51f16;
  --bbsf-orange: #ef5927;
  --bbsf-copy: #4d4d4d;
  --bbsf-light: #f3f4f6;
  color: var(--bbsf-copy);
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

@media (min-width: 1024px) {
  #bbs-v2-root .bbs2-testimonials ~ .team-member-slider {
    padding-top: 80px;
  }
}

.bbsf-header *,
.bbsf-footer * {
  box-sizing: border-box;
}

.bbsf-header a,
.bbsf-footer a {
  text-decoration: none;
}

.bbsf-header .bbsf-header__submenu-more {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bbsf-header .bbsf-header__submenu-more:hover,
.bbsf-header .bbsf-header__submenu-more:focus-visible {
  text-decoration: none;
}

/* Third-level navigation: indented on mobile and a compact hover/focus flyout on desktop. */
.bbsf-header .bbsf-header__submenu-children {
  display: none;
}

@media (min-width: 768px) {
  .bbsf-header .bbsf-header__submenu-list--nested {
    column-count: initial !important;
    display: grid !important;
    gap: 10px 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bbsf-header .bbsf-header__submenu-list--nested > li {
    margin: 0 !important;
    min-width: 0;
  }

  .bbsf-header .bbsf-header__submenu-item--has-children {
    break-inside: avoid;
    position: relative;
  }

  .bbsf-header .bbsf-header__submenu-item--has-children > a {
    display: block;
    padding-right: 16px;
    position: relative;
    width: 100%;
  }

  .bbsf-header .bbsf-header__submenu-item--has-children > a::after {
    border-right: 1.5px solid currentColor;
    border-top: 1.5px solid currentColor;
    content: "";
    height: 7px;
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 7px;
  }

  .bbsf-header .bbsf-header__submenu-children {
    background: #fff;
    border: 1px solid rgba(15, 26, 81, .12);
    border-radius: 10px;
    box-shadow: 0 14px 30px rgba(15, 26, 81, .14);
    display: flex;
    flex-direction: column;
    gap: 2px;
    left: calc(100% + 10px);
    list-style: none;
    min-width: 230px;
    opacity: 0;
    padding: 8px;
    pointer-events: none;
    position: absolute;
    top: -8px;
    transform: translateX(-5px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    visibility: hidden;
    z-index: 70;
  }

  .bbsf-header .bbsf-header__submenu-children::before {
    bottom: 0;
    content: "";
    left: -11px;
    position: absolute;
    top: 0;
    width: 11px;
  }

  .bbsf-header .bbsf-header__submenu-children li {
    margin: 0;
    padding: 0;
  }

  .bbsf-header .bbsf-header__submenu-children a {
    border-radius: 6px;
    color: var(--bbsf-copy);
    display: block;
    font-size: 13px;
    line-height: 1.45;
    padding: 8px 10px;
    transition: background-color .2s ease, color .2s ease;
    white-space: nowrap;
  }

  .bbsf-header .bbsf-header__submenu-item--has-children:hover > .bbsf-header__submenu-children,
  .bbsf-header .bbsf-header__submenu-item--has-children:focus-within > .bbsf-header__submenu-children {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    visibility: visible;
  }

  .bbsf-header .bbsf-header__submenu-children a:hover,
  .bbsf-header .bbsf-header__submenu-children a:focus-visible {
    background: #dce9f2;
    color: var(--bbsf-blue);
    outline: none;
  }
}

/* Keep mobile-nav and desktop-dropdown toggle state independent. */
.bbsf-header-scrim--mobile {
  display: none;
}

.bbsf-header img,
.bbsf-footer img {
  display: block;
  max-width: 100%;
}

.bbsf-header button {
  cursor: pointer;
  font-family: inherit;
}

.bbsf-header__menu-toggle { color: var(--bbsf-navy); }

.bbsf-shell {
  margin: 0 auto;
  width: min(1250px, calc(100% - 48px));
}

/*
 * Compatibility boundary between the legacy theme and V2 UI.
 * CMS templates must keep .bbs-v2-scope around V2 components. Theme CSS may
 * continue to load for legacy components, while V2 components inherit their
 * own base tokens and can safely override them within each section.
 */
body.bbs-v2-shell {
  padding-top: 0;
}

#bbs-v2-root {
  --navy: #0f1a51;
  --blue: #0c3c99;
  --sky: #e5eef5;
  --light: #f3f4f6;
  --red: #e51f16;
  --copy: #4d4d4d;
  --bbs2-richtext-font-size: 18px;
  --bbs2-richtext-line-height: 1.7;
}

.bbs-v2-scope {
  --body-color: #4d4d4d;
  --bold-body-color: #0f1a51;
  --heading-color: #0f1a51;
  --primary-btn-bg: #0f1a51;
  --primary-btn-text: #fff;
  --primary-btn-text-hover: #0f1a51;
  --secondary-btn-text: #0f1a51;
  --secondary-btn-text-hover: #1285cb;
  color: var(--body-color);
  font-family: 'Poppins', Arial, sans-serif;
}

.bbs-v2-scope,
.bbs-v2-scope * {
  box-sizing: border-box;
}

/*
 * V2 component boundary.
 * Keep the root on body for specificity/JS, but apply resets and typography
 * only to V2 sections so legacy theme content can coexist on the same page.
 */
#bbs-v2-root :is(.bbs2-section, .bbs2-dark) {
  --body-color: #4d4d4d;
  --bold-body-color: #0f1a51;
  --heading-color: #0f1a51;
  color: var(--copy);
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

#bbs-v2-root .bbs2-dark {
  --body-color: #fff;
  --bold-body-color: #fff;
  --heading-color: #fff;
}

#bbs-v2-root :is(.bbs2-section, .bbs2-dark),
#bbs-v2-root :is(.bbs2-section, .bbs2-dark) * {
  box-sizing: border-box;
}

#bbs-v2-root :is(.bbs2-section, .bbs2-dark) a {
  text-decoration: none;
}

#bbs-v2-root :is(.bbs2-section, .bbs2-dark) img {
  display: block;
  max-width: 100%;
}

/* Header */
.bbsf-header {
  background: #fff;
  border-bottom: 1px solid #e7e8ee;
  box-shadow: 0 16px 16px rgba(112, 101, 128, .2);
  position: relative;
  z-index: 100;
}

.bbsf-header.is-sticky {
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
}

.bbsf-header__offer {
  align-items: center;
  background: var(--bbsf-blue);
  color: #fff;
  display: flex;
  height: 40px;
  justify-content: center;
  position: relative;
}

.bbsf-header__offer-text,
.bbsf-header__offer-text p {
  color: inherit;
  font-size: 15px;
  line-height: 21.75px;
  margin: 0;
}

.bbsf-header__offer button {
  background: transparent;
  border: 0;
  height: 20px;
  padding: 0;
  position: absolute;
  right: max(32px, calc((100vw - 1440px) / 2 + 32px));
  top: 10px;
  width: 20px;
}

.bbsf-header__mobile-actions {
  display: none;
}

.bbsf-header__utility {
  align-items: center;
  /* border-bottom: 1px solid #e7e8ee; */
  display: flex;
  height: 59px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1340px;
  padding: 8px 0;
}

.bbsf-header__logo {
  display: block;
  flex: none;
  height: 42px;
  width: 257px;
}

.bbsf-header__logo picture,
.bbsf-header__logo img {
  height: 100%;
  object-fit: contain;
  object-position: left center;
  width: 100%;
}

.bbsf-header__actions {
  align-items: center;
  display: flex;
}

.bbsf-header__phone {
  align-items: center;
  border: 1px solid #e7e8ee;
  border-radius: 9999px;
  color: var(--bbsf-navy);
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  margin-right: 32px;
  padding: 8px 16px;
}

.bbsf-header__phone img {
  height: 24px;
  width: 24px;
}

.bbsf-header__phone,
.bbsf-header__action,
.bbsf-header__address,
.bbsf-footer a {
  transition: color .25s ease, background-color .25s ease, border-color .25s ease, opacity .25s ease, transform .25s ease;
}

.bbsf-header__phone:hover,
.bbsf-header__phone:focus-visible {
  /* background: var(--bbsf-light);
  border-color: var(--bbsf-bright-blue); */
  --tw-bg-opacity: 1;
  background-color: rgb(220 233 242 / var(--tw-bg-opacity, 1));
}

.bbsf-header__logo,
.bbsf-footer__top > a {
  transition: opacity .25s ease;
}

.bbsf-header__logo:hover,
.bbsf-header__logo:focus-visible,
.bbsf-footer__top > a:hover,
.bbsf-footer__top > a:focus-visible {
  opacity: .78;
}

.bbsf-header__action {
  align-items: center;
  display: flex;
  font-size: 15px;
  font-weight: 600;
  gap: 8px;
  white-space: nowrap;
}

.bbsf-header__action img {
  height: 16px;
  width: 16px;
}

.bbsf-header__action--book { color: var(--bbsf-bright-blue); }
.bbsf-header__action--planner { color: var(--bbsf-red); }

.bbsf-header__divider {
  background: #e7e8ee;
  height: 28px;
  margin: 0 16px;
  width: 1px;
}

.bbsf-header__address {
  align-items: center;
  color: var(--bbsf-copy);
  display: flex;
  font-size: 13px;
  gap: 8px;
  line-height: 1.4;
  width: 236px;
}

.bbsf-header__address svg {
  flex: none;
  height: 24px;
  width: 24px;
}

.bbsf-header__address:hover,
.bbsf-header__address:focus-visible {
  color: var(--bbsf-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bbsf-header__nav-row {
  align-items: center;
  display: flex;
  height: 46px;
  justify-content: center;
  margin: 0;
  padding: 0 14px;
  position: relative;
  border-top: 1px solid #e7e8ee;
}

.bbsf-header__nav-row .primary-nav { z-index: 101; }

/* Footer */
.bbsf-footer {
  background: linear-gradient(0deg, #dce9f2, var(--bbsf-light));
  color: var(--bbsf-navy);
  min-height: 602px;
}

.bbsf-shell--footer { padding: 64px 0 30px; }

.bbsf-footer__top {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  padding-bottom: 40px;
}

.bbsf-footer__top > a > img {
  height: 48px;
  object-fit: contain;
  object-position: left center;
  width: 294px;
}

.bbsf-footer__top > div,
.bbsf-footer__top .social-list {
  display: flex;
  gap: 20px;
}

.bbsf-footer__top a img {
  height: 24px;
  width: 24px;
}

.bbsf-footer__top > a > img {
  height: 48px;
  width: 294px;
}

.bbsf-footer__main {
  border-top: 1px solid rgba(15, 26, 81, .2);
  display: grid;
  gap: 33px;
  grid-template-columns: 294px 223px 400px 234px;
  padding: 40px 0;
}

.bbsf-footer h2 {
  color: var(--bbsf-navy);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  margin: 0 0 4px;
}

.bbsf-footer__hours dl { margin: 6px 0 0; }

.bbsf-footer__hours dl div {
  display: flex;
  gap: 22px;
  justify-content: space-between;
}

.bbsf-footer__hours dt {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
}

.bbsf-footer__hours dd {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  opacity: .7;
  text-align: right;
}

.bbsf-footer__details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bbsf-footer__details a {
  color: var(--bbsf-navy);
  display: block;
  font-size: 14px;
  line-height: 1.6;
  opacity: .7;
}

.bbsf-footer__details a:hover,
.bbsf-footer__details a:focus-visible,
.bbsf-footer__legal a:hover,
.bbsf-footer__legal a:focus-visible {
  color: var(--bbsf-blue);
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bbsf-footer__top .social-list a:hover,
.bbsf-footer__top .social-list a:focus-visible {
  opacity: .7;
  transform: translateY(-2px);
}

.bbsf-footer__map {
  border: 0;
  border-radius: 8px;
  display: block;
  height: 300px;
  width: 400px;
}

.bbsf-footer__buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bbsf-footer__buttons a {
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 14px;
  padding: 15px 25px;
  text-align: center;
  white-space: nowrap;
}

.bbsf-footer__buttons a:first-child { background: linear-gradient(0deg, var(--bbsf-blue), var(--bbsf-bright-blue)); }
.bbsf-footer__buttons a:nth-child(2) { background: linear-gradient(0deg, var(--bbsf-red), var(--bbsf-orange)); }

.bbsf-footer__buttons a:last-child {
  background: transparent;
  border: 1px solid var(--bbsf-navy);
  color: var(--bbsf-navy);
  padding: 14px 25px;
}

.bbsf-footer__buttons a:hover,
.bbsf-footer__buttons a:focus-visible {
  filter: brightness(.92);
  transform: translateY(-2px);
}

.bbsf-footer__buttons a:last-child:hover,
.bbsf-footer__buttons a:last-child:focus-visible {
  background: var(--bbsf-navy);
  color: #fff;
  filter: none;
}

.bbsf-footer__legal {
  align-items: flex-start;
  border-top: 1px solid rgba(15, 26, 81, .2);
  display: flex;
  justify-content: space-between;
  padding: 20px 20px 10px;
}

.bbsf-footer__legal p,
.bbsf-footer__legal a {
  color: var(--bbsf-navy);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  opacity: .6;
}

.bbsf-footer__legal > div {
  display: flex;
  gap: 16px;
}

/*
 * main.min.css contains high-specificity global color selectors for links,
 * paragraphs, list items and headings. Keep these guards at the end of the
 * shell rules so the production header/footer always retain their design.
 */
.bbsf-header.bbsf-header .bbsf-header__offer-text,
.bbsf-header.bbsf-header .bbsf-header__offer-text p,
.bbsf-header.bbsf-header .bbsf-header__mobile-book,
.bbsf-header.bbsf-header .bbsf-header__mobile-phone {
  color: #fff !important;
}

.bbsf-header.bbsf-header .bbsf-header__phone,
.bbsf-header.bbsf-header .bbsf-header__phone span {
  color: var(--bbsf-navy);
}

.bbsf-header.bbsf-header .bbsf-header__action--book,
.bbsf-header.bbsf-header .bbsf-header__action--book span {
  color: var(--bbsf-bright-blue);
}

.bbsf-header.bbsf-header .bbsf-header__action--planner,
.bbsf-header.bbsf-header .bbsf-header__action--planner span {
  color: var(--bbsf-red);
}

.bbsf-header.bbsf-header .bbsf-header__address,
.bbsf-header.bbsf-header .bbsf-header__address span {
  color: var(--bbsf-copy);
}

#bbs-v2-root .bbsf-footer.bbsf-footer h2,
#bbs-v2-root .bbsf-footer.bbsf-footer a,
#bbs-v2-root .bbsf-footer.bbsf-footer p,
#bbs-v2-root .bbsf-footer.bbsf-footer li,
#bbs-v2-root .bbsf-footer.bbsf-footer dt,
#bbs-v2-root .bbsf-footer.bbsf-footer dd {
  color: var(--bbsf-navy);
}

.bbsf-header.bbsf-header .bbsf-header__address:hover,
.bbsf-header.bbsf-header .bbsf-header__address:hover span,
.bbsf-header.bbsf-header .bbsf-header__address:focus-visible,
.bbsf-header.bbsf-header .bbsf-header__address:focus-visible span {
  color: var(--bbsf-blue);
}

#bbs-v2-root .bbsf-footer.bbsf-footer .bbsf-footer__buttons a:not(:last-child) {
  color: #fff !important;
}

#bbs-v2-root .bbsf-footer.bbsf-footer .bbsf-footer__buttons a:first-child,
#bbs-v2-root .bbsf-footer.bbsf-footer .bbsf-footer__buttons a:nth-child(2) {
  color: #fff;
}

#bbs-v2-root .bbsf-footer.bbsf-footer .bbsf-footer__buttons a:last-child {
  color: var(--bbsf-navy);
}

#bbs-v2-root .bbsf-footer.bbsf-footer .bbsf-footer__buttons a:last-child:hover,
#bbs-v2-root .bbsf-footer.bbsf-footer .bbsf-footer__buttons a:last-child:focus-visible {
  color: #fff;
}

@media (max-width: 1380px) {
  .bbsf-header__utility {
    padding-left: 24px;
    padding-right: 24px;
  }

  .bbsf-header__phone { margin-right: 16px; }
  .bbsf-header__address { display: none; }

}

@media (max-width: 1300px) {
  .bbsf-footer__main {
    gap: 40px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bbsf-footer__map { max-width: 100%; }
  .bbsf-footer__buttons { width: min(234px, 100%); }
}

@media (max-width: 1024px) {
  .bbsf-header__utility { height: 68px; }
  .bbsf-header__actions { display: none; }

  .bbsf-header__mobile-actions a { transition: filter .25s ease, transform .25s ease; }
  .bbsf-header__mobile-actions a:hover,
  .bbsf-header__mobile-actions a:focus-visible { filter: brightness(.9); transform: translateY(-1px); }

  .bbsf-footer__main { grid-template-columns: 1fr 1fr; }

  .bbsf-footer__map { max-width: 100%; }
}

@media (max-width: 767px) {
  .bbsf-shell { width: calc(100% - 32px); }

  .bbsf-header-scrim--submenu {
    display: none;
  }

  .bbsf-header-scrim--mobile {
    display: block;
  }

  .bbsf-header .bbsf-header__submenu-children {
    /* border-left: 1px solid #d9d9d9; */
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    margin: 10px 0 2px 8px;
    padding: 0 0 0 12px;
  }

  .bbsf-header .bbsf-header__submenu-children li {
    margin: 0;
    padding: 0;
  }

  .bbsf-header .bbsf-header__submenu-children a {
    color: var(--bbsf-copy);
    display: block;
    font-weight: 400;
    transition: color .3s ease;
  }

  .bbsf-header .bbsf-header__submenu-children a:hover,
  .bbsf-header .bbsf-header__submenu-children a:focus-visible {
    color: var(--bbsf-blue);
  }

  .bbsf-header__offer {
    height: 38px;
    padding: 10px 48px 10px 16px;
  }

  .bbsf-header__offer-text,
  .bbsf-header__offer-text p {
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    text-transform: uppercase;
  }

  .bbsf-header__offer button {
    right: 16px;
    top: 9px;
  }

  .bbsf-header__mobile-actions {
    align-items: center;
    background: linear-gradient(90deg, #eef5fa 0%, #fff 100%);
    display: flex;
    gap: 16px;
    height: 68px;
    padding: 16px;
  }

  .bbsf-header__mobile-actions a {
    align-items: center;
    border-radius: 54px;
    display: flex;
    flex: 1 1 0;
    font-size: 14px;
    font-weight: 500;
    height: 36px;
    justify-content: center;
    line-height: 1;
    padding: 8px 12px;
    text-transform: uppercase;
    white-space: nowrap;
  }

  .bbsf-header__mobile-book {
    background: linear-gradient(180deg, var(--bbsf-orange), var(--bbsf-red));
    color: #fff;
  }

  .bbsf-header__mobile-phone {
    background: var(--bbsf-navy);
    color: #fff;
    gap: 6px;
  }

  .bbsf-header__mobile-phone img {
    height: 16px;
    width: 16px;
  }

  .bbsf-header__utility {
    height: 65px;
    padding: 12px 16px;
  }

  .bbsf-header__logo {
    height: 32px;
    width: 196px;
  }

  .bbsf-header__nav-row {
    height: 0;
  }

  .bbsf-header__nav-row .primary-nav { z-index: 102; }

  .bbsf-header #primary-nav > ul > li > div[id^="menu-"] {
    height: var(--bbsf-mobile-menu-height, calc(100dvh - var(--topOffset))) !important;
    max-height: var(--bbsf-mobile-menu-height, calc(100dvh - var(--topOffset)));
    overflow: hidden;
  }

  .bbsf-header #primary-nav > ul > li > div[id^="menu-"] > div {
    height: 100% !important;
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .bbsf-footer { min-height: 0; }
  .bbsf-shell--footer { padding: 48px 0 24px; }
  .bbsf-footer__top { padding-bottom: 28px; }

  .bbsf-footer__top > a > img {
    height: auto;
    width: 210px;
  }

  .bbsf-footer__main {
    gap: 32px;
    grid-template-columns: 1fr;
    padding: 32px 0;
  }

  .bbsf-footer__map { width: 100%; }
  .bbsf-footer__buttons { width: 100%; }

  .bbsf-footer__legal {
    flex-direction: column;
    gap: 12px;
    padding: 20px 0 0;
  }

  .bbsf-footer__legal > div {
    justify-content: space-between;
    width: 100%;
  }
}
