.bpo-page {
  --bpo-card: #f5faf9;
}

.bpo-page .mega-menu__icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.8);
  transition: filter 260ms var(--motion-ease-out);
}

.bpo-page .mega-menu__item:hover .mega-menu__icon img,
.bpo-page .mega-menu__item:focus-visible .mega-menu__icon img,
.bpo-page .mega-menu__item.is-active .mega-menu__icon img {
  filter: none;
}

/* 01 — Hero */
.bpo-hero {
  height: 100vh;
  min-height: 758px;
}

.bpo-hero .core-hero__background {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 38%, rgba(0, 0, 0, 0.86) 100%),
    url("assets/pce-bpo/images/hero-desktop@2x.jpg") center 45% / cover no-repeat;
}

.bpo-hero .core-product-label i {
  background-image: url("assets/pce-bpo/icons/hero-pattern-desktop.svg");
  transform: scaleX(-1);
}

.bpo-hero h1 {
  max-width: 1120px;
}

/* 02 — Como funciona */
.bpo-process .core-process__grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.bpo-process .core-heading h2 {
  max-width: 800px;
  margin-inline: auto;
}

.bpo-process .process-card__body {
  padding: 16px;
}

.bpo-process .process-card h3 {
  font-size: 18px;
  line-height: 1.35;
}

.bpo-process .process-card__footer {
  align-items: center;
  justify-content: space-between;
  padding: 0;
}

.bpo-process .process-card__footer > img {
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  padding: 16px;
  object-fit: contain;
}

.bpo-process .process-card__footer > i {
  width: 128px;
  height: 60px;
  flex: 0 0 128px;
  margin-right: 12px;
  background: url("assets/figma/Pattern-rodape-card-2.svg") right center / 128px 60px no-repeat;
}

/* 03 — Vantagens */
.bpo-advantages .core-advantage__icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.bpo-advantages .core-advantage:nth-child(1) > img {
  object-position: center 48%;
}

.bpo-advantages .core-advantage:nth-child(2) > img {
  object-position: center 42%;
}

.bpo-advantages .core-advantage:nth-child(3) > img {
  object-position: center 48%;
}

.bpo-advantages .core-advantage:nth-child(4) > img {
  object-position: center 43%;
}

/* 04 — Benefícios */
.bpo-benefits {
  position: relative;
  height: 800px;
  padding: 40px 0;
  color: var(--frost);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.58)),
    url("assets/pce-bpo/images/benefits-desktop@2x.jpg") center / cover no-repeat;
}

.bpo-benefits__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 40px;
}

.bpo-benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.bpo-benefits article {
  position: relative;
  height: 232px;
  overflow: hidden;
  padding: 72px 16px 22px;
  color: var(--black);
  background: var(--bpo-card);
}

