/* JumperFour — estilos exclusivos: manutencao-e-suporte. Carregado depois de global.css. */

.service-hero__arrow {
  position: absolute;
  z-index: -1;
  height: auto;
  pointer-events: none;
}

.service-hero__arrow {
  top: min(2.66vw, 51px);
  right: min(15.73vw, 302px);
  width: min(24.69vw, 474px);   /* 474 / 1920 */
}

.service-hero__inner {
  display: flex;
  flex-direction: column;
  gap: calc(var(--space-60) * 2);
  padding-block: var(--section-y);
}

.service-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  max-width: 880px;
}

/* Serviços em 6 colunas: ícone, título, traço verde e texto */
.service-features {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 48px var(--space-60);
}

.service-feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.service-feature__title {
  margin-top: 16px;
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: var(--lh);
}

.service-feature__bar {
  width: 100px;
  height: 3px;
  margin: 10px 0 16px;
  border-radius: 2px;
  background: var(--c-accent);
}

.service-feature__text {
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: var(--lh);
}

/* ---------- Flexibilidade ---------- */
.modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-60);
}

/* A foto acompanha a altura da lista ao lado */
.modes__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #161819;
}

.modes__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modes__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-60);
}

.mode {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}

.mode__body {
  flex: 1 1 0; min-width: 0;
}

.mode__title {
  min-height: 45px;     /* a divisória fica na altura da base do ícone */
  padding-top: 2px;
  border-bottom: 1px solid var(--c-muted);
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: var(--lh);
}

.mode__text {
  margin-top: 15px;
  font-weight: 300;
  line-height: var(--lh);
}

/* ---------- Gestão estruturada ---------- */
.structure {
  overflow: hidden; isolation: isolate;
}

.rule--subtle {
  background: #17323b;
}

/* divisória discreta sobre o azul, como no layout */
.structure__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-60);
}

.structure__cards {
  --shape-w: min(42.29vw, 812px);
  position: relative;
  align-self: stretch;
}

/* Forma verde (a mesma da Nosso time): a ponta aparece 71px acima dos cards e o corpo sai pela direita e pela base */
.structure__cards::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc(var(--shape-w) * -.0871);
  left: calc(100% - var(--shape-w) * .8133);
  width: var(--shape-w);
  aspect-ratio: 390 / 422;
  background: url("../images/nosso-time-forma.svg") 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}

/* Cards de ferramentas: reaproveitam .step da Quem somos, com imagem 3D no lugar do ícone */
.tool {
  min-height: clamp(380px, 26.04vw, 500px); color: var(--c-primary);
}

.tool .step__top {
  gap: 16px;
}

.tool__img {
  width: auto; height: 150px;
}

.tool .step__text {
  border-top-color: #949ba0; color: var(--c-slate);
}

@media (max-width: 1499px) {
  /* ---------- Manutenção e suporte: responsivo (adaptação inferida) ---------- */
  .service-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .service-feature__text {
    max-width: 400px;
  }
}

@media (max-width: 1279px) {
  .service-hero__content {
    max-width: min(720px, calc(100% - 22vw));
  }
}

@media (max-width: 1099px) {
  .modes {
    grid-template-columns: minmax(0, 1fr);
  }
  .modes__media {
    aspect-ratio: 830 / 534;
  }
}

@media (max-width: 719px) {
  .service-hero__inner {
    padding-block: 96px 56px;
  }
  .service-hero__content {
    max-width: 100%;
  }
  .service-hero__arrow {
    top: 16px; right: -4vw; width: 40vw;
  }
  .service-features {
    grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px;
  }
  .mode {
    gap: 20px;
  }
}

@media (max-width: 479px) {
  .service-features {
    grid-template-columns: minmax(0, 1fr);
  }
}

.service-features .service-feature {
  animation: panel-in .7s var(--ease) both;
}

.service-features .service-feature:nth-child(1) {
  animation-delay: .9s;
}

.service-features .service-feature:nth-child(2) {
  animation-delay: 1.02s;
}

.service-features .service-feature:nth-child(3) {
  animation-delay: 1.14s;
}

.service-features .service-feature:nth-child(4) {
  animation-delay: 1.26s;
}

.service-features .service-feature:nth-child(5) {
  animation-delay: 1.38s;
}

.service-features .service-feature:nth-child(6) {
  animation-delay: 1.5s;
}

@media (prefers-reduced-motion: reduce) {
  .service-features .service-feature {
    animation: none;
  }
}
