/* =====================================================
   Home — O QUE FAZEMOS (carrossel 350×500, hover 380×543, faixas vermelhas)
   ===================================================== */

.home-oque-fazemos {
  padding: 3rem 0 3.75rem;
  background-color: #fff;
  /* Setas ficam dentro do .swiper (inset), fora do fluxo com offsets negativos — body tem overflow-x: hidden */
  overflow-x: visible;
  max-width: 100%;
}

.home-oque-fazemos .container {
  max-width: 1625px;
  position: relative;
  overflow: visible;
}

.home-oque-fazemos__title {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 60px;
  line-height: 90px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #fc2e36;
  margin: 0 0 2rem;
  max-width: 605px;
}

.home-oque-fazemos__row {
  position: relative;
  margin-bottom: 2.75rem;
}

/* Idênticas às setas de Conteúdos: posicionadas sobre .home-oque-fazemos__row (position:relative) */
.home-oque-fazemos__nav {
  position: absolute;
  top: 250px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  transform: translateY(-50%);
}

.home-oque-fazemos__nav:hover,
.home-oque-fazemos__nav:focus-visible {
  opacity: 0.85;
}

.home-oque-fazemos__nav:focus-visible {
  outline: 2px solid #291212;
  outline-offset: 3px;
}

.home-oque-fazemos__nav.swiper-button-disabled {
  opacity: 0.2;
  cursor: default;
  pointer-events: none;
}

.home-oque-fazemos__nav--prev {
  left: 0;
}

.home-oque-fazemos__nav--next {
  right: 0;
}

@media (min-width: 1200px) {
  .home-oque-fazemos__nav--prev {
    left: -48px;
  }

  .home-oque-fazemos__nav--next {
    right: -48px;
  }
}

/* Anula .swiper { height: 100% } do hero.css */
.swiper-oque-fazemos {
  width: 100%;
  height: auto;
  min-width: 0;
  overflow: hidden;
  padding: 22px 0;
  margin: 0;
  box-sizing: border-box;
}

.swiper-oque-fazemos .swiper-wrapper {
  align-items: center;
}

.swiper-oque-fazemos .swiper-slide {
  flex-shrink: 0;
  /* Sem max-width: o Swiper calcula (containerW - 3×gap) / 4 e preenche exatamente sem deixar o 5.º card aparecer */
  height: auto;
  box-sizing: border-box;
}

/* Card */
.home-oque-fazemos-card {
  display: block;
  width: 100%;
  text-decoration: none !important;
  color: inherit;
  outline: none;
}

.home-oque-fazemos-card__inner {
  position: relative;
  display: block;
  width: 100%;
  /* max-width 350px retirado do slide — inner preenche toda a célula calculada pelo Swiper */
  height: 500px;
  margin: 0;
  transform-origin: center center;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
  box-shadow: none;
}

.home-oque-fazemos-card__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

.home-oque-fazemos__nav-icon {
  display: block;
  flex-shrink: 0;
}

.home-oque-fazemos__nav-icon.is-prev {
  transform: matrix(-1, 0, 0, 1, 0, 0);
}

/* Hover / foco: ~380×543 + sombra M3 */
@media (hover: hover) {
  .home-oque-fazemos-card:hover,
  .home-oque-fazemos-card:focus-visible {
    position: relative;
    z-index: 5;
  }

  .home-oque-fazemos-card:hover .home-oque-fazemos-card__inner,
  .home-oque-fazemos-card:focus-visible .home-oque-fazemos-card__inner {
    transform: scale(calc(380 / 350));
    box-shadow: 0 4px 8px 3px rgba(0, 0, 0, 0.15), 0 1px 3px rgba(0, 0, 0, 0.3);
  }
}

.home-oque-fazemos-card__labels {
  position: absolute;
  left: 12px;
  bottom: 20px;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2;
  pointer-events: none;
}

.home-oque-fazemos-card__bar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 0 10px;
  box-sizing: border-box;
  background-color: #fc2e36;
}

.home-oque-fazemos-card__bar--1 {
  position: relative;
  z-index: 2;
  margin-bottom: -5px;
}

.home-oque-fazemos-card__bar--2 {
  position: relative;
  z-index: 1;
}

.home-oque-fazemos-card__bar-text {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 40px;
  text-transform: uppercase;
  color: #f5f2f2;
}

.home-oque-fazemos__cta-wrap {
  margin: 0;
  text-align: center;
}

.home-oque-fazemos__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 311px;
  min-height: 79px;
  padding: 10px 1.5rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 31px;
  text-align: center;
  text-transform: capitalize;
  text-decoration: none !important;
  color: #291212 !important;
  background-color: #f5f2f2;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.home-oque-fazemos__cta:hover,
.home-oque-fazemos__cta:focus-visible {
  background-color: #e8e4e4;
  color: #291212 !important;
}

.home-oque-fazemos__cta:focus-visible {
  outline: 2px solid #291212;
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .home-oque-fazemos {
    padding: 2.5rem 0 2.25rem;
  }

  .home-oque-fazemos__title {
    font-size: clamp(2rem, 9vw, 40px);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: none;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .home-oque-fazemos__nav {
    top: min(38vw, 200px);
  }

  .home-oque-fazemos__nav--prev {
    left: 4px;
  }

  .home-oque-fazemos__nav--next {
    right: 4px;
  }

  .home-oque-fazemos-card__inner {
    height: min(500px, 135vw);
    max-height: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .home-oque-fazemos-card__bar-text {
    font-size: clamp(20px, 5vw, 30px);
    line-height: 1.25;
  }

  .home-oque-fazemos__cta {
    min-width: 0;
    width: 100%;
    max-width: 311px;
    font-size: 18px;
    line-height: 1.3;
    min-height: 56px;
  }
}
