/* =========================================================
   QUEM SOMOS - ESTILOS ESPECÍFICOS
   Segue o padrão visual global (style.css)
   Autor: Amaro Medeiros
========================================================= */

/* =========================================================
   🔹 HERO PRINCIPAL ("Quem Somos")
========================================================= */

#hero-quem-somos {
  position: relative;
  height: 85vh;
  background: 
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.75)),
    url('../img/quem_somos/equipe.png') center top 30% / cover no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}


#hero-quem-somos h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

#hero-quem-somos p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0.9;
}

#hero-quem-somos .highlight {
  color: var(--primary-red);
  font-weight: 700;
}


/* =========================================================
   🔹 NOSSA HISTÓRIA
========================================================= */

#nossa-historia {
  background: var(--white);
}

#nossa-historia img {
  border-radius: 20px;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

#nossa-historia img:hover {
  transform: scale(1.03);
}

#nossa-historia p {
  color: #555;
  font-size: 1rem;
  line-height: 1.8;
}


/* =========================================================
   🔹 MISSÃO, VISÃO E VALORES
========================================================= */

#mvv {
  position: relative;
  padding: 50px 0;
  background: 
    linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.9)),
    url('../img/quem_somos/bg-sections-1.png') center center / cover no-repeat;
  color: white;
  min-height: 70vh;
  display: flex;
  align-items: center;
}

#mvv .card {
  border: 1px solid var(--border-gray);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  text-align: center;
  padding: 2rem;
}

#mvv .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-red);
}

#mvv .card i {
  font-size: 3rem;
  color: var(--primary-red);
  margin-bottom: 1rem;
}

#mvv .card h5 {
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1rem;
}

#mvv .card p {
  color: #fcf8f8;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* =========================================================
   🔹 NOSSO TIME
========================================================= */

#nosso-time {
  background: var(--white);
}

#nosso-time .card {
  border: 1px solid var(--border-gray);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

#nosso-time .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

#nosso-time img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  border-bottom: 4px solid var(--primary-red);
}

#nosso-time h5 {
  font-weight: 700;
  margin-top: 1rem;
  color: var(--black);
}

#nosso-time p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 1rem;
}




/* =========================================================
   🔹 NOSSA HISTÓRIA
========================================================= */

#nossa-historia {
  background: #f8f9fa;
}

#nossa-historia img {
  border-radius: 20px;
  object-fit: cover;
}

#nossa-historia .btn {
  background: var(--primary-red);
  border: none;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

#nossa-historia .btn:hover {
  background: var(--dark-red);
  transform: translateY(-2px);
}

#nossa-historia .accordion-button {
  background: transparent;
  box-shadow: none;
  color: var(--black);
  font-size: 1.1rem;
  border-bottom: 1px solid #ddd;
}

#nossa-historia .accordion-button:not(.collapsed) {
  color: var(--primary-red);
  background-color: #fff5f5;
}

#nossa-historia .accordion-body {
  color: #555;
  line-height: 1.7;
  background: white;
  border-radius: 10px;
  padding: 1rem 1.25rem;
}


/* =========================================================
   🔹 VÍDEO INSTITUCIONAL
========================================================= */

#video-institucional {
  background: #f8f9fa;
}

#video-institucional .video-wrapper {
  position: relative;
  display: inline-block;
}

#video-institucional img {
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Botão Play central */
.btn-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary-red);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.btn-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--dark-red);
}

/* Texto */
#video-institucional h2 {
  font-size: 2rem;
  font-weight: 700;
}

#video-institucional p {
  font-size: 1.05rem;
  color: #555;
}

#video-institucional a {
  font-size: 1rem;
  transition: all 0.2s ease;
}

#video-institucional a:hover {
  text-decoration: underline;
  color: var(--dark-red);
}


/* ===============================
   MODAL DE VÍDEO - REELS INSTAGRAM
================================== */

