/* Berberine B1G2 Christmas Hero (Combined Version A & Version B)
   Self-contained: relies only on Cormorant Garamond and Manrope fonts. */

/* ---- Anti-Flash Variant Visibility ---- */
html:not([data-bh-variant="A"]) .bh-hero--christmas-A,
html:not([data-bh-variant="B"]) .bh-hero--christmas-B {
  display: none !important;
}

/* ---- Variant-Specific Background Variables ---- */
.bh-hero--christmas-A {
  --bh-bg-desktop: url("/assets/xmas-berberine/berberine-christmas-A-bg-desktop.webp");
  --bh-bg-mobile: url("/assets/xmas-berberine/berberine-christmas-A-bg-mobile.webp");
}

.bh-hero--christmas-B {
  --bh-bg-desktop: url("/assets/xmas-berberine/berberine-christmas-B-bg-desktop.webp");
  --bh-bg-mobile: url("/assets/xmas-berberine/berberine-christmas-B-bg-mobile.webp");
}

/* ---- Shared Hero Base ---- */
.bh-hero {
  --bh-cream: #F6F0E4;
  --bh-gold: #E3A04A;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  box-sizing: border-box;
  min-height: 900px;
  background: #0A0603;
  color: var(--bh-cream);
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
:where(.bh-hero) *, :where(.bh-hero) *::before, :where(.bh-hero) *::after { box-sizing: border-box; }
:where(.bh-hero) :is(p, h1, ul, li) { margin: 0; padding: 0; list-style: none; }
:where(.bh-hero) a { color: inherit; text-decoration: none; }
:where(.bh-hero) img { display: block; max-width: none; }

/* ---- full canvas background ---- */
.bh-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: var(--bh-bg-desktop) center top / cover no-repeat;
  pointer-events: none;
}

/* ---- left readability scrim (desktop only) ---- */
.bh-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0; bottom: 0; left: 0;
  width: 55.56%;
  background: linear-gradient(90deg,
    rgba(22,14,9,.52) 0%, rgba(22,14,9,.47) 50%, rgba(22,14,9,.36) 56%, rgba(22,14,9,.33) 62.5%,
    rgba(22,14,9,.27) 69%, rgba(22,14,9,.205) 75%, rgba(22,14,9,.14) 81%, rgba(22,14,9,.07) 87.5%,
    rgba(22,14,9,.025) 94%, rgba(22,14,9,0) 100%);
  pointer-events: none;
}

/* ---- hanging lights (Version A Only) ---- */
.bh-hero--christmas-A .bh-lights {
  position: absolute;
  z-index: 1;
  top: 70px;
  left: 0;
  width: 100%;
  pointer-events: none;
  line-height: 0;
}
.bh-hero--christmas-A .bh-lights img { width: 100%; height: auto; }
@media (max-width: 1000px) { .bh-hero--christmas-A .bh-lights { top: 52px; } }

