/* bMobile eCommerce — hero */
@font-face {
  font-family: "MilligramText-Regular";
  src: url("/assets/fonts/MilligramText-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "MilligramText-Medium";
  src: url("/assets/fonts/MilligramText-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --bm-ec-green: #00965e;
  --bm-ec-green-hover: #007a4d;
  --bm-ec-blue: #1f70c1;
  --bm-ec-ink: #030712;
  --bm-ec-default: #111111;
  --bm-ec-font-body: "MilligramText-Regular", system-ui, sans-serif;
  --bm-ec-font-medium: "MilligramText-Medium", system-ui, sans-serif;
  --bm-ec-font-heading: "CooperBTLight", Georgia, serif;
}

body.bm-ec-page {
  font-family: var(--bm-ec-font-body) !important;
}

/* Restore Bootstrap .container breakpoints (style.css caps pages at 1140px) */
@media (min-width: 576px) {
  body.bm-ec-page div.container,
  body.bm-ec-page section.container {
    max-width: 540px !important;
  }
}

@media (min-width: 768px) {
  body.bm-ec-page div.container,
  body.bm-ec-page section.container {
    max-width: 720px !important;
  }
}

@media (min-width: 992px) {
  body.bm-ec-page div.container,
  body.bm-ec-page section.container {
    max-width: 960px !important;
  }
}

@media (min-width: 1200px) {
  body.bm-ec-page div.container,
  body.bm-ec-page section.container {
    max-width: 1140px !important;
  }
}

@media (min-width: 1400px) {
  body.bm-ec-page div.container,
  body.bm-ec-page section.container {
    max-width: 1320px !important;
  }
}

.bm-ec-page .bm-ec-hero__lead,
.bm-ec-page .bm-ec-feature__subtitle,
.bm-ec-page .bm-ec-feature-item__text,
.bm-ec-page .top_bavbar a,
.bm-ec-page .nav-menu > li > a {
  font-family: var(--bm-ec-font-body) !important;
}

/* Header — 3PL-style nav (live only; UAT uses edi-integration.css) */
body.bm-ec-page .header_area {
  transition: background-color 0.3s ease;
  background: transparent;
}

body.bm-ec-page .header_area.sticky {
  background: rgba(255, 255, 255, 0.97) !important;
}

body.bm-ec-page .header_area.fixed-top,
body.bm-ec-page .fixed-top.topnav_bg {
  background: transparent !important;
}

body.bm-ec-page .nav_style {
  display: none;
}

body.bm-ec-page .top_bavbar {
  justify-content: end !important;
}

body.bm-ec-page .navigation {
  display: flex !important;
  justify-content: space-between;
}

@media (min-width: 1199px) {
  body.bm-ec-page .nav-menu {
    min-height: 60px;
    display: flex;
    align-items: center;
  }
}

@media (min-width: 1200px) {
  body.bm-ec-page header.fixed-top img.img_show {
    width: 240px !important;
  }

  body.bm-ec-page
    #header.header_area.fixed-top.sticky.header-scrolled
    .nav-header
    .nav-brand
    img {
    width: 240px !important;
  }
}

body.bm-ec-page .nav-menu > li > a > i,
body.bm-ec-page .nav-menu > li > a > [class*="ion-"] {
  font-size: 14px;
  text-align: left;
}

body.bm-ec-page .nav-menu > li > a {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  text-decoration: none;
  color: #000000 !important;
}

body.bm-ec-page .nav-menu > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, rgb(22 113 6), rgb(12 191 36)) !important;
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.bm-ec-page .nav-menu > li > a:hover::after {
  width: 100%;
}

body.bm-ec-page .nav-dropdown li a,
body.bm-ec-page .megamenu-list li a {
  position: relative;
  display: block;
  padding: 8px 15px;
  color: inherit;
  text-decoration: none;
  z-index: 1;
  overflow: hidden;
}

body.bm-ec-page li ul.nav-submenu li a:hover {
  color: #fff !important;
}

body.bm-ec-page .nav-dropdown li a::before,
body.bm-ec-page .megamenu-list li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgb(22 113 6), rgb(12 191 36)) !important;
  z-index: -1;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.bm-ec-page .nav-dropdown li a:hover::before,
body.bm-ec-page .megamenu-list li a:hover::before {
  width: 100%;
}

body.bm-ec-page #header.header-scrolled img.img_show {
  display: block !important;
  width: 240px !important;
}

body.bm-ec-page .megamenu-panel .megamenu-list > li > a:hover,
body.bm-ec-page
  .megamenu-lists
  .megamenu-list
  > li.megamenu-list-title
  > a:hover {
  color: #fff !important;
}

@media (min-width: 1025px) {
  body.bm-ec-page .nav-toggle:before {
    background-color: #000000 !important;
    box-shadow:
      0 0.5em 0 0 #000000,
      0 1em 0 0 #000000 !important;
  }
}

@media (max-width: 1200px) {
  body.bm-ec-page .nav-toggle:before {
    background-color: #000000 !important;
    box-shadow:
      0 0.5em 0 0 #000000,
      0 1em 0 0 #000000 !important;
  }
}

