/* Variáveis de Cores e Transições */
:root {
  --primary-color: #0066cc;       /* Azul */
  --secondary-color: #6610f2;     /* Roxo (ou ajuste conforme sua identidade) */
  --light-bg: #f8f9fa;
  --light-text: #333;
  --dark-bg: #1c1c1c;
  --dark-text: #e0e0e0;
  --footer-bg-light: #222;
  --footer-bg-dark: #111;
  --section-bg-odd-light: #ffffff;
  --section-bg-even-light: #f4f4f4;
  --section-bg-odd-dark: #2b2b2b;
  --section-bg-even-dark: #333;
  --transition-duration: 0.5s;
}

/* Preloader */
#preloader {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  width: 100%;
  height: 100%;
  background-color: var(--light-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Definições Globais */
body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  transition: background-color var(--transition-duration) ease, color var(--transition-duration) ease;
}

/* Tema Claro */
body.light-mode {
  background-color: var(--light-bg);
  color: var(--light-text);
}

/* Tema Escuro */
body.dark-mode {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

/* Navbar - Sempre Clara para melhor visualização */
.navbar-light-mode,
.navbar-dark-mode {
  background-color: #ffffff;
  color: #212529;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: background-color var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
}

/* Seção Hero - Impacto Visual */
#hero {
  background-image: url('/softlineinfo/imagens/hero.jpg'); /* Substitua pela imagem desejada */
  background-size: cover;
  background-position: center center;
  height: 100vh; /* 100% da altura da tela */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white; /* Cor do texto para garantir contraste */
}

#hero h1 {
  font-size: 3rem; /* Ajuste o tamanho conforme necessário */
  font-weight: bold;
}

#hero p {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

#hero .btn {
  padding: 12px 30px;
  font-size: 1.1rem;
  border-radius: 30px;
}

.card-img-top {
  height: 200px; /* Define uma altura fixa */
  object-fit: contain; /* Garante que a imagem inteira seja visível */
  width: 100%; /* Mantém a largura total */
  background-color: #fff; /* Adiciona um fundo branco para imagens menores */
  padding: 10px; /* Dá um pequeno espaçamento interno */
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.texto-limitado {
  max-height: 60px; /* Limita a altura do texto */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.saiba-mais {
  display: none; /* Oculta o botão por padrão */
}

/* Suaviza a animação do dropdown */
.dropdown-menu {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}


#nossaMissao {
  background-color: #f8f9fa; /* Cor de fundo suave */
  padding: 80px 0; /* Espaçamento superior e inferior */
}

#nossaMissao h2 {
  font-size: 2rem; /* Tamanho do título */
  font-weight: bold; /* Deixa o título mais destacado */
  color: #333; /* Cor do texto */
  margin-bottom: 15px;
}

#nossaMissao p {
  font-size: 1.1rem;
  color: #666; /* Texto mais suave */
  line-height: 1.6; /* Melhor leitura */
}

#nossaMissao img {
  max-width: 100%; /* Imagem responsiva */
  height: auto;
  border-radius: 10px; /* Borda arredondada */
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* Sombra sutil */
}

/* Alinhamento central em telas pequenas */
@media (max-width: 768px) {
  #nossaMissao .text-md-start {
    text-align: center !important;
  }
}

/* Seções - Suave Transição e Alternância */
section {
  padding: 80px 0;
  transition: background-color var(--transition-duration) ease, color var(--transition-duration) ease;
}
section:nth-child(odd) {
  background-color: var(--section-bg-odd-light);
}
section:nth-child(even) {
  background-color: var(--section-bg-even-light);
}
body.dark-mode section:nth-child(odd) {
  background-color: var(--section-bg-odd-dark);
}
body.dark-mode section:nth-child(even) {
  background-color: var(--section-bg-even-dark);
}

/* Modal Animation */
.modal-animate .modal-content {
  animation: scaleIn 0.5s ease-in-out;
}
@keyframes scaleIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Botão do WhatsApp */
.btn-whatsapp {
  background-color: #25D366;
  color: #fff;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 50px;
  transition: background-color 0.3s ease;
}
.btn-whatsapp:hover {
  background-color: #1ebe5d;
}

/* Carrossel */
.carousel-item img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  transition: all 0.5s ease;
}

/* Rodapé */
#footer {
  background: var(--footer-bg-light);
  color: #fff;
  text-align: center;
  padding: 40px 20px;
  font-size: 16px;
  margin-top: 50px;
  transition: background var(--transition-duration) ease, color var(--transition-duration) ease;
}
#footer a {
  color: #f8f9fa;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}
#footer a:hover {
  color: #1e90ff;
}
body.dark-mode footer {
  background: var(--footer-bg-dark);
  color: #ddd;
}

/* Scroll Suave */
html {
  scroll-behavior: smooth;
}

/* Animação para a Logo no Modal */
#animatedLogo {
  width: 150px;
  animation: spinY 4s linear infinite;
}
@keyframes spinY {
  0% { transform: rotateY(0deg); }
  100% { transform: rotateY(360deg); }
}

/* Estilização da Imagem Saltando */
#jumpingImage {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 250px;
  opacity: 0;
  animation: jumpIn 5s ease-out forwards, fadeOut 5s ease-in 8s forwards;
}
@keyframes jumpIn {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  50% { transform: translate(-50%, -60%) scale(1.2); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
@keyframes fadeOut {
  0% { opacity: 1; }
  100% { opacity: 0; }
}

/* Estilização do Banner AutoService */
#bannerAutoService {
  width: 100vw; /* Ocupa toda a largura da tela */
  height: 300px; /* Altura recomendada */
  background-color:#00224f; /* Fundo azul escuro */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

/* Imagem centralizada e sem cortes */
#bannerAutoService::before {
  content: "";
  position: absolute;
  width: 1200px; /* Largura fixa da imagem */
  height: 100%;
  background: url('/softlineinfo/imagens/autoservice.png') no-repeat center;
  background-size: contain; /* Ajusta para caber sem cortes */
}

/* Ajustes para telas menores */
@media (max-width: 1200px) {
  #bannerAutoService::before {
    width: 100%; /* Faz a imagem se ajustar à largura menor */
  }
}

@media (max-width: 768px) {
  #bannerAutoService {
    height: 250px; /* Reduz altura em telas pequenas */
  }

  #bannerAutoService h1 {
    font-size: 2rem;
  }

  #bannerAutoService p {
    font-size: 1rem;
  }
}