.bb-site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 16px 18px 0;
  pointer-events: none;
}

.bb-header-bar {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 20px;
  width: min(1360px, 100%);
  min-height: 70px;
  margin: 0 auto;
  padding: 8px 10px 8px 14px;
  color: #fff;
  background: rgba(17, 19, 18, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(16, 20, 24, 0.16);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  pointer-events: auto;
  transition: min-height 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.bb-site-header.is-scrolled .bb-header-bar {
  min-height: 62px;
  background: rgba(17, 19, 18, 0.94);
  box-shadow: 0 14px 36px rgba(16, 20, 24, 0.2);
}

.bb-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  min-width: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
}

.bb-header-brand img {
  width: 64px;
  height: 44px;
  object-fit: contain;
}

.bb-header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.bb-header-nav a {
  min-height: 42px;
  padding: 11px 14px;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease;
}

.bb-nav-dropdown {
  position: relative;
}

.bb-nav-dropdown summary {
  min-height: 42px;
  padding: 11px 32px 11px 14px;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 20px;
  list-style: none;
  cursor: pointer;
  white-space: nowrap;
}

.bb-nav-dropdown summary::-webkit-details-marker { display: none; }
.bb-nav-dropdown summary::after { content: "⌄"; position: absolute; right: 13px; top: 10px; }
.bb-nav-dropdown summary:hover,.bb-nav-dropdown summary:focus-visible,.bb-nav-dropdown[open] summary { color:#fff; background:rgba(255,255,255,.08); }
.bb-nav-dropdown-menu { position:absolute; top:calc(100% + 8px); right:0; min-width:220px; padding:8px; background:#17221e; border:1px solid rgba(255,255,255,.12); border-radius:14px; box-shadow:0 18px 42px rgba(0,0,0,.25); }
.bb-nav-dropdown-menu a { display:block; }

.bb-header-nav a:hover,
.bb-header-nav a:focus-visible,
.bb-header-nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.bb-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
  min-height: 48px;
  padding: 0 18px;
  color: #111312;
  background: linear-gradient(180deg, #d8aa55, #b98b42);
  border: 1px solid rgba(17, 19, 18, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(185, 139, 66, 0.2);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.bb-header-cta:hover,
.bb-header-cta:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(185, 139, 66, 0.28);
}

.bb-header-brand:focus-visible,
.bb-header-nav a:focus-visible,
.bb-header-cta:focus-visible,
.bb-menu-toggle:focus-visible {
  outline: 3px solid rgba(216, 170, 85, 0.55);
  outline-offset: 3px;
}

.bb-menu-toggle,
.bb-mobile-cta,
.bb-mobile-only,
.bb-menu-backdrop {
  display: none;
}

html.bb-menu-open,
html.bb-menu-open body {
  overflow: hidden;
}

#consultation,
#services,
#how,
#pricing,
#faq {
  scroll-margin-top: 110px;
}

@media (max-width: 900px) {
  .bb-site-header {
    padding: 10px 10px 0;
  }

  .bb-header-bar {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 64px;
    padding: 7px 8px 7px 12px;
    border-radius: 18px;
  }

  .bb-site-header.is-scrolled .bb-header-bar {
    min-height: 60px;
  }

  .bb-header-brand img {
    width: 58px;
    height: 40px;
  }

  .bb-header-cta {
    display: none;
  }

  .bb-menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    cursor: pointer;
  }

  .bb-menu-icon {
    position: relative;
    width: 20px;
    height: 14px;
  }

  .bb-menu-icon::before,
  .bb-menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform 180ms ease, top 180ms ease;
  }

  .bb-menu-icon::before { top: 2px; }
  .bb-menu-icon::after { top: 10px; }

  .bb-site-header.menu-open .bb-menu-icon::before {
    top: 6px;
    transform: rotate(45deg);
  }

  .bb-site-header.menu-open .bb-menu-icon::after {
    top: 6px;
    transform: rotate(-45deg);
  }

  .bb-header-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: grid;
    justify-content: stretch;
    justify-items: stretch;
    align-content: start;
    gap: 5px;
    padding: 18px 16px 16px;
    background: rgba(17, 19, 18, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(16, 20, 24, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .bb-site-header.menu-open .bb-header-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .bb-header-nav a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 50px;
    padding: 14px 16px;
    font-size: 1.1rem;
    font-weight: 650;
    text-align: left;
  }

  .bb-nav-dropdown summary { display:flex; align-items:center; min-height:50px; padding:14px 38px 14px 16px; font-size:1.1rem; }
  .bb-nav-dropdown summary::after { top:14px; right:18px; }
  .bb-nav-dropdown-menu { position:static; min-width:0; margin:4px 0 0 12px; padding:4px; background:rgba(255,255,255,.04); border-radius:12px; box-shadow:none; }
  .bb-nav-dropdown-menu a { min-height:44px; padding:11px 14px; font-size:1rem; }

  .bb-mobile-only {
    display: flex;
  }

  .bb-header-nav .bb-mobile-cta {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 52px;
    margin-top: 12px;
    font-size: 1rem;
    font-weight: 800;
    color: #111312 !important;
    background: linear-gradient(180deg, #d8aa55, #b98b42) !important;
  }

  .bb-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    display: block;
    background: rgba(16, 20, 24, 0.34);
    opacity: 0;
    visibility: hidden;
    pointer-events: auto;
    transition: opacity 180ms ease, visibility 180ms ease;
  }

  .bb-site-header.menu-open .bb-menu-backdrop {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 390px) {
  .bb-header-brand span {
    font-size: 0.92rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bb-header-bar,
  .bb-header-nav,
  .bb-header-nav a,
  .bb-header-cta,
  .bb-menu-icon::before,
  .bb-menu-icon::after,
  .bb-menu-backdrop {
    transition: none;
  }
}
