/* ==========================================================================
   B&M — enhancement layer
   Loaded after style.css on every page. Adds brand, motion and new features
   without touching the original template styles.
   ========================================================================== */

:root {
  --bm-ink: #0b1610;
  --bm-ink-2: #16241b;
  --bm-red: #e4002b;
  --bm-red-deep: #b80022;
  --bm-red-soft: #ff3355;
  --bm-paper: #ffffff;
  --bm-mist: #f3f6f3;
  --bm-line: #e3e9e4;
  --bm-muted: #56625b;      /* 6.4:1 on white */
  --bm-leaf: #2f7a4b;
  --bm-radius: 18px;
  --bm-radius-sm: 12px;
  --bm-shadow: 0 1px 2px rgba(11, 22, 16, .06), 0 12px 32px rgba(11, 22, 16, .08);
  --bm-shadow-lg: 0 2px 6px rgba(11, 22, 16, .08), 0 24px 60px rgba(11, 22, 16, .16);
  --bm-ease: cubic-bezier(.2, .7, .2, 1);
  --bm-ease-io: cubic-bezier(.76, 0, .24, 1);
  --bm-fab: 56px;
}

/* ---------- Accessibility basics ---------- */
.bm-skip {
  position: fixed;
  inset-inline-start: 16px;
  top: -80px;
  z-index: 10002;
  background: var(--bm-ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 700;
  transition: top .2s var(--bm-ease);
}
.bm-skip:focus { top: 16px; color: #fff; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--bm-red);
  outline-offset: 3px;
  border-radius: 6px;
}

.bm-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Header logo: the hanging B&M tag ---------- */
.mainHeader .siteLogo a {
  background: var(--bm-ink);
  border-radius: 0 0 16px 16px;
  padding: 18px 18px 14px !important;
  box-shadow: 0 10px 30px rgba(11, 22, 16, .25);
  transition: transform .4s var(--bm-ease), padding .4s var(--bm-ease);
}
.mainHeader .siteLogo a img {
  width: clamp(104px, 9vw, 150px) !important;
  height: auto !important;
  display: block;
}
.mainHeader.bgFull.fixed .siteLogo a { transform: none; padding: 12px 14px 10px !important; }
.mainHeader.bgFull.fixed .siteLogo a img { width: clamp(92px, 7.4vw, 124px) !important; }
@media (max-width: 991px) {
  .mainHeader .siteLogo a { padding: 14px 14px 10px !important; }
  .mainHeader .siteLogo a img { width: 104px !important; }
}

/* Footer logo */
.mainFooter .footerInner .footer-logo img {
  width: clamp(110px, 10vw, 150px);
  max-width: none !important;
  height: auto;
  padding-inline: 18px;
}
.mainFooter .footerInner .mobileLogo { object-fit: contain !important; height: auto !important; }

/* ---------- Scroll progress ---------- */
#bm-progress {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: 3px;
  z-index: 10001;
  pointer-events: none;
  background: linear-gradient(90deg, var(--bm-red), var(--bm-red-soft));
  transform-origin: var(--bm-origin, left) center;
  transform: scaleX(var(--p, 0));
}
[dir=rtl] #bm-progress { --bm-origin: right; }

/* ---------- Preloader & page transitions ---------- */
html.bm-first body::before,
html.bm-entering body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bm-ink);
  pointer-events: none;
}
html.bm-first body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10001;
  pointer-events: none;
  background: url("/assets/images/brand/bm-logo-light.svg") center / min(42vw, 260px) auto no-repeat;
  animation: bm-logo-in 1.25s var(--bm-ease) forwards;
}
html.bm-first body::before { animation: bm-lift .8s var(--bm-ease-io) .95s forwards; }
html.bm-entering body::before { animation: bm-lift .6s var(--bm-ease-io) .05s forwards; }

@keyframes bm-logo-in {
  0%   { opacity: 0; transform: translateY(14px) scale(.96); filter: blur(6px); }
  35%  { opacity: 1; transform: none; filter: blur(0); }
  75%  { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-24px); }
}
@keyframes bm-lift {
  to { transform: translateY(-100%); }
}

.bm-curtain {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bm-ink);
  display: grid;
  place-items: center;
  transform: translateY(100%);
  transition: transform .5s var(--bm-ease-io);
  pointer-events: none;
}
.bm-curtain img { width: 64px; height: 64px; opacity: 0; transition: opacity .3s .15s; }
.bm-curtain.is-on { transform: none; pointer-events: auto; }
.bm-curtain.is-on img { opacity: 1; }

/* ---------- Scroll reveals ---------- */
html.bm-motion .bm-reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity .9s var(--bm-ease), transform .9s var(--bm-ease);
  transition-delay: var(--d, 0ms);
}
html.bm-motion .bm-reveal.is-in { opacity: 1; transform: none; }

html.bm-motion .bm-words .bm-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-bottom: .08em;
  margin-bottom: -.08em;
}
html.bm-motion .bm-words .bm-w > span {
  display: inline-block;
  transform: translate3d(0, 110%, 0);
  transition: transform .9s var(--bm-ease);
  transition-delay: calc(var(--i, 0) * 55ms + var(--d, 0ms));
}
html.bm-motion .bm-words.is-in .bm-w > span { transform: none; }

/* Section eyebrow gets a small red rule that draws in */
html.bm-motion .section-sub-title.bm-reveal::after {
  content: "";
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 10px;
  background: var(--bm-red);
  transform: scaleX(0);
  transform-origin: var(--bm-origin, left);
  transition: transform .8s var(--bm-ease) .25s;
}
[dir=rtl] .section-sub-title { --bm-origin: right; }
.text-center .section-sub-title::after,
.freshnessUpdated .section-sub-title::after { margin-inline: auto; }
html.bm-motion .section-sub-title.bm-reveal.is-in::after { transform: scaleX(1); }

/* ---------- Hero: slow Ken Burns + caption rise ---------- */
html.bm-motion .herobanner-swiper .swiper-slide-active .homeImage img,
html.bm-motion .newsMediaBanner-swiper .swiper-slide-active .swiperImg img,
html.bm-motion .serviceBanner .bgImage img {
  animation: bm-kenburns 9s ease-out both;
}
@keyframes bm-kenburns {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}
html.bm-motion .herobanner-swiper .swiper-slide .banner-text,
html.bm-motion .newsMediaBanner-swiper .swiper-slide .banner-title {
  display: inline-block;
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--bm-ease) .35s, transform 1s var(--bm-ease) .35s;
}
html.bm-motion .herobanner-swiper .swiper-slide-active .banner-text,
html.bm-motion .newsMediaBanner-swiper .swiper-slide-active .banner-title {
  opacity: 1;
  transform: none;
}