#videoModal .modal-dialog {
  max-width: 480px; /* largura ideal para reels */
  margin: auto;
}

#videoModal .modal-content {
  background: #000;
  border-radius: 15px;
  overflow: hidden;
}

#videoModal .modal-body {
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 90vh; /* altura máxima do modal */
}

.instagram-wrapper {
  width: 100%;
  max-width: 420px;
  height: auto;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

/* remove estilos padrão do embed */
.instagram-media {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  width: 100% !important;
  max-width: 420px !important;
  min-width: auto !important;
  margin: 0 auto !important;
}

/* ===============================
   SEÇÃO - VÍDEO INSTITUCIONAL
================================== */

.video-wrapper {
  position: relative;
  display: inline-block;
  border-radius: 15px;
  overflow: hidden;
  max-width: 100%;
}

.video-wrapper img {
  width: 100%;
  transition: transform 0.4s ease, filter 0.4s ease;
}

.video-wrapper:hover img {
  transform: scale(1.05);
  filter: brightness(0.8);
}

/* Botão de play centralizado */
.btn-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary-red);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.btn-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--dark-red);
}

/* Animação de pulsação */
.pulse::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border: 3px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseEffect 1.8s infinite;
}

@keyframes pulseEffect {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* Modal Instagram */
.instagram-wrapper {
  max-width: 420px;
  margin: auto;
}

#videoModal .modal-content {
  background: #000;
  border-radius: 15px;
}

#videoModal .modal-body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
}


/* =========================================================
   🔹 VÍDEO INSTITUCIONAL - FUNDO TECNOLÓGICO AJUSTADO
========================================================= */
#video-institucional {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
  z-index: 1;
}

/* 🔹 Textura e luzes diagonais */
#video-institucional::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.04) 1px, transparent 0),
    linear-gradient(135deg, rgba(196, 30, 58, 0.15) 25%, transparent 25%),
    linear-gradient(315deg, rgba(196, 30, 58, 0.15) 25%, transparent 25%);
  background-size: 24px 24px, 60px 60px, 60px 60px;
  z-index: -2;
  opacity: 0.5;
}

/* 🔹 Efeito de brilho diagonal animado */
#video-institucional::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 70%);
  animation: lightSweep 8s linear infinite;
  z-index: -1;
  opacity: 0.6;
}

@keyframes lightSweep {
  0% { transform: translateX(-100%) rotate(15deg); }
  100% { transform: translateX(100%) rotate(15deg); }
}

/* 🔹 Texto */
#video-institucional h2 {
  font-size: 2.3rem;
  font-weight: 700;
  background: linear-gradient(90deg, #ff4b4b, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px rgba(255, 0, 0, 0.15);
}

#video-institucional p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
  line-height: 1.9;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

#video-institucional strong {
  color: #ff3b3b;
  font-weight: 700;
}

/* 🔹 Botão */
#video-institucional .btn-outline-danger {
  background: var(--primary-red);
  border: none;
  color: #fff;
  padding: 0.75rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(196, 30, 58, 0.5);
  transition: all 0.3s ease;
}

#video-institucional .btn-outline-danger:hover {
  background: #fff;
  color: var(--black);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

/* 🔹 Vídeo / Botão Play */
.video-wrapper img {
  border-radius: 20px;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.4s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.video-wrapper:hover img {
  transform: scale(1.03);
  filter: brightness(0.9);
}

.btn-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--primary-red);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(196, 30, 58, 0.6);
  transition: all 0.3s ease;
}

.btn-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: #ff4b4b;
  box-shadow: 0 0 40px rgba(255, 0, 0, 0.5);
}

/* 🔹 Pulso animado */
.pulse::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulseEffect 1.8s infinite;
}

@keyframes pulseEffect {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

#video-institucional p,
#video-institucional .text-muted {
  color: rgba(255, 255, 255, 0.92) !important;
}

