/* ============================================================
   Trajetória — pessoal e profissional
   assets/css/home-5/sections/trajetoria.css
   ============================================================ */

.trajetoria-section {
  position: relative;
  z-index: 1;
}

.trajetoria-section__header {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.trajetoria-section__header .sec-text {
  max-width: 620px;
}

/* ---------- Tab wrapper (pill container) ---------- */
.traj-tabs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0 auto 52px;
  background: #fff;
  border: 1.5px solid rgba(11, 17, 30, 0.08);
  border-radius: 100px;
  padding: 5px;
  box-shadow: 0 4px 20px rgba(11, 17, 30, 0.06);
}

.traj-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 100px;
  border: none;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  color: #0b111e;
  cursor: pointer;
  font-family: inherit;
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
  white-space: nowrap;
  touch-action: manipulation;
}

.traj-tab i {
  font-size: 14px;
  opacity: 0.9;
}

.traj-tab.active {
  background: #3facff;
  color: #fff;
  box-shadow: 0 6px 18px rgba(63, 172, 255, 0.35);
}

.traj-tab:hover:not(.active) {
  color: #3facff;
  background: rgba(63, 172, 255, 0.08);
}

.traj-tab:focus-visible {
  outline: 2px solid #3facff;
  outline-offset: 3px;
}

/* ---------- Panels ---------- */
.traj-panel {
  display: none;
  max-width: 840px;
  margin: 0 auto;
}

.traj-panel.active {
  display: block;
  animation: trajFadeIn 280ms ease-out both;
}

.traj-panel[hidden] {
  display: none !important;
}

@keyframes trajFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Timeline container ---------- */
.traj-timeline {
  position: relative;
  padding-left: 58px;
}

/* Linha vertical azul */
.traj-timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(63, 172, 255, 0.15) 0%,
    rgba(63, 172, 255, 0.85) 12%,
    rgba(63, 172, 255, 0.85) 88%,
    rgba(63, 172, 255, 0.15) 100%
  );
  border-radius: 2px;
}

/* ---------- Item ---------- */
.traj-item {
  position: relative;
  padding-bottom: 40px;
}

.traj-item:last-child {
  padding-bottom: 0;
}

/* Colapsado: exibe só os 5 primeiros tópicos */
.traj-timeline.is-collapsed .traj-item:nth-child(n + 6) {
  display: none;
}

.traj-timeline.is-collapsed .traj-item:nth-child(5) {
  padding-bottom: 0;
}

/* ---------- Marcador azul (círculo com ícone + glow) ---------- */
.traj-marker {
  position: absolute;
  left: -58px;
  top: 2px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #3facff;
  border: 3px solid #fff;
  box-shadow:
    0 0 0 6px rgba(63, 172, 255, 0.14),
    0 8px 22px rgba(63, 172, 255, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  z-index: 2;
  flex-shrink: 0;
}

/* ---------- Data ---------- */
.traj-date {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3facff;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* ---------- Título (-2px) ---------- */
.traj-title {
  font-size: clamp(18px, 2.1vw, 26px);
  font-weight: 800;
  color: #0b111e;
  margin: 0 0 10px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

/* ---------- Botão Ver mais / Ver menos ---------- */
.traj-expand-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.traj-expand-wrap[hidden] {
  display: none !important;
}

.traj-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 26px;
  border-radius: 999px;
  border: 1.5px solid #0b111e;
  background: #fff;
  color: #3facff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.traj-expand-btn__icon {
  font-size: 12px;
  transition: transform 0.22s ease;
}

.traj-expand-btn:hover {
  border-color: #3facff;
  background: rgba(63, 172, 255, 0.06);
  color: #2a9ae8;
}

.traj-expand-btn:focus-visible {
  outline: 2px solid #3facff;
  outline-offset: 3px;
}

/* ---------- Descrição ---------- */
.traj-text {
  font-size: 16px;
  line-height: 1.68;
  color: #4f5d73;
  margin: 0;
  max-width: 680px;
}

/* Centraliza tabs */
#trajetoria .container > .traj-tabs {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 991.98px) {
  .trajetoria-section__header {
    text-align: left !important;
  }

  .trajetoria-section__header .sub-title {
    justify-content: flex-start;
  }

  #trajetoria .container > .traj-tabs {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ---------- Responsivo tablet ---------- */
@media (max-width: 767px) {
  .traj-tabs {
    margin-bottom: 40px;
  }

  .traj-timeline {
    padding-left: 50px;
  }

  .traj-marker {
    left: -50px;
    width: 34px;
    height: 34px;
    font-size: 13px;
    border-width: 3px;
  }

  .traj-timeline::before {
    left: 16px;
  }

  .traj-item {
    padding-bottom: 32px;
  }
}

/* ---------- Responsivo mobile ---------- */
@media (max-width: 479px) {
  .traj-tabs {
    display: flex;
    width: 100%;
    border-radius: 14px;
    padding: 4px;
  }

  .traj-tab {
    flex: 1 1 0;
    padding: 9px 12px;
    font-size: 14px;
    gap: 6px;
  }

  .traj-timeline {
    padding-left: 44px;
  }

  .traj-marker {
    left: -44px;
    width: 30px;
    height: 30px;
    font-size: 12px;
    border-width: 2px;
    box-shadow:
      0 0 0 4px rgba(63, 172, 255, 0.14),
      0 6px 16px rgba(63, 172, 255, 0.28);
  }

  .traj-timeline::before {
    left: 14px;
  }

  .traj-title {
    font-size: 17px;
  }

  .traj-expand-btn {
    width: 100%;
    max-width: 320px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .traj-text {
    font-size: 15px;
  }

  .traj-item {
    padding-bottom: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .traj-panel.active {
    animation: none;
  }

  .traj-tab {
    transition: none;
  }
}
