:root {
  --bpi-blue: #33669b;
  --bpi-blue-dark: #275787;
  --bpi-blue-light: #eaf1fb;
  --bpi-ice: #eef5ff;
  --bpi-text: #161b22;
  --bpi-muted: #505b6b;
  --bpi-white: #ffffff;
  --bpi-dark: #171c22;
  --bpi-border: rgba(51, 102, 155, 0.35);
  --bpi-radius-lg: 26px;
  --bpi-radius-md: 18px;
  --bpi-shadow: 0 18px 45px rgba(39, 87, 135, 0.14);
  --bpi-container: 1425px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}
body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--bpi-text);
  background: #fff;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: clip;
  position: relative;
}
@supports not (overflow: clip) {
  body { overflow-x: hidden; }
}
img { max-width: 100%; height: auto; display: block; }

/* Prevent AOS fade-left/right transforms or oversized children from creating a second scrollbar. */
html,
#page,
#primary,
.site-main {
  max-width: 100%;
  overflow-x: hidden !important;
}

#page,
#primary,
.site-main {
  width: 100%;
  min-width: 0;
}

.bpi-container,
.bpi-grid-2,
.bpi-hero__grid,
.bpi-services__grid,
.bpi-process__visual,
.bpi-contact__grid,
.bpi-cta-band__inner {
  min-width: 0;
}

.bpi-container > *,
.bpi-hero__grid > *,
.bpi-services__grid > *,
.bpi-process__visual > *,
.bpi-contact__grid > *,
.bpi-cta-band__inner > * {
  min-width: 0;
}

#page,
.site-main,
.bpi-header,
.bpi-footer {
  max-width: 100%;
  overflow-x: clip;
}
@supports not (overflow: clip) {
  #page,
  .site-main,
  .bpi-header,
  .bpi-footer {
    overflow-x: hidden;
  }
}
[data-aos] {
  max-width: 100%;
}
a { color: inherit; text-decoration: none; }
p { margin: 0 0 18px; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 18px; line-height: 1.22; font-weight: 800; letter-spacing: 0.01em; }
button, input, select, textarea { font-family: 'Montserrat', Arial, Helvetica, sans-serif; }

.bpi-container { width: min(100% - 40px, var(--bpi-container)); max-width: var(--bpi-container); margin-inline: auto; }
.bpi-section { position: relative; padding: 96px 0; overflow: hidden; }
.bpi-section--soft { background: var(--bpi-ice); }
.bpi-section--blue { background: var(--bpi-blue); color: var(--bpi-white); }
.bpi-section--tight { padding: 70px 0; }
.bpi-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.bpi-text-block h2 { font-size: clamp(31px, 3.1vw, 44px); text-transform: uppercase; }
.bpi-text-block p { color: var(--bpi-muted); font-weight: 500; }
.bpi-section--blue p { color: rgba(255,255,255,0.92); }
.bpi-center { text-align: center; }
.bpi-center p { max-width: 850px; margin-inline: auto; }

.bpi-btn-group { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 30px; }
.bpi-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 34px;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease;
  text-align: center;
}
.bpi-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0,0,0,.16); }
.bpi-btn--primary { background: var(--bpi-blue); color: var(--bpi-white); }
.bpi-btn--dark { background: var(--bpi-dark); color: var(--bpi-white); }
.bpi-btn--light { background: var(--bpi-white); color: var(--bpi-blue); border-color: var(--bpi-border); }
.bpi-btn--outline { background: transparent; color: var(--bpi-blue); border-color: var(--bpi-blue); }

.bpi-logo-fallback { display: inline-flex; flex-direction: column; line-height: 1; font-weight: 800; color: var(--bpi-dark); }
.bpi-logo-fallback span { font-size: 44px; letter-spacing: -0.08em; }
.bpi-logo-fallback small { font-size: 13px; letter-spacing: .08em; color: var(--bpi-muted); }

.bpi-lead-form {
  position: relative;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--bpi-blue);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 0 0 20px rgba(0,0,0,.06);
  z-index: 1;
}
.bpi-lead-form::before {
  content: "BP";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 150px;
  font-weight: 800;
  color: rgba(51,102,155,.05);
  z-index: -1;
}
.bpi-form-mark img { width: 96px; margin: 0 auto 12px; }
.bpi-lead-form h3 { color: var(--bpi-blue); text-align: center; text-transform: uppercase; font-size: clamp(25px, 2.1vw, 32px); }
.bpi-lead-form select,
.bpi-lead-form input,
.bpi-lead-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(0,0,0,.28);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: #f9f9f9;
  font-family: inherit;
}
.bpi-lead-form textarea { min-height: 116px; resize: vertical; }
.bpi-form-label { margin: 8px 0 10px; font-weight: 600; color: var(--bpi-text); }
.bpi-checkbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 20px; margin-bottom: 18px; }
.bpi-checkbox-grid label { display: flex; gap: 6px; align-items: start; font-size: 12px; line-height: 1.25; }
.bpi-checkbox-grid input { width: auto; min-height: auto; margin: 2px 0 0; }
.bpi-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bpi-lead-form button { border: 0; margin-inline: auto; display: flex; min-width: 170px; }