/* ===== NOSSO TIME SECTION ===== */
#nosso-time {
  position: relative;
  overflow: visible;
  background: #f8f9fa;
}

/* Team Filter Buttons */
.team-filter {
  margin-bottom: 3rem;
}

.team-filter .btn-group {
  flex-wrap: wrap;
  gap: 10px;
}

.team-filter .btn {
  border-radius: 25px;
  padding: 8px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid #dc3545;
}

.team-filter .btn:hover,
.team-filter .btn.active {
  background-color: #dc3545;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.team-filter .btn i {
  margin-right: 5px;
}

/* Section Headers */
.team-section {
  margin-bottom: 4rem;
  opacity: 1;
  transition: all 0.5s ease;
}

.team-section.hidden {
  display: none;
}

.section-header {
  position: relative;
  margin-bottom: 3rem;
  text-align: center;
}

.section-title {
  position: relative;
  display: inline-block;
  margin-bottom: 1rem;
}

.section-title .badge {
  font-size: 1.2rem;
  padding: 10px 30px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-line {
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, #dc3545, transparent);
  margin: 20px auto;
  position: relative;
}

.section-line::before,
.section-line::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: #dc3545;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}

.section-line::before {
  left: 30%;
}

.section-line::after {
  right: 30%;
}

/* Team Member Cards */
.team-member-card {
  height: 100%;
  position: relative;
  margin-bottom: 20px;
}

.team-member-card .card-inner {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.team-member-card:hover .card-inner {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Director Card Style */
.team-member-card.director .card-inner {
  border-top: 4px solid #dc3545;
  box-shadow: 0 5px 20px rgba(220, 53, 69, 0.15);
}

.team-member-card.director:hover .card-inner {
  box-shadow: 0 15px 40px rgba(220, 53, 69, 0.25);
}

/* Manager Card Style */
.team-member-card.manager .card-inner {
  border-top: 4px solid #212529;
  box-shadow: 0 5px 20px rgba(33, 37, 41, 0.15);
}

.team-member-card.manager:hover .card-inner {
  box-shadow: 0 15px 40px rgba(33, 37, 41, 0.25);
}

/* Employee Card Style */
.team-member-card.employee .card-inner {
  border-top: 4px solid #6c757d;
  box-shadow: 0 5px 20px rgba(108, 117, 125, 0.15);
}

.team-member-card.employee:hover .card-inner {
  box-shadow: 0 15px 40px rgba(108, 117, 125, 0.25);
}

/* Member Photo with Overlay */
.member-photo {
  position: relative;
  overflow: hidden;
  height: 250px;
  background: #f8f9fa;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.team-member-card:hover .member-photo img {
  transform: scale(1.1);
}

.member-photo .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(220, 53, 69, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.team-member-card:hover .overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  color: white;
}

.overlay-content .bio {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* Member Info */
.member-info {
  padding: 20px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.member-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 5px;
}

.member-role {
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 15px;
  font-weight: 500;
}

/* WhatsApp Button */
.member-contact {
  margin-top: auto;
  padding-top: 15px;
}

.btn-whatsapp {
  background: #25D366;
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 14px;
  width: 100%;
  justify-content: center;
}

.btn-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
  color: white;
}

.btn-whatsapp i {
  font-size: 18px;
}

.btn-whatsapp.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* Responsive Design */
@media (max-width: 991px) {
  .section-line::before {
    left: 20%;
  }
  
  .section-line::after {
    right: 20%;
  }
  
  .member-photo {
    height: 220px;
  }
}

@media (max-width: 767px) {
  .team-filter .btn-group {
    width: 100%;
  }
  
  .team-filter .btn {
    flex: 1 1 45%;
    margin: 5px;
  }
  
  .section-header {
    margin-bottom: 2rem;
  }
  
  .section-title .badge {
    font-size: 1rem;
    padding: 8px 20px;
  }
  
  .member-photo {
    height: 200px;
  }
  
  .member-info {
    padding: 15px;
  }
  
  .member-name {
    font-size: 1.1rem;
  }
  
  .member-role {
    font-size: 0.85rem;
  }
  
  .btn-whatsapp {
    font-size: 12px;
    padding: 8px 15px;
  }
}

@media (max-width: 575px) {
  .team-member-card {
    max-width: 350px;
    margin: 0 auto 20px;
  }
  
  .section-line {
    width: 80%;
  }
  
  .section-line::before,
  .section-line::after {
    display: none;
  }
}

/* Info Badge */
.employee-section .badge.bg-info {
  background: linear-gradient(135deg, #17a2b8, #138496) !important;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 500;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Employee Carousel Specific */
#employeeCarousel {
  padding: 0 50px;
  position: relative;
  min-height: 450px; /* Garantir altura mínima */
}

#employeeCarousel .carousel-inner {
  padding: 20px 0 50px;
  overflow: visible; /* Não cortar os cards */
}

#employeeCarousel .carousel-item {
  min-height: 380px; /* Altura mínima para os slides */
}

#employeeCarousel .container-fluid {
  padding: 0 15px;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow-x: hidden; /* Evitar scroll horizontal */
  overflow-y: visible; /* Permitir que cards não sejam cortados verticalmente */
  padding: 0 10px;
}

#employeeCarousel .carousel-inner {
  padding: 20px 0 50px;
}

