body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333; /* Texto principal em cinza escuro */
}

header {
    background-color: #000000; /* Preto para o cabeçalho */
    color: white;
    padding: 1em 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    margin: 0 auto;
}

nav .logo h1 {
    margin: 0;
    color: white;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffd700;
}

/* Destaque especial para o link Solicitar Orçamento */
nav ul li a[href="quote.html"] {
    background-color: #ffd700;
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

nav ul li a[href="quote.html"]:hover {
    background-color: #ffed4e;
    color: #000;
    transform: scale(1.05);
}

main {
    padding-top: 100px; /* Increased padding to avoid overlap with header */
}

section {
    padding: 40px 5%;
    margin: 20px 0;
    background-color: #f8f8f8; /* Fundo de seção mais claro */
    text-align: center;
}

#hero {
    background: url("https://via.placeholder.com/1500x500?text=TL+Energia+Background") no-repeat center center/cover;
    color: white;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-content h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.btn {
    background-color: #000000; /* Botões em preto */
    color: white; /* Texto dos botões em branco */
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #333333; /* Preto mais claro no hover */
}

.product-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: left;
}

.card h4 {
    color: #000000; /* Títulos de card em preto */
    margin-top: 0;
}

.btn-small {
    background-color: #000000; /* Botões pequenos em preto */
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.btn-small:hover {
    background-color: #333333; /* Preto mais claro no hover */
}

footer {
    background-color: #000000; /* Rodapé em preto */
    color: white;
    text-align: center;
    padding: 1em 0;
    position: relative;
    bottom: 0;
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
    }

    nav ul {
        margin-top: 10px;
    }

    nav ul li {
        margin: 0 10px;
    }

    .hero-content h2 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1em;
    }

    .product-cards {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
    }
}



/* Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0; /* Fallback background */
    box-sizing: border-box;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

/* Backgrounds for carousel slides */
.carousel-slide:nth-child(1) {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url("../img/carousel_1.png");
}
.carousel-slide:nth-child(2) {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url("../img/carousel_2.jpg");
}
.carousel-slide:nth-child(3) {
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url("../img/carousel_3.jpg");
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active,
.dot:hover {
    background-color: #717171;
}

/* Ensure hero-content is visible on top of slides */
.carousel-slide .hero-content {
    position: relative;
    z-index: 1;
}




/* Back to Top Button */
#myBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: #000000; /* Botão Voltar ao Topo em preto */
    color: white; /* Texto do botão em branco */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 15px; /* Some padding */
    border-radius: 10px; /* Rounded corners */
    font-size: 18px; /* Increase font size */
}

#myBtn:hover {
    background-color: #333333; /* Preto mais claro no hover */
}




/* Carousel Navigation Buttons */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 12px;
  margin-top: -22px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0,0,0,0.8);
  z-index: 10;
  transform: translateY(-50%);
}

.prev {
  left: 10px;
  border-radius: 0 3px 3px 0;
}

.next {
  right: 10px;
  border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,1);
}




.logo-img {
    width: 200px; /* Largura fixa conforme solicitado */
    height: 135px; /* Altura fixa conforme solicitado */
    object-fit: contain; /* Mantém proporção sem distorção */
    vertical-align: middle;
    /* Logo otimizado com fundo transparente - ideal para cabeçalho preto */
}

.contact-info, .contact-form, .map-container, .about-card {
    background-color: white;
    border: 1px solid #eee; /* Borda mais clara */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Sombra mais sutil */
    text-align: left;
}

.contact-form button {
    background-color: #000000; /* Botão do formulário em preto */
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

.contact-form button:hover {
    background-color: #333333; /* Preto mais claro no hover */
}

.about-card h3 {
    color: #000000; /* Títulos de card em preto */
    margin-top: 0;
    text-align: left;
}


