/*
  Folha de Estilos Personalizada para o site HS Engenharia
*/

/* --- Estilos Gerais --- */
body {
  font-family: 'Roboto', sans-serif;
}

section {
  padding: 60px 0;
  overflow: hidden;
}

h2 {
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  color: #004c99;
}

.section-bg {
  background-color: #f8f9fa;
}

/* --- Loader (desativado no HTML, mas o estilo permanece) --- */
#loader {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader {
  border: 12px solid #f3f3f3;
  border-top: 12px solid #004c99;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  animation: spin 1.5s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Navbar --- */
.navbar {
  transition: background-color 0.4s ease, padding 0.4s ease;
  padding: 15px 0;
}

.navbar-brand img {
  transition: all 0.3s ease;
}

.header-scrolled {
  background-color: rgba(0, 76, 153, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  padding: 5px 0;
}

.header-scrolled .navbar-brand img {
    transform: scale(0.85);
}

.header-scrolled .nav-link {
    color: #fff !important;
}

.navbar-nav .nav-link {
  font-weight: 700;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #dc3545 !important;
}

/* --- Seção Herói (Home com Carrossel) --- */
#home {
  width: 100%;
  height: 100vh;
  position: relative;
  padding: 0;
  overflow: hidden;
}

#home .carousel,
#home .carousel-inner,
#home .carousel-item {
  height: 100vh;
  width: 100%;
  background-color: #0d273f;
}

#home .carousel-item img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

#home .carousel-fade .carousel-item {
  opacity: 0;
  transition-duration: .6s;
  transition-property: opacity;
}

#home .carousel-fade .carousel-item.active,
#home .carousel-fade .carousel-item-next.carousel-item-left,
#home .carousel-fade .carousel-item-prev.carousel-item-right {
  opacity: 1;
}

#home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 50, 100, 0.6);
  z-index: 2;
}

#home .hero-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  text-align: center;
  color: white;
  width: 90%;
}
    
#home h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 56px;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

#home p {
    font-size: 20px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

#home .carousel-indicators li {
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  width: 12px;
  height: 12px;
  margin: 0 5px;
}

#home .carousel-indicators .active {
  background-color: #ffffff;
}

/* --- Seção Sobre --- */
#sobre .content h3 {
  font-weight: 700;
  font-size: 28px;
  color: #004c99;
}
#sobre .content ul {
  list-style: none;
  padding: 0;
}
#sobre .content ul li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
}
#sobre .content ul i {
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 20px;
  color: #dc3545;
}

/* --- Seção de Serviços --- */
.service-card {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0,0,0,0.08);
  text-align: center;
  transition: all 0.3s ease-in-out;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

.service-card .icon {
  font-size: 48px;
  color: #dc3545;
  margin-bottom: 20px;
}

.service-card h5 {
    font-weight: 700;
    color: #004c99;
}

/* --- Seção Números --- */
#numeros {
    background-color: #004c99;
    color: white;
    padding: 40px 0;
}
#numeros .stat-item {
    text-align: center;
}
#numeros .stat-item span {
    font-size: 42px;
    font-weight: 700;
    display: block;
}
#numeros .stat-item p {
    font-size: 16px;
    font-weight: 300;
}

/* --- Seção Certificações --- */
#certificacoes ul li {
  margin-bottom: 10px;
  font-weight: 500;
}
#certificacoes .fa-check-circle {
  color: #28a745;
  margin-right: 8px;
}

/* --- Seção Contato --- */
#contato .form-control {
    border-radius: 0;
    margin-bottom: 15px;
}

/* --- Footer Otimizado --- */
.main-footer {
  background-color: #0d273f;
  color: #fff;
  padding: 60px 0 30px 0;
  font-size: 14px;
}

.main-footer .footer-info h3 {
  font-size: 24px;
  margin: 0 0 20px 0;
  padding: 2px 0 2px 0;
  line-height: 1;
  font-weight: 700;
}

