/* ===================================
   ESTILOS ESPECÍFICOS - PÁGINA SOBRE
   =================================== */

/* ===================================
   BARRA CINZA - Navegação rápida
   =================================== */
.sobre-top-bar {
  background-color: #777;
  color: #fff;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 60px;
  text-align: center;
}

.sobre-top-bar a {
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.sobre-top-bar a:hover {
  text-decoration: underline;
  color: var(--brand);
}

/* ===================================
   SEÇÃO SOBRE
   =================================== */
.sobre-section {
  padding: 80px 20px;
}

.sobre-section h2 {
  text-transform: uppercase;
  font-weight: 800;
  color: #555;
  letter-spacing: 1px;
  margin-bottom: 40px;
  font-size: 32px;
}

.sobre-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
  margin-bottom: 80px;
}

.sobre-text {
  flex: 1;
  min-width: 300px;
}

.sobre-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
  margin-bottom: 20px;
}

.sobre-img {
  width: 320px;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ===================================
   PALAVRA DO DIRETOR
   =================================== */
.diretor-section {
  max-width: 1100px;
  margin: 80px auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* Bloco da imagem */
.diretor-img {
  position: relative;
  flex: 1 1 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.diretor-img::before {
  content: "";
  position: absolute;
  background-color: transparent;
  border-radius: 30px;
  width: 85%;
  height: 85%;
  z-index: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.diretor-img img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 350px;
  height: auto;
  object-fit: cover;
}

/* Bloco do texto */
.diretor-text {
  flex: 1 1 550px;
  text-align: left;
}

.diretor-text h2 {
  font-size: 28px;
  font-weight: 800;
  color: #555;
  margin-bottom: 8px;
}

.diretor-text hr {
  width: 80px;
  height: 4px;
  background-color: #999;
  border: none;
  margin: 10px 0 25px 0;
}

.diretor-text p {
  font-size: 15px;
  line-height: 1.8;
  color: #777;
  text-align: justify;
  margin-bottom: 30px;
}

/* Assinatura */
.assinatura {
  margin-top: 10px;
}

.assinatura h3 {
  font-size: 18px;
  font-weight: 700;
  color: #555;
  margin: 0;
}

.assinatura span {
  font-size: 15px;
  color: #999;
}

/* ===================================
   CARROSSEL EQUIPE - Estilo Circular
   =================================== */
.equipe-carousel-section {
  margin-top: 80px;
  margin-bottom: 80px;
  position: relative;
  min-height: 700px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.equipe-carousel-section h2 {
  text-transform: uppercase;
  font-weight: 800;
  color: #555;
  letter-spacing: 1px;
  margin-bottom: 50px;
  font-size: 32px;
  text-align: center;
}

.equipe-carousel-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  height: 380px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  margin: 0 auto 30px auto;
  flex-wrap: nowrap;
  overflow: visible;
}

.equipe-slide {
  position: relative;
  text-align: center;
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    order 0s;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  justify-content: flex-end;
  will-change: transform, opacity;
}

.equipe-slide img {
  width: 200px;
  height: 300px;
  object-fit: cover;
  object-position: center top;
  background: transparent;
  transition:
    filter 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  will-change: filter;
}

/* Posição -2 (mais distante à esquerda) */
.equipe-slide.prev-2 {
  opacity: 0.4;
  z-index: 1;
  order: 1;
}

.equipe-slide.prev-2 img {
  width: 200px;
  height: 300px;
}

/* Posição -1 (próxima à esquerda) */
.equipe-slide.prev {
  opacity: 0.7;
  z-index: 2;
  order: 2;
}

.equipe-slide.prev img {
  width: 200px;
  height: 300px;
}

/* Posição 0 (central - destaque) */
.equipe-slide.active {
  opacity: 1;
  z-index: 3;
  transform: scale(1.1);
  order: 3;
  margin: 0 10px;
}

.equipe-slide.active img {
  width: 200px;
  height: 300px;
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.25));
}

/* Posição +1 (próxima à direita) */
.equipe-slide.next {
  opacity: 0.7;
  z-index: 2;
  order: 4;
}

.equipe-slide.next img {
  width: 200px;
  height: 300px;
}

/* Posição +2 (mais distante à direita) */
.equipe-slide.next-2 {
  opacity: 0.4;
  z-index: 1;
  order: 5;
}

.equipe-slide.next-2 img {
  width: 200px;
  height: 300px;
}

/* Escondido */
.equipe-slide.hidden-left,
.equipe-slide.hidden-right {
  opacity: 0;
  visibility: hidden;
  z-index: 0;
  pointer-events: none;
  position: absolute;
  order: 0;
}

/* Navegação do carrossel */
.equipe-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--brand);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.equipe-nav:hover {
  background: var(--brand);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.equipe-nav.prev {
  left: 20px;
}

.equipe-nav.next {
  right: 20px;
}

/* Container centralizado abaixo de todas as fotos */
.equipe-info-container {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 30px 60px;
  text-align: center;
  background: rgba(249, 249, 249, 0.5);
  border-radius: 15px;
  box-sizing: border-box;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: background 0.4s ease;
}

/* Informações da pessoa - Container Separado */
.equipe-info {
  width: 100%;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.6s ease-in-out;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  will-change: opacity;
}

.equipe-info.active {
  opacity: 1;
  max-height: 300px;
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  transition-delay: 0.3s;
}

.equipe-info h3 {
  font-weight: 700;
  color: #333;
  margin: 0 0 8px;
  font-size: 26px;
  transition: color 0.3s ease;
}

.equipe-info span {
  display: block;
  color: #ff6a00;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.equipe-info p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  font-style: italic;
  margin: 0 auto;
  text-align: center;
  max-width: 750px;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

/* ===================================
   GALERIA - Carrossel Desconstruído
   =================================== */
.galeria {
  text-align: center;
  margin: 80px 0;
  padding: 60px 20px;
  background: #f9f9f9;
}

.galeria-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 500px;
}

.galeria-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.galeria-conjunto {
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
}

.galeria-conjunto.active {
  position: relative;
  opacity: 1;
  transform: scale(1);
  pointer-events: all;
}

/* Layout Desconstruído - Mosaic */
.galeria-mosaic {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 450px;
  margin: 0 auto;
}

.galeria-mosaic img {
  position: absolute;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
}

.galeria-mosaic img:hover {
  transform: scale(1.05) rotate(0deg) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* Hover específico para as pontas */
.galeria-mosaic .img-1:hover {
  transform: translateY(-50%) scale(1.15) rotate(0deg) !important;
}

.galeria-mosaic .img-8:hover {
  transform: translateY(-50%) scale(1.15) rotate(0deg) !important;
}

/* Posicionamento desconstruído - 8 imagens */
/* Ponta esquerda */
.galeria-mosaic .img-1 {
  width: 160px;
  height: 220px;
  top: 50%;
  left: 50px;
  transform: translateY(-50%) rotate(-4deg);
  z-index: 3;
}

/* Primeira fileira - 3 fotos no centro */
.galeria-mosaic .img-2 {
  width: 155px;
  height: 210px;
  top: 10px;
  left: 240px;
  transform: rotate(2deg);
  z-index: 2;
}

.galeria-mosaic .img-3 {
  width: 162px;
  height: 220px;
  top: 0px;
  left: 420px;
  transform: rotate(-3deg);
  z-index: 4;
}

.galeria-mosaic .img-4 {
  width: 150px;
  height: 205px;
  top: 15px;
  left: 605px;
  transform: rotate(3deg);
  z-index: 2;
}

/* Segunda fileira - 3 fotos no centro */
.galeria-mosaic .img-5 {
  width: 158px;
  height: 215px;
  bottom: 10px;
  left: 605px;
  transform: rotate(-2deg);
  z-index: 3;
}

.galeria-mosaic .img-6 {
  width: 165px;
  height: 225px;
  bottom: 0px;
  left: 240px;
  transform: rotate(4deg);
  z-index: 2;
}

.galeria-mosaic .img-7 {
  width: 154px;
  height: 210px;
  bottom: 15px;
  left: 420px;
  transform: rotate(-3deg);
  z-index: 3;
}

/* Ponta direita */
.galeria-mosaic .img-8 {
  width: 160px;
  height: 220px;
  top: 50%;
  left: 780px;
  transform: translateY(-50%) rotate(4deg);
  z-index: 4;
}

/* Navegação do carrossel */
.galeria-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--brand);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.galeria-nav:hover {
  background: var(--brand);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.galeria-nav.prev {
  left: 20px;
}

.galeria-nav.next {
  right: 20px;
}

/* Indicadores (dots) */
.galeria-dots {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.galeria-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.galeria-dots .dot.active {
  background: var(--brand);
  transform: scale(1.3);
}

/* ===================================
   TRABALHE CONOSCO
   =================================== */
.trabalhe {
  text-align: center;
  padding: 80px 20px;
  background-color: #fafafa;
}

.trabalhe h2 {
  font-weight: 800;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 60px;
  font-size: 32px;
  letter-spacing: 1px;
}

.vagas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.vaga-card {
  background-color: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  width: 300px;
  padding: 35px 25px;
  text-align: left;
  transition: all 0.3s ease;
}

.vaga-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.vaga-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #555;
  margin: 0 0 15px;
}

.vaga-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 12px;
}

.vaga-card p b {
  color: #333;
  font-weight: 600;
}

.vaga-card .btn {
  width: 100%;
  margin-top: 20px;
  padding: 12px 25px;
}

/* ===================================
   RESPONSIVO
   =================================== */
@media (max-width: 768px) {
  .sobre-top-bar {
    gap: 30px;
    padding: 30px 20px;
  }

  .sobre-top-bar a {
    font-size: 16px;
  }

  .sobre-section {
    padding: 60px 20px;
  }

  .sobre-section h2 {
    font-size: 26px;
  }

  .sobre-container {
    flex-direction: column;
    gap: 40px;
  }

  .sobre-img {
    width: 250px;
  }

  .diretor-section {
    flex-direction: column;
    text-align: center;
  }

  .diretor-img::before {
    width: 70%;
    height: 70%;
  }

  .diretor-text {
    text-align: center;
  }

  .diretor-text hr {
    margin: 10px auto 25px;
  }

  /* Ajustes do carrossel da equipe para mobile */
  .equipe-carousel-section {
    min-height: 650px;
  }

  .equipe-carousel-section h2 {
    margin-bottom: 40px;
  }

  .equipe-carousel-container {
    height: 300px;
    margin-bottom: 25px;
    gap: 15px;
    flex-wrap: wrap;
    max-width: 90%;
  }

  .equipe-slide img {
    width: 160px;
    height: 240px;
  }

  .equipe-slide.active {
    transform: scale(1.08);
  }

  .equipe-slide.active img {
    width: 160px;
    height: 240px;
  }

  .equipe-info-container {
    padding: 25px 30px;
    max-width: 90%;
    min-height: 160px;
  }

  .equipe-info h3 {
    font-size: 22px;
  }

  .equipe-info span {
    font-size: 14px;
    margin-bottom: 15px;
  }

  .equipe-info p {
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
    max-width: 100%;
  }

  .galeria {
    margin: 60px 0;
    padding: 40px 20px;
  }

  .galeria-grid img {
    width: 140px;
    height: 140px;
  }

  .trabalhe {
    padding: 60px 20px;
  }

  .trabalhe h2 {
    font-size: 26px;
    margin-bottom: 40px;
  }

  .vaga-card {
    width: 90%;
    max-width: 350px;
  }
}

@media (max-width: 640px) {
  .sobre-top-bar {
    flex-direction: column;
    gap: 20px;
    padding: 25px 20px;
  }

  .sobre-section h2 {
    font-size: 24px;
  }

  .sobre-text p {
    font-size: 15px;
  }

  .sobre-img {
    width: 200px;
  }

  .diretor-text h2 {
    font-size: 24px;
  }

  .diretor-text p {
    font-size: 14px;
  }

  .assinatura h3 {
    font-size: 16px;
  }

  .assinatura span {
    font-size: 14px;
  }

  /* Ajustes adicionais do carrossel para telas pequenas */
  .equipe-carousel-section {
    min-height: 600px;
  }

  .equipe-carousel-section h2 {
    font-size: 24px;
    margin-bottom: 35px;
  }

  .equipe-carousel-container {
    height: 260px;
    margin-bottom: 20px;
    gap: 12px;
    max-width: 95%;
  }

  .equipe-slide img {
    width: 140px;
    height: 210px;
  }

  .equipe-slide.active {
    transform: scale(1.05);
  }

  .equipe-slide.active img {
    width: 140px;
    height: 210px;
  }

  .equipe-info-container {
    padding: 20px 25px;
    max-width: 95%;
    min-height: 140px;
  }

  .equipe-info h3 {
    font-size: 20px;
  }

  .equipe-info span {
    font-size: 13px;
    margin-bottom: 12px;
  }

  .equipe-info p {
    font-size: 13px;
    line-height: 1.7;
    max-width: 100%;
  }

  .equipe-nav {
    width: 45px;
    height: 45px;
    font-size: 28px;
    top: 50%;
    transform: translateY(-50%);
  }

  .equipe-nav:hover {
    transform: translateY(-50%) scale(1.1);
  }

  .equipe-nav.prev {
    left: 10px;
  }

  .equipe-nav.next {
    right: 10px;
  }

  .galeria-grid {
    gap: 15px;
  }

  .galeria-grid img {
    width: 120px;
    height: 120px;
  }

  .trabalhe h2 {
    font-size: 24px;
  }

  .vaga-card {
    width: 100%;
  }
}
