/* Global base (header sits outside .bmap-custom-page) */
body {
  margin: 0;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1c1c28;
  -webkit-font-smoothing: antialiased;
}

/* Astra sets heading type to Poppins. Page templates keep body copy on system-ui. */
.bmap-custom-page h1,
.bmap-custom-page h2,
.bmap-custom-page h3,
.bmap-custom-page h4,
.bmap-custom-page h5,
.bmap-custom-page h6 {
  font-family: Poppins, sans-serif;
}

.bmap-custom-page h1 {
  font-weight: 500;
  line-height: 1.4;
}

.bmap-custom-page h2,
.bmap-custom-page h3 {
  font-weight: 600;
}

.bmap-site-header {
  position: relative;
  z-index: 200;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid rgba(25, 82, 134, 0.12);
}

.bmap-site-header__inner {
  position: relative;
}

body.bmap-overlay-header .bmap-site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 0;
}

.bmap-site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 16px 0 8px;
  padding-top: env(safe-area-inset-top, 0px);
  min-height: 80px;
  box-sizing: border-box;
}

@media (min-width: 922px) {
  .bmap-site-header__inner {
    justify-content: flex-start;
    gap: 0;
    padding: 0 24px;
    min-height: 112px;
  }

  .bmap-site-nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.bmap-site-logo {
  display: inline-flex;
  flex-shrink: 0;
  line-height: 0;
}

.bmap-site-logo img {
  display: block;
  height: 72px;
  width: auto;
  max-width: min(183px, 42vw);
  object-fit: contain;
}

@media (min-width: 922px) {
  .bmap-site-logo img {
    height: 80px;
  }
}

body.bmap-overlay-header .bmap-site-logo img {
  filter: none;
}

body:not(.bmap-overlay-header) .bmap-site-logo img,
body.bmap-invert-logo .bmap-site-logo img {
  filter: invert(1);
}

.bmap-site-nav {
  font-family: Poppins, sans-serif;
  font-size: 13px;
}

.bmap-site-nav ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.bmap-nav-link {
  display: inline-block;
  color: #1c1c28;
  text-decoration: none;
  font-weight: 400;
  line-height: 1.3;
  padding: 0.35rem 0.1rem;
  white-space: nowrap;
  text-transform: uppercase;
}

@media (min-width: 922px) {
  .bmap-nav-link {
    padding: 0 24px;
    line-height: 112px;
  }
}

@media (min-width: 922px) and (max-width: 1180px) {
  .bmap-nav-link {
    padding: 0 14px;
  }
}

.bmap-nav-link:hover,
.bmap-nav-link:focus-visible,
.bmap-nav-link.is-active {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

body.bmap-overlay-header .bmap-nav-link,
body.bmap-overlay-header .bmap-nav-link:hover,
body.bmap-overlay-header .bmap-nav-link:focus-visible,
body.bmap-overlay-header .bmap-nav-link.is-active {
  color: #fffefe;
}

/* Mobile menu toggle */
.bmap-nav-toggle {
  display: none;
  position: relative;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(25, 82, 134, 0.2);
  border-radius: 8px;
  background: #fff;
  color: #195286;
  cursor: pointer;
}

.bmap-nav-toggle:focus-visible {
  outline: 2px solid #179fb7;
  outline-offset: 2px;
}

body.bmap-overlay-header .bmap-nav-toggle {
  background: rgba(5, 5, 16, 0.35);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.bmap-nav-toggle__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.bmap-nav-toggle__bars {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

@media (max-width: 921px) {
  .bmap-nav-toggle {
    display: inline-flex;
  }

  .bmap-site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 210;
    background: #fff;
    padding: 1rem clamp(1rem, 3vw, 2rem) 1.25rem;
    border-bottom: 1px solid rgba(25, 82, 134, 0.12);
    box-shadow: 0 12px 32px rgba(5, 5, 16, 0.12);
  }

  .bmap-site-nav.is-open {
    display: block;
  }

  body.bmap-overlay-header .bmap-site-nav .bmap-nav-link {
    color: #1c1c28;
    text-shadow: none;
  }

  body.bmap-overlay-header .bmap-site-nav .bmap-nav-link:hover,
  body.bmap-overlay-header .bmap-site-nav .bmap-nav-link.is-active {
    color: #179fb7;
  }

  .bmap-site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .bmap-nav-link {
    padding: 0.65rem 0.25rem;
    font-size: 1rem;
  }
}

.bmap-site-footer {
  background: #000;
  color: #fff;
  padding: 20px 40px;
  font-family: Poppins, sans-serif;
}

.bmap-site-footer__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
  max-width: none;
  margin: 0;
}

.bmap-site-footer__copy {
  margin: 0;
  font-size: 14px;
  color: #fff;
}

.bmap-site-footer nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1.75rem;
}

.bmap-site-footer a {
  color: #fff;
  font-size: 16px;
  text-decoration: none;
}

.bmap-site-footer a:hover {
  text-decoration: underline;
}

.bmap-site-footer__social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-left: auto;
}

.bmap-site-footer__social a {
  display: inline-flex;
  color: #d9e8e5;
  line-height: 0;
}

.bmap-site-footer__social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 700px) {
  .bmap-site-footer {
    padding: 20px 16px;
  }

  .bmap-site-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .bmap-site-footer nav {
    position: static;
    transform: none;
    justify-content: center;
  }

  .bmap-site-footer__social {
    margin-left: 0;
  }
}

body.bmap-overlay-header .site-content {
  padding-top: 0;
}