/* Quem somos — Nossa trajetória */
.history-journey {
  overflow: clip;
  background: #fff;
}

.history-journey-container {
  max-width: 1240px;
}

.history-journey-heading {
  max-width: 950px;
  margin: 0 auto clamp(2.75rem, 5vw, 4.2rem);
  text-align: center;
}

.history-journey-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  margin: 0 0 1rem;
  color: var(--green-dark);
  font-size: .78rem;
  font-weight: 760;
  letter-spacing: .17em;
  line-height: 1.2;
  text-transform: uppercase;
}

.history-journey-eyebrow span {
  width: 2.1rem;
  height: 2px;
  border-radius: 999px;
  background: var(--green);
}

.history-journey-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(3.35rem, 5vw, 4rem);
  font-weight: 750;
  letter-spacing: -.045em;
  line-height: 1.06;
  text-wrap: balance;
}

.history-journey-title-line {
  display: block;
  width: 5.2rem;
  height: 2px;
  margin: 1.1rem auto 1rem;
  border-radius: 999px;
  background: var(--green);
}

.history-journey-heading > p:last-child {
  max-width: 43rem;
  margin: 0 auto;
  color: #5b6f8d;
  font-size: clamp(1.08rem, 1.65vw, 1.3rem);
  line-height: 1.55;
}