.bm-scrollcue {
  position: absolute;
  bottom: 34px;
  inset-inline-start: clamp(20px, 4vw, 64px);
  z-index: 5;
  width: 28px;
  height: 46px;
  border: 2px solid rgba(255, 255, 255, .8);
  border-radius: 20px;
  display: block;
}
.bm-scrollcue::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: bm-cue 1.8s var(--bm-ease) infinite;
}
@keyframes bm-cue {
  0% { opacity: 0; transform: translateY(0); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}
@media (max-width: 767px) { .bm-scrollcue { display: none; } }

/* ---------- Cards: lift, tilt & spotlight ---------- */
.performance-card, .img-card, .contact-card, .fresh-itemCard, .bm-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  transition: transform .5s var(--bm-ease), box-shadow .5s var(--bm-ease);
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  html.bm-motion .bm-tilt:hover {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px);
    box-shadow: var(--bm-shadow-lg);
  }
  .bm-tilt::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 255, 255, .22), transparent 45%);
    opacity: 0;
    transition: opacity .4s;
    z-index: 3;
  }
  .bm-tilt:hover::after { opacity: 1; }
}

/* Button polish */
.commonBtn { overflow: hidden; }
.commonBtn i.fa-arrow-right { transition: transform .35s var(--bm-ease); }
.commonBtn:hover i.fa-arrow-right { transform: translateX(4px); }
[dir=rtl] .commonBtn i.fa-arrow-right { transform: scaleX(-1); }
[dir=rtl] .commonBtn:hover i.fa-arrow-right { transform: scaleX(-1) translateX(4px); }

/* ---------- Image placeholder (shown when a photo is missing) ---------- */
img.bm-missing { object-fit: cover; background: var(--bm-mist); }

/* ---------- Marquee band ---------- */
.bm-marquee {
  background: var(--bm-ink);
  color: #fff;
  overflow: hidden;
  padding-block: clamp(18px, 2.4vw, 34px);
  position: relative;
  direction: ltr;
}
.bm-marquee__track {
  display: flex;
  width: max-content;
  animation: bm-marquee 48s linear infinite;
}
.bm-marquee:hover .bm-marquee__track { animation-play-state: paused; }
.bm-marquee__group {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 36px);
  padding-inline-end: clamp(18px, 2.4vw, 36px);
  font-size: clamp(26px, 3.6vw, 58px);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.bm-marquee__amp {
  width: .8em;
  height: .8em;
  flex: none;
  opacity: .95;
}
@keyframes bm-marquee { to { transform: translateX(-50%); } }

/* ---------- Generic section shell ---------- */
.bm-section { padding-block: clamp(56px, 7vw, 110px); position: relative; }
.bm-section--mist { background: var(--bm-mist); }
.bm-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 40px; margin-bottom: clamp(26px, 3vw, 44px); }
.bm-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--bm-red); font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.bm-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px rgba(228, 0, 43, .12); }
.bm-title { font-size: clamp(28px, 3.4vw, 50px); font-weight: 800; color: var(--bm-ink); line-height: 1.15; margin: 0; }
.bm-lead { color: var(--bm-muted); font-size: 17px; line-height: 1.8; max-width: 52ch; margin: 0; }

/* ---------- Catalog ---------- */
.bm-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 26px; }
.bm-search {
  flex: 1 1 260px;
  position: relative;
}
.bm-search input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--bm-line);
  border-radius: 999px;
  padding-inline: 48px 18px;
  font: inherit;
  font-size: 16px;
  background: #fff;
  color: var(--bm-ink);
  transition: border-color .2s, box-shadow .2s;
}
.bm-search input:focus { outline: none; border-color: var(--bm-ink); box-shadow: 0 0 0 4px rgba(11, 22, 16, .08); }
.bm-search svg { position: absolute; inset-inline-start: 18px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--bm-muted); }

.bm-seg {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--bm-line);
  gap: 2px;
}
.bm-seg button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--bm-muted);
  min-height: 42px;
  padding-inline: 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.bm-seg button[aria-pressed=true] { background: var(--bm-ink); color: #fff; }

.bm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}
.bm-card {
  background: #fff;
  border-radius: var(--bm-radius);
  overflow: hidden;
  box-shadow: var(--bm-shadow);
  display: flex;
  flex-direction: column;
}
.bm-card__img { aspect-ratio: 1 / 1; overflow: hidden; background: var(--bm-mist); }
.bm-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--bm-ease); }
.bm-card:hover .bm-card__img img { transform: scale(1.06); }
.bm-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.bm-card__tag { font-size: 12px; font-weight: 700; color: var(--bm-leaf); letter-spacing: .02em; }
.bm-card__name { font-size: 19px; font-weight: 800; color: var(--bm-ink); margin: 0; }
.bm-card__desc { font-size: 14.5px; color: var(--bm-muted); line-height: 1.7; margin: 0 0 8px; flex: 1; }
.bm-grid .bm-card[hidden] { display: none; }
.bm-empty { text-align: center; color: var(--bm-muted); padding: 40px 0; font-size: 16px; }

