/* Moringa B1G3 | Thanksgiving 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. */

/* Background: DaVinci "overhead rustic table" (moringa-thanksgiving-A). The image already carries a dark
   wash behind the copy column and fades to the live dark green at its bottom edge, so the seam into the
   live Discover strip is clean. The old full dark-green overlay is cut to --mh-overlay (0.25 max). */
.hero-sec.mh-hero {
--mh-bg-desktop: url("/assets/images/moringa-thanksgiving/moringa-thanksgiving-A-desktop.jpg");
--mh-bg-mobile: url("/assets/images/moringa-thanksgiving/moringa-thanksgiving-A-mobile.jpg");
  --mh-overlay: 0;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 38% 46% at 74% 40%, rgba(214, 138, 52, 0.14) 0%, rgba(214, 138, 52, 0.05) 45%, rgba(214, 138, 52, 0) 72%),
    linear-gradient(rgba(13, 43, 14, var(--mh-overlay)), rgba(13, 43, 14, var(--mh-overlay))),
    var(--mh-bg-desktop) center 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) {
  .hero-sec.mh-hero {
    background:
      linear-gradient(rgba(13, 43, 14, var(--mh-overlay)), rgba(13, 43, 14, var(--mh-overlay))),
      var(--mh-bg-mobile) center bottom / cover no-repeat;
  }
}

.mh-hero .mh-container { position: relative; z-index: 2; }
.mh-hero .mh-nw { white-space: nowrap; }

/* Type: same families and sizes as the live hero; the accent gets its intended EB Garamond italic. */
.mh-hero .mh-eyebrow { letter-spacing: 0.06em; }
.mh-hero .mh-dot { display: inline-block; margin: 0 0.35em; opacity: 0.8; }
.mh-hero .mh-title { text-wrap: balance; }
.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-backed nutrient stats in the live gold glass box. */
.mh-hero .mh-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 18px 8px;
}
.mh-hero .mh-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 16px;
  border-left: 1px solid rgba(201, 168, 76, 0.3);
}
.mh-hero .mh-stat:first-child { border-left: 0; }
.mh-hero .mh-stat-num {
  font-size: 40px;
  line-height: 1;
  font-weight: 600;
  font-variant-numeric: lining-nums;
  color: #c9a84c;
}
.mh-hero .mh-stat-cap {
  font-size: 15px;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.88);
}

/* Offer card: live glass-card, live price block, live Buy 1 Get 3 box. */
.mh-hero .mh-offer { position: relative; }
.mh-hero .mh-per-bottle {
  align-self: flex-end;
  padding: 0 0 2px 14px;
  border-left: 1px solid rgba(201, 168, 76, 0.35);
  color: #c9a84c;
  font-weight: 600;
  white-space: nowrap;
}
.mh-hero .mh-b1g3 { flex: 0 0 auto; min-width: 64px; }
.mh-hero .mh-offer .btn-gold { font-size: 16px; }
.mh-hero .mh-guarantee {
  text-wrap: balance;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
}
.mh-hero .mh-guarantee .fa-solid { color: #c9a84c; margin-right: 4px; }

/* Product: live frame treatment (1px gold border, 15px radius) with a warm seasonal glow. */
.mh-hero .mh-product { z-index: 1; }
.mh-hero .mh-product-frame {
  position: relative;
  z-index: 2;
  display: block;
  border: 1px solid rgb(201, 168, 76);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.45), 0 0 60px rgba(214, 138, 52, 0.18);
}
.mh-hero .mh-product-img { display: block; width: 100%; height: auto; }

/* Fall leaves: placed around the product frame, never over copy, badges, seals or bottles. */
.mh-hero .mh-leaves { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.mh-hero .mh-leaf { position: absolute; display: block; opacity: 0.92; will-change: transform; }
.mh-hero .mh-leaf img { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.45)); }

/* Desktop (1400 and up): left gap, right gutter, above and below the frame. */
.mh-hero .mh-leaf--1 { left: -60px; top: 16%; width: 30px; animation: mh-drift-a 26s ease-in-out infinite; }
.mh-hero .mh-leaf--2 { left: -52px; top: 62%; width: 24px; animation: mh-drift-b 22s ease-in-out infinite -6s; }
.mh-hero .mh-leaf--3 { right: -86px; top: 10%; width: 34px; animation: mh-drift-c 28s ease-in-out infinite -3s; }
.mh-hero .mh-leaf--4 { right: -66px; top: 42%; width: 24px; animation: mh-drift-a 24s ease-in-out infinite -11s; }
.mh-hero .mh-leaf--5 { right: -92px; top: 74%; width: 30px; animation: mh-drift-b 30s ease-in-out infinite -2s; }
.mh-hero .mh-leaf--6 { left: 22%; top: -74px; width: 28px; animation: mh-drift-c 20s ease-in-out infinite -8s; }
.mh-hero .mh-leaf--7 { right: 18%; top: -60px; width: 22px; animation: mh-drift-a 32s ease-in-out infinite -14s; }
.mh-hero .mh-leaf--8 { left: 46%; bottom: -66px; width: 26px; animation: mh-drift-b 18s ease-in-out infinite -5s; }