@media (max-width: 991px) {
  .bpi-section { padding: 72px 0; }
  .bpi-grid-2 { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 680px) {
  .bpi-container { width: min(100% - 28px, var(--bpi-container)); }
  .bpi-section { padding: 56px 0; }
  .bpi-btn-group { gap: 12px; }
  .bpi-btn { width: 100%; padding-inline: 22px; }
  .bpi-form-row, .bpi-checkbox-grid { grid-template-columns: 1fr; }
  .bpi-lead-form { padding: 18px; box-shadow: 0 0 0 10px rgba(0,0,0,.05); }
}

/* Get Started popup */
body.bpi-popup-open {
  overflow: hidden;
}

.bpi-popup[hidden] {
  display: none;
}

.bpi-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
}

.bpi-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 18, 24, .72);
  backdrop-filter: blur(2px);
}

.bpi-popup__dialog {
  position: relative;
  width: min(100%, 760px);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
  padding: 34px 40px 42px;
  outline: none;
  transform: translateY(12px) scale(.98);
  opacity: 0;
  transition: transform .24s ease, opacity .24s ease;
}

.bpi-popup.is-open .bpi-popup__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.bpi-popup__close {
  position: absolute;
  top: 24px;
  right: 26px;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(51, 102, 155, .36);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.bpi-popup__close:hover {
  background: var(--bpi-blue);
  transform: rotate(90deg);
}

.bpi-popup__header {
  text-align: center;
  margin-bottom: 22px;
}

.bpi-popup__logo,
.bpi-popup .bpi-logo-fallback {
  width: 210px;
  max-height: 74px;
  object-fit: contain;
  margin: 0 auto 12px;
}

.bpi-popup__header h2 {
  margin-bottom: 6px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1;
  text-transform: uppercase;
  color: #050608;
  letter-spacing: -.03em;
}

.bpi-popup__header h2 span {
  color: var(--bpi-blue);
}

.bpi-popup__header p {
  margin: 0;
  color: var(--bpi-blue);
  font-weight: 700;
}

.bpi-popup__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 24px;
  align-items: stretch;
}

.bpi-popup__fields input,
.bpi-popup__fields textarea {
  width: 100%;
  min-height: 40px;
  margin-bottom: 16px;
  padding: 11px 12px;
  border: 1px solid var(--bpi-blue);
  border-radius: 0;
  background: #fff;
  color: var(--bpi-text);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px;
  outline: none;
  transition: box-shadow .2s ease, border-color .2s ease;
}

.bpi-popup__fields input:focus,
.bpi-popup__fields textarea:focus {
  border-color: var(--bpi-blue-dark);
  box-shadow: 0 0 0 3px rgba(51, 102, 155, .16);
}

.bpi-popup__fields textarea {
  min-height: 64px;
  resize: vertical;
}

.bpi-popup__fields .bpi-btn {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 3px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 14px;
  text-transform: capitalize;
}

.bpi-popup__visual {
  position: relative;
  min-height: 286px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--bpi-blue);
  background: linear-gradient(145deg, rgba(234, 241, 251, .94), rgba(255, 255, 255, .94));
}

.bpi-popup__mark {
  width: 94px;
  margin: 0 auto;
}

.bpi-popup__image {
  width: 150px;
  max-height: 150px;
  object-fit: contain;
  margin: 16px auto 10px;
}

.bpi-popup__visual span {
  display: block;
  max-width: 160px;
  margin: 0 auto;
  color: var(--bpi-blue);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 767px) {
  .bpi-popup {
    padding: 14px;
  }

  .bpi-popup__dialog {
    max-height: calc(100vh - 28px);
    padding: 30px 18px 24px;
  }

  .bpi-popup__close {
    top: 14px;
    right: 14px;
  }

  .bpi-popup__logo,
  .bpi-popup .bpi-logo-fallback {
    width: 170px;
  }

  .bpi-popup__form {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .bpi-popup__visual {
    min-height: auto;
  }
}
