/* Variáveis e Configurações Globais */
:root {
    --primary-color: #ffcc00; /* Amarelo da marca */
    --secondary-color: #111111; /* Preto */
    --bg-light: #f9f9f9;
    --text-color: #333333;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-align: center;
}

/* Cabeçalho */
header {
    background-color: var(--primary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    display: block;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary-color);
    cursor: pointer;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--white);
}

/* Banner Rotativo */
.banner-container {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

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

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-text {
    position: absolute;
    bottom: 20%;
    left: 10%;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.banner-text h2 {
    color: var(--white);
    text-align: left;
    font-size: 3rem;
}

/* Quem Somos */
.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
}

/* Estilização do Carrossel de Logotipos Infinito */
.carousel-container {
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 10px 0;
    white-space: nowrap;
}

.carousel-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollCarousel 25s linear infinite;
}

.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

@keyframes scrollCarousel {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.logo-item {
    min-width: 180px;
    height: 90px;
    background: var(--white);
    border: 2px solid #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    flex-shrink: 0;
}

.logo-item img {
    max-height: 50px;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: var(--transition);
}

.logo-item:hover {
    border-color: var(--primary-color);
    background-color: #fffdf5;
    transform: translateY(-3px);
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

/* Modal Principal (Galeria) */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    overflow-y: auto;
    padding: 40px 20px;
}

.modal-content {
    background-color: var(--white);
    margin: auto;
    padding: 40px;
    border-radius: 12px;
    max-width: 1000px;
    width: 100%;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #333;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-title {
    font-size: 2rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 10px;
}

.modal-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

/* Grid de Produtos / Galeria */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.gallery-card {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

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

.gallery-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.gallery-info h4 {
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-size: 1.15rem;
}

.gallery-info p {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Botão WhatsApp Elegante */
.btn-whatsapp-prod {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #25d366;
    color: var(--white);
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    width: 100%;
    box-shadow: 0 2px 5px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp-prod:hover {
    background-color: #1ebd56;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}

/* Lightbox Modal (Zoom da imagem) */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 4000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-modal.active {
    display: flex;
}

.lightbox-img {
    max-width: 85%;
    max-height: 85vh;
    border-radius: 4px;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Localização */
.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Contato */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 30px;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
}

.btn-submit {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 12px 25px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: #333;
}

.social-contact {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    height: fit-content;
}

.social-contact h3 {
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.social-contact p {
    margin-bottom: 15px;
}

.social-contact a {
    text-decoration: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.social-contact a:hover {
    color: var(--primary-color);
}

.social-contact i {
    font-size: 1.3rem;
}

/* Rodapé */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
}

/* Botão WhatsApp Flutuante nas Cores da Marca */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: var(--transition);
    border: 2px solid var(--secondary-color);
}

.whatsapp-float:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Responsividade */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--secondary-color);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    nav.active {
        max-height: 350px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
    }

    nav ul li a {
        color: var(--white);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}