/*
 * 2026 redesign - About Us. Loaded only on pages whose builder content uses the bm-about
 * section class (see esterling_bm_assets). Each builder section gets custom class
 * "bm-about bm-about--<name>"; the copy lives in plain Text Blocks.
 */

/* ---------- Section wrappers ---------- */

#top #wrap_all .bm-about {
  border: 0;
  background: var(--bm-white);
  font-family: var(--bm-font-body);
  font-variation-settings: normal;
  color: var(--bm-text-body);
}

#top #wrap_all .bm-about > .container {
  width: 100%;
  max-width: var(--bm-container);
  padding: 0 var(--bm-gutter);
  box-sizing: border-box;
}

#top #wrap_all .bm-about .content {
  padding: 96px 0;
}

#top #wrap_all .bm-about .entry-content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 32px;
}

#top #wrap_all .bm-about .entry-content-wrapper > br {
  display: none;
}

#top #wrap_all .bm-about .av_textblock_section,
#top #wrap_all .bm-about .avia_textblock {
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.65;
  color: inherit;
}

#top #wrap_all .bm-about .avia_textblock p {
  margin: 0 0 16px;
}

#top #wrap_all .bm-about .avia_textblock > :last-child {
  margin-bottom: 0;
}

/* The child theme forces weights and transforms on body#top h1-h3 */
#top #wrap_all #main .bm-about h2 {
  margin: 0 0 18px;
  font: 700 36px/1.18 var(--bm-font-display);
  font-variation-settings: normal;
  letter-spacing: -.01em;
  text-transform: none;
  text-wrap: balance;
  color: var(--bm-text-strong);
}

#top #wrap_all .bm-about ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Shared: gold icon tile drawn from svg/icons via mask */
.bm-about [class*='bm-ico--']::before {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  background: currentColor;
  -webkit-mask: var(--bm-ico) center / contain no-repeat;
  mask: var(--bm-ico) center / contain no-repeat;
}

.bm-ico--crucible    { --bm-ico: url(../svg/icons/bm-crucible.svg); }
.bm-ico--wire        { --bm-ico: url(../svg/icons/bm-wire.svg); }
.bm-ico--target      { --bm-ico: url(../svg/icons/bm-target.svg); }
.bm-ico--zap         { --bm-ico: url(../svg/icons/zap.svg); }
.bm-ico--pellet      { --bm-ico: url(../svg/icons/bm-pellet.svg); }
.bm-ico--cog         { --bm-ico: url(../svg/icons/cog.svg); }
.bm-ico--flask       { --bm-ico: url(../svg/icons/flask.svg); }
.bm-ico--test-tube   { --bm-ico: url(../svg/icons/test-tube.svg); }
.bm-ico--heart-pulse { --bm-ico: url(../svg/icons/heart-pulse.svg); }
.bm-ico--flame       { --bm-ico: url(../svg/icons/flame.svg); }
.bm-ico--headphones  { --bm-ico: url(../svg/icons/headphones.svg); }

/* Photos */
#top #wrap_all .bm-about__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--bm-radius-xl);
  box-shadow: var(--bm-shadow-3);
  aspect-ratio: 4 / 3;
}

#top #wrap_all .bm-about__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Centred section heading */
#top #wrap_all .bm-about__head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

#top #wrap_all .bm-about .avia_textblock .bm-about__head p {
  margin: 0;
  font-size: 18px;
  color: var(--bm-text-muted);
}

/* ---------- Intro ---------- */

#top #wrap_all .bm-about--intro .flex_column:first-child {
  padding-right: 24px;
}

#top #wrap_all .bm-about--intro .avia_textblock p {
  color: var(--bm-text-muted);
}

#top #wrap_all .bm-about--intro .avia_textblock p.bm-about__lead {
  margin-bottom: 24px;
  padding-left: 22px;
  border-left: 4px solid var(--bm-gold);
  font: 500 21px/1.55 var(--bm-font-body);
  color: var(--bm-text-strong);
}

/* ---------- Products ---------- */

#top #wrap_all .bm-about--products {
  background: var(--bm-plat-50);
}

