/* Resets básicos para todos os elementos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 50px;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #f8f8f8;
    color: #333;
}

/* Variáveis CSS para fontes */
:root {
    --font-montserrat: 'Montserrat', sans-serif;
    --font-lato: 'Lato', sans-serif;
}

.font-montserrat {
    font-family: var(--font-montserrat);
}

.font-lato {
    font-family: var(--font-lato);
}


/* Estilo para a seção Hero */
#home {
    width: 100vw;
    background-size: cover;
    background-position: center;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
                                rgba(255, 255, 255, 0.95) 0%,
                                rgba(255, 255, 255, 0.95) 40%,
                                rgba(255, 255, 255, 0.0) 60%,
                                rgba(255, 255, 255, 0.0) 100%
                                );
    z-index: 0;
}



header nav a {
    color: #fff !important;
}

header nav a:hover {
    color: #ccc !important;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

header a[href^="https://wa.me"] {
    color: #fff !important;
}

header a[href^="https://wa.me"] i {
    color: #fff !important;
}

/* Estilos do Carrossel V2 (Seção Produtos) */
.carousel-section-v2 {
    min-height: 60vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1;
    margin-bottom: 1rem;
}

.slide-v2 {
    display: grid;
    grid-template-columns: 4fr 5fr;
    align-items: center;
    gap: 1rem;
    animation: fadeIn 0.8s ease-in-out;
}

.text-content-v2 {
    text-align: left;
    padding-right: 1rem;
}

.lancamento-tag {
    display: inline-block;
    background-color: #000000;
    color: white;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 5px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.title-v2 {
    font-family: var(--font-montserrat);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: #1a202c;
    margin-bottom: 1rem;
}

.description-v2 {
    font-size: 0.95rem;
    color: #4a5568;
    line-height: 1.5;
    max-width: 450px;
    margin-bottom: 1rem;
}

.saiba-mais-btn-v2 {
    background-color: #000000;
    color: white;
    padding: 10px 10px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.3s;
    display: inline-block;
}
.saiba-mais-btn-v2:hover {
    background-color: #000000;
}

.image-content-v2 img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 60vh;
}

.arrow-v2 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.25rem;
    color: #333;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.arrow-v2:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}
.arrow-v2.prev { left: 10px; }
.arrow-v2.next { right: 10px; }

.pagination-v2 {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.slide-number-v2 {
    font-size: 2rem;
    font-weight: 700;
    color: #cbd5e0;
}
.slide-number-v2 .current {
    color: #2d3748;
}
.progress-bars-v2 {
    display: flex;
    gap: 5px;
}
.progress-bar-v2 {
    width: 30px;
    height: 4px;
    background-color: #e2e8f0;
    border-radius: 2px;
}
.progress-bar-v2.active {
    background-color: #000000;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Social Widget Flutuante */
.social-widget {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000; /* Z-index para os ícones sociais */
    display: flex;
    flex-direction: row;
    gap: 15px;
    background-color: rgba(0, 0, 0, 0.9);
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    color: rgb(255, 255, 255);
    font-size: 20px;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    color: #000;
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.facebook {
    background-color: #1877F2;
}

.social-icon.whatsapp {
    background-color: #25D366;
}

/* Nova Seção de Marcas */
.brands-section {
    padding-top: 3rem;
    padding-bottom: 1rem;
    background-color: #fff;
}

.brands-section .container {
    max-width: 1200px;
    margin: 0;
    padding: 1 1rem;
}

.brand-logo {
    width: 100px;
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    transform: translateX(90px)
}

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

.brand-logo[alt="Logo Gebbwork"] {
    width: 120px;
    height: 85px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
    transform: translateX(90px)

}


.brand-logo[alt="Logo Gebbwork"]:hover {
    filter: grayscale(0%);
    opacity: 1;
}


/* ############################################################### */
/* Media Query para Responsividade em telas pequenas (max-width: 768px) */
@media (max-width: 768px) {
    /* Ajustes do Cabeçalho - AGORA SERÁ UM FLEX ROW PRINCIPAL */
    header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 10px 10px;
        gap: 0;
        position: relative; /* Adicionado: Para que o menu nav absoluto se posicione em relação a ele */
    }

    /* Diminuir o tamanho da logo (Aumento de especificidade e !important) */
    header .container img {
        height: 42px !important;
        margin-bottom: 0;
    }

    /* Ajuste do contêiner flexível principal do HEADER */
    .container.mx-auto.flex.justify-between.items-center.px-4 {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    /* Ajuste para o contêiner do WhatsApp e Menu Toggle */
    header > div > div.flex.items-center.space-x-5 {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 15px;
    }

    /* Alinhar o número do telefone AO LADO do ícone do WhatsApp */
    header a[href^="https://wa.me"] {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 5px;
        color: #fff !important;
    }

    header a[href^="https://wa.me"] i {
        font-size: 1.3rem !important;
        color: #fff !important;
    }

    header a[href^="https://wa.me"] span {
        font-size: 0.9rem !important;
        color: #fff !important;
    }

    /* Menu de navegação em mobile */
    header nav {
        display: none !important; /* ALTERADO: Força display: none para esconder o menu */
        width: 100%;
        order: unset; /* Removido order, para o position: absolute funcionar sem conflito */
        position: absolute;
        top: 100%; /* Posição abaixo do header */
        left: 0; /* Alinha à esquerda do header */
        z-index: 100; /* Garante que o menu apareça ACIMA de todo o conteúdo */
        background-color: rgba(0, 0, 0, 0.95); /* Fundo preto semi-transparente */
        padding: 20px 0;
        box-shadow: 0px 4px 10px rgba(0,0,0,0.2);
    }

    header nav.active {
        display: flex !important; /* ALTERADO: Força display: flex para mostrar o menu quando ativo */
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    header nav ul {
        flex-direction: column;
        gap: 15px;
        background-color: transparent;
        padding: 0;
        width: 100%;
    }

    header nav ul li {
        color: #fff !important;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    header nav ul li:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    header nav ul li::after {
        display: none;
    }


    /* Botão de menu (hambúrguer) */
    .menu-toggle {
        display: block;
        color: #fff !important;
        order: unset;
    }

    html, body {
        scroll-padding-top: 1px; /* Você pode ajustar este valor */
    }

    /* Ajustes na seção Hero para Mobile */
    #home {
        background-size: cover; /* Voltamos para 'cover' para preencher mais */
        background-repeat: no-repeat; /* Continua sem repetição */
        background-position: center center; /* Tenta centralizar, mas podemos ajustar mais */
        min-height: 85vh; /* Aumentar a altura mínima para dar mais espaço à imagem. Experimente 90vh, 95vh, 100vh se necessário. */
    }

    .hero-content {
        padding-left: 20px;
        padding-right: 20px;
        max-width: 100%;
        align-items: center;
        text-align: center;
        padding-top: 80px; /* Adicionado: Para afastar o conteúdo do cabeçalho fixo */
        padding-bottom: 50px; /* Adicionado: Um pouco de espaço abaixo do conteúdo */
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 10px;
    }

    .hero-content p {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 20px;
    }

    .hero-content .btn {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    /* AJUSTE CRÍTICO: hero-overlay para mobile */
    .hero-overlay {
        /* Gradiente de branco para transparente, mais intenso no topo */
        background: linear-gradient(to bottom,
                                    rgba(240, 240, 240, 0.9) 0%, /* Quase sólido no topo */
                                    rgba(240, 240, 240, 0.7) 50%, /* Opacidade média no meio */
                                    rgba(240, 240, 240, 0.0) 80%, /* Transparente mais para baixo */
                                    rgba(240, 240, 240, 0.0) 100%
                                    );
        position: absolute; /* Garantir que o overlay cobre a imagem de fundo */
        top: 0; left: 0; width: 100%; height: 100%;
        z-index: 0; /* Certifique-se de que o texto esteja acima (z-index 10) */
    }

    /* Ajustes específicos para os carrosséis em mobile */
    .carousel-section-v2 {
        padding-top: 6rem;
    }
    .slide-v2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .text-content-v2 {
        text-align: center;
        order: 2;
    }
    .lancamento-tag {
        margin-bottom: 0.75rem;
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    .title-v2 {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    .description-v2 {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 1rem;
    }
    .saiba-mais-btn-v2 {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    .image-content-v2 {
        order: 1;
        position: relative;
        width: 90%;
        margin: 0 auto;
    }
    .image-content-v2 img {
        width: 100%;
        max-height: 40vh;
        margin-bottom: 0;
    }
    .arrow-v2 {
        display: flex;
        width: 40px;
        height: 40px;
        font-size: 1rem;
        background: rgba(0, 0, 0, 0.3);
        color: white;
    }
    .arrow-v2:hover {
        background: white;
        transform: translateY(-50%) scale(1.1);
    }
    .arrow-v2.prev { left: 10px; }
    .arrow-v2.next { right: 10px; }

    .pagination-v2 {
        position: absolute;
        bottom: -35px;
        right: 0px;
        left: auto;
        display: flex;
        align-items: center;
        gap: 3px;
    }
    .slide-number-v2 {
        font-size: 1.1rem;
        font-weight: 600;
    }
    .progress-bars-v2 {
        display: flex;
        gap: 4px;
    }
    .progress-bar-v2 {
        width: 22px;
        height: 3px;
        background-color: #e2e8f0;
        border-radius: 2px;
    }
    .progress-bar-v2.active {
        background-color: #000000;
    }

    .social-widget {
        bottom: 10px;
        padding: 8px 15px;
        gap: 10px;
    }
    .social-icon {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    /* Mobile adjustments for brands section */
    .brands-section {
        padding-top: 0rem;
        padding-bottom: 0rem;
    }
    .brands-section h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    .brands-logos {
        gap: 1rem;
        transform: translateX(-75px);
    }
    .brand-logo {
        width: 80px; /* Largura fixa menor para mobile */
        height: 50px; /* Altura fixa menor para mobile */
    }
}