@keyframes mh-drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-14deg); }
  50% { transform: translate3d(5px, 6px, 0) rotate(12deg); }
}
@keyframes mh-drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(16deg); }
  50% { transform: translate3d(-5px, 6px, 0) rotate(-10deg); }
}
@keyframes mh-drift-c {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(6deg); }
  50% { transform: translate3d(4px, -5px, 0) rotate(-14deg); }
}

@media (prefers-reduced-motion: reduce) {
  .mh-hero .mh-leaf { animation: none !important; }
}

/* 1200 to 1399: the gap left of the frame narrows to about 59px. */
@media (max-width: 1399.98px) {
  .mh-hero .mh-leaf--1 { left: -40px; width: 20px; }
  .mh-hero .mh-leaf--2 { left: -38px; width: 18px; }
  .mh-hero .mh-leaf--3 { right: -70px; width: 28px; }
  .mh-hero .mh-leaf--4 { right: -56px; width: 22px; }
  .mh-hero .mh-leaf--5 { right: -72px; width: 26px; }
  .mh-hero .mh-stat-num { font-size: 36px; }
}

/* 992 to 1199: no room left of the frame, keep leaves to the right, above and below. */
@media (max-width: 1199.98px) {
  .mh-hero .mh-leaf--1, .mh-hero .mh-leaf--2 { display: none; }
  .mh-hero .mh-leaf--3 { right: -40px; width: 20px; }
  .mh-hero .mh-leaf--4 { right: -38px; width: 16px; }
  .mh-hero .mh-leaf--5 { right: -40px; width: 20px; }
  .mh-hero .mh-stat { padding: 0 12px; }
  .mh-hero .mh-stat-num { font-size: 32px; }
  .mh-hero .mh-stat-cap { font-size: 14px; }
}

/* Stacked layout (below 992): leaves beside and below the frame. */
@media (max-width: 991.98px) {
  .mh-hero .mh-product { max-width: 500px; }
  .mh-hero .mh-leaf--1 { display: block; left: -66px; top: 12%; width: 28px; }
  .mh-hero .mh-leaf--2 { display: block; left: -54px; top: 58%; width: 22px; }
  .mh-hero .mh-leaf--3 { right: -70px; top: 8%; width: 30px; }
  .mh-hero .mh-leaf--4 { right: -56px; top: 40%; width: 22px; }
  .mh-hero .mh-leaf--5 { right: -72px; top: 72%; width: 26px; }
  .mh-hero .mh-leaf--6 { left: 8%; top: auto; bottom: -50px; width: 22px; }
  .mh-hero .mh-leaf--7 { right: 8%; top: auto; bottom: -46px; width: 20px; }
  .mh-hero .mh-leaf--8 { display: none; }
}

/* Phones: live mobile type scale (38px centred title), compact stats and offer. */
@media (max-width: 768px) {
  .mh-hero .mh-eyebrow-row { justify-content: center; }
  .mh-hero .mh-eyebrow { width: 100%; }
  .mh-hero .mh-stats { padding: 14px 4px; }
  .mh-hero .mh-stat { padding: 0 10px; }
  .mh-hero .mh-stat-num { font-size: 30px; }
  .mh-hero .mh-stat-cap { font-size: 13px; }
  .mh-hero .mh-rating { justify-content: center; }
}

@media (max-width: 575.98px) {
  /* Phone margins beside the frame are under 12px clear, so leaves sit only in the band below it, away from Discover. */
  .mh-hero .mh-leaf--1, .mh-hero .mh-leaf--2, .mh-hero .mh-leaf--4 { display: none; }
  .mh-hero .mh-leaf--3 { display: block; right: 24%; left: auto; top: auto; bottom: -40px; width: 15px; }
  .mh-hero .mh-leaf--5 { display: block; left: 22%; right: auto; top: auto; bottom: -42px; width: 14px; }
  .mh-hero .mh-leaf--6 { left: 4%; bottom: -46px; width: 20px; }
  .mh-hero .mh-leaf--7 { right: 4%; bottom: -44px; width: 18px; }
  .mh-hero .mh-eyebrow .mh-dot, .mh-hero .mh-offer-eb .mh-dot { display: none; }
  .mh-hero .mh-eyebrow .mh-eb-2, .mh-hero .mh-offer-eb .mh-eb-2 { display: block; margin-top: 2px; }
  .mh-hero .mh-rating .fs-18 { font-size: 16px; white-space: nowrap; }
  .mh-hero .mh-rating .fs-20 { font-size: 18px; }
  .mh-hero .mh-offer .d-flex.align-items-end { flex-wrap: wrap; row-gap: 6px; }
  .mh-hero .mh-per-bottle { flex-basis: 100%; border-left: 0; padding-left: 0; }
}