#top #wrap_all .bm-about--products .flex_column:last-child {
  padding-left: 24px;
}

#top #wrap_all .bm-about--products .avia_textblock p {
  color: var(--bm-text-muted);
}

#top #wrap_all .bm-about ul.bm-about__products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 4px 0 20px;
}

#top #wrap_all .bm-about__products li {
  display: block;
  margin: 0;
  padding: 0;
}

#top #wrap_all .bm-about__products li::before {
  display: none;
}

#top #wrap_all .bm-about__products a {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius-m);
  background: var(--bm-white);
  font: 600 15px/1.3 var(--bm-font-display);
  color: var(--bm-text-strong);
  text-decoration: none;
  transition: border-color .15s var(--bm-ease), box-shadow .15s var(--bm-ease), transform .15s var(--bm-ease);
}

/* The icon sits on the link so the whole tile is clickable */
#top #wrap_all .bm-about__products a::before {
  content: '';
  flex: none;
  width: 22px;
  height: 22px;
  background: var(--bm-gold-600);
  -webkit-mask: var(--bm-ico) center / contain no-repeat;
  mask: var(--bm-ico) center / contain no-repeat;
}

#top #wrap_all .bm-about__products a::after {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  margin-left: auto;
  background: var(--bm-plat-400);
  -webkit-mask: url(../svg/icons/arrow-right.svg) center / contain no-repeat;
  mask: url(../svg/icons/arrow-right.svg) center / contain no-repeat;
  transition: transform .15s var(--bm-ease), background .15s;
}

#top #wrap_all .bm-about__products a:hover {
  border-color: var(--bm-gold);
  box-shadow: var(--bm-shadow-2);
  transform: translateY(-1px);
}

#top #wrap_all .bm-about__products a:hover::after {
  background: var(--bm-black);
  transform: translateX(3px);
}

#top #wrap_all .bm-about__products a:focus-visible {
  outline: none;
  box-shadow: var(--bm-focus-ring);
}

/* ---------- Sectors ---------- */

#top #wrap_all .bm-about__sectors {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

#top #wrap_all .bm-about__sectors li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  margin: 0;
  padding: 24px 20px;
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius-l);
  background: var(--bm-white);
  font: 600 16px/1.35 var(--bm-font-display);
  color: var(--bm-text-strong);
}

/* Icon tile: a pale gold square (::before) with the icon masked on top (::after) */
#top #wrap_all .bm-about__sectors li {
  position: relative;
}

#top #wrap_all .bm-about__sectors li::before {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bm-gold-100);
  -webkit-mask: none;
  mask: none;
}

#top #wrap_all .bm-about__sectors li::after {
  content: '';
  position: absolute;
  top: 37px;
  left: 33px;
  width: 22px;
  height: 22px;
  background: var(--bm-gold-700);
  -webkit-mask: var(--bm-ico) center / contain no-repeat;
  mask: var(--bm-ico) center / contain no-repeat;
}

#top #wrap_all .bm-about .avia_textblock p.bm-about__note {
  max-width: 760px;
  margin: 40px auto 0;
  text-align: center;
  color: var(--bm-text-muted);
}

/* ---------- Process steps (Metal Recycling) ---------- */

.bm-ico--scale       { --bm-ico: url(../svg/icons/scale.svg); }
.bm-ico--coins       { --bm-ico: url(../svg/icons/coins.svg); }
.bm-ico--recycle     { --bm-ico: url(../svg/icons/recycle.svg); }

#top #wrap_all .bm-about--process {
  background: var(--bm-plat-50);
}

#top #wrap_all .bm-about__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
}

#top #wrap_all .bm-about__steps li {
  position: relative;
  margin: 0;
  padding: 104px 32px 32px;
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius-l);
  background: var(--bm-white);
  list-style: none;
  font-size: 16px;
  line-height: 1.65;
  color: var(--bm-text-muted);
}

#top #wrap_all .bm-about__steps li::before {
  position: absolute;
  top: 32px;
  left: 32px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bm-gold-100);
  -webkit-mask: none;
  mask: none;
}

