/* ARQUIVO: /assets/css/style.css */

/* =========================================
   1. RESET E VARIÁVEIS GLOBAIS
   ========================================= */
:root {
    /* Paleta de Cores Premium */
    --color-primary: #1B2631;    /* Azul Marinho Profundo (Confiança/Luxo) */
    --color-secondary: #34495E;  /* Azul Petróleo (Detalhes) */
    --color-accent: #C0A062;     /* Dourado Metálico (Madeira/Requinte) */
    --color-accent-hover: #a3864d; /* Dourado Escuro (Hover) */
    --color-bg: #F8F9FA;         /* Off-White (Fundo Limpo) */
    --color-white: #FFFFFF;
    --color-text: #2C3E50;       /* Cinza Chumbo (Texto Principal) */
    --color-text-light: #7F8C8D; /* Cinza Claro (Legendas) */
    
    /* Tipografia */
    --font-heading: 'Montserrat', sans-serif; /* Títulos Modernos */
    --font-body: 'Lato', sans-serif;          /* Texto Corrido */
    
    /* Layout */
    --container-width: 1400px;
    --border-radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
}

a { text-decoration: none; transition: all 0.3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* =========================================
   2. BARRA DE TOPO (TOP BAR)
   ========================================= */
.top-bar {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 12px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-info span { margin-right: 20px; }
.contact-info i { color: var(--color-accent); margin-right: 8px; }

.social-links a { 
    color: var(--color-white); 
    margin-left: 20px; 
    font-weight: 500; 
    display: inline-flex;
    align-items: center;
}
.social-links a:hover { color: var(--color-accent); }
.social-links i { margin-right: 6px; font-size: 1rem; }

/* =========================================
   3. CABEÇALHO E NAVEGAÇÃO
   ========================================= */
header {
    background: var(--color-white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    border: 2px solid var(--color-primary);
    padding: 8px 15px;
}

.nav-links { display: flex; gap: 35px; }
.nav-links a {
    color: var(--color-text);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

/* Efeito de sublinhado animado no menu */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--color-accent);
    transition: width 0.3s;
}
.nav-links a:hover { color: var(--color-primary); }
.nav-links a:hover::after { width: 100%; }

/* =========================================
   4. HERO SECTION (BANNER)
   ========================================= */
.hero {
    height: 80vh;
    /* Certifique-se de ter uma imagem chamada hero-bg.jpg na pasta /assets/img/ */
    background: linear-gradient(rgba(27, 38, 49, 0.7), rgba(27, 38, 49, 0.5)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    padding: 0 20px;
}

.hero-content { max-width: 800px; animation: fadeIn 1.5s ease; }

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--color-white);
    text-shadow: 0 4px 15px rgba(0,0,0,0.5);
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.3rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* =========================================
   5. COMPONENTES E BOTÕES
   ========================================= */
.btn-cta {
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 18px 45px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 15px rgba(192, 160, 98, 0.4);
    display: inline-block;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-cta:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(192, 160, 98, 0.5);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-whatsapp:hover { background-color: #128C7E; }

.section-title {
    text-align: center;
    margin: 80px 0 50px;
    position: relative;
}
.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--color-primary);
}
.section-title p {
    color: var(--color-text-light);
    font-size: 1.1rem;
}
/* Linha decorativa abaixo do título */
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: 20px auto 0;
}

/* =========================================
   6. GRID DE PRODUTOS (VITRINE)
   ========================================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    padding: 0 5% 80px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.product-card {
    background: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.product-img {
    height: 280px;
    background-color: #e0e0e0;
    overflow: hidden;
    position: relative;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .product-img img { transform: scale(1.1); }

.product-info { padding: 30px; text-align: left; }

.badge-tech {
    display: inline-block;
    background-color: var(--color-bg);
    color: var(--color-secondary);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #e0e0e0;
    letter-spacing: 0.5px;
}

.product-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.product-specs {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 25px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}
.product-specs span { display: block; margin-bottom: 8px; }
.product-specs i { width: 20px; color: var(--color-accent); text-align: center; }

/* =========================================
   7. PÁGINA DE DETALHES DO PRODUTO
   ========================================= */
.produto-container { padding: 60px 5%; max-width: var(--container-width); margin: 0 auto; }

.produto-galeria img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Tabela de Especificações */
.specs-box {
    background: var(--color-white);
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.specs-box h3 {
    background: #fafafa;
    padding: 18px 25px;
    font-size: 1.1rem;
    border-bottom: 1px solid #eee;
    color: var(--color-primary);
}

.specs-box table tr { transition: background 0.2s; }
.specs-box table tr:hover { background: #fdfdfd; }
.specs-box table tr:last-child { border-bottom: none; }
.specs-box table td { font-size: 1rem; border-bottom: 1px solid #eee; }

/* Badges Especiais (Detalhes) */
.badge-waterproof { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }
.badge-spc { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.badge-click { background: #fff3e0; color: #ef6c00; border: 1px solid #ffe0b2; }

.badge-waterproof, .badge-spc, .badge-click {
    display: inline-block;
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-right: 10px;
    margin-top: 10px;
}

/* =========================================
   8. RODAPÉ (FOOTER)
   ========================================= */
footer {
    background-color: var(--color-primary);
    color: rgba(255,255,255,0.8);
    padding: 80px 5% 40px;
    text-align: center;
    font-size: 0.9rem;
    border-top: 5px solid var(--color-accent);
}

footer p { margin-bottom: 10px; }

/* =========================================
   9. RESPONSIVIDADE (MOBILE)
   ========================================= */
/* =========================================
   9. RESPONSIVIDADE E MENU MOBILE (SUBSTITUA O FINAL DO ARQUIVO)
   ========================================= */

/* Botão do Menu (Invisível no Desktop) */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--color-primary);
    cursor: pointer;
}

/* Configurações para Celular/Tablet */
@media (max-width: 900px) {
    
    /* Ajuste da Barra de Navegação */
    .navbar {
        flex-wrap: wrap; /* Permite que o menu quebre de linha */
        padding: 15px 5%;
    }

    .brand-logo {
        font-size: 1.4rem; /* Logo um pouco menor */
    }

    /* Mostra o ícone do hambúrguer */
    .menu-toggle {
        display: block; 
    }

    /* ESCONDE o menu por padrão */
    .nav-links {
        display: none; /* O Segredo está aqui! */
        width: 100%;
        flex-direction: column;
        text-align: center;
        background-color: var(--color-white);
        margin-top: 20px;
        border-top: 1px solid #eee;
        padding-top: 10px;
    }

    /* MOSTRA o menu quando o Javascript adiciona a classe .active */
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links li {
        margin: 10px 0;
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 15px;
        background-color: #f9f9f9; /* Fundo leve para diferenciar botões */
        border-radius: 4px;
    }

    /* Ajustes Gerais de Layout no Mobile */
    .hero-content h1 { font-size: 2.2rem; }
    .hero { height: 60vh; } /* Hero menor no celular */
    
    .produto-container > div {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    
    .top-bar { display: none; } /* Opcional: Esconder a barra preta do topo no celular para ganhar espaço */
}

/* Animação suave ao abrir o menu */
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}