.bpo-benefits__icon {
  position: absolute;
  top: 16px;
  left: 16px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

.bpo-benefits__icon img {
  width: 24px;
  height: 24px;
}

.bpo-benefits article h3 {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  font-size: 20px;
  line-height: 1.35;
}

.bpo-benefits article p {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: var(--graphite);
  font-size: 14px;
  line-height: 1.45;
}

.bpo-benefits article > i {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 96px;
  height: 18px;
  background: url("assets/pce-bpo/icons/beneficio-pattern.svg") right center / contain no-repeat;
  transform: scaleX(-1);
}

/* CTA própria da BPO */
.bpo-contact .contact-copy > div {
  margin-top: 104px;
}

.bpo-contact .contact-copy h2 {
  max-width: 570px;
}

.bpo-contact .contact-art__dots {
  content: url("assets/pce-bpo/icons/cta-dots-desktop.svg");
}

.bpo-contact .contact-art__back {
  content: url("assets/pce-bpo/images/cta-back-desktop@2x.png");
}

.bpo-contact .contact-art__front {
  content: url("assets/pce-bpo/images/cta-front-desktop@2x.png");
}

@media (max-width: 1199px) and (min-width: 768px) {
  .bpo-process .process-card h3 {
    font-size: 15px;
  }

  .bpo-process .process-card p {
    font-size: 10px;
  }

  .bpo-process .process-card__footer > i {
    width: 90px;
    flex-basis: 90px;
    background-size: 90px 60px;
  }
}

@media (max-width: 767px) {
  /* 01 — Hero */
  .bpo-hero {
    height: 780px;
    min-height: 780px;
  }

  .bpo-hero .core-hero__background {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.03) 34%, rgba(0, 0, 0, 0.91) 100%),
      url("assets/pce-bpo/images/hero-mobile@2x.jpg") center / cover no-repeat;
  }

  .bpo-hero .core-product-label i {
    background-image: url("assets/pce-bpo/icons/hero-pattern-mobile.svg");
  }

  /* 02 — Como funciona */
  .bpo-process {
    height: 2055px;
    min-height: 2055px;
    background:
      radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.98), transparent 30%),
      linear-gradient(180deg, var(--mist) 0 92%, var(--white) 92%);
  }

  .bpo-process .core-process__grid {
    grid-template-columns: 1fr;
  }

  .bpo-process .process-card,
  .bpo-process .process-card:nth-child(2),
  .bpo-process .process-card:nth-child(3) {
    min-height: 275px;
  }

  .bpo-process .process-card:nth-child(1),
  .bpo-process .process-card:nth-child(2),
  .bpo-process .process-card:nth-child(3),
  .bpo-process .process-card:nth-child(5) {
    min-height: 303px;
  }

  .bpo-process .process-card__footer {
    margin-top: auto;
  }

  .bpo-process .process-card h3 {
    font-size: 20px;
  }

  .bpo-process .process-card p {
    font-size: 14px;
  }

  .bpo-process .process-card__footer > i {
    margin-right: 12px;
  }

  /* 03 — Vantagens */
  .bpo-advantages .core-advantage > img {
    object-position: center;
  }

  /* 04 — Benefícios */
  .bpo-benefits {
    height: auto;
    min-height: 1086px;
    padding: 360px 16px 16px;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.04) 10%, rgba(0, 0, 0, 0.76) 50%, rgba(0, 0, 0, 0.88) 100%),
      url("assets/pce-bpo/images/benefits-mobile@2x.png") top center / cover no-repeat;
  }

  .bpo-benefits .core-container {
    width: 100%;
  }

  .bpo-benefits__inner {
    justify-content: flex-start;
    gap: 0;
  }

  .bpo-benefits .section-rule {
    flex: 0 0 auto;
  }

  .bpo-benefits__grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 28px;
  }

  .bpo-benefits article {
    height: auto;
    min-height: 148px;
    padding: 56px 16px 24px;
  }

  .bpo-benefits__icon {
    top: 16px;
    left: 16px;
    width: 24px;
    height: 24px;
  }

  .bpo-benefits__icon img {
    width: 24px;
    height: 24px;
  }

  .bpo-benefits article h3 {
    font-size: 16px;
  }

  .bpo-benefits article p {
    margin-top: 8px;
    font-size: 14px;
  }

  .bpo-benefits article > i {
    right: 16px;
    top: 16px;
    width: 72px;
    height: 14px;
  }

  /* CTA */
  .bpo-contact {
    min-height: 852px;
  }

  .bpo-contact .contact-copy {
    text-align: center;
  }

  .bpo-contact .contact-copy > .corner-tag {
    margin-inline: auto;
  }

  .bpo-contact .contact-copy > div {
    margin-top: 40px;
  }

  .bpo-contact .contact-copy h2 {
    max-width: 100%;
  }

  .bpo-contact .contact-art__dots {
    content: url("assets/pce-bpo/icons/cta-dots-mobile.svg");
  }

  .bpo-contact .contact-art__back {
    content: url("assets/pce-bpo/images/cta-back-mobile@2x.png");
  }

  .bpo-contact .contact-art__front {
    content: url("assets/pce-bpo/images/cta-front-mobile@2x.png");
  }
}