@media (min-width: 992px) {
  body.bm-ec-page header.fixed-top .nav-menu > li > a {
    padding: 40px 10px !important;
  }

  body.bm-ec-page .nav-menus-wrapper .nav-menu li a {
    font-size: 16px !important;
  }

  body.bm-ec-page .fixed-top.topnav_bg a {
    font-size: 16px !important;
  }

  body.bm-ec-page .hero-wrapper #header.header-scrolled img.img_show {
    width: 200px !important;
  }
}

@media (min-width: 300px) and (max-width: 991px) {
  body.bm-ec-page header.fixed-top .nav-menu > li > a {
    font-size: 18px !important;
  }
}

/* Shared header + hero background */
.hero-wrapper.bm-ec-hero-wrapper {
  position: relative;
  overflow: hidden;
  background-color: #ffffff;
  background-image: url("/assets/img/bmobile-ecommerce-hero-bg.png");
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
}

.hero-wrapper.bm-ec-hero-wrapper > * {
  position: relative;
}

.bm-ec-hero-wrapper .fixed-top.topnav_bg,
.bm-ec-hero-wrapper #header.header_area {
  z-index: 1030;
}

.bm-ec-hero-wrapper .header_area.fixed-top,
.bm-ec-hero-wrapper .fixed-top.topnav_bg {
  background: transparent !important;
}

.bm-ec-hero-wrapper .top_bavbar a {
  color: #000000 !important;
}

.bm-ec-hero-wrapper .top_bavbar a:after {
  border-color: #000000 !important;
}

.bm-ec-hero-wrapper header.fixed-top .nav-menu > li > a {
  color: #000000 !important;
}

.bm-ec-hero-wrapper #header.header-scrolled {
  z-index: 1030;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 2px 12px rgba(15, 27, 45, 0.08);
}

.bm-ec-hero {
  position: relative;
  z-index: 0;
  padding: 2rem 0 2rem;
  background: transparent;
}

.bm-ec-hero .container {
  position: relative;
}

.bm-ec-hero__title {
  font-family: var(--bm-ec-font-heading) !important;
  font-size: clamp(2.25rem, 4.2vw, 3.35rem) !important;
  font-weight: 600 !important;
  line-height: 1.12 !important;
  color: var(--bm-ec-ink);
  margin: 0 0 1.25rem;
  opacity: 0;
  transform: translateY(24px);
  animation: bmEcFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

.bm-ec-hero__lead {
  font-size: 1.05rem !important;
  line-height: 1.65 !important;
  color: var(--bm-ec-default);
  max-width: 34rem;
  margin: 0 0 1.75rem;
  opacity: 0;
  transform: translateY(24px);
  animation: bmEcFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s forwards;
}

.bm-ec-hero__cta {
  display: inline-block;
  padding: 0.85rem 1.65rem;
  background: linear-gradient(90deg, #17a34c 0%, #099668 100%);
  color: #fff !important;
  font-family: var(--bm-ec-font-medium) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  border-radius: 6px;
  text-decoration: none !important;
  border: 0;
  box-shadow: 0 10px 24px rgba(0, 150, 94, 0.22);
  opacity: 0;
  animation: bmEcFadeIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bm-ec-hero__cta:hover,
.bm-ec-hero__cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 150, 94, 0.28);
  color: #fff !important;
}

.bm-ec-hero__cta:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 150, 94, 0.2);
}

.bm-ec-visual {
  position: relative;
  z-index: 0;
  width: min(100%, 440px);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  animation: bmEcVisualIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

.bm-ec-visual__svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 416px;
  margin: 0 auto;
}

@keyframes bmEcFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bmEcFadeIn {
  to {
    opacity: 1;
  }
}

@keyframes bmEcVisualIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 991px) {
  .bm-ec-hero {
    padding: 6.5rem 0 3.5rem;
    text-align: center;
  }

  .bm-ec-hero__title {
    font-size: clamp(1.85rem, 6vw, 2.5rem) !important;
  }

  .bm-ec-hero__lead {
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem !important;
  }

  .bm-ec-visual {
    margin-top: 1.5rem;
    max-width: 360px;
  }

  .bm-ec-feature-row--text-right .bm-ec-feature__copy {
    order: 2;
  }

  .bm-ec-feature-row--text-right .col-lg-6.order-lg-1 {
    order: 1;
  }

  .bm-ec-feature__visual {
    margin-bottom: 1.5rem;
  }

  .bm-ec-feature-row--text-right .bm-ec-feature__visual {
    margin-top: 0;
  }

  .bm-ec-features {
    padding: 3rem 0;
  }

  .bm-ec-feature-row {
    padding: 2rem 0;
  }
}

