/* Shared Black Pearl header, based on the approved H.html reference. */
.bpc-header,
.bpc-header *,
.bpc-header *::before,
.bpc-header *::after { box-sizing: border-box; }

.bpc-header {
  position: relative;
  z-index: 100;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
  height: 76px;
  border-bottom: 1px solid #191919;
  background: #080808;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.bpc-navbar {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 36px);
  width: 100%;
  max-width: 1700px;
  height: 100%;
  margin-inline: auto;
  padding-inline: 5%;
}

.bpc-logo {
  display: flex;
  flex: 0 0 240px;
  align-items: center;
  width: 240px;
  max-width: 240px;
  height: 68px;
  overflow: hidden;
}

.bpc-logo img {
  display: block;
  flex-shrink: 0;
  width: 100%;
  height: auto;
  aspect-ratio: 120 / 65;
  object-fit: contain;
}

.bpc-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 200px;
  min-width: 155px;
  height: 41px;
  margin-left: auto;
  padding: 0 13px;
  border-radius: 24px;
  background: #262628;
}

.search-toggle {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.bpc-search svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #a4a4a7;
  stroke-width: 1.8;
}

.bpc-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 13px;
}

.bpc-search input::placeholder { color: #aaa; }

.bpc-navlinks {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2vw, 32px);
}

.bpc-navlinks a {
  color: #eee;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.bpc-navlinks a:hover,
.bpc-navlinks a:focus-visible { color: #aaa; }

.bpc-header-right {
  display: flex;
  align-items: center;
  gap: 19px;
  margin-left: auto;
}

.bpc-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

.bpc-header-right svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
}

.bpc-menu-toggle {
  display: none;
  padding: 8px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 1200px) {
  .bpc-navbar { gap: 17px; }
  .bpc-navlinks { gap: 17px; }
  .bpc-search { width: 160px; }
}

@media (max-width: 1024px) {
  .bpc-header { height: 68px; }
  .bpc-navbar { position: relative; padding-inline: 4%; }
  .bpc-header-right { position: static; top: auto; right: auto; display: flex !important; flex: 0 0 auto; margin-left: 0; transform: none; }
  #bpcMenuButton { position: relative; display: grid !important; flex: 0 0 38px; width: 38px; height: 38px; visibility: visible !important; opacity: 1 !important; place-items: center; }
  #bpcMenuButton svg { display: block; width: 22px; height: 22px; fill: none; stroke: #fff; }
  .bpc-navlinks {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 5%;
    border-bottom: 1px solid #444;
    background: #111;
  }
  .bpc-navlinks.active { display: flex; }
}

@media (max-width: 700px) {
  .bpc-header { height: 64px; }
  .bpc-navbar {
    display: flex;
    position: relative;
    gap: 12px;
    padding-inline: 5%;
  }
  .bpc-logo { flex: none; width: 180px; max-width: 100%; height: 60px; }
  .bpc-search {
    position: absolute;
    top: 12px;
    right: calc(5% + 80px);
    flex: none;
    width: 40px;
    min-width: 40px;
    height: 40px;
    justify-content: center;
    margin: 0;
    padding: 10px;
  }
  .bpc-search input { display: none; }
  .bpc-search.search-open {
    position: absolute;
    top: 12px;
    z-index: 30;
    left: 5%;
    right: 5%;
    width: 90%;
    padding-inline: 14px;
  }
  .bpc-search.search-open input { display: block; }
  .bpc-lang { display: none; }
  .bpc-header-right { position: absolute; top: 13px; right: 5%; gap: 10px; margin: 0; }
  .bpc-header-right > svg { display: block; width: 22px; height: 22px; }
  #bpcMenuButton { display: grid !important; flex: 0 0 38px; width: 38px; height: 38px; }
}

@media (max-width: 360px) {
  .bpc-logo { flex-basis: 150px; width: 150px; max-width: 150px; }
  .bpc-navbar { gap: 8px; }
  .bpc-header-right { gap: 7px; }
}