/* Add-to-quote button */
.bm-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 16px;
  border-radius: 999px;
  border: 1.5px solid var(--bm-ink);
  background: transparent;
  color: var(--bm-ink);
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .2s;
}
.bm-add:hover { background: var(--bm-ink); color: #fff; }
.bm-add:active { transform: scale(.97); }
.bm-add svg { width: 16px; height: 16px; }
.bm-add[aria-pressed=true] { background: var(--bm-red); border-color: var(--bm-red); color: #fff; }
.bm-add--float { margin-top: 12px; }
.DoubleSlider .bm-add { border-color: currentColor; }

/* ---------- Floating actions ---------- */
.bm-fabs {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 20px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.bm-fab {
  width: var(--bm-fab);
  height: var(--bm-fab);
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  box-shadow: var(--bm-shadow-lg);
  position: relative;
  transition: transform .3s var(--bm-ease);
  text-decoration: none;
}
.bm-fab:hover { transform: translateY(-3px); color: #fff; }
.bm-fab svg { width: 26px; height: 26px; }
.bm-fab--wa { background: #17763f; }
.bm-fab--quote { background: var(--bm-ink); }
.bm-fab__count {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  padding-inline: 6px;
  background: var(--bm-red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  transform: scale(0);
  transition: transform .35s var(--bm-ease);
}
.bm-fab__count.has { transform: scale(1); }
.bm-fab__count.bump { animation: bm-bump .45s var(--bm-ease); }
@keyframes bm-bump { 40% { transform: scale(1.35); } }
.bm-fab__tip {
  position: absolute;
  inset-inline-end: calc(100% + 12px);
  white-space: nowrap;
  background: var(--bm-ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  opacity: 0;
  translate: 6px 0;
  pointer-events: none;
  transition: opacity .2s, translate .2s;
}
[dir=rtl] .bm-fab__tip { translate: -6px 0; }
.bm-fab:hover .bm-fab__tip, .bm-fab:focus-visible .bm-fab__tip { opacity: 1; translate: 0 0; }
/* keep original back-to-top clear of our stack */
.BacktoTopbutton { bottom: calc(20px + var(--bm-fab) * 2 + 36px) !important; }

/* ---------- Quote drawer ---------- */
.bm-drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  inset-inline-start: auto;
  margin: 0;
  height: 100dvh;
  max-height: none;
  width: min(460px, 100vw);
  max-width: 100vw;
  border: 0;
  padding: 0;
  background: #fff;
  color: var(--bm-ink);
  box-shadow: var(--bm-shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(var(--bm-off, 100%));
  transition: transform .45s var(--bm-ease), display .45s allow-discrete, overlay .45s allow-discrete;
}
[dir=rtl] .bm-drawer { --bm-off: -100%; }
.bm-drawer:not([open]) { display: none; }
.bm-drawer[open] { transform: none; }
@starting-style { .bm-drawer[open] { transform: translateX(var(--bm-off, 100%)); } }
.bm-drawer::backdrop { background: rgba(11, 22, 16, .45); backdrop-filter: blur(3px); }
.bm-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px 16px; border-bottom: 1px solid var(--bm-line); }
.bm-drawer__head h2 { font-size: 22px; font-weight: 800; margin: 0; }
.bm-drawer__head p { margin: 4px 0 0; color: var(--bm-muted); font-size: 14px; }
.bm-x {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--bm-mist);
  color: var(--bm-ink);
  display: grid; place-items: center;
  cursor: pointer;
  flex: none;
}
.bm-x:hover { background: var(--bm-line); }
.bm-x svg { width: 18px; height: 18px; }
.bm-drawer__body { flex: 1; overflow-y: auto; padding: 18px 24px; overscroll-behavior: contain; }
.bm-drawer__foot { padding: 16px 24px 22px; border-top: 1px solid var(--bm-line); display: grid; gap: 10px; }

.bm-lines { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.bm-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius-sm);
  animation: bm-pop .35s var(--bm-ease);
}
@keyframes bm-pop { from { opacity: 0; transform: translateY(8px); } }
.bm-line__name { font-weight: 800; font-size: 16px; }
.bm-line__ctrl { display: flex; gap: 8px; align-items: center; grid-column: 1 / -1; }
.bm-step { display: inline-flex; align-items: center; border: 1px solid var(--bm-line); border-radius: 999px; overflow: hidden; }
.bm-step button { width: 40px; height: 40px; border: 0; background: #fff; font-size: 20px; line-height: 1; cursor: pointer; color: var(--bm-ink); }
.bm-step button:hover { background: var(--bm-mist); }
.bm-step input { width: 56px; height: 40px; border: 0; text-align: center; font: inherit; font-weight: 700; -moz-appearance: textfield; }
.bm-step input::-webkit-outer-spin-button, .bm-step input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bm-line select { height: 40px; border: 1px solid var(--bm-line); border-radius: 999px; padding-inline: 12px; font: inherit; background: #fff; color: var(--bm-ink); }
.bm-remove { border: 0; background: none; color: var(--bm-muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; min-height: 40px; }
.bm-remove:hover { color: var(--bm-red); }

.bm-emptyq { text-align: center; padding: 30px 10px; color: var(--bm-muted); }
.bm-emptyq img { width: 64px; height: 64px; margin-bottom: 12px; opacity: .9; }

/* ---------- Forms ---------- */
.bm-fields { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.bm-field { display: grid; gap: 6px; }
.bm-field--full { grid-column: 1 / -1; }
@media (max-width: 575px) { .bm-fields { grid-template-columns: 1fr; } }
.bm-field label { font-size: 14px; font-weight: 700; color: var(--bm-ink); }
.bm-field label .opt { color: var(--bm-muted); font-weight: 500; }
.bm-field input, .bm-field select, .bm-field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfd8d2;
  border-radius: var(--bm-radius-sm);
  padding: 10px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--bm-ink);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.bm-field textarea { min-height: 110px; resize: vertical; }
.bm-field input:focus, .bm-field select:focus, .bm-field textarea:focus { outline: none; border-color: var(--bm-ink); box-shadow: 0 0 0 4px rgba(11, 22, 16, .08); }
.bm-field.is-bad input, .bm-field.is-bad select, .bm-field.is-bad textarea { border-color: var(--bm-red); }
.bm-err { color: var(--bm-red-deep); font-size: 13px; min-height: 0; }
.bm-field:not(.is-bad) .bm-err { display: none; }

.bm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding-inline: 22px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s, background .25s, box-shadow .25s;
}
.bm-btn:active { transform: scale(.98); }
.bm-btn svg { width: 20px; height: 20px; }
.bm-btn--red { background: var(--bm-red); color: #fff; }
.bm-btn--red:hover { background: var(--bm-red-deep); color: #fff; }
.bm-btn--wa { background: #17763f; color: #fff; }
.bm-btn--wa:hover { background: #125f33; color: #fff; }
.bm-btn--ghost { background: transparent; color: var(--bm-ink); box-shadow: inset 0 0 0 1.5px var(--bm-ink); }
.bm-btn--ghost:hover { background: var(--bm-ink); color: #fff; }
.bm-btn--light { background: #fff; color: var(--bm-ink); }
.bm-btn--light:hover { background: var(--bm-mist); color: var(--bm-ink); }
.bm-btn--outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.bm-btn--outline-light:hover { background: #fff; color: var(--bm-ink); }
.bm-btn[disabled] { opacity: .45; pointer-events: none; }
.bm-row { display: flex; flex-wrap: wrap; gap: 10px; }
.bm-row > .bm-btn { flex: 1 1 180px; }

/* Contact form panel */
.bm-contact {
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--bm-line);
  border-radius: var(--bm-radius);
  padding: clamp(20px, 3vw, 34px);
  box-shadow: var(--bm-shadow);
  text-align: start;
}
.bm-contact h2 { font-size: 24px; font-weight: 800; margin: 0 0 6px; color: var(--bm-ink); }
.bm-contact > p { color: var(--bm-muted); margin: 0 0 20px; }
.bm-contact .bm-row { margin-top: 18px; }

/* ---------- Process timeline (services) ---------- */
.bm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; counter-reset: s; }
.bm-steps::before {
  content: "";
  position: absolute;
  top: 27px;
  inset-inline: 28px;
  height: 2px;
  background: var(--bm-line);
}
.bm-steps::after {
  content: "";
  position: absolute;
  top: 27px;
  inset-inline: 28px;
  height: 2px;
  background: var(--bm-red);
  transform: scaleX(var(--prog, 0));
  transform-origin: var(--bm-origin, left);
  transition: transform 1.6s var(--bm-ease-io);
}
[dir=rtl] .bm-steps { --bm-origin: right; }
.bm-steps.is-in { --prog: 1; }
.bm-step-item { position: relative; z-index: 1; }
.bm-step-item__dot {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--bm-line);
  display: grid; place-items: center;
  color: var(--bm-ink);
  margin-bottom: 18px;
  transition: border-color .4s, background .4s, color .4s;
  transition-delay: calc(var(--i) * 350ms + 200ms);
}
.bm-step-item__dot svg { width: 24px; height: 24px; }
.bm-steps.is-in .bm-step-item__dot { border-color: var(--bm-red); background: var(--bm-red); color: #fff; }
.bm-step-item h3 { font-size: 19px; font-weight: 800; color: var(--bm-ink); margin: 0 0 8px; }
.bm-step-item p { color: var(--bm-muted); font-size: 15px; line-height: 1.75; margin: 0; }
@media (max-width: 767px) {
  .bm-steps { grid-template-columns: 1fr; gap: 26px; }
  .bm-steps::before, .bm-steps::after { top: 28px; bottom: 28px; inset-inline-start: 27px; inset-inline-end: auto; width: 2px; height: auto; }
  .bm-steps::after { transform: scaleY(var(--prog, 0)); transform-origin: top; }
  .bm-step-item { display: grid; grid-template-columns: 56px 1fr; gap: 0 18px; }
  .bm-step-item__dot { grid-row: span 2; margin: 0; }
}

/* ---------- CTA band ---------- */
.bm-cta {
  background: var(--bm-ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding-block: clamp(54px, 6.5vw, 96px);
}
.bm-cta__amp {
  position: absolute;
  inset-inline-end: -2vw;
  top: 50%;
  translate: 0 -50%;
  width: clamp(220px, 30vw, 460px);
  opacity: .12;
  pointer-events: none;
}
.bm-cta .container { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.bm-cta h2 { font-size: clamp(28px, 3.6vw, 52px); font-weight: 800; margin: 0 0 10px; line-height: 1.15; color: #fff; }
.bm-cta p { color: rgba(255, 255, 255, .78); font-size: 17px; margin: 0; max-width: 48ch; }
.bm-cta .bm-row > .bm-btn { flex: 0 1 auto; }

/* ---------- Toast ---------- */
.bm-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  translate: -50% calc(100% + 48px);
  z-index: 10003;
  background: var(--bm-ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--bm-shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  transition: translate .45s var(--bm-ease);
  max-width: calc(100vw - 32px);
}
.bm-toast.is-on { translate: -50% 0; }
.bm-toast button { background: none; border: 0; color: #ff8fa3; font: inherit; font-weight: 800; cursor: pointer; text-decoration: underline; min-height: 32px; }

/* ---------- Cookie bar ---------- */
.bm-cookie {
  position: fixed;
  inset-inline-start: 20px;
  bottom: 20px;
  z-index: 995;
  width: min(420px, calc(100vw - 40px - var(--bm-fab) - 12px));
  background: #fff;
  color: var(--bm-ink);
  border-radius: var(--bm-radius);
  box-shadow: var(--bm-shadow-lg);
  padding: 18px 20px;
  font-size: 14.5px;
  line-height: 1.7;
  animation: bm-pop .5s var(--bm-ease) 1.6s both;
}
.bm-cookie p { margin: 0 0 12px; }
.bm-cookie a { color: var(--bm-red-deep); text-decoration: underline; }
.bm-cookie .bm-row { flex-wrap: nowrap; }
.bm-cookie .bm-row > .bm-btn { min-height: 44px; font-size: 14px; flex: 1 1 0; padding-inline: 12px; }
@media (max-width: 575px) { .bm-cookie { width: calc(100vw - 32px - var(--bm-fab) - 12px); inset-inline-start: 16px; bottom: 16px; padding: 14px 16px; font-size: 13.5px; } .bm-cookie p { margin-bottom: 10px; } }

/* ---------- Reduced motion & transparency ---------- */
@media (prefers-reduced-motion: reduce) {
  html.bm-first body::before, html.bm-first body::after, html.bm-entering body::before { display: none; }
  .bm-marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .bm-marquee__group:last-child { display: none; }
  .bm-scrollcue::after, .bm-fab__count.bump { animation: none; }
  .bm-curtain, .bm-drawer, .bm-toast { transition: none; }
  .bm-steps::after, .bm-step-item__dot { transition: none; }
  .bm-cookie, .bm-line { animation: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .bm-drawer::backdrop { backdrop-filter: none; background: rgba(11, 22, 16, .7); }
}
@media (prefers-contrast: more) {
  :root { --bm-muted: #33403a; --bm-line: #9aa7a0; }
}
@media print {
  .bm-fabs, .bm-cookie, .bm-toast, #bm-progress, .bm-curtain, .bm-marquee, .bm-cta { display: none !important; }
}

/* ==========================================================================
   v2 — Fresh-produce redesign + site-wide motion
   ========================================================================== */

/* ---------- Shared bits ---------- */
.bm-arrow { width: 18px; height: 18px; transition: transform .35s var(--bm-ease); }
[dir=rtl] .bm-arrow { transform: scaleX(-1); }
.bm-btn:hover .bm-arrow { transform: translateX(4px); }
[dir=rtl] .bm-btn:hover .bm-arrow { transform: scaleX(-1) translateX(4px); }
.bm-eyebrow--light { color: #fff; }
.bm-eyebrow--light::before { background: var(--bm-red-soft); box-shadow: 0 0 0 5px rgba(255, 51, 85, .22); }
[data-bm-parallax] { will-change: translate; }

/* Header nav: animated underline */
@media (min-width: 992px) {
  .mainHeader .headerMenu ul li > a:not(.arabic):not(.english) { position: relative; }
  .mainHeader .headerMenu ul li > a:not(.arabic):not(.english)::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: var(--bm-red);
    transform: scaleX(0);
    transform-origin: var(--bm-origin, left);
    transition: transform .35s var(--bm-ease);
  }
  [dir=rtl] .mainHeader .headerMenu ul li > a { --bm-origin: right; }
  .mainHeader .headerMenu ul li > a:hover::after,
  .mainHeader .headerMenu ul li.active > a::after,
  .mainHeader .headerMenu ul li > a[aria-current=page]::after { transform: scaleX(1); }
}

/* ---------- Hero carousel ---------- */
.bm-hero {
  position: relative;
  height: clamp(560px, 84svh, 840px);
  overflow: hidden;
  background: var(--bm-ink);
  color: #fff;
  isolation: isolate;
}
.bm-hero__slides, .bm-hero__slide { position: absolute; inset: 0; margin: 0; }
.bm-hero__slide { opacity: 0; transition: opacity 1.2s var(--bm-ease); overflow: hidden; }
.bm-hero__slide.is-active { opacity: 1; z-index: 1; }
.bm-hero__img {
  position: absolute;
  inset-inline: 0;
  top: -70px;
  width: 100%;
  height: calc(100% + 140px);
  max-width: none;
  object-fit: cover;
  transform: scale(1.08);
  transition: transform 7.5s cubic-bezier(.2, .6, .3, 1);
}
.bm-hero__slide.is-active .bm-hero__img { transform: scale(1); }
.bm-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(0deg, rgba(11, 22, 16, .78) 0%, rgba(11, 22, 16, 0) 42%),
    linear-gradient(var(--bm-scrim-dir, 90deg), rgba(11, 22, 16, .86) 0%, rgba(11, 22, 16, .55) 42%, rgba(11, 22, 16, .08) 78%);
}
[dir=rtl] .bm-hero__scrim { --bm-scrim-dir: 270deg; }
.bm-hero__inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 48px 128px;
}
.bm-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .78); margin-bottom: clamp(18px, 3vw, 40px); }
.bm-crumbs a { color: #fff; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .3s; }
[dir=rtl] .bm-crumbs a { background-position: 100% 100%; }
.bm-crumbs a:hover { color: #fff; background-size: 100% 1px; }
.bm-hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 14px;
  color: #fff;
  letter-spacing: .01em;
}
.bm-hero__kicker::before { content: ""; width: 26px; height: 2px; background: var(--bm-red-soft); }
.bm-hero__statement { display: grid; margin: 0 0 18px; max-width: min(780px, 100%); }
.bm-hero__line {
  grid-area: 1 / 1;
  font-size: clamp(34px, 4.8vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.01em;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--bm-ease), transform .9s var(--bm-ease);
  text-wrap: balance;
}
.bm-hero__line.is-active { opacity: 1; transform: none; transition-delay: .25s; }
.bm-hero__lead { color: rgba(255, 255, 255, .88); font-size: clamp(16px, 1.3vw, 19px); line-height: 1.75; max-width: 50ch; margin: 0 0 28px; }
.bm-hero__ctas > .bm-btn { flex: 0 1 auto; }

.bm-hero__controls {
  position: absolute;
  inset-inline: 0;
  bottom: clamp(70px, 8vw, 96px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 18px;
}
.bm-hero__bars { display: flex; gap: 6px; }
.bm-hero__bar { width: 54px; height: 32px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.bm-hero__bar i { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .32); overflow: hidden; position: relative; }
.bm-hero__bar i::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: var(--bm-origin, left); }
[dir=rtl] .bm-hero { --bm-origin: right; }
.bm-hero__bar.is-done i::after { transform: scaleX(1); }
.bm-hero__bar.is-active i::after { animation: bm-fill var(--bm-dur, 6s) linear forwards; }
.bm-hero.is-paused .bm-hero__bar.is-active i::after { animation-play-state: paused; }
.bm-hero.is-static .bm-hero__bar.is-active i::after { animation: none; transform: scaleX(1); }
@keyframes bm-fill { to { transform: scaleX(1); } }
.bm-hero__count { font-variant-numeric: tabular-nums; font-size: 14px; color: rgba(255, 255, 255, .8); direction: ltr; }
.bm-hero__count b { color: #fff; font-weight: 800; }
.bm-hero__btns { display: flex; gap: 8px; margin-inline-start: auto; }
.bm-hero__btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .38);
  background: rgba(11, 22, 16, .25);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .25s, color .25s, transform .2s;
}
.bm-hero__btn:hover { background: #fff; color: var(--bm-ink); }
.bm-hero__btn:active { transform: scale(.94); }
.bm-hero__btn svg { width: 20px; height: 20px; }
[dir=rtl] .bm-hero__btn[data-dir] svg { transform: scaleX(-1); }
.bm-hero__btn .i-play, .bm-hero.is-paused .bm-hero__btn .i-pause { display: none; }
.bm-hero.is-paused .bm-hero__btn .i-play { display: block; }

@media (max-width: 767px) {
  .bm-hero { height: auto; min-height: max(600px, 86svh); }
  .bm-hero__inner { justify-content: flex-end; padding-block: 110px 150px; min-height: inherit; }
  .bm-hero__scrim { background: linear-gradient(0deg, rgba(11, 22, 16, .92) 0%, rgba(11, 22, 16, .6) 55%, rgba(11, 22, 16, .2) 100%); }
  .bm-hero__statement { max-width: none; }
  .bm-hero__count { display: none; }
  .bm-hero__controls { bottom: 84px; }
  .bm-hero__bar { width: 40px; }
  .bm-hero__btn[data-dir] { display: none; }
  .bm-hero__btns { margin-inline-start: 0; }
  .bm-hero__ctas > .bm-btn { flex: 1 1 100%; }
  .bm-crumbs { position: absolute; top: 24px; inset-inline: 12px; }
}

/* ---------- Promise strip ---------- */
.bm-promises-wrap { position: relative; z-index: 4; margin-top: -58px; }
.bm-promises {
  list-style: none;
  margin: 0;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: 22px;
  box-shadow: var(--bm-shadow-lg);
}
.bm-promise { display: flex; gap: 14px; align-items: flex-start; padding: 22px 20px; position: relative; border-radius: 16px; transition: background .3s; }
.bm-promise:hover { background: var(--bm-mist); }
.bm-promise + .bm-promise::before { content: ""; position: absolute; inset-inline-start: 0; top: 22px; bottom: 22px; width: 1px; background: var(--bm-line); }
.bm-promise__icon {
  flex: none;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(228, 0, 43, .08);
  color: var(--bm-red);
  display: grid; place-items: center;
  transition: transform .4s var(--bm-ease), background .3s, color .3s;
}
.bm-promise:hover .bm-promise__icon { transform: rotate(-6deg) scale(1.06); background: var(--bm-red); color: #fff; }
.bm-promise__icon svg { width: 24px; height: 24px; }
.bm-promise__t { font-size: 17px; font-weight: 800; color: var(--bm-ink); margin: 2px 0 4px; }
.bm-promise p { font-size: 14.5px; color: var(--bm-muted); line-height: 1.6; margin: 0; }
@media (max-width: 991px) {
  .bm-promises { grid-template-columns: repeat(2, 1fr); }
  .bm-promise:nth-child(3)::before { display: none; }
}
@media (max-width: 575px) {
  .bm-promises-wrap { margin-top: -44px; }
  .bm-promises { grid-template-columns: 1fr; }
  .bm-promise { padding: 16px; }
  .bm-promise + .bm-promise::before { inset-inline: 16px; top: 0; bottom: auto; width: auto; height: 1px; display: block; }
}

/* ---------- Editorial split ---------- */
.bm-split__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.bm-split--rev .bm-split__media { order: 2; }
.bm-split__media {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 5 / 5.6;
  background: var(--bm-mist);
}
.bm-split__media img {
  position: absolute;
  inset-inline: 0;
  top: -6%;
  width: 100%;
  height: 112%;
  max-width: none;
  object-fit: cover;
  transition: scale 1.2s var(--bm-ease);
}
.bm-split__media:hover img { scale: 1.04; }
.bm-split__body .bm-title { margin-bottom: 18px; }
.bm-split__body .bm-lead { margin-bottom: 14px; }
.bm-split__body .bm-btn { margin-top: 14px; }
.bm-chips, .bm-checks { list-style: none; padding: 0; margin: 20px 0 8px; }
.bm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bm-chips li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bm-mist);
  border: 1px solid var(--bm-line);
  font-size: 14px;
  font-weight: 700;
  color: var(--bm-ink);
  transition: border-color .25s, transform .25s var(--bm-ease);
}
.bm-chips li:hover { border-color: var(--bm-ink); transform: translateY(-2px); }
.bm-checks { display: grid; gap: 12px; }
.bm-checks li { display: flex; gap: 12px; align-items: center; font-size: 16px; font-weight: 600; color: var(--bm-ink); }
.bm-checks svg { flex: none; width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: rgba(228, 0, 43, .1); color: var(--bm-red); }
@media (max-width: 991px) {
  .bm-split__grid { grid-template-columns: 1fr; }
  .bm-split--rev .bm-split__media { order: 0; }
  .bm-split__media { aspect-ratio: 16 / 11; }
}

/* Clip-path image reveal */
html.bm-motion .bm-clip.bm-reveal {
  opacity: 1;
  transform: none;
  clip-path: inset(10% 10% 10% 10% round 26px);
  transition: clip-path 1.3s var(--bm-ease-io);
}
html.bm-motion .bm-clip.bm-reveal img { scale: 1.18; transition: scale 1.6s var(--bm-ease); }
html.bm-motion .bm-clip.bm-reveal.is-in { clip-path: inset(0 0 0 0 round 26px); }
html.bm-motion .bm-clip.bm-reveal.is-in img { scale: 1; }
html.bm-motion .bm-clip.bm-reveal.is-in:hover img { scale: 1.04; }

/* ---------- Catalog extras ---------- */
.bm-seg button .n { font-variant-numeric: tabular-nums; opacity: .6; font-size: 13px; margin-inline-start: 4px; }
.bm-card__open {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
  text-align: inherit;
}
.bm-card__open .bm-card__img { position: relative; }
.bm-card__open .bm-card__img::after {
  content: attr(data-label);
  position: absolute;
  inset-inline-start: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--bm-ink);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s var(--bm-ease);
}
.bm-card__open:hover .bm-card__img::after, .bm-card__open:focus-visible .bm-card__img::after { opacity: 1; transform: none; }
html.bm-motion .bm-grid .bm-card.is-filtering { animation: bm-pop .4s var(--bm-ease) both; animation-delay: calc(var(--k, 0) * 30ms); }

/* Quick-view sheet */
.bm-sheet {
  width: min(900px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 48px);
  border: 0;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  color: var(--bm-ink);
  box-shadow: var(--bm-shadow-lg);
  opacity: 0;
  transform: translateY(18px) scale(.98);
  transition: opacity .35s var(--bm-ease), transform .45s var(--bm-ease), display .45s allow-discrete, overlay .45s allow-discrete;
}
.bm-sheet[open] { opacity: 1; transform: none; display: grid; }
@starting-style { .bm-sheet[open] { opacity: 0; transform: translateY(18px) scale(.98); } }
.bm-sheet::backdrop { background: rgba(11, 22, 16, .5); backdrop-filter: blur(3px); }
.bm-sheet[open] { grid-template-columns: 1fr 1fr; }
.bm-sheet__img { background: var(--bm-mist); aspect-ratio: 1; }
.bm-sheet__img img { width: 100%; height: 100%; object-fit: cover; }
.bm-sheet__body { padding: clamp(22px, 3vw, 40px); display: flex; flex-direction: column; gap: 10px; position: relative; }
.bm-sheet__body .bm-x { position: absolute; top: 16px; inset-inline-end: 16px; }
.bm-sheet__body h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; margin: 0; padding-inline-end: 52px; }
.bm-sheet__body p { color: var(--bm-muted); font-size: 16.5px; line-height: 1.8; margin: 0 0 8px; }
.bm-sheet__body .bm-add { align-self: flex-start; min-height: 50px; padding-inline: 22px; font-size: 15.5px; }
.bm-sheet__nav { display: flex; gap: 8px; margin-top: auto; padding-top: 18px; }
.bm-sheet__nav button { flex: 1; min-height: 44px; border-radius: 999px; border: 1px solid var(--bm-line); background: #fff; font: inherit; font-weight: 700; color: var(--bm-ink); cursor: pointer; }
.bm-sheet__nav button:hover { border-color: var(--bm-ink); }
@media (max-width: 680px) {
  .bm-sheet { margin: auto 0 0; width: 100vw; border-radius: 24px 24px 0 0; max-height: 92dvh; overflow-y: auto; }
  .bm-sheet[open] { grid-template-columns: 1fr; }
  .bm-sheet__img { aspect-ratio: 4 / 3; }
}

/* Generic: images that subtly zoom inside cards on hover */
.img-card .img-hover, .HomepageCard-left { overflow: hidden; }
.img-card .img-hover img, .HomepageCard-left img.back { transition: transform 1s var(--bm-ease); }
.img-card:hover .img-hover img, .HomepageCard-left:hover img.back { transform: scale(1.05); }

@media (prefers-reduced-motion: reduce) {
  .bm-hero__slide, .bm-hero__img, .bm-hero__line { transition: none !important; }
  .bm-hero__img { transform: none !important; }
  [data-bm-parallax] { translate: none !important; }
  .bm-sheet { transition: none; }
}

html { scroll-behavior: smooth; }
#bm-catalog, #bm-hero, [id] { scroll-margin-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ==========================================================================
   v3 — Homepage
   ========================================================================== */

/* ---------- Header: transparent over hero, frosted when scrolled, hides on scroll down ----------
   IMPORTANT: never put transform / filter / backdrop-filter on .mainHeader itself.
   Any of those turns the header into the containing block for its position:fixed
   children (the mobile menu), which then widens the page and breaks the menu on phones.
   The frosted glass lives on a pseudo-element, and hiding uses `top`, not transform. */
.mainHeader.fixed { transition: top .45s var(--bm-ease), background-color .3s, box-shadow .3s; }
.mainHeader.fixed.hide { top: -170px; }
.mainHeader.fixed.hide:has(.menuOpen) { top: 0; }
.mainHeader.fixed:not(.bgFull) { background: linear-gradient(180deg, rgba(11, 22, 16, .6), rgba(11, 22, 16, 0)) !important; }
.mainHeader.bgFull::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
}
@media (min-width: 992px) {
  .mainHeader.bgFull { background-color: rgba(11, 22, 16, .9); }
}
@media (max-width: 991px) {
  .mainHeader.bgFull { background-color: rgba(255, 255, 255, .94); }
}
@media (prefers-reduced-transparency: reduce) {
  .mainHeader.bgFull::before { display: none; }
  .mainHeader.bgFull { background-color: var(--bm-ink); }
}
@media (prefers-reduced-transparency: reduce) and (max-width: 991px) {
  .mainHeader.bgFull { background-color: #fff; }
}

/* ---------- Home hero ---------- */
.bm-hero--home { height: auto; min-height: clamp(640px, 100svh, 980px); }
.bm-hero--home .bm-hero__inner { min-height: inherit; padding-block: 150px 150px; }
.bm-hero--home .bm-hero__statement { max-width: min(860px, 100%); }
.bm-hero--home .bm-hero__line { font-size: clamp(34px, 5vw, 76px); }

/* Hero search */
.bm-find {
  position: relative;
  margin-top: 26px;
  width: min(620px, 100%);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, .96);
  border-radius: 999px;
  padding: 6px;
  padding-inline-start: 50px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
  transition: box-shadow .3s, transform .3s var(--bm-ease);
}
.bm-find:focus-within { box-shadow: 0 0 0 4px rgba(255, 255, 255, .35), 0 18px 50px rgba(0, 0, 0, .3); transform: translateY(-1px); }
.bm-find__icon { position: absolute; inset-inline-start: 20px; top: 50%; translate: 0 -50%; color: var(--bm-muted); display: flex; }
.bm-find__icon svg { width: 20px; height: 20px; }
.bm-find input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--bm-ink);
  outline: none;
}
.bm-find input::-webkit-search-cancel-button { display: none; }
.bm-find__go {
  flex: none;
  height: 48px;
  padding-inline: 24px;
  border: 0;
  border-radius: 999px;
  background: var(--bm-ink);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background .25s;
}
.bm-find__go:hover { background: var(--bm-red); }
.bm-find__list {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline: 0;
  z-index: 20;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--bm-shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  animation: bm-pop .25s var(--bm-ease);
}
.bm-find__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--bm-ink);
  cursor: pointer;
}
.bm-find__list li[aria-selected=true], .bm-find__list li:hover { background: var(--bm-mist); }
.bm-find__list img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--bm-mist); }
.bm-find__list b { font-weight: 800; }
.bm-find__list small { display: block; color: var(--bm-muted); font-size: 13px; }
.bm-find__list mark { background: rgba(228, 0, 43, .14); color: inherit; padding: 0 2px; border-radius: 3px; }
.bm-find__list .none { color: var(--bm-muted); cursor: default; }
.bm-find__pop { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.bm-find__pop .lbl { color: rgba(255, 255, 255, .78); margin-inline-end: 4px; }
.bm-find__pop a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(255, 255, 255, .08);
  transition: background .25s, color .25s, border-color .25s;
}
.bm-find__pop a:hover { background: #fff; color: var(--bm-ink); border-color: #fff; }
.bm-hero--home .bm-hero__ctas { margin-bottom: 0; }

@media (max-width: 767px) {
  .bm-hero--home { min-height: auto; }
  .bm-hero--home .bm-hero__inner { padding-block: 130px 140px; }
  .bm-find { padding-inline-start: 44px; }
  .bm-find__icon { inset-inline-start: 16px; }
  .bm-find__go { padding-inline: 16px; }
  .bm-find__pop .lbl { width: 100%; }
}

/* ---------- Quick categories (overlap hero) ---------- */
.bm-cats-wrap { position: relative; z-index: 4; margin-top: -84px; padding-bottom: clamp(30px, 4vw, 60px); }
.bm-cats-head { display: none; }
.bm-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bm-cat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  padding-inline-end: 18px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--bm-shadow-lg);
  color: var(--bm-ink);
  text-decoration: none;
  height: 100%;
  transition: transform .4s var(--bm-ease), box-shadow .4s var(--bm-ease);
}
.bm-cat:hover { transform: translateY(-4px); color: var(--bm-ink); box-shadow: 0 2px 6px rgba(11, 22, 16, .08), 0 30px 70px rgba(11, 22, 16, .2); }
.bm-cat__img { flex: none; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: var(--bm-mist); }
.bm-cat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--bm-ease); }
.bm-cat:hover .bm-cat__img img { transform: scale(1.12); }
.bm-cat__body { display: grid; gap: 2px; flex: 1; min-width: 0; }
.bm-cat__name { font-weight: 800; font-size: 17px; line-height: 1.3; }
.bm-cat__sub { font-size: 13.5px; color: var(--bm-muted); }
.bm-cat__go {
  flex: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bm-mist);
  color: var(--bm-ink);
  transition: background .3s, color .3s;
}
.bm-cat:hover .bm-cat__go { background: var(--bm-red); color: #fff; }
@media (max-width: 1199px) { .bm-cats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) {
  .bm-cats-wrap { margin-top: -60px; }
  .bm-cats { grid-template-columns: 1fr; gap: 10px; }
  .bm-cat__img { width: 60px; height: 60px; }
}

/* ---------- About: stat card + features + links ---------- */
.bm-statcard {
  position: absolute;
  inset-inline-start: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, .96);
  border-radius: 20px;
  padding: 6px;
  box-shadow: var(--bm-shadow-lg);
}
.bm-stat { padding: 14px 18px; display: grid; gap: 2px; }
.bm-stat + .bm-stat { border-inline-start: 1px solid var(--bm-line); }
.bm-stat__n { font-size: clamp(22px, 2.2vw, 32px); font-weight: 800; color: var(--bm-red); line-height: 1.1; font-variant-numeric: tabular-nums; }
.bm-stat__l { font-size: 13px; color: var(--bm-muted); max-width: 16ch; }
.bm-feats { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bm-feats li { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid var(--bm-line); transition: border-color .3s, background .3s; }
.bm-feats li:hover { border-color: var(--bm-ink); background: var(--bm-mist); }
.bm-feats img { width: 40px; height: 40px; flex: none; }
.bm-feats b { display: block; font-weight: 800; font-size: 15.5px; color: var(--bm-ink); }
.bm-feats span { font-size: 13.5px; color: var(--bm-muted); }
.bm-links { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--bm-line); }
.bm-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 4px;
  border-bottom: 1px solid var(--bm-line);
  color: var(--bm-ink);
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  transition: padding .35s var(--bm-ease), color .25s;
}
.bm-links a:hover { color: var(--bm-red); padding-inline: 12px 4px; }
@media (max-width: 575px) {
  .bm-feats { grid-template-columns: 1fr; }
  .bm-statcard { inset-inline: 12px; bottom: 12px; }
  .bm-stat { padding: 10px 12px; flex: 1; }
}

