/* Custom CSS */

:root {
  --primary: #7a2325;
  --primary-hover: #8f2a2c;
  --primary-light: #f8f0f0;
  --dark: #333;
  --light: #f8f9fa;
  --gray: #6c757d;
}

/* Bootstrap override */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
}

.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.border-primary {
  border-color: var(--primary) !important;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary-light);
  color: var(--primary);
}

.accordion-button:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(122, 35, 37, 0.25);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(122, 35, 37, 0.25);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

/* Typography */
.font-montserrat {
  font-family: 'Poppins', sans-serif;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
}

/* Header styles */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.navbar-nav .nav-link {
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--primary-hover) !important;
}

.navbar-brand img {
  transition: all 0.3s ease;
}

.nav-link {
  position: relative;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: #fff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

.nav-link.active::after {
  width: 80%;
}

.btn-primary {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Hero section */
.hero-highlight {
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(122, 35, 37, 0.3);
  z-index: -1;
}

/* Stats section */
.stat-icon {
  font-size: 2.5rem;
}

/* Services cards */
.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Process section */
.process-number {
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
}

/* Gallery section */
.gallery-item {
  transition: all 0.3s ease;
  cursor: pointer;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item .overlay {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

.gallery-item img {
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Back to top button */
.back-to-top {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  bottom: 20px;
}

/* Animation for counting stats */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.counter {
  animation: countUp 1s ease forwards;
}

/* Media queries */
@media (max-width: 992px) {
  .display-4 {
    font-size: 2.5rem;
  }
  
  .display-5, 
  .display-6 {
    font-size: 2rem;
  }
  
  .lead {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .gallery-item img {
    height: 150px;
  }
}

@media (max-width: 576px) {
  .display-4 {
    font-size: 2rem;
  }
  
  .display-5, 
  .display-6 {
    font-size: 1.75rem;
  }
  
  .process-step {
    margin-bottom: 1.5rem;
  }
}

/* Estilos do Carrossel */
#heroCarousel {
  height: 400px;
  overflow: hidden;
}

#heroCarousel .carousel-item {
  height: 400px;
}

#heroCarousel .carousel-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
}

#heroCarousel .carousel-item a {
  display: block;
  height: 100%;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
  width: 5%;
}

#heroCarousel .carousel-control-prev-icon,
#heroCarousel .carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 1.5rem;
}

.font-poppins {
  font-family: 'Poppins', sans-serif;
}

/* Animação de pulsação para botões */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(122, 35, 37, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(122, 35, 37, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(122, 35, 37, 0);
  }
}

.btn-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.btn-pulse:hover {
  animation-play-state: paused;
}

/* Otimização responsiva para imagem do professor */
.professor-img {
  margin-top: 15%;
  object-fit: cover;
  max-height: 500px;
}

@media (max-width: 991px) {
  .professor-img {
    margin-top: 10%; /* Reduz para tablets */
  }
}

@media (max-width: 767px) {
  .professor-img {
    margin-top: 5%; /* Reduz ainda mais para mobile */
  }
}

@media (max-width: 575px) {
  .professor-img {
    margin-top: 2%; /* Margem mínima para telas muito pequenas */
  }
}

/* ===== MODAL DE VÍDEO ===== */
#videoModal .modal-content {
  border: none;
  border-radius: 15px;
  overflow: hidden;
}

#videoModal .modal-header {
  background: linear-gradient(135deg, var(--primary) 0%, #8b2729 100%);
  padding: 1rem 1.5rem;
}

#videoModal .modal-title {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
}

#videoModal .modal-body {
  background: #000;
}

#videoModal .modal-footer {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  padding: 1.5rem;
}

#videoModal video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Animação de entrada do modal */
#videoModal.fade .modal-dialog {
  transform: scale(0.8);
  transition: transform 0.3s ease-in-out;
}

#videoModal.show .modal-dialog {
  transform: scale(1);
}

/* Responsividade do modal de vídeo */
@media (max-width: 768px) {
  #videoModal .modal-lg {
    max-width: 95%;
    margin: 1rem auto;
  }
  
  #videoModal .modal-header {
    padding: 0.75rem 1rem;
  }
  
  #videoModal .modal-footer {
    padding: 1rem;
  }
  
  #videoModal .modal-title {
    font-size: 0.9rem;
  }
}

@media (max-width: 575px) {
  #videoModal .modal-lg {
    max-width: 98%;
    margin: 0.5rem auto;
  }
  
  #videoModal .btn {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}

/* Estilos para vídeo responsivo widescreen */
.video-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 45%; /* Proporção equilibrada para primeira dobra */
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  max-width: 700px; /* Largura máxima equilibrada */
  margin: 0 auto; /* Centralizar o vídeo */
}

.responsive-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0.5rem;
  object-fit: cover; /* Garantir que o vídeo preencha o container */
}

/* Responsividade para diferentes tamanhos de tela */
@media (max-width: 768px) {
  .video-container {
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 50%; /* Proporção equilibrada para mobile */
  }
}

@media (max-width: 576px) {
  .video-container {
    padding-bottom: 55%; /* Proporção equilibrada para telas pequenas */
    max-width: 100%;
  }
}