.history-journey-list {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-journey-item {
  display: grid;
  min-width: 0;
  grid-template-columns: 8.2rem 2.5rem minmax(0, 1fr);
  align-items: stretch;
  column-gap: 1rem;
}

.history-journey-period {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  color: var(--green-dark);
  font-size: clamp(2.4rem, 3.5vw, 2.85rem);
  font-weight: 780;
  letter-spacing: -.03em;
  line-height: 1;
}

.history-journey-period-years {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.history-journey-period-years strong {
  font-size: inherit;
  line-height: .95;
}

.history-journey-period-years small {
  margin-top: .18rem;
  font-size: 1.35rem;
  font-weight: 780;
  letter-spacing: .02em;
}

.history-journey-period-today {
  font-size: clamp(2.15rem, 3.3vw, 2.65rem);
}

.history-journey-rail {
  position: relative;
  display: grid;
  place-items: center;
}

.history-journey-rail::before {
  position: absolute;
  z-index: 0;
  top: -.75rem;
  bottom: -.75rem;
  left: 50%;
  width: 1px;
  background: rgb(3 145 66 / 62%);
  content: "";
  transform: translateX(-50%);
}

.history-journey-item:first-child .history-journey-rail::before {
  top: 50%;
}

.history-journey-item:last-child .history-journey-rail::before {
  bottom: 50%;
}

.history-journey-rail > span {
  position: relative;
  z-index: 1;
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid var(--green-dark);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px #fff;
}

.history-journey-rail > span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: .92rem;
  height: .92rem;
  border-radius: 50%;
  background: var(--green);
  content: "";
  transform: translate(-50%, -50%);
}

.history-journey-card {
  display: grid;
  min-width: 0;
  min-height: 10.1rem;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1.65rem;
  padding: 1.75rem 2rem;
  border: 1px solid rgb(20 90 60 / 12%);
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 10px 30px rgb(15 35 30 / 4%);
  transition:
    border-color 360ms cubic-bezier(.22, 1, .36, 1),
    box-shadow 360ms cubic-bezier(.22, 1, .36, 1),
    transform 360ms cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.history-journey-item-current .history-journey-card {
  border-color: rgb(0 140 80 / 35%);
  background: rgb(0 140 80 / 2.5%);
}

.history-journey-icon {
  display: grid;
  width: 5.25rem;
  height: 5.25rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #edf7f1;
}

.history-journey-icon svg {
  width: 2.8rem;
  height: 2.8rem;
  fill: none;
  stroke: var(--green-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.history-journey-icon img {
  display: block;
  width: 3.65rem;
  height: 3.65rem;
  max-width: none;
  object-fit: contain;
  object-position: center;
}

.history-journey-icon .history-journey-icon-logo {
  width: 4.5rem;
  height: 3rem;
}

.history-journey-card h3 {
  margin: 0 0 .55rem;
  color: #0d1b36;
  font-size: clamp(1.18rem, 1.7vw, 1.36rem);
  font-weight: 740;
  line-height: 1.3;
}

.history-journey-card p {
  max-width: 48rem;
  margin: 0;
  color: #667795;
  font-size: clamp(1rem, 1.35vw, 1.08rem);
  line-height: 1.58;
}

@media (hover: hover) and (pointer: fine) {
  .history-journey-card:hover {
    border-color: rgb(3 145 66 / 28%);
    box-shadow: 0 18px 40px rgb(15 35 30 / 7%);
    transform: translateY(-3px);
  }
}

.history-journey-message {
  display: grid;
  min-width: 0;
  grid-template-columns: auto 1px minmax(0, 1fr);
  align-items: center;
  gap: 1.75rem;
  margin-top: 2rem;
  padding: 1.65rem 2.2rem;
  border: 1px solid rgb(3 145 66 / 29%);
  border-radius: 1.15rem;
  background: #fff;
}

.history-journey-message-icon {
  display: grid;
  width: 4.4rem;
  height: 4.4rem;
  place-items: center;
}

.history-journey-message-icon svg {
  width: 3.65rem;
  height: 3.65rem;
  fill: none;
  stroke: var(--green-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.55;
}

.history-journey-message-divider {
  width: 1px;
  height: 4rem;
  background: rgb(82 101 124 / 20%);
}

.history-journey-message p {
  margin: 0;
  color: #0d1b36;
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  font-weight: 700;
  line-height: 1.45;
}

.history-journey-message p strong,
.history-journey-message p span {
  display: block;
}

.history-journey-message p span {
  color: var(--green-dark);
  font-weight: 780;
}

@media (max-width: 900px) {
  .history-journey-heading h2 {
    font-size: clamp(2.65rem, 7vw, 3.35rem);
  }

  .history-journey-item {
    grid-template-columns: 6.4rem 2.25rem minmax(0, 1fr);
    column-gap: .75rem;
  }

  .history-journey-period {
    font-size: 2.2rem;
  }

  .history-journey-period-years small {
    font-size: 1.1rem;
  }

  .history-journey-period-today {
    font-size: 2rem;
  }

  .history-journey-card {
    min-height: 9rem;
    gap: 1.2rem;
    padding: 1.45rem;
  }

  .history-journey-icon {
    width: 4.25rem;
    height: 4.25rem;
  }

  .history-journey-icon svg {
    width: 2.25rem;
    height: 2.25rem;
  }

  .history-journey-icon img {
    width: 3rem;
    height: 3rem;
  }

  .history-journey-icon .history-journey-icon-logo {
    width: 3.65rem;
    height: 2.45rem;
  }
}

@media (max-width: 639px) {
  .history-journey {
    padding-block: 4rem;
  }

  .history-journey-heading {
    margin-bottom: 2.75rem;
  }

  .history-journey-eyebrow {
    font-size: .72rem;
  }

  .history-journey-heading h2 {
    font-size: clamp(2.25rem, 10vw, 2.6rem);
    line-height: 1.08;
  }

  .history-journey-heading > p:last-child {
    font-size: 1.02rem;
  }

  .history-journey-heading > p:last-child br {
    display: none;
  }

  .history-journey-list {
    gap: 2rem;
  }

  .history-journey-item {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: start;
    column-gap: .85rem;
    row-gap: .85rem;
  }

  .history-journey-period,
  .history-journey-period-years {
    grid-column: 2;
    grid-row: 1;
    min-height: 2.25rem;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: .5rem;
    font-size: 2rem;
  }

  .history-journey-period-years small {
    margin: 0;
    font-size: 1rem;
  }

  .history-journey-period-today {
    font-size: 1.8rem;
  }

  .history-journey-rail {
    grid-column: 1;
    grid-row: 1 / span 2;
    align-self: stretch;
    place-items: start center;
    padding-top: .1rem;
  }

  .history-journey-rail::before,
  .history-journey-item:first-child .history-journey-rail::before,
  .history-journey-item:last-child .history-journey-rail::before {
    top: 1.1rem;
    bottom: -2rem;
  }

  .history-journey-item:last-child .history-journey-rail::before {
    display: none;
  }

  .history-journey-rail > span {
    width: 1.9rem;
    height: 1.9rem;
    box-shadow: 0 0 0 4px #fff;
  }

  .history-journey-rail > span::after {
    width: .72rem;
    height: .72rem;
  }

  .history-journey-card {
    grid-column: 1 / -1;
    grid-row: 2;
    min-height: 0;
    margin-left: 3.1rem;
  }

  .history-journey-message {
    grid-template-columns: minmax(0, 1fr);
    gap: .8rem;
    margin-top: 2.25rem;
    padding: 1.5rem;
    text-align: center;
  }

  .history-journey-message-icon {
    width: 3.8rem;
    height: 3.8rem;
    margin-inline: auto;
  }

  .history-journey-message-icon svg {
    width: 3.1rem;
    height: 3.1rem;
  }

  .history-journey-message-divider {
    width: 4rem;
    height: 1px;
    margin-inline: auto;
  }
}

@media (max-width: 479px) {
  .history-journey-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-left: 2.6rem;
    padding: 1.35rem;
  }

  .history-journey-icon {
    width: 4rem;
    height: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .history-journey-card {
    transition-duration: .01ms !important;
  }
}