/* ---------- Featured rail ---------- */
.bm-rail-ctrl { display: flex; gap: 8px; align-items: center; }
.bm-rail-btn { background: #fff; color: var(--bm-ink); border-color: var(--bm-line); }
.bm-rail-btn:hover { background: var(--bm-ink); color: #fff; }
.bm-rail-btn:disabled { opacity: .35; pointer-events: none; }
.bm-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 23vw, 290px);
  gap: clamp(14px, 1.6vw, 22px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(16px, calc((100vw - 1320px) / 2 + 12px));
  padding-inline: max(16px, calc((100vw - 1320px) / 2 + 12px));
  padding-block: 6px 30px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.bm-rail::-webkit-scrollbar { display: none; }
.bm-rail .bm-card { scroll-snap-align: start; }
.bm-rail:focus-visible { outline-offset: -3px; }
@media (max-width: 767px) {
  .bm-rail-ctrl .bm-rail-btn { display: none; }
  .bm-rail { grid-auto-columns: 72%; }
}

/* ---------- Sectors ---------- */
.bm-sectors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bm-sector {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px 24px 24px;
  border-radius: 22px;
  border: 1px solid var(--bm-line);
  background: #fff;
  color: var(--bm-ink);
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color .4s, border-color .4s, transform .4s var(--bm-ease);
}
.bm-sector::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--bm-ink);
  clip-path: circle(0 at var(--cx, 90%) 10%);
  transition: clip-path .7s var(--bm-ease-io);
}
[dir=rtl] .bm-sector { --cx: 10%; }
.bm-sector:hover { color: #fff; border-color: var(--bm-ink); transform: translateY(-4px); }
.bm-sector:hover::before { clip-path: circle(150% at var(--cx, 90%) 10%); }
.bm-sector__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(228, 0, 43, .08);
  color: var(--bm-red);
  margin-bottom: 22px;
  transition: background .4s, color .4s;
}
.bm-sector:hover .bm-sector__icon { background: var(--bm-red); color: #fff; }
.bm-sector__icon svg { width: 28px; height: 28px; }
.bm-sector h3 { font-size: 20px; font-weight: 800; margin: 0 0 8px; color: inherit; }
.bm-sector p { font-size: 15px; line-height: 1.7; margin: 0 0 22px; color: var(--bm-muted); transition: color .4s; flex: 1; }
.bm-sector:hover p { color: rgba(255, 255, 255, .78); }
.bm-sector__more { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; font-size: 14.5px; }
.bm-sector:hover .bm-arrow { transform: translateX(4px); }
[dir=rtl] .bm-sector:hover .bm-arrow { transform: scaleX(-1) translateX(4px); }
@media (max-width: 1199px) { .bm-sectors { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .bm-sectors { grid-template-columns: 1fr; } }

/* ---------- Solutions (dark) ---------- */
.bm-section--ink { background: var(--bm-ink); color: #fff; }
.bm-section--ink .bm-title { color: #fff; }
.bm-sols { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bm-sol {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bm-ink-2);
}
.bm-sol img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--bm-ease); }
.bm-sol::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 22, 16, .85), rgba(11, 22, 16, 0) 55%); }
.bm-sol h3 { position: absolute; z-index: 1; inset-inline: 20px; bottom: 18px; margin: 0; color: #fff; font-size: 19px; font-weight: 800; transition: transform .5s var(--bm-ease); }
.bm-sol:hover img { transform: scale(1.08); }
.bm-sol:hover h3 { transform: translateY(-4px); }
@media (max-width: 991px) { .bm-sols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .bm-sols { grid-template-columns: 1fr 1fr; gap: 10px; } .bm-sol h3 { font-size: 15px; inset-inline: 12px; bottom: 12px; } }

/* ---------- Testimonials ---------- */
.bm-vox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(28px, 6vw, 90px); align-items: center; }
.bm-vox__nav { display: flex; gap: 12px; align-items: center; margin-top: 28px; }
.bm-vox__dots { display: flex; gap: 6px; }
.bm-vox__dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 5px; background: var(--bm-line); cursor: pointer; transition: width .35s var(--bm-ease), background .3s; position: relative; }
.bm-vox__dots button::before { content: ""; position: absolute; inset: -12px -4px; }
.bm-vox__dots button[aria-current=true] { width: 30px; background: var(--bm-red); }
.bm-vox__stage { display: grid; position: relative; }
.bm-vox__item {
  grid-area: 1 / 1;
  margin: 0;
  padding: clamp(26px, 4vw, 48px);
  border-radius: 28px;
  background: var(--bm-mist);
  opacity: 0;
  transform: translateY(16px) scale(.98);
  transition: opacity .6s var(--bm-ease), transform .7s var(--bm-ease);
  pointer-events: none;
}
.bm-vox__item.is-active { opacity: 1; transform: none; pointer-events: auto; }
.bm-vox__mark { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--bm-red); color: #fff; margin-bottom: 18px; }
.bm-vox__mark svg { width: 24px; height: 24px; }
[dir=rtl] .bm-vox__mark svg { transform: scaleX(-1); }
.bm-vox__item figcaption { font-weight: 800; color: var(--bm-red-deep); font-size: 15px; margin-bottom: 10px; }
.bm-vox__item blockquote { margin: 0; font-size: clamp(19px, 1.8vw, 26px); line-height: 1.7; font-weight: 600; color: var(--bm-ink); }
@media (max-width: 991px) { .bm-vox { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .bm-vox__item, .bm-sector::before, .bm-cat, .bm-sol img { transition: none; }
}
.bm-hero__inner:has(.bm-find:focus-within) { z-index: 6; }
