/* JumperFour — estilos exclusivos: quem-somos. Carregado depois de global.css. */

@media (hover: hover) and (pointer: fine) {
  .reason:hover .reason__media img {
    transform: scale(1.06);
  }
}

/* exceção: nesta página a divisória fica 1px acima do ritmo de 60px */
/* ---------- Hero ---------- */
.about-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--c-primary) url("../images/quem-somos-hero-fundo.webp") center / cover no-repeat;
  color: var(--c-light);
}

/* Forma verde e foto: camadas de fundo no desktop, bloco após o texto em telas menores */
.about-hero__visual {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.about-hero__shape {
  position: absolute;
  top: 0;
  right: 0;
  width: min(36.2vw, 695px);   /* 695 / 1920 */
  height: auto;
  pointer-events: none;
}

.about-hero__inner {
  display: flex;
  flex-direction: column;
  gap: 117px;
  /* a foto fica ancorada na base: a altura mínima mantém as cabeças dentro do hero */
  min-height: calc(min(55.26vw, 1061px) * 1143 / 1061 + 32px);
  padding-block: 180px 60px;
}

.about-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
  max-width: min(740px, calc(46vw + 10px)); /* abaixo de 1600px o texto não invade a foto */
  padding-left: 10px;   /* no layout o texto do hero começa 10px depois da margem do painel */
}

.about-hero__tagline {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: var(--lh);
}

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

.about-hero__text {
  display: flex;
  flex-direction: column;
  gap: 30px;
  font-size: var(--fs-lead);
  font-weight: 300;
  line-height: var(--lh);
}

.about-hero__photo {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(55.26vw, 1061px);  /* 1061 / 1920 */
  height: auto;
}

.value__label {
  font-size: var(--fs-lead);
  font-weight: 400;
  line-height: var(--lh);
  color: var(--c-slate);
}

/* ---------- Por que a JumperFour ---------- */
.reasons {
  overflow: hidden;
}

.reasons__shape {
  position: absolute;
  top: 351px;
  left: calc(50% - 149px);   /* x 811 no quadro de 1920 */
  width: 971px;
  max-width: none;
  height: auto;
  pointer-events: none;
}

.reasons__list {
  display: flex;
  gap: var(--space-60);
}

.reason {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 30px;
  min-width: 0;
  padding: 30px;
  background: var(--c-slate);
  border-radius: var(--radius-card);
}

/* Foto com blend "difference" sobre #1E1E1E, como no layout */
.reason__media {
  position: relative;
  display: flex;
  align-items: flex-end;
  aspect-ratio: 1420 / 1500;   /* 473,33 × 500 */
  padding: 30px;
  overflow: hidden;
  background: #1e1e1e;
  border-radius: var(--radius-card);
  isolation: isolate;
}

.reason__media img {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: difference;
  opacity: .38;
  transition: transform .8s var(--ease);
}

.reason__title {
  max-width: 320px;
  font-size: clamp(1.5rem, 3.625vw - 1.1875rem, 2.4375rem); /* 39px a partir de 1600px; menor para caber na foto em 3 colunas */
  font-weight: 600;
  line-height: var(--lh);
  color: var(--c-accent);
}

.reason__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 54px;
  padding: 0 30px 30px;
}

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

.reason__bar {
  width: 100px;
  height: 6px;
  background: var(--c-accent);
}

/* ---------- Ciclo completo ---------- */
.cycle {
  overflow: hidden;
  background: var(--c-light) url("../images/quem-somos-ciclo-fundo.webp") center / cover no-repeat;
  color: var(--c-primary);
}

.cycle__shape {
  position: absolute;
  bottom: 0;
  left: 0;
  width: min(50vw, 960px);
  height: auto;
  pointer-events: none;
}

.cycle__title {
  max-width: 13.8em;
}

/* ---------- Clientes ---------- */
.clients {
  display: flex;
  flex-direction: column;
  gap: 60px;
  overflow: hidden;
  text-align: center;
}

.clients__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
}

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

.clients__head .lead,
.clients__cta-text {
  color: var(--c-white);
}

/* Faixa centralizada que ultrapassa as bordas da tela */
.logos {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.logos__item {
  flex: none;
  width: 250px;
  height: 100px;
  background: var(--c-light);
  border-radius: var(--radius-card);
}

.clients__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

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

@media (max-width: 1279px) {
  /* 3 colunas ficam estreitas demais: cards empilhados, foto ao lado do texto */
  .reasons__list {
    flex-direction: column;
  }
  .reason {
    flex-direction: row; align-items: center; gap: clamp(24px, 3.125vw, 48px);
  }
  .reason__media {
    flex: 0 0 min(42%, 440px);
  }
  .reason__body {
    flex: 1 1 0; gap: 30px; padding: 0 30px 0 0;
  }
}

@media (max-width: 1099px) {
  .about-hero__inner {
    gap: 0; min-height: 0; padding-block: 64px 48px;
  }
  .about-hero__content {
    max-width: 640px; padding-left: 0;
  }
  .about-hero__visual {
    position: relative;
    z-index: 0;
    inset: auto;
    margin: 24px calc(var(--gutter) * -1) 0 0;
  }
  .about-hero__shape {
    width: 56%;
  }
  .about-hero__photo {
    position: relative; width: min(100%, 600px); margin-left: auto;
  }
  .cycle__shape {
    width: min(70vw, 600px);
  }
}

@media (max-width: 719px) {
  .about-hero__inner {
    padding-block: 48px 40px;
  }
  .reason {
    flex-direction: column; align-items: stretch; padding: 20px; gap: 24px;
  }
  .reason__media {
    flex: none; padding: 24px;
  }
  .reason__body {
    gap: 28px; padding: 0 8px 12px;
  }
  .logos {
    gap: 16px;
  }
  .logos__item {
    width: 160px; height: 64px; border-radius: 18px;
  }
}

.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);
}

.js .reveal.is-visible {
  opacity: 1;
  filter: none;
  transform: none;
}

.reason.glow {
  --spot: rgb(166 225 125 / .12);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1; filter: none; transform: none;
  }
}

/* ---------- WordPress: logos dos clientes (CPT "cliente") ---------- */
/* O layout trazia só os espaços reservados; o logo fica centralizado no card de 250 x 100 */
.logos__item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
}
.logos__item img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}
.logos__name {
  font-weight: 600;
  line-height: var(--lh);
  color: var(--c-primary);
}
