.bb-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.bb-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.bb-menu-trigger svg {
  transition: transform 0.2s ease;
}

.bb-menu-wrap.bb-active > .bb-menu-trigger,
.bb-menu-wrap:focus-within > .bb-menu-trigger,
.bb-menu-wrap.bb-open > .bb-menu-trigger {
  color: #2d7a8a !important;
}

.bb-menu-wrap.bb-active > .bb-menu-trigger svg,
.bb-menu-wrap:focus-within > .bb-menu-trigger svg,
.bb-menu-wrap.bb-open > .bb-menu-trigger svg {
  transform: rotate(180deg);
}

.bb-mega {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 80;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  padding-top: 8px;
}

.bb-menu-wrap.bb-active > .bb-mega,
.bb-menu-wrap:focus-within > .bb-mega,
.bb-menu-wrap.bb-open > .bb-mega {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.bb-services-menu {
  width: min(860px, calc(100vw - 32px));
}

.bb-about-menu {
  width: min(650px, calc(100vw - 32px));
}

.bb-mega-panel {
  overflow: hidden;
  border: 1px solid #edf0f4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 41, 66, 0.18);
}

.bb-mega-strip {
  height: 4px;
  background: linear-gradient(90deg, #2d7a8a, #1e4d6b, #0f2942);
}

.bb-services-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
}

.bb-services-main {
  padding: 24px;
}

.bb-services-side {
  padding: 24px;
  background: rgba(248, 250, 252, 0.82);
  border-left: 1px solid #edf0f4;
}

.bb-kicker {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #d9e0e8;
  color: rgba(100, 116, 139, 0.7);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bb-phase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.bb-phase-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(45, 122, 138, 0.4);
  border-radius: 12px;
  background: #e8f4f6;
  color: #0f2942;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.bb-phase-heading.is-cmc {
  border-color: rgba(245, 158, 11, 0.55);
  background: #fffbeb;
}

.bb-phase-heading svg {
  width: 27px;
  height: 27px;
  color: #2d7a8a;
  flex: 0 0 auto;
}

.bb-phase-heading.is-cmc svg {
  color: #f59e0b;
}

.bb-service-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bb-service-list a {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 4px 0;
  border-bottom: 1px solid #f0f2f5;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.28;
  text-decoration: none;
}

.bb-service-list li:last-child a {
  border-bottom: 0;
}

.bb-service-list a::before {
  content: "->";
  color: rgba(45, 122, 138, 0.65);
  font-weight: 800;
}

.bb-service-list a:hover {
  color: #2d7a8a;
}

.bb-molecule-list {
  display: grid;
  gap: 10px;
}

.bb-molecule-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #0f2942;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.bb-molecule-card svg {
  width: 27px;
  height: 27px;
  color: rgba(45, 122, 138, 0.65);
}

.bb-molecule-card:hover {
  border-color: rgba(45, 122, 138, 0.55);
  background: #e8f4f6;
  color: #2d7a8a;
  box-shadow: 0 8px 18px rgba(15, 41, 66, 0.08);
}

.bb-about-panel {
  padding: 32px;
}

.bb-about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 48px;
}

.bb-about-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: -12px;
  padding: 12px;
  border-radius: 12px;
  color: #111827;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.bb-about-card svg {
  width: 24px;
  height: 24px;
  margin-top: 4px;
  color: #4b5563;
  flex: 0 0 auto;
}

.bb-about-card h4 {
  margin: 0 0 4px;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 800;
}

.bb-about-card p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.25;
}

.bb-about-card:hover {
  background: #e8f4f6;
}

.bb-about-card:hover h4,
.bb-about-card:hover svg {
  color: #2d7a8a;
}

.bb-mobile-panel {
  display: none;
}

@media (max-width: 1023px) {
  .bb-mega {
    display: none;
  }

  .bb-mobile-panel.bb-open {
    display: block;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
  }

  .bb-mobile-panel a,
  .bb-mobile-panel button {
    display: block;
    width: 100%;
    padding: 10px 0;
    color: #0f2942;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
  }

  .bb-mobile-group {
    padding: 8px 0 8px 16px;
  }

  .bb-mobile-group a {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
  }
}