#top #wrap_all .bm-about__steps li::after {
  content: '';
  position: absolute;
  top: 45px;
  left: 45px;
  width: 22px;
  height: 22px;
  background: var(--bm-gold-700);
  -webkit-mask: var(--bm-ico) center / contain no-repeat;
  mask: var(--bm-ico) center / contain no-repeat;
}

/* ---------- Closing button ---------- */

#top #wrap_all .bm-about--cta .content {
  padding: 72px 0;
}

#top #wrap_all .bm-about .avia_textblock p.bm-about__cta {
  margin: 0;
  text-align: center;
}

/* ---------- Why choose (dark band) ---------- */

#top #wrap_all .bm-about--why {
  background: var(--bm-black);
  color: var(--bm-plat-300);
}

#top #wrap_all #main .bm-about--why h2 {
  color: var(--bm-white);
}

#top #wrap_all .bm-about__why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* Five cards: 3 + 2, second row centred */
@media (min-width: 990px) {
  #top #wrap_all .bm-about__why--5 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  #top #wrap_all .bm-about__why--5 li {
    grid-column: span 2;
  }

  #top #wrap_all .bm-about__why--5 li:nth-child(4) {
    grid-column: 2 / span 2;
  }
}

#top #wrap_all .bm-about__why li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--bm-plat-800);
  border-radius: var(--bm-radius-l);
  background: var(--bm-plat-900);
  font: 500 17px/1.45 var(--bm-font-display);
  color: var(--bm-white);
}

#top #wrap_all .bm-about__why li::before {
  content: '';
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bm-gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* ---------- Sustainability + policies ---------- */

#top #wrap_all .bm-about--close .entry-content-wrapper {
  align-items: stretch;
}

#top #wrap_all .bm-about--close .flex_column {
  display: flex;
}

#top #wrap_all .bm-about--close .flex_column > .av_textblock_section {
  flex: 1;
  display: flex;
}

#top #wrap_all .bm-about--close .avia_textblock {
  flex: 1;
  display: flex;
}

#top #wrap_all .bm-about__card {
  flex: 1;
  padding: 40px;
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius-xl);
  background: var(--bm-white);
}

#top #wrap_all .bm-about__card--gold {
  position: relative;
  overflow: hidden;
  border-color: var(--bm-gold-200);
  background: var(--bm-gold-50);
}

/* Faint recycle mark in the corner */
#top #wrap_all .bm-about__card--gold::after {
  content: '';
  position: absolute;
  right: -30px;
  bottom: -40px;
  width: 220px;
  height: 220px;
  background: var(--bm-gold-200);
  opacity: .55;
  -webkit-mask: url(../svg/icons/recycle.svg) center / contain no-repeat;
  mask: url(../svg/icons/recycle.svg) center / contain no-repeat;
  pointer-events: none;
}

#top #wrap_all .bm-about__card--gold > * {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

#top #wrap_all .bm-about__card--gold p {
  color: var(--bm-text-body);
}

#top #wrap_all .bm-about__card--gold p:has(> .bm-btn) {
  margin: 28px 0 0;
}

#top #wrap_all .bm-about__card .bm-btn {
  height: auto;
  min-height: 48px;
  padding: 12px 24px;
  white-space: normal;
  text-align: left;
}

#top #wrap_all #main .bm-about__card h2 {
  font-size: 28px;
}

#top #wrap_all .bm-about__policies li {
  margin: 0;
  border-top: 1px solid var(--bm-border);
}

#top #wrap_all .bm-about__policies li:last-child {
  border-bottom: 1px solid var(--bm-border);
}

#top #wrap_all .bm-about__policies a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  font: 600 16px/1.3 var(--bm-font-display);
  color: var(--bm-text-strong);
  text-decoration: none;
}

#top #wrap_all .bm-about__policies a::before {
  content: '';
  flex: none;
  width: 20px;
  height: 20px;
  background: var(--bm-gold-600);
  -webkit-mask: url(../svg/icons/file-text.svg) center / contain no-repeat;
  mask: url(../svg/icons/file-text.svg) center / contain no-repeat;
}