.main-footer .footer-info p {
  font-size: 14px;
  line-height: 24px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

.main-footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.main-footer h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  background: #dc3545;
}

.main-footer .footer-links {
  margin-bottom: 30px;
}

.main-footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.main-footer .footer-links ul li:first-child {
  padding-top: 0;
}

.main-footer .footer-links ul a {
  color: rgba(255, 255, 255, 0.7);
  transition: 0.3s;
  display: inline-block;
  line-height: 1;
}

.main-footer .footer-links ul a:hover {
  color: #fff;
  text-decoration: none;
}

.main-footer .footer-links ul i {
  margin-right: 8px;
  color: #dc3545;
  font-size: 12px;
}

.main-footer .footer-contact p {
  line-height: 26px;
  color: rgba(255, 255, 255, 0.7);
}

.main-footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-right: 10px;
  transition: 0.3s;
}

.main-footer .social-links a:hover {
  color: #fff;
  border-color: #fff;
  background: #dc3545;
}

.main-footer .copyright {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.main-footer .credits {
  padding-top: 5px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.main-footer .credits a {
  color: #fff;
  transition: 0.3s;
}

.main-footer .credits a:hover {
  color: #dc3545;
}

/* --- Carrossel de Cursos na Seção Sobre --- */
#cursosCarousel {
  width: 100%;
  height: 400px; /* Você pode ajustar essa altura se precisar */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: 8px; /* Mesma borda dos service-cards */
}

#cursosCarousel .carousel-inner,
#cursosCarousel .carousel-item {
  height: 100%;
}

#cursosCarousel .carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover; /* Garante que a imagem preencha o espaço sem distorcer */
}

/* Estilo para as setas de controle, para garantir visibilidade */
#cursosCarousel .carousel-control-prev,
#cursosCarousel .carousel-control-next {
  background-color: rgba(0, 0, 0, 0.2);
}

#cursosCarousel .carousel-control-prev {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

#cursosCarousel .carousel-control-next {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

/* --- Estilos para os Cards de Serviço Clicáveis e Modais --- */

/* Torna os cards de serviço com aparência de clicáveis */
.service-card[data-toggle="modal"] {
  cursor: pointer;
}

/* Estilização do Header do Modal */
.modal-header {
  background-color: #004c99; /* Azul Primário */
  color: #fff;
  border-bottom: 2px solid #dc3545; /* Detalhe em Vermelho */
}

.modal-header .close {
  color: #fff;
  opacity: 0.8;
  text-shadow: none;
}

.modal-header .close:hover {
  opacity: 1;
}

/* Estilização do Corpo do Modal */
.modal-body h6 {
  font-weight: 700;
  color: #004c99;
  margin-top: 20px;
  margin-bottom: 10px;
}

.modal-body ul {
  list-style: none;
  padding-left: 0;
}

.modal-body ul li {
  padding-bottom: 10px;
  display: flex;
  align-items: flex-start;
}

.modal-body ul i {
  color: #28a745; /* Verde para o check */
  margin-right: 8px;
  margin-top: 4px;
}

/* --- Botão Flutuante do WhatsApp --- */
#whatsapp-button {
  position: fixed; /* Fica fixo na tela */
  width: 60px;
  height: 60px;
  bottom: 30px; /* Distância da parte inferior */
  right: 30px; /* Distância da parte direita */
  background-color: #25D366; /* Cor oficial do WhatsApp */
  color: #FFF; /* Cor do ícone */
  border-radius: 50%; /* Deixa o botão circular */
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000; /* Garante que ele fique sobre os outros elementos */
  
  /* Para centralizar o ícone perfeitamente */
  display: flex;
  justify-content: center;
  align-items: center;

  /* Efeito suave de transição */
  transition: all 0.3s ease;
}

#whatsapp-button:hover {
  transform: scale(1.1); /* Aumenta um pouco de tamanho ao passar o mouse */
  background-color: #128C7E; /* Um tom de verde mais escuro no hover */
  box-shadow: 4px 4px 15px rgba(0, 0, 0, 0.3);
}