/* ---- transparent header on the art ---- */
.bh-nav {
  position: absolute;
  z-index: 5;
  top: 0; left: 0; right: 0;
  height: 82px;
  max-width: 1440px;
  margin: 0 auto;
}
.bh-logo { position: absolute; left: 48px; top: 18px; width: 186px; }
.bh-logo img { width: 186px; height: auto; }
.bh-links {
  position: absolute;
  top: 30px;
  left: calc(50% + 19.5px);
  transform: translateX(-50%);
  display: flex;
  gap: 34px;
  font-size: 15.8px;
  line-height: 22px;
  font-weight: 500;
  color: rgba(246, 240, 228, .93);
  white-space: nowrap;
}
.bh-links a:hover { color: var(--bh-gold); }
.bh-nav-right { position: absolute; right: 48px; top: 22px; }
.bh-pill {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; width: 149px;
  border-radius: 999px;
  background: var(--bh-cream);
  color: #1C110A;
  font-size: 15px; font-weight: 600; line-height: 1;
  white-space: nowrap;
}
.bh-pill:hover { background: #fff; }
.bh-menu-toggle, .bh-mobile-menu { display: none !important; }

/* ---- layout ---- */
.bh-inner {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  min-height: 900px;
  padding: 104px 110px 111px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 514px;
  column-gap: 54px;
  align-items: start;
}
.bh-copy { padding-top: 27px; }

.bh-eyebrow {
  font-size: 12px; line-height: 19px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.155em;
  color: var(--bh-gold);
  white-space: nowrap;
}
.bh-h1 {
  margin-top: 44px;
  font-family: "Cormorant Garamond", serif;
  font-weight: 540;
  font-size: 86.2px; line-height: 87.6px; letter-spacing: -0.024em;
  color: var(--bh-cream);
  white-space: nowrap;
}
.bh-h1-accent { display: block; font-style: italic; color: var(--bh-gold); }
.bh-body {
  margin-top: 48.5px;
  max-width: 580px;
  font-size: 18px; line-height: 28.5px; font-weight: 400;
  color: rgba(246, 240, 228, .82);
}
.bh-body strong { font-weight: 700; color: var(--bh-cream); }

.bh-stats { margin-top: 56px; display: flex; gap: 0; }
.bh-stats li {
  width: 198.5px;
  padding: 2px 0 0 16px;
  border-left: 1px solid rgba(227, 160, 74, .7);
  display: flex; flex-direction: column; gap: 4px;
}
.bh-stats strong { font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 33px; line-height: 32px; color: var(--bh-cream); }
.bh-stats span { font-size: 12.7px; line-height: 19px; color: rgba(246, 240, 228, .84); }

.bh-cta-row { margin-top: 56px; display: flex; align-items: center; gap: 20px; }
.bh-cta {
  display: inline-flex; align-items: center; justify-content: center;
  width: 308px; height: 51px;
  border-radius: 11px;
  background: var(--bh-gold);
  color: #0A0603;
  font-size: 17px; font-weight: 700; line-height: 1;
  white-space: nowrap;
}
.bh-cta:hover { filter: brightness(1.06); }
.bh-price { display: flex; flex-direction: column; gap: 2px; }
.bh-price strong { line-height: 20px !important; }
.bh-price strong { font-size: 15.2px; line-height: 22px; font-weight: 700; color: var(--bh-cream); }
.bh-price span { font-size: 13.2px; line-height: 19px; color: rgba(246, 240, 228, .72); }
.bh-rating { margin-top: 43.5px; display: flex; align-items: center; gap: 9px; font-size: 14.3px; line-height: 22px; color: rgba(246, 240, 228, .82); }
.bh-stars { color: var(--bh-gold); font-size: 15.7px; letter-spacing: 3px; }

/* ---- product frame ---- */
.bh-frame {
  width: 514px; height: 685px;
  border: 1px solid #958260;
  border-top-color: #baa374;
  border-radius: 24.5px;
  overflow: hidden;
  background: #0A0603;
}
.bh-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* ---- scale down between 1001 and 1439 wide ---- */
@media (max-width: 1439px) {
  .bh-inner { padding-left: 3.333vw; padding-right: 7.64vw; column-gap: 3.75vw; grid-template-columns: minmax(0, 1fr) 35.7vw; }
  .bh-logo { left: 3.333vw; }
  .bh-nav-right { right: 3.333vw; }
  .bh-frame { width: 35.7vw; height: 47.57vw; }
  .bh-h1 { font-size: 5.986vw; }
}

/* ---- phone and tablet: frame first, copy below ---- */
@media (max-width: 1000px) {
  .bh-hero { min-height: 0; }
  .bh-hero::before { background-image: var(--bh-bg-mobile); }
  .bh-hero::after { display: none; }
  .bh-nav { height: 70px; }
  .bh-logo { left: 19.5px; top: 14px; width: 155px; }
  .bh-logo img { width: 155px; }
  .bh-links { display: none; }
  .bh-nav-right { right: 20px; top: 17px; }
  .bh-pill { width: 123px; height: 33px; font-size: 13.5px; }
  .bh-inner {
    display: flex; flex-direction: column;
    min-height: 0;
    max-width: 520px;
    padding: 79px 17px 59px;
  }
  .bh-frame { order: -1; width: 100%; height: auto; aspect-ratio: 356 / 475; border-radius: 19.5px; }
  .bh-copy { padding-top: 0; }
  .bh-copy { margin-top: 6px; padding-left: 1px; }
  .bh-eyebrow { letter-spacing: 0.117em; }
  .bh-h1 { margin-top: 14.5px; font-size: 43.1px; line-height: 43.8px; }
  .bh-body { margin-top: 15px; font-size: 16.8px; line-height: 26.5px; max-width: none; }
  .bh-stats { display: none; }
  .bh-cta-row { margin-top: 22px; flex-direction: column; gap: 16px; align-items: stretch; }
  .bh-cta { width: 100%; height: 50.5px; font-size: 16px; }
  .bh-price { align-items: center; text-align: center; }
  .bh-rating { margin-top: 12px; justify-content: center; font-size: 14px; }
}