/* ==========================================================================
   QUEM SOMOS - ESTILOS ESPECÍFICOS DA PÁGINA
   ========================================================================== */

:root {
  --qs-green: #83ba3b;
  --qs-dark: #14261c;
  --qs-gray-title: #636466;
  --qs-gray-text: #4e5652;
  --qs-gray-muted: #7a7a7a;
}

/* ==========================================================================
   HERO BANNER - QUEM SOMOS
   ========================================================================== */
.qs-hero {
  background-color: var(--qs-green);
  padding: 40px 20px 45px;
  color: #ffffff;
  text-align: center;
}

.qs-hero-title {
  font-family: 'Source Sans Pro', 'Montserrat', sans-serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 15px;
  color: #ffffff;
}

.qs-hero-desc {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  max-width: 1080px;
  margin: 0 auto;
  color: #ffffff;
  font-weight: 400;
}

/* ==========================================================================
   NOSSA HISTÓRIA - LINHA DO TEMPO (TIMELINE)
   ========================================================================== */
.qs-history {
  padding: 65px 20px 80px;
  background-color: #ffffff;
}

.qs-section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--qs-gray-title);
  text-align: center;
  margin: 0 0 50px;
}

.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Linha central vertical */
.timeline-track {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 4px;
  background-color: var(--qs-green);
  transform: translateX(-50%);
}

.timeline-track::before,
.timeline-track::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 12px;
  height: 12px;
  background-color: var(--qs-green);
  border-radius: 50%;
  transform: translateX(-50%);
}

.timeline-track::before {
  top: -6px;
}

.timeline-track::after {
  bottom: -6px;
}

/* Item da Linha do Tempo */
.timeline-item {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 55px;
  width: 100%;
}

.timeline-item:last-child {
  margin-bottom: 10px;
}

/* Círculo central com ícone */
.timeline-node {
  position: absolute;
  left: 50%;
  top: 12px;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  background-color: #ffffff;
  border: 4px solid var(--qs-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.timeline-node img {
  width: 24px;
  height: 24px;
  display: block;
}

.timeline-node i {
  color: var(--qs-green);
  font-size: 20px;
}

/* Ano */
.timeline-year {
  font-family: 'Source Sans Pro', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--qs-green);
  white-space: nowrap;
}

/* Card / Balão */
.timeline-card {
  position: relative;
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.25);
  padding: 16px 20px;
  z-index: 1;
}

.timeline-card p {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: var(--qs-gray-muted);
  margin: 0 0 10px;
}

.timeline-card p:last-child {
  margin-bottom: 0;
}

/* Seta do Balão */
.timeline-arrow {
  position: absolute;
  top: 24px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  transform: rotate(45deg);
  z-index: 1;
}

/* Alinhamento à Direita (Card na Direita, Ano na Esquerda) */
.timeline-item.right {
  justify-content: flex-end;
}

.timeline-item.right .timeline-year {
  position: absolute;
  right: calc(50% + 45px);
  top: 22px;
  text-align: right;
}

.timeline-item.right .timeline-card-wrapper {
  width: calc(50% - 48px);
}

.timeline-item.right .timeline-arrow {
  left: -7px;
  box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.08);
}

.timeline-item.right .timeline-card {
  text-align: left;
}

/* Alinhamento à Esquerda (Card na Esquerda, Ano na Direita) */
.timeline-item.left {
  justify-content: flex-start;
}

.timeline-item.left .timeline-year {
  position: absolute;
  left: calc(50% + 45px);
  top: 22px;
  text-align: left;
}

.timeline-item.left .timeline-card-wrapper {
  width: calc(50% - 48px);
}

.timeline-item.left .timeline-arrow {
  right: -7px;
  box-shadow: 2px -2px 4px rgba(0, 0, 0, 0.08);
}

.timeline-item.left .timeline-card {
  text-align: right;
}

/* ==========================================================================
   CONHEÇA A INSTOR (VÍDEO DO YOUTUBE)
   ========================================================================== */
.qs-video-section {
  background-color: var(--qs-green);
  padding: 60px 20px;
  color: #ffffff;
}

.qs-video-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.qs-video-heading {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 32px;
  color: #ffffff;
  margin: 0;
  text-align: center;
}

.qs-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  overflow: hidden;
  background-color: #000000;
}

.qs-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   SISTEMA DE QUALIDADE & CAPITAL HUMANO
   ========================================================================== */
.qs-quality-section {
  background-color: #ffffff;
  padding: 65px 20px;
}

.qs-two-cols {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.qs-col-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 23px;
  color: var(--qs-dark);
  margin: 0 0 22px;
}

.qs-text {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--qs-gray-text);
  margin: 0 0 20px;
  text-align: justify;
}

.qs-text:last-child {
  margin-bottom: 0;
}

.qs-list {
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
}

.qs-list li {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--qs-gray-text);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.qs-list li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: var(--qs-gray-text);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ==========================================================================
   NOSSA EQUIPE
   ========================================================================== */
.qs-team-section {
  background-color: var(--qs-green);
  padding: 50px 20px 60px;
  color: #ffffff;
}

.qs-team-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.qs-team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.qs-team-frame {
  width: 100%;
  max-width: 250px;
  height: 156px;
  border: 3px solid #ffffff;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.qs-team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.qs-team-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  color: #ffffff;
  margin: 0 0 8px;
}

.qs-team-role {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
  color: #ffffff;
  margin: 0;
}

/* ==========================================================================
   POLÍTICAS (MEIO AMBIENTE & SSO)
   ========================================================================== */
.qs-policies-section {
  background-color: #ffffff;
  padding: 65px 20px 75px;
}

/* ==========================================================================
   RESPONSIVIDADE (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 991px) {
  .qs-hero-title {
    font-size: 40px;
  }

  .qs-video-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .qs-two-cols {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .qs-team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
  }
}

@media (max-width: 768px) {
  .qs-hero-title {
    font-size: 32px;
  }

  .qs-hero-desc {
    font-size: 15px;
  }

  /* Linha do tempo mobile - alinhada à esquerda */
  .timeline-track {
    left: 24px;
    transform: none;
  }

  .timeline-node {
    left: 24px;
    transform: translateX(-50%);
    width: 42px;
    height: 42px;
  }

  .timeline-node img {
    width: 20px;
    height: 20px;
  }

  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 60px;
    margin-bottom: 40px;
  }

  .timeline-item.left,
  .timeline-item.right {
    justify-content: flex-start;
  }

  .timeline-item.left .timeline-year,
  .timeline-item.right .timeline-year {
    position: static;
    text-align: left;
    margin-bottom: 10px;
    font-size: 20px;
  }

  .timeline-item.left .timeline-card-wrapper,
  .timeline-item.right .timeline-card-wrapper {
    width: 100%;
  }

  .timeline-item.left .timeline-card,
  .timeline-item.right .timeline-card {
    text-align: left;
  }

  .timeline-item.left .timeline-arrow,
  .timeline-item.right .timeline-arrow {
    left: -7px;
    right: auto;
    box-shadow: -2px 2px 4px rgba(0, 0, 0, 0.08);
  }

  .qs-team-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .qs-col-title {
    font-size: 21px;
  }

  .qs-text,
  .qs-list li {
    font-size: 15px;
  }
}