#employeeCarousel .carousel-indicators {
  bottom: 0;
  margin-bottom: 0;
}

#employeeCarousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #6c757d;
  border: 2px solid #fff;
  margin: 0 5px;
  transition: all 0.3s ease;
}

#employeeCarousel .carousel-indicators .active {
  background-color: #6c757d;
  width: 25px;
  border-radius: 15px;
}

#employeeCarousel .carousel-control-prev,
#employeeCarousel .carousel-control-next {
  width: 40px;
  height: 40px;
  background-color: #6c757d;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.7;
  transition: all 0.3s ease;
}

#employeeCarousel .carousel-control-prev:hover,
#employeeCarousel .carousel-control-next:hover {
  opacity: 1;
  background-color: #5a6268;
}

#employeeCarousel .carousel-control-prev {
  left: 0;
}

#employeeCarousel .carousel-control-next {
  right: 0;
}

#employeeCarousel .carousel-control-prev-icon,
#employeeCarousel .carousel-control-next-icon {
  width: 18px;
  height: 18px;
}

/* Responsive Employee Carousel */
@media (max-width: 991px) {
  #employeeCarousel {
    padding: 0 30px;
  }
}

@media (max-width: 767px) {
  #employeeCarousel {
    padding: 0 20px;
  }
  
  #employeeCarousel .carousel-control-prev,
  #employeeCarousel .carousel-control-next {
    width: 35px;
    height: 35px;
  }
}

/* Animation Classes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.team-section.animate .team-member-card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.team-section.animate .team-member-card:nth-child(1) {
  animation-delay: 0.1s;
}

.team-section.animate .team-member-card:nth-child(2) {
  animation-delay: 0.2s;
}

.team-section.animate .team-member-card:nth-child(3) {
  animation-delay: 0.3s;
}

.team-section.animate .team-member-card:nth-child(4) {
  animation-delay: 0.4s;
}

.team-section.animate .team-member-card:nth-child(5) {
  animation-delay: 0.5s;
}

/* Loading State */
.member-photo img.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 50%;
  }
  100% {
    background-position: -200% 50%;
  }
}

/* Print Styles */
@media print {
  .team-filter {
    display: none;
  }
  
  .team-member-card {
    break-inside: avoid;
  }
  
  .btn-whatsapp {
    display: none;
  }
  
  .overlay {
    display: none;
  }
}

.carousel-item .col-lg-3 {
  transition: transform 0.3s ease;
}

.carousel-item .col-lg-3:hover {
  transform: translateY(-8px);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1);
}

