/* Moringa B1G3 | Black Friday / Cyber Monday header + hero
   Every rule is scoped to .mh-hero, so nothing leaks into the rest of the page.
   The header is the live <nav id="top-nav"> markup, unchanged, styled by the live stylesheet.
   Relies on what the live page already loads: Bootstrap 5.3.2, style-v2.css, Cormorant Garamond, DM Sans, Font Awesome 6.4. */

/* LIGHT version. Background: DaVinci "sunlit ivory linen" (moringa-bfcm-A), no dark layers.
   Text: headline #1F3A2B, body #3D4A3F, accent and eyebrow #745614. Cards: 45% white with a gold edge. */
.hero-sec.mh-hero {
  --mh-bg-desktop: url("/assets/images/moringa-blackfriday/moringa-bfcm-A-desktop.webp");
  --mh-bg-mobile: url("/assets/images/moringa-blackfriday/moringa-bfcm-A-mobile.webp");
  --mh-head: #1F3A2B;
  --mh-body: #3D4A3F;
  --mh-accent: #745614;
  --mh-card: rgba(255, 255, 255, 0.45);
  --mh-edge: rgba(201, 168, 76, 0.75);
  position: relative;
  overflow: hidden;
  color: var(--mh-body);
  /* Anchored left so DaVinci's moringa sprig on the right edge stays clear of the offer card. */
  background: var(--mh-bg-desktop) left center / cover no-repeat;
}
/* The live hero stacks below 992px (Bootstrap lg): switch to the tall mobile crop, cover, anchored bottom. */
@media (max-width: 991.98px) {
  /* Anchored left so the leaf shadows (top right of the crop) stay off the centered copy. */
  .hero-sec.mh-hero { background: var(--mh-bg-mobile) left bottom / cover no-repeat; }
}
.mh-hero [hidden] { display: none !important; }
.mh-hero .mh-container { position: relative; z-index: 2; }
.mh-hero .mh-nw { white-space: nowrap; }

/* Two columns that land on the same lines as the live Bootstrap row g-5 (two 624px columns at 1440). */
.mh-hero .mh-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas:
    "eyebrow deal"
    "title   deal"
    "lede    deal"
    "checks  deal"
    "trust   deal";
  grid-template-rows: auto auto auto auto 1fr;
  column-gap: 48px;
  align-items: start;
}
.mh-hero .mh-eyebrow-row { grid-area: eyebrow; margin-bottom: 1.5rem; }
.mh-hero .mh-title { grid-area: title; }
.mh-hero .mh-lede { grid-area: lede; margin-top: 1.5rem; }
.mh-hero .mh-checks { grid-area: checks; }
.mh-hero .mh-trust { grid-area: trust; }
.mh-hero .mh-deal { grid-area: deal; align-self: center; justify-self: center; }

.mh-hero .mh-eyebrow { letter-spacing: 0.06em; }
.mh-hero .mh-title { text-wrap: balance; margin-bottom: 0; }
.mh-hero .mh-title .heading-accent { display: block; font-family: "EB Garamond", "Cormorant Garamond", serif; font-style: italic; font-weight: 500; text-wrap: balance; }
.mh-hero .mh-desc { text-wrap: pretty; }