@media (max-width: 575px) {
  .hero-wrapper.bm-ec-hero-wrapper {
    background-position: bottom left;
  }

  .bm-ec-hero {
    padding: 5.5rem 0 2.5rem;
  }

  .bm-ec-hero__cta {
    display: block;
    width: 100%;
    max-width: 20rem;
    margin: 0 auto;
    text-align: center;
  }

  .bm-ec-features {
    padding: 2.5rem 0;
  }

  .bm-ec-feature-row {
    padding: 1.75rem 0;
  }

  .bm-ec-feature__title {
    font-size: clamp(1.5rem, 5.5vw, 1.85rem) !important;
  }

  .bm-ec-feature-item {
    gap: 0.75rem;
  }

  .bm-ec-feature-item__icon {
    width: 44px;
    height: 44px;
  }

  .bm-ec-feature-item__icon img {
    width: 24px;
    height: 24px;
  }

  .bm-ec-feature-item--compact,
  .bm-ec-feature-item--roi {
    margin-bottom: 0.75rem;
  }
}

/* Feature sections — single wrapper */
.bm-ec-features {
  padding: 4.5rem 0 5rem;
  background: linear-gradient(0deg, #eef5fc 0%, rgba(238, 245, 252, 0) 50%);
}

.bm-ec-feature-row {
  padding: 3rem 0;
}

.bm-ec-feature-row:first-child {
  padding-top: 0;
}

.bm-ec-feature-row:last-child {
  padding-bottom: 0;
}

.bm-ec-feature__title {
  font-family: var(--bm-ec-font-heading) !important;
  font-size: clamp(1.85rem, 3vw, 2.5rem) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  color: var(--bm-ec-ink);
  margin: 0 0 0.5rem;
}

.bm-ec-accent {
  color: var(--bm-ec-blue);
}

.bm-ec-feature__subtitle {
  font-size: 1.05rem !important;
  color: var(--bm-ec-default);
  margin: 0 0 1.75rem;
}

.bm-ec-feature-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.bm-ec-feature-item > div {
  min-width: 0;
}

.bm-ec-feature-item--compact {
  margin-bottom: 0;
  height: 100%;
}

/* ROI row — icon + title on top, description below */
.bm-ec-feature-item--roi {
  display: block;
  margin-bottom: 0;
  height: 100%;
}

.bm-ec-feature-item--roi .bm-ec-feature-item__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.bm-ec-feature-item--roi .bm-ec-feature-item__title {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.bm-ec-feature-item--roi .bm-ec-feature-item__text {
  margin: 0;
}

.bm-ec-feature-item__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0px 4px 4px 0px #00000040;
}

.bm-ec-feature-item__icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.bm-ec-feature-item__icon--blue {
  background: #cdddff;
  color: var(--bm-ec-blue);
}

.bm-ec-feature-item__icon--green {
  background: #d7ffc5;
  color: var(--bm-ec-green);
}

.bm-ec-feature-item__title {
  font-family: var(--bm-ec-font-medium) !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  color: var(--bm-ec-ink);
  margin: 0 0 0.35rem;
}

.bm-ec-feature-item__text {
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  color: var(--bm-ec-default);
  margin: 0;
}

.bm-ec-feature__visual {
  overflow: hidden;
  border-radius: 12px;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.bm-ec-feature__visual.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bm-ec-feature__copy {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.bm-ec-feature__copy.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.bm-ec-feature__visual img {
  width: 100%;
  height: auto;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .bm-ec-hero__title,
  .bm-ec-hero__lead,
  .bm-ec-visual {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .bm-ec-hero__cta {
    animation: none !important;
    opacity: 1 !important;
  }

  .bm-ec-feature__visual,
  .bm-ec-feature__copy {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Live only: block style.css from overriding UAT spacing/layout */
body.bm-ec-page main#main {
  padding: 0 !important;
  margin: 0 !important;
}

body.bm-ec-page section.bm-ec-hero,
body.bm-ec-page section.bm-ec-features {
  overflow: visible !important;
}

body.bm-ec-page #header.header_area {
  padding: 0 !important;
  background: transparent !important;
}

body.bm-ec-page #header.header_area.header-scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  border-bottom: none !important;
  height: auto !important;
}

body.bm-ec-page section.bm-ec-hero {
  padding: 2rem 0 2rem !important;
}

body.bm-ec-page section.bm-ec-features {
  padding: 4.5rem 0 5rem !important;
}

body.bm-ec-page .bm-ec-feature-row {
  padding: 3rem 0 !important;
}

body.bm-ec-page .bm-ec-feature-row:first-child {
  padding-top: 0 !important;
}

body.bm-ec-page .bm-ec-feature-row:last-child {
  padding-bottom: 0 !important;
}

@media (max-width: 991px) {
  body.bm-ec-page section.bm-ec-hero {
    padding: 6.5rem 0 3.5rem !important;
  }

  body.bm-ec-page section.bm-ec-features {
    padding: 3rem 0 !important;
  }

  body.bm-ec-page .bm-ec-feature-row {
    padding: 2rem 0 !important;
  }
}

@media (max-width: 575px) {
  body.bm-ec-page section.bm-ec-hero {
    padding: 5.5rem 0 2.5rem !important;
  }

  body.bm-ec-page section.bm-ec-features {
    padding: 2.5rem 0 !important;
  }

  body.bm-ec-page .bm-ec-feature-row {
    padding: 1.75rem 0 !important;
  }
}
