/* =============================================================
   BioSilver Category Hero — module stylesheet
   ============================================================= */

/* ── Section wrapper ── */
/*
 * The hero renders via displayWrapperTop — directly inside <main>,
 * outside any Bootstrap container or column. No breakout tricks needed:
 * width: 100% fills the full viewport naturally.
 */
.bchero {
  position: relative;
  width: 100%;
  height: var(--bchero-height, 520px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1A2E44;
  margin-bottom: 0;
}

/* ── Background image ── */
.bchero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bchero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.04);
  transition: transform 1.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bchero--has-image:hover .bchero__bg-img {
  transform: scale(1.0);
}

/* ── Overlay ── */
.bchero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    160deg,
    rgba(10, 16, 28, var(--bchero-overlay, 0.55)) 0%,
    rgba(26, 46, 68, calc(var(--bchero-overlay, 0.55) * 0.85)) 50%,
    rgba(10, 20, 36, var(--bchero-overlay, 0.55)) 100%
  );
}

.bchero__overlay--fallback {
  background: linear-gradient(135deg, #1A2E44 0%, #0d1b2a 100%);
}

/* ── Particle canvas ── */
.bchero__particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ── Content block ── */
.bchero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 820px;
  width: 100%;
}

/* ── Breadcrumb ── */
.bchero__breadcrumb {
  margin-bottom: 1.25rem;
}

.bchero__breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.bchero__breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.bchero__breadcrumb-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}

.bchero__breadcrumb-link:hover {
  color: #D4BC7A;
}

.bchero__breadcrumb-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.65rem;
}

.bchero__breadcrumb-current {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #D4BC7A;
}

/* ── Title ── */
.bchero__title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.bchero__title-text {
  display: block;
}

/* Gold underline accent */
.bchero__title-line {
  display: block;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #B8A05A, #D4BC7A, #B8A05A, transparent);
  border-radius: 2px;
}

/* ── Description ── */
.bchero__description {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(0.875rem, 1.5vw, 1.0625rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.01em;
  line-height: 1.7;
  margin: 0.75rem auto 0;
  max-width: 560px;
  font-style: italic;
}

/* ── Colloidal purity badge (three dots) ── */
.bchero__badge {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 1.75rem;
}

.bchero__badge-dot {
  display: block;
  border-radius: 50%;
}

.bchero__badge-dot:nth-child(1) {
  width: 6px;
  height: 6px;
  background: #8B9BB0;
  opacity: 0.7;
}

.bchero__badge-dot:nth-child(2) {
  width: 9px;
  height: 9px;
  background: #B8A05A;
  box-shadow: 0 0 8px rgba(184, 160, 90, 0.55);
}

.bchero__badge-dot:nth-child(3) {
  width: 6px;
  height: 6px;
  background: #8B9BB0;
  opacity: 0.7;
}

/* ── Mobile adjustments ── */
@media (max-width: 767px) {
  .bchero {
    height: clamp(280px, 55vw, var(--bchero-height, 520px));
    margin-bottom: 1.5rem;
  }

  .bchero__content {
    padding: 1.25rem 1rem;
  }

  .bchero__description {
    display: none;
  }
}