/* Live benefit headlines as gold-check bullets. */
.mh-hero .mh-checks {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mh-hero .mh-checks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  line-height: 1.3;
  color: #fff;
}
.mh-hero .mh-checks li::before {
  content: "";
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d2b0e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat,
    linear-gradient(135deg, #c9a84c, #a07830);
  box-shadow: 0 2px 10px rgba(201, 168, 76, 0.35);
}
.mh-hero .mh-trust { margin-top: 1.5rem; }

/* Deal card: live glass-card with the live offer, prices and button. */
.mh-hero .mh-deal {
  width: 100%;
  max-width: 520px;
  padding: 22px 22px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 168, 76, 0.45);
  box-shadow: 0 1.5rem 3.5rem rgba(0, 0, 0, 0.45), 0 0 70px rgba(201, 168, 76, 0.12) !important;
  backdrop-filter: blur(6px);
}
.mh-hero .mh-deal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
}
.mh-hero .mh-pill {
  background: linear-gradient(135deg, #c9a84c, #a07830);
  color: #0d2b0e;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.mh-hero .mh-deal-img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgb(201, 168, 76);
  border-radius: 15px;
}
.mh-hero .mh-deal-price {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin: 18px 0 18px;
}
.mh-hero .mh-deal-price .display-5 { line-height: 1; }
.mh-hero .mh-per-bottle {
  margin-left: auto;
  text-align: right;
  color: #c9a84c;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}
.mh-hero .mh-per-bottle span { color: rgba(255, 255, 255, 0.8); font-weight: 400; }
.mh-hero .mh-deal .btn-gold { font-size: 16px; }
.mh-hero .mh-deal-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 14px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}
.mh-hero .mh-deal-foot .fa-solid { color: #c9a84c; margin-right: 4px; }
.mh-hero .mh-countdown { font-variant-numeric: tabular-nums; }
.mh-hero .mh-countdown-time { color: #c9a84c; font-weight: 700; }

@media (max-width: 1399.98px) {
  .mh-hero .mh-deal { max-width: 480px; }
}

@media (max-width: 1199.98px) {
  .mh-hero .mh-grid { column-gap: 40px; }
  .mh-hero .hero-title { font-size: 52px; }
  .mh-hero .mh-per-bottle { font-size: 13px; }
}

/* Stacked (below 992): offer card comes right after the opening copy so the button stays near the top. */
@media (max-width: 991.98px) {
  .mh-hero .mh-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "eyebrow" "title" "lede" "deal" "checks" "trust";
    grid-template-rows: none;
  }
  .mh-hero .hero-title { font-size: 52px; }
  .mh-hero .mh-deal { margin-top: 2rem; max-width: 520px; }
  .mh-hero .mh-checks { margin-top: 2rem; width: 100%; max-width: 520px; justify-self: center; }
  .mh-hero .mh-trust { width: 100%; max-width: 520px; justify-self: center; }
}

@media (max-width: 768px) {
  .mh-hero .hero-title { font-size: 38px; }
  .mh-hero .mh-eyebrow-row { justify-content: center; }
  .mh-hero .mh-eyebrow { width: 100%; }
  .mh-hero .mh-rating { justify-content: center; }
}

@media (max-width: 575.98px) {
  .mh-hero .mh-deal { padding: 16px 16px 16px; }
  .mh-hero .mh-deal-head { font-size: 12.5px; }
  .mh-hero .mh-deal-price { gap: 12px; }
  .mh-hero .mh-checks li { font-size: 17px; }
  .mh-hero .mh-rating { align-items: flex-start !important; }
  .mh-hero .mh-rating .fs-20 { font-size: 18px; white-space: nowrap; }
  .mh-hero .mh-rating .fs-18 { font-size: 16px; }
  .mh-hero .mh-deal-foot { justify-content: center; text-align: center; }
}


/* ---------- Light theme: flip the live dark-on-light colors inside this hero only ---------- */
.mh-hero--bf .mh-title { color: var(--mh-head) !important; }
.mh-hero--bf .mh-title .heading-accent,
.mh-hero--bf .mh-eyebrow,
.mh-hero--bf .brand-gold,
.mh-hero--bf .text-gold { color: var(--mh-accent) !important; }
.mh-hero--bf .gold-divider { border-color: var(--mh-accent) !important; opacity: 0.6; }
.mh-hero--bf .text-white,
.mh-hero--bf .mh-desc,
.mh-hero--bf .mh-box p,
.mh-hero--bf .mh-checks li,
.mh-hero--bf .mh-rating .fs-18,
.mh-hero--bf .badges-list p { color: var(--mh-body) !important; }
.mh-hero--bf .mh-box .fw-bold { color: var(--mh-head) !important; }
.mh-hero--bf .mh-box,
.mh-hero--bf .mh-deal {
  background: var(--mh-card) !important;
  border: 1px solid var(--mh-edge);
  backdrop-filter: blur(10px);
}
.mh-hero--bf .mh-deal { box-shadow: 0 1.5rem 3rem rgba(80, 60, 20, 0.16), 0 0 0 1px rgba(255, 255, 255, 0.35) inset !important; }
.mh-hero--bf .mh-deal-head .brand-gold { color: var(--mh-accent) !important; }
.mh-hero--bf .mh-deal-price .display-5 { color: var(--mh-head) !important; }
.mh-hero--bf .mh-deal-price .text-white { color: var(--mh-body) !important; }
.mh-hero--bf .mh-per-bottle { color: var(--mh-accent) !important; }
.mh-hero--bf .mh-per-bottle span { color: var(--mh-body) !important; }
.mh-hero--bf .mh-deal-foot { color: var(--mh-body) !important; }
.mh-hero--bf .mh-deal-foot .fa-solid { color: var(--mh-accent) !important; }
.mh-hero--bf .mh-countdown-time { color: var(--mh-head) !important; }
.mh-hero--bf .mh-checks li::before { box-shadow: 0 2px 8px rgba(160, 120, 48, 0.3); }

/* Seam: the live Discover strip (unchanged markup, white text) sits on the live dark green, behind a gold
   hairline, so the light hero hands over cleanly to the dark trust bar and sections below. */
.mh-hero--bf > .d-flex.flex-column {
  position: relative;
  /* full bleed even where the live hero has 20px side padding (below 992px) */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: #0d2b0e;
  border-top: 1px solid rgba(201, 168, 76, 0.6);
}
.mh-hero--bf > .d-flex.flex-column::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -25px;
  height: 24px;
  background: linear-gradient(180deg, rgba(13, 43, 14, 0) 0%, rgba(13, 43, 14, 0.10) 100%);
  pointer-events: none;
}