/* Highlights */

#empresa-fundo {
  position: relative;
  overflow: hidden;
  background-color: var(--color-dark-blue);
}

/* Grafismo NAVI entre Highlights e História (somente desktop) */
#empresa-fundo .grafismo {
  position: absolute;
  top: 327px;
  left: 50%;
  width: 100%;
  min-width: 1920px;
  aspect-ratio: 1920 / 788;
  transform: translateX(-50%);
  pointer-events: none;
}

#empresa-fundo .grafismo-navi {
  position: absolute;
  top: 3px;
  left: 0;
  width: 100%;
  height: auto;
}

#empresa-fundo .grafismo-destaque {
  position: absolute;
  top: 91.69px;
  left: 35.24%;
  width: 19.43%;
  height: auto;
}

#empresa-fundo .grafismo-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(11, 18, 41, 0.96);
}

#highlights,
#historia {
  position: relative;
  z-index: 1;
  padding: 70px 0 40px;
  text-align: center;
}

#historia {
  padding-bottom: 110px;
}

@media (min-width: 768px) {
  #highlights {
    padding: 90px 0 60px;
  }

  #historia {
    padding: 50px 0 130px;
  }
}

#highlights .title,
#historia .title {
  font-size: 1.75rem;
  font-weight: 400;
  margin-bottom: 16px;
}

.section-chevron {
  display: block;
  width: 37px;
  height: auto;
  margin: 0 auto 24px;
}

/* Mobile/tablet: slide com scroll horizontal */
.highlights-cards {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 16px;
  margin: 0 -12px;
  padding: 0 12px 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.highlights-cards::-webkit-scrollbar {
  display: none;
}

.highlight-item {
  display: flex;
  flex: 0 0 78%;
  flex-direction: column;
  scroll-snap-align: center;
}

.highlight-item .connector {
  display: none;
}

.highlight-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  min-height: 386px;
  padding: 30px 20px;
  text-align: left;
  color: var(--color-white);
  background-color: var(--color-dark-blue);
  border: 1px solid var(--color-blue);
  border-radius: 6px;
}

.highlight-card .icon {
  flex-shrink: 0;
  height: 52px;
  width: auto;
}

.highlight-card h4 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.highlight-card p {
  margin: 0;
  font-size: 1rem;
  font-weight: 300;
}

@media (min-width: 576px) {
  .highlight-item {
    flex-basis: 45%;
  }
}

@media (min-width: 1200px) {
  .highlights-cards {
    position: relative;
    gap: 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    justify-content: space-between;
  }

  .highlight-item {
    flex: 0 0 19%;
  }

  /* Linha horizontal passando pelo centro dos pontos dos conectores */
  .highlights-cards::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--color-blue);
  }

  .highlight-item .connector {
    position: relative;
    display: block;
    align-self: center;
    height: 49px;
  }
}

/* Timeline (História) */

.tl {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tl-track {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tl-track::-webkit-scrollbar {
  display: none;
}

.tl-list {
  position: relative;
  display: flex;
  min-width: 100%;
  width: max-content;
}

.tl-list::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-white);
  transform: translateY(-50%);
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 28px minmax(0, 1fr);
  flex: 1 0 170px;
  height: 560px;
}

.tl-half {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* column-reverse: flex-start encosta o conteúdo embaixo, junto da linha */
.tl-top {
  flex-direction: column-reverse;
  justify-content: flex-start;
}

.tl-bottom {
  justify-content: flex-start;
}

.tl-dot {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-blue);
  box-shadow: 0 0 0 5px var(--color-dark-blue);
}

/* Arco que liga a haste à linha, em volta do ponto (peça do Figma) */
.tl-dot::before {
  content: "";
  position: absolute;
  top: -5.4px;
  left: -7px;
  width: 21px;
  height: 21px;
  background: url("../../img/history/dot_arc.svg") no-repeat center / 100% 100%;
}

/* Datas abaixo da linha: arco espelhado na vertical */
.tl-item.down .tl-dot::before {
  top: auto;
  bottom: -5.4px;
  transform: scaleY(-1);
}

.tl-stem {
  display: block;
  width: 2px;
  height: 65px;
  background-color: var(--color-white);
}

.tl-year {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  font-size: 1.375rem;
  color: var(--color-light-blue);
  border: 2px solid var(--color-white);
  border-radius: 50%;
  background-color: var(--color-dark-blue);
}

.tl-text {
  max-width: 190px;
  margin: 14px 0;
  font-size: 1.0625rem;
  line-height: 1.31;
  color: var(--color-white);
}

.tl-text p {
  margin: 0;
}

.tl-arrow {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background-color: var(--color-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14' fill='none' stroke='%230b1229' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 7h10M8 3l4 4-4 4'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: opacity 0.2s;
}

.tl-prev {
  transform: rotate(180deg);
}

/* Setas só aparecem quando há para onde rolar */
.tl-arrow.hidden {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 767px) {
  .tl {
    margin: 0 -16px;
    padding: 0 16px;
  }

  .tl-arrow {
    display: none;
  }
}
