/* CSS do site Danilo Elétrica e Instalação */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

/* Cabeçalho */
header {
    background-color: #004080;
    color: white;
    padding: 2px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header h1 {
    margin: 0;
    font-size: 1.5em;
}

nav a {
    color: white;
    margin-left: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}
nav a:hover {
    color: #ffd700;
}

/* Botão WhatsApp */
.whatsapp-button {
    background-color: #25D366;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
}
.whatsapp-button:hover {
    background-color: #04b13e;
}

/* Banner com imagem de fundo */
.banner {
  width: 100%;
  height: 80px; /* altura do banner */
  overflow: hidden;
  position: relative;
  border-radius: 5px;
}

.slides {
  display: flex;
  width: 100%; /* 3 imagens = 300% */
  animation: slide 12s infinite;
}

.slide {
  width: 100%;
  flex-shrink: 0;
}

.slide img {
  width: 100%;
  height: 300px;
  object-fit: 95px; /* imagem cobre toda a área */
}

@keyframes slide {
  0% { transform: translateX(0); }
  16% { transform: translateX(0); }

  20% { transform: translateX(-100%); }
  36% { transform: translateX(-100%); }

  40% { transform: translateX(-200%); }
  56% { transform: translateX(-200%); }

  60% { transform: translateX(-300%); }
  76% { transform: translateX(-300%); }

  80% { transform: translateX(-400%); }
  96% { transform: translateX(-400%); }

  100% { transform: translateX(0); }
}
.banner h2, .banner p {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
}

/* Serviços */
.services {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}
.service {
    background-color: #f2f2f2;
    padding: 25px;
    border-radius: 15px;
    width: 300px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.service:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Sobre */
section#sobre p {
    max-width: 800px;
    margin: 20px auto;
    text-align: center;
}

/* Contato */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.contact-form input, .contact-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    width: 100%;
    transition: border 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus {
    border-color: #004080;
    outline: none;
}
.contact-form button {
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #004080;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}
.contact-form button:hover {
    background-color: #00264d;
}

/* Botão flutuante do WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Rodapé */
footer {
    background-color: #00264d;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

/* Responsivo */
@media (max-width: 768px) {
    .services {
        flex-direction: column;
        align-items: center;
    }
}
header {
  display:flex;
  align-items: center;
  gap: 5px; /* Espaço entre a logo e o texto */
}

.logo {
  height: 80px; /* Ajuste o tamanho conforme sua imagem */
  width: 420px;
}

