/* 1. Variáveis de Cor e Configurações Globais */
:root {
    --cor-primaria: #FF6600; /* Laranja vibrante */
    --cor-texto: #333333; /* Cinza escuro para texto */
    --cor-fundo: #FFFFFF; /* Branco */
    --cor-fundo-secao: #f4f4f4; /* Cinza claro para seções */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

h1, h2 {
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--cor-texto);
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--cor-primaria);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

p {
    margin-bottom: 1.5rem;
}

.page-wrapper {
    position: relative;
    overflow-x: hidden;
}

/* 2. Cabeçalho e Hero Section */
header {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 2rem;
    position: static;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo img {
    max-height: 70px;
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

#hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../src/img/foto-loja-isamix.webp');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--cor-fundo);
    padding-top: 80px;
}

#hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--cor-fundo);
}

#hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-cta {
    background-color: var(--cor-primaria);
    color: var(--cor-fundo);
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.btn-cta:hover {
    background-color: #e65c00;
    transform: translateY(-3px);
}

/* ESTILOS DO MENU HAMBÚRGUER */
#nav {
    display: block;
}

#btn-mobile {
    display: none; /* Escondido no desktop */
}

#menu {
    display: flex;
    list-style: none;
    gap: .5rem;
}

#menu a {
    display: block;
    padding: .5rem;
}

/* AJUSTES NO HEADER PARA DESKTOP E MENU */

#nav {
    display: block; /* Garante que a navegação seja visível */
}

#menu {
    display: flex;
    justify-content: center; 
    list-style: none;
    gap: .5rem;
    margin-top: 1.5rem;     
}

#menu a {
    display: block;
    padding: .5rem 1rem;
    text-decoration: none;
    color: var(--cor-texto);
    font-weight: 700;
    position: relative; /* Necessário para o efeito do sublinhado */
    transition: color 0.3s ease;
}

#menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--cor-primaria);
    transition: all 0.3s ease-in-out;
}

#menu a:hover {
    color: var(--cor-primaria); 
}

#menu a:hover::after {
    width: 100%;
    left: 0;
}

#btn-mobile {
    display: none; /* Esconde o botão hambúrguer no desktop */
}

/* 3. Seções */
section {
    padding: 5rem 0;
}

#sobre{
    background-color: var(--cor-fundo-secao);
}

#sobre .container {
    display: flex;
    align-items: center;
    gap: 3rem;
}

#sobre img {
    max-width: 50%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

#vantagens {
    background-color: var(--cor-fundo-secao);
}

.grid-vantagens {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card-vantagem {
    background: var(--cor-fundo);
    padding: 2.5rem 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-top: 5px solid var(--cor-primaria);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-vantagem i {
    font-size: 55px;
    color: var(--cor-primaria);
    margin-bottom: 1.5rem;
    width: 60px;
    text-align: center;
}

.card-vantagem h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* SEÇÃO PRODUTOS */
#produtos {
    background-color: var(--cor-fundo);
}

.grid-categorias {
    display: grid;
    grid-template-columns: repeat(auto-fit, 300px); 
    gap: 2rem;
    justify-content: center; 
}

.card-categoria {
    background-color: var(--cor-fundo-secao);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card-categoria:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.card-categoria-content {
    padding: 1.5rem;
    text-align: center;
}

.card-categoria img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-categoria h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.legenda-card {
    font-size: 0.9rem;
    color: var(--cor-primaria);
    font-weight: 700;
    margin-bottom: 0;
}

/* SEÇÃO RELATOS */

.slider-container {
    width: 100%;
    max-width: 400px;
    margin: auto;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    display: block;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
}

.slider-btn.prev {
    left: 10px;
    border-radius: 5px 0 0 5px;
}

.slider-btn.next {
    right: 10px;
    border-radius: 0 5px 5px 0;
}

/* SEÇÃO LOGISTICA*/
#logistica{
    background-color: var(--cor-fundo-secao);
}

/* SEÇÃO REDES SOCIAIS */
.icones-sociais {
    display: flex;
    flex-direction: column; /* Empilha os links verticalmente */
    align-items: center;    /* Centraliza os links horizontalmente */
    gap: 25px;              
}

.icones-sociais a {
    display: inline-flex;  /* Torna o link um container flex para alinhar itens internos */
    align-items: center;   /* Alinha o ícone e o texto na vertical */
    gap: 15px;             
    text-decoration: none;
    color: var(--cor-texto);
    transition: all 0.3s ease;
}

.icones-sociais a:hover {
    transform: scale(1.05); 
    color: var(--cor-primaria);
}

.icones-sociais i {
    font-size: 40px; 
}

.icones-sociais span {
    font-size: 1.2rem; 
    font-weight: 700;  
}

/*SEÇÃO CTA FINAL */
#cta-final {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../src/img/entre-em-contato.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efeito parallax sutil */
    text-align: center;
    color: var(--cor-fundo);
}

