/* JumperFour — estilos exclusivos: implantacao-de-projetos. Carregado depois de global.css. */

/* =========================================================
   Página Implantação de projetos (frame "Implantação de projetos", 1920px)
   ========================================================= */
/* ---------- Hero ---------- */
.project-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--c-primary) url("../images/nosso-time-hero-fundo.webp") center / cover no-repeat;
  color: var(--c-light);
}

/* Forma verde no canto (a mesma da Quem somos): 654px no quadro de 1920 */
.project-hero__shape {
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  width: min(34.06vw, 654px);
  height: auto;
  pointer-events: none;
}

.project-hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-60);
  padding-block: var(--section-y);
}

.project-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  /* a foto acompanha a largura da tela: o texto termina antes do rosto da engenheira */
  max-width: min(880px, calc(47.67vw - 30px));
}

.project-hero__title {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: var(--lh);
}

.project-hero__title .heading__line {
  display: inline;
}

.project-hero__text {
  max-width: 800px;   /* no layout a última linha começa em "desempenho" */
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: var(--lh);
}

/* Seta de vidro e foto: camadas atrás do texto e do painel, presas ao container */
.project-hero__visual {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.project-hero__arrow {
  position: absolute;
  top: min(2.5vw, 48px);
  right: min(12.92vw, 248px);
  width: min(33.96vw, 652px);   /* 652 / 1920 */
  height: auto;
}

.project-hero__photo {
  position: absolute;
  right: min(4.6vw, 88px);
  bottom: 0;
  width: min(52.64vw, 1011px);  /* 1011 / 1920; a base é cortada pelo hero */
  height: auto;
}

/* Etapas no painel branco (reaproveita .values da Quem somos) */
.values--phases {
  min-height: 238px;
}

.values--phases .value {
  justify-content: center;
  padding: 30px clamp(20px, 1.5625vw, 30px) 30px clamp(24px, 3.125vw, 60px);
}

.values--phases .value__text {
  max-width: 300px;
}

/* quebras do layout: "Instalação e integração" cabe, "Definição da arquitetura" não */
/* ---------- Gestão transparente ---------- */
.highlights {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 40px var(--space-60);
}

.highlight {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.highlight__num {
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: var(--lh);
  color: var(--c-accent);
}

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

.highlight__title {
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: var(--lh);
}

/* ---------- Soluções completas de automação (abas) ---------- */
.solutions-tabs {
  overflow: hidden;
  isolation: isolate;
  background: var(--c-light) url("../images/implantacao-abas-fundo.webp") center / cover no-repeat;
}

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

.solution-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px var(--space-60);
}

.solution-tabs__tab {
  min-height: 50px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: var(--c-accent);
  color: var(--c-primary);
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: var(--lh);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.solution-tabs__tab[aria-selected="true"] {
  background: var(--c-primary);
  color: var(--c-light);
}

/* Sem JavaScript as abas não funcionam: a lista some e todos os painéis ficam visíveis */
.no-js .solution-tabs__list {
  display: none;
}

/* Antes de o script iniciar, só o primeiro painel aparece (evita salto de layout) */
.js .solution-tabs:not(.is-ready) .solution-panel + .solution-panel {
  display: none;
}

.solution-tabs__panels {
  --shape-w: min(44.84vw, 861px);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-60);
}

/* Forma verde atrás do card (a mesma da Nosso time): a ponta aparece 37px acima do card
   e o corpo sai pela direita e pela base da seção */
.solution-tabs__panels::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: calc(var(--shape-w) * -.0434);
  left: calc(100% - var(--shape-w) * .8502);
  width: var(--shape-w);
  aspect-ratio: 390 / 422;
  background: url("../images/nosso-time-forma.svg") 0 0 / 100% 100% no-repeat;
  pointer-events: none;
}

.solution-panel {
  --spot: rgb(166 225 125 / .16);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-60);
  padding: clamp(20px, 3.125vw, 60px);
  border-radius: var(--radius-card);
  background: var(--c-white);
}

.solution-panel[hidden] {
  display: none;
}

.solution-panel.is-entering {
  animation: panel-swap .5s var(--ease) both;
}

/* A foto acompanha a altura do texto ao lado (no layout, a proporção de cada aba) */
.solution-panel__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: #161819;
}

.solution-panel__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}

