/**
 * mm-public-hero — shared page hero (breadcrumb + title + art).
 * Used by the order flow (checkout/detail/listing), User pages, and lead/marketing pages.
 * Split out of mm-lead-pages.css so non-lead pages do not pull lead-page styles.
 */

/* =========================
   Public page hero
   ========================= */

.mm-public-hero {
  position: relative;
  margin: 1rem 0 0.25rem;
  padding: 1.35rem 1.25rem 1.45rem;
  border-radius: 1.1rem;
  overflow: hidden;
  background:#FDF6E4;
  border: 1px solid #dce8d5;
}

.mm-public-hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    radial-gradient(
      circle at 20% 30%,
      rgba(63, 143, 40, 0.07) 0 1px,
      transparent 1.5px
    ),
    radial-gradient(
      circle at 70% 60%,
      rgba(63, 143, 40, 0.06) 0 1px,
      transparent 1.5px
    );

  background-size:
    48px 48px,
    36px 36px;

  pointer-events: none;
  opacity: 0.7;
}

/* =========================
   Hero layout
   ========================= */

.mm-public-hero__inner {
  position: relative;
  z-index: 1;

  display: grid;

  /* Text takes remaining space; illustration column */
  grid-template-columns: minmax(0, 1fr) 200px;

  gap: 1.25rem 1.5rem;
  align-items: center;
}

.mm-public-hero__copy {
  min-width: 0;
}

/* =========================
   Hero illustration
   ========================= */

.mm-public-hero__art {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 180px;
  min-height: 0;

  justify-self: end;
  margin-left: 0.75rem;
  margin-right: 0.5rem;
}

.mm-public-hero__img {
  display: block;

  width: 170px;
  max-width: 100%;
  height: auto;

  object-fit: contain;
  background: transparent;
}

/* =========================
   Hero title
   ========================= */

.mm-public-hero__title {
  margin: 0 0 0.45rem;

  color: var(--mm-green, #104904);

  font-size: clamp(
    1.65rem,
    1.35rem + 1.1vw,
    2.35rem
  );

  font-weight: 800;
  line-height: 1.15;
}

/* =========================
   Hero tagline
   ========================= */

.mm-public-hero__tagline {
  margin: 0 0 0.55rem;

  color: var(--mm-green, #104904);

  font-size: clamp(
    1.05rem,
    0.95rem + 0.4vw,
    1.25rem
  );

  font-weight: 700;
  line-height: 1.3;
}

/* =========================
   Hero description
   ========================= */

.mm-public-hero__desc {
  margin: 0 0 0.85rem;

  max-width: 36rem;

  color: var(--mm-text, #4a5a44);

  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.55;
}

/* =========================
   Last updated
   ========================= */

.mm-public-hero__updated {
  margin: 0;

  color: var(--mm-muted, #6b7a64);

  font-size: 0.82rem;
  font-weight: 600;
}

/* =========================
   Large tablet
   ========================= */

@media (max-width: 1199.98px) {
  .mm-public-hero__inner {
    grid-template-columns: minmax(0, 1fr) 170px;
  }

  .mm-public-hero__art {
    width: 150px;
    min-height: 0;
    margin-left: 0.75rem;
    margin-right: 0.35rem;
  }

  .mm-public-hero__img {
    width: 140px;
  }
}

/* =========================
   Tablet
   ========================= */

@media (max-width: 991.98px) {
  .mm-public-hero {
    margin-top: 1.15rem;
  }

  .mm-public-hero__inner {
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 1rem;
  }

  .mm-public-hero__art {
    width: 125px;
    min-height: 0;
    margin-left: 0.75rem;
    margin-right: 0.25rem;
  }

  .mm-public-hero__img {
    width: 115px;
  }
}

/* =========================
   Mobile / small tablet
   ========================= */

@media (max-width: 767.98px) {
  .mm-public-hero {
    margin-top: 1.25rem;

    padding:
      1rem
      0.95rem
      1.15rem;
  }

  /*
   * Keep the text and illustration
   * side-by-side on mobile.
   */
  .mm-public-hero__inner {
    grid-template-columns: minmax(0, 1fr) 115px;

    gap: 1rem;

    align-items: flex-start;
  }

  .mm-public-hero__art {
    order: 0;

    width: 115px;
    min-height: 115px;

    margin-top: 0.25rem;
    margin-left: 0.75rem;
    margin-right: 0;

    justify-self: end;
  }

  .mm-public-hero__img {
    width: 105px;
  }

  .mm-public-hero__title {
    margin-bottom: 0.4rem;

    font-size: clamp(
      1.35rem,
      1.2rem + 0.8vw,
      1.75rem
    );
  }

  .mm-public-hero__tagline {
    margin-bottom: 0.45rem;

    font-size: 1rem;
  }

  .mm-public-hero__desc {
    margin-bottom: 0;

    font-size: 0.88rem;
    line-height: 1.5;
  }
}

/* =========================
   Small mobile
   ========================= */

@media (max-width: 480px) {
  .mm-public-hero {
    padding:
      0.9rem
      0.85rem
      1rem;
  }

  .mm-public-hero__inner {
    grid-template-columns: minmax(0, 1fr) 88px;

    gap: 0.7rem;
  }

  .mm-public-hero__art {
    width: 88px;
    min-height: 88px;

    margin-top: 0.3rem;
    margin-left: 0.5rem;
    margin-right: 0;
  }

  .mm-public-hero__img {
    width: 80px;
  }

  .mm-public-hero__title {
    font-size: 1.4rem;
  }

  .mm-public-hero__tagline {
    font-size: 0.94rem;
  }

  .mm-public-hero__desc {
    font-size: 0.84rem;
  }
}

/* =========================
   Very small mobile
   ========================= */

@media (max-width: 380px) {
  .mm-public-hero__inner {
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 0.5rem;
  }

  .mm-public-hero__art {
    width: 76px;
    min-height: 76px;

    margin-left: 0.35rem;
  }

  .mm-public-hero__img {
    width: 70px;
  }
}