#cta-final .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#cta-final p.cta-pre-titulo {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--cor-primaria); 
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

#cta-final h2 {
    color: var(--cor-fundo); 
    font-size: 2.8rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Remove a linha laranja abaixo do h2 apenas nesta seção */
#cta-final h2::after {
    display: none;
}

#cta-final .btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px; 
}

/* RODAPÉ */
footer {
    background-color: var(--cor-texto);
    color: var(--cor-fundo);
    text-align: center;
    padding: 2rem;
}

.developed-by a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #f1faee;
    font-size: 0.9rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.developed-by a:hover {
    color: #40C4FF;
    transform: scale(1.05); 
}

.developed-by img {
    height: 40px;
    width: auto;
}

/* BOTÃO WHATSAPP */
.whatsapp-flutuante {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 100;
    font-size: 32px;
    transition: transform 0.3s ease;
    text-decoration: none;
}

.whatsapp-flutuante:hover {
    transform: scale(1.1); /* Aumenta o tamanho do ícone em 10% */
}

/* ESTILOS DO MODAL DA GALERIA */
.modal {
    display: none; /* Escondido por padrão */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    align-items: center;
    justify-content: center;
}

.modal-fundo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-conteudo {
    position: relative;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-fechar {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #aaa;
    font-size: 38px;
    font-weight: bold;
    border: none;
    background: none;
    cursor: pointer;
}

.modal-fechar:hover {
    color: var(--cor-primaria);
}

#modal-titulo {
    text-align: center;
    margin-bottom: 2rem;
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.galeria-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
}

/* ANIMAÇÕES */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    
    header {
        position: static; 
    }

    header .container {
        display: flex;
        justify-content: space-between;
        align-items: center; 
        gap: 1.5rem;
    }

    #hero {
        padding-top: 0;
        background-position: 80% 50%; 
    }

    #hero h1{
        font-size: 2.8rem;
    }

    #hero p{
        font-size: 1.1rem;
    }

    #hero .hero-content {
        padding: 0 1.5rem; /* Adiciona um espaçamento de 24px nas laterais */
    }

    h1 { font-size: 2.8rem; }
    h2 { font-size: 2rem; }

    .filtro-produtos {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .filtro-btn {
        margin: 5px;
    }

    .developed-by a {
        white-space: nowrap;
    }
    
    #sobre .container {
        flex-direction: column;
    }

    #sobre img {
        max-width: 100%;
    }

    .whatsapp-flutuante {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    /* ESTILOS DO MENU HAMBÚRGUER PARA MOBILE */
    #menu {
        display: block;
        position: absolute;
        width: 100%;
        top: 80px; /* Altura do header */
        right: 0;
        background: #fff;
        transition: transform .3s ease-in-out;
        transform: translateX(100%); /* Esconde o menu fora da tela */
        z-index: 1000;
        height: 100vh;
        visibility: hidden;
    }

    #nav.active #menu {
        transform: translateX(0); /* Mostra o menu */
        visibility: visible;
    }

    #menu li {
        padding: 1rem 0;
        margin: 0 1rem;
        border-bottom: 1px solid rgba(0, 0, 0, .05);
    }

    #menu a {
        color: var(--cor-texto);
        text-decoration: none;
        font-size: 1.1rem;
    }

    #btn-mobile {
        display: flex; /* Mostra o botão no mobile */
        padding: .5rem 1rem;
        font-size: 1rem;
        border: none;
        background: none;
        cursor: pointer;
        gap: .5rem;
    }

    #hamburger {
        border-top: 2px solid;
        width: 20px;
        color: var(--cor-primaria);
    }

    #hamburger::after, #hamburger::before {
        content: '';
        display: block;
        width: 20px;
        height: 2px;
        background: currentColor;
        margin-top: 5px;
        transition: .3s;
        position: relative;
    }

    #nav.active #hamburger {
        border-top-color: transparent;
    }
    
    #nav.active #hamburger::before {
        transform: rotate(135deg);
    }

    #nav.active #hamburger::after {
        transform: rotate(-135deg);
        top: -7px;
    }
}

@media (max-width: 400px) {
    .developed-by a {
        flex-direction: column; /* Organiza os itens verticalmente */
        gap: 10px; /* Adiciona um espaço entre os itens empilhados */
        white-space: normal; /* Permite a quebra de linha novamente, se necessário */
    }
}