#top #wrap_all .bm-about__policies a::after {
  content: '';
  flex: none;
  width: 16px;
  height: 16px;
  margin-left: auto;
  background: var(--bm-plat-400);
  -webkit-mask: url(../svg/icons/arrow-right.svg) center / contain no-repeat;
  mask: url(../svg/icons/arrow-right.svg) center / contain no-repeat;
  transition: transform .15s var(--bm-ease), background .15s;
}

#top #wrap_all .bm-about__policies a:hover::after {
  background: var(--bm-black);
  transform: translateX(3px);
}

/* ---------- Labware (Platinum Labware landing page) ---------- */

.bm-ico--ruler       { --bm-ico: url(../svg/icons/ruler.svg); }
.bm-ico--dish        { --bm-ico: url(../svg/icons/bm-dish.svg); }
.bm-ico--badge       { --bm-ico: url(../svg/icons/badge-check.svg); }

#top #wrap_all .bm-about--range .bm-about__head h2 {
  margin-bottom: 18px;
}

#top #wrap_all .bm-about--range .avia_textblock .bm-about__head p.bm-about__lead {
  font: 500 19px/1.6 var(--bm-font-body);
  color: var(--bm-text-muted);
}

#top #wrap_all .bm-about__tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

#top #wrap_all .bm-about__tiles li {
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius-xl);
  background: var(--bm-white);
  color: var(--bm-text-muted);
  transition: box-shadow .35s var(--bm-ease), transform .35s var(--bm-ease), border-color .35s;
}

#top #wrap_all .bm-about__tiles li:hover {
  border-color: transparent;
  box-shadow: 0 18px 48px -12px rgba(10, 11, 11, .16), 0 6px 16px -8px rgba(10, 11, 11, .08);
  transform: translateY(-4px);
}

#top #wrap_all .bm-about__tiles li:focus-within {
  outline: 2px solid var(--bm-gold);
  outline-offset: 3px;
}

/* Heading link stretched over the whole card */
#top #wrap_all .bm-about__tiles h3 a {
  color: inherit;
  text-decoration: none;
  outline: none;
}

#top #wrap_all .bm-about__tiles h3 a::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
}

#top #wrap_all .bm-about__tiles img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bm-plat-50);
  transition: transform .4s var(--bm-ease);
}

#top #wrap_all .bm-about__tiles li:hover img {
  transform: scale(1.03);
}

#top #wrap_all .bm-about__tiles .bm-about__tile-body {
  position: relative;
  z-index: 1;
  display: block;
  flex: 1;
  padding: 28px 72px 32px 32px;
  background: var(--bm-white);
}

#top #wrap_all .bm-about__tiles .bm-about__tile-body p {
  margin: 0;
}

#top #wrap_all #main .bm-about__tiles h3 {
  margin: 0 0 8px;
  font: 700 24px/1.25 var(--bm-font-display);
  text-transform: none;
  letter-spacing: -.01em;
  color: var(--bm-text-strong);
}

#top #wrap_all .bm-about__tiles .bm-about__tile-body::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 28px;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 50%;
  background: var(--bm-gold-100) url(../svg/icons/arrow-right.svg) center / 18px no-repeat;
  transition: transform .2s var(--bm-ease), background-color .2s;
}

#top #wrap_all .bm-about__tiles li:hover .bm-about__tile-body::after {
  background-color: var(--bm-gold);
  transform: translateX(3px);
}

#top #wrap_all .bm-about--details {
  background: var(--bm-plat-50);
}

#top #wrap_all .bm-about--details .entry-content-wrapper {
  align-items: stretch;
}

#top #wrap_all .bm-about__info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

#top #wrap_all .bm-about__info > div {
  position: relative;
  padding: 104px 36px 36px;
  border: 1px solid var(--bm-border);
  border-radius: var(--bm-radius-l);
  background: var(--bm-white);
  color: var(--bm-text-muted);
}

#top #wrap_all .bm-about__info > div::before {
  position: absolute;
  top: 36px;
  left: 36px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bm-gold-100);
  -webkit-mask: none;
  mask: none;
}

#top #wrap_all .bm-about__info > div::after {
  content: '';
  position: absolute;
  top: 49px;
  left: 49px;
  width: 22px;
  height: 22px;
  background: var(--bm-gold-700);
  -webkit-mask: var(--bm-ico) center / contain no-repeat;
  mask: var(--bm-ico) center / contain no-repeat;
}

#top #wrap_all #main .bm-about__info h3 {
  margin: 0 0 14px;
  font: 700 22px/1.3 var(--bm-font-display);
  text-transform: none;
  color: var(--bm-text-strong);
}

/* US/AU: lists sit mid-card, so space them from the copy around them */
#top #wrap_all .bm-about__info .bm-about__specs + p {
  margin-top: 16px;
}

#top #wrap_all .bm-about__specs {
  margin-top: 20px;
  border-top: 1px solid var(--bm-border);
}

#top #wrap_all .bm-about__specs li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid var(--bm-border);
  font-size: 15px;
  color: var(--bm-text-body);
}

#top #wrap_all .bm-about__specs li::before {
  content: '';
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  background: var(--bm-gold-600);
  -webkit-mask: url(../svg/icons/check.svg) center / contain no-repeat;
  mask: url(../svg/icons/check.svg) center / contain no-repeat;
}

#top #wrap_all .bm-about__guides {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

#top #wrap_all .bm-about__guides li {
  margin: 0;
  padding: 0;
}

#top #wrap_all .bm-about__guides a {
  display: block;
  overflow: hidden;
  border-radius: var(--bm-radius-l);
  box-shadow: var(--bm-shadow-2);
  transition: box-shadow .35s var(--bm-ease), transform .35s var(--bm-ease);
}

#top #wrap_all .bm-about__guides a:hover {
  box-shadow: 0 18px 48px -12px rgba(10, 11, 11, .18), 0 6px 16px -8px rgba(10, 11, 11, .08);
  transform: translateY(-4px);
}

#top #wrap_all .bm-about__guides img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  #top #wrap_all .bm-about__sectors {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 989px) {
  #top #wrap_all .bm-about .content {
    padding: 72px 0;
  }

  #top #wrap_all .bm-about .flex_column {
    width: 100%;
    margin-left: 0;
    padding: 0 !important;
  }

  #top #wrap_all .bm-about--products .flex_column:first-child {
    order: 2;
  }

  #top #wrap_all .bm-about__why {
    grid-template-columns: 1fr 1fr;
  }

  #top #wrap_all .bm-about__steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  #top #wrap_all .bm-about > .container {
    padding: 0 16px;
  }

  #top #wrap_all .bm-about .content {
    padding: 56px 0;
  }

  #top #wrap_all #main .bm-about h2 {
    font-size: 28px;
  }

  #top #wrap_all .bm-about--intro .avia_textblock p.bm-about__lead {
    font-size: 18px;
  }

  #top #wrap_all .bm-about__products,
  #top #wrap_all .bm-about__tiles,
  #top #wrap_all .bm-about__info,
  #top #wrap_all .bm-about__why,
  #top #wrap_all .bm-about__steps {
    grid-template-columns: 1fr;
  }

  #top #wrap_all .bm-about__sectors {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  #top #wrap_all .bm-about__card {
    padding: 28px 24px;
  }

  #top #wrap_all .bm-about__guides {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  #top #wrap_all .bm-about__info > div {
    padding: 96px 24px 28px;
  }

  #top #wrap_all .bm-about__info > div::before { top: 28px; left: 24px; }
  #top #wrap_all .bm-about__info > div::after  { top: 41px; left: 37px; }
}

@media (prefers-reduced-motion: reduce) {
  #top #wrap_all .bm-about__products a,
  #top #wrap_all .bm-about__products a::after,
  #top #wrap_all .bm-about__policies a::after,
  #top #wrap_all .bm-about__tiles li,
  #top #wrap_all .bm-about__tiles img,
  #top #wrap_all .bm-about__tiles .bm-about__tile-body::after,
  #top #wrap_all .bm-about__guides a {
    transition: none;
  }
}