.solution-panel__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  min-width: 0;
}

.solution-panel__title {
  font-size: var(--fs-title);
  font-weight: 600;
  line-height: var(--lh);
}

.solution-panel__rule {
  margin-top: -1px;      /* exceção: no layout a divisória fica 1px acima do ritmo de 30px */
  background: #949ba0;   /* divisória do card branco, como no layout */
}

.solution-panel__text {
  font-weight: 300;
  line-height: var(--lh);
}

/* fundo branco: centro do feixe em verde */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  color: var(--c-slate);
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding-top: 2px;      /* centraliza a 1ª linha no ícone de 24px */
  font-weight: 300;
  line-height: var(--lh);
}

@media (hover: hover) and (pointer: fine) {
  .solution-tabs__tab[aria-selected="false"]:hover {
    background: #bdea9d;
  }
  .solution-panel:hover .solution-panel__media img {
    transform: scale(1.06);
  }
}

@media (min-width: 1700px) {
  /* ---------- Implantação de projetos: responsivo (adaptação inferida) ---------- */
  /* Quebras do título como no layout; abaixo disso o texto flui para não encostar na foto */
  .project-hero__title .heading__line {
    display: block;
  }
}

@media (max-width: 1499px) {
  /* 5 colunas ficam estreitas para "acompanhamento" em 25px */
  .highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1279px) {
  /* Abaixo de 1280px o painel cobriria os rostos: foto em bloco depois do texto e painel subindo sobre a base dela */
  .project-hero__inner {
    gap: 0; padding-block: 64px 48px;
  }
  .project-hero__content {
    max-width: min(640px, calc(100% - 12vw));
  }
  .project-hero__shape {
    width: 24vw;
  }
  /* A foto vira bloco depois do texto; o painel sobe sobre a base dela (regras de .values) */
  .project-hero__visual {
    position: relative;
    z-index: 0;
    inset: auto;
    margin: 24px calc(var(--gutter) * -1) 0 0;
  }
  .project-hero__photo {
    position: relative;
    right: auto;
    width: min(100%, 680px);
    margin-left: auto;
  }
  .project-hero__arrow {
    top: -6%; right: min(36%, 270px); width: min(56%, 420px);
  }
  .values--phases {
    position: relative;
    min-height: 0;
    margin-top: -96px;   /* exceção: o painel sobrepõe a base da foto, como no desktop */
  }
  .values--phases .value {
    justify-content: flex-start;
  }
}

@media (max-width: 1099px) {
  .solution-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  .solution-panel__media {
    aspect-ratio: 770 / 540;
  }
}

@media (min-width: 720px) and (max-width: 1279px) {
  /* Etapas em 2 x 2 no tablet, com divisórias entre colunas e linhas */
  .values--phases {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .values--phases .value + .value::before {
    content: none;
  }
  .values--phases .value:nth-child(even)::before {
    content: "";
    top: 24px;
    right: auto;
    bottom: 24px;
    left: 0;
    width: 1px;
    height: auto;
  }
  .values--phases .value:nth-child(n + 3)::after {
    content: "";
    position: absolute;
    top: 0;
    right: clamp(24px, 4vw, 40px);
    left: clamp(24px, 4vw, 40px);
    height: 1px;
    background: var(--c-primary);
  }
}

@media (max-width: 899px) {
  .highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  .project-hero__inner {
    padding-block: 48px 40px;
  }
  .project-hero__shape {
    width: 16vw;
  }
  .values--phases {
    margin-top: -64px;
  }
  /* a ponta verde não encosta na 1ª linha do título */
  .solutions-tabs__title .heading__line {
    display: inline;
  }
  /* As cinco abas quebram em linhas: todas ficam visíveis, sem rolagem escondida */
  .solution-tabs__list {
    gap: 10px;
  }
  .solution-tabs__tab {
    min-height: 48px;
    padding: 8px 16px;
    font-size: var(--fs-body);
  }
}

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

@media (max-width: 1279px) {
  .service-hero__title .heading__line {
    display: inline;
  }
}

.js .reveal {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(1.5rem);
  transition:
  opacity var(--motion-reveal) var(--ease-reveal),
  filter var(--motion-reveal) var(--ease-reveal),
  transform var(--motion-reveal) var(--ease-reveal);
  transition-delay: var(--reveal-delay, 0ms);
}
