/* --- 1. VARIÁVEIS E RESET --- */
:root {
    --primaria: #e63946; /* Vermelho Volcane */
    --escura: #1d3557;   /* Azul Petróleo (Solidéz) */
    --fundo: #f8f9fa;    /* Cinza quase branco */
    --texto: #333333;
    --branco: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--texto);
    background-color: var(--fundo);
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. CABEÇALHO (Sticky) --- */
header {
    background: var(--branco);
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-flex {
    display: flex;
    justify-content: space-between; /* Logo na esquerda, Contatos na direita */
    align-items: center;
    gap: 20px;
}

.logo img {
    height: 80px;
    width: auto;
    display: block;
}

/* HUB DE CONTATOS */
.header-center {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f9fa;
    padding: 10px 25px;
    border-radius: 50px;
    border: 1px solid #eee;
}

.contato-item {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.contato-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primaria);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.contato-numero {
    font-size: 1rem;
    font-weight: 700;
    color: var(--escura);
    text-decoration: none;
    transition: 0.3s;
}

.contato-email {
    font-size: 0.9rem;
}

.contato-numero:hover {
    color: var(--primaria);
}

.contato-divisor {
    width: 1px;
    height: 30px;
    background: #ddd;
}

/* --- RESPONSIVIDADE --- */

@media (max-width: 992px) {
    .header-flex {
        flex-direction: column; /* Empilha logo e contatos no tablet/celular */
        text-align: center;
        gap: 15px;
    }
    
    .header-center {
        width: 100%; /* Hub ocupa a largura total no mobile */
        justify-content: center;
        padding: 10px;
        border-radius: 10px;
    }
}

@media (max-width: 600px) {
    .logo img {
        height: 50px;
    }

    .header-center {
        gap: 10px;
    }

    .contato-numero {
        font-size: 0.8rem; /* Ajuste para caber tudo em telas pequenas */
    }

    .contato-label {
        font-size: 0.55rem;
    }

    .contato-divisor {
        height: 20px;
    }
}

/* --- 3. HERO SECTION (Imagens Diferentes) --- */

/* Versão Mobile (Padrão) - Proporção sugerida 1080x1350 */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('img/hero-mobile.jpg') no-repeat center center/cover;
    color: var(--branco);
    padding: 80px 0;
    text-align: center;
    min-height: 450px;
    display: flex;
    align-items: center;
}

/* Versão Desktop (Telas maiores que 768px) - Proporção sugerida 1920x600 */
@media (min-width: 768px) {
    .hero {
        background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                    url('img/hero-desktop.jpg') no-repeat center center/cover;
        min-height: 550px; 
        padding: 120px 0;
    }
    .hero h1 { font-size: 3.5rem; }
}

.hero h1 { margin-bottom: 20px; line-height: 1.2; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }

.btn-hero {
    background: transparent;
    color: var(--branco);
    border: 2px solid var(--branco);
    padding: 12px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    transition: 0.3s;
}
.btn-hero:hover { background: var(--branco); color: var(--escura); }

/* --- 4. GRADE DE PRODUTOS (Correção p/ 800x600) --- */
.produtos { padding: 80px 0; }
.titulo-sessao { text-align: center; margin-bottom: 50px; font-size: 2.2rem; color: var(--escura); }

.grid-produtos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.card {
    background: var(--branco);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover { transform: translateY(-8px); }

/* Container da Imagem: Ajustado para não cortar a foto 800x600 */
.card-img {
    width: 100%;
    height: 250px; /* Altura fixa para manter o alinhamento dos cards */
    background: #ffffff; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.card-img img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Garante que a imagem apareça inteira */
}

.card-body {
    padding: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 { margin-bottom: 12px; color: var(--escura); font-size: 1.3rem; }
.card-body p { font-size: 0.95rem; color: #666; margin-bottom: 20px; flex-grow: 1; }

.btn-card {
    background: var(--escura);
    color: var(--branco);
    text-decoration: none;
    padding: 12px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}
.btn-card:hover { background: var(--primaria); }

/* --- 5. RODAPÉ --- */
/* --- FOOTER PROFISSIONAL VOLCANE --- */
.main-footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 0 0;
    margin-top: 50px;
    border-top: 4px solid var(--primaria);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--primaria);
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col p {
    color: #ccc;
    font-size: 0.95rem;
    margin-bottom: 10px;
    line-height: 1.6;
}

.footer-link-map {
    display: inline-block;
    color: #fff;
    background: #333;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.85rem;
    margin-top: 10px;
    transition: 0.3s;
}

.footer-link-map:hover {
    background: var(--primaria);
}

/* Links do ML e Site */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-links a:hover {
    color: var(--primaria);
    padding-left: 5px;
}

/* Barra Inferior */
.footer-bottom {
    background-color: #000;
    padding: 20px 0;
    font-size: 0.8rem;
    color: #666;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.legal-info .sep {
    margin: 0 10px;
}

* --- ESTILO DO LOGO DO DESENVOLVEDOR --- */
.developer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.developer span {
    font-size: 0.8rem;
    color: #888;
}

.dev-logo-img {
    height: 40px; /* Define uma altura pequena e elegante */
    width: auto;
    filter: grayscale(100%) brightness(1.5); /* Deixa o logo cinza claro para não brigar com o design */
    transition: 0.3s;
    display: block;
}

.dev-logo-img:hover {
    filter: grayscale(0%) brightness(1); /* Ganha cor original ao passar o mouse */
}

/* Estilo caso opte por usar apenas texto para o dev */
.dev-nome {
    font-weight: 800;
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-decoration: none;
}

/* Responsividade Rodapé */
@media (max-width: 768px) {
    .footer-grid {
        text-align: center;
    }
    .footer-col h4 {
        justify-content: center;
    }
    .bottom-flex {
        justify-content: center;
        text-align: center;
    }
}

/* --- 6. WHATSAPP FLUTUANTE --- */
.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: #25d366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: 0.3s;
}
.whatsapp-btn:hover { transform: scale(1.05); background: #20ba5a; }

/* Ajuste do WhatsApp no Mobile */
@media (max-width: 768px) {
    .whatsapp-btn span { display: none; } /* Deixa apenas o ícone no celular */
    .whatsapp-btn { padding: 15px; border-radius: 50%; bottom: 20px; right: 20px; }
}

/* --- CARROSSEL HERO --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px; /* Mobile */
    overflow: hidden;
    background: #000;
}

@media (min-width: 768px) {
    .hero-slider { height: 600px; }
}

.slider-wrapper {
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Conteúdo */
.hero-content {
    max-width: 700px;
    color: var(--branco);
    text-shadow: 2px 2px 15px rgba(0,0,0,0.9);
    
    /* Garante que os itens fiquem um abaixo do outro */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Alinha o texto à esquerda. Use 'center' se preferir centralizado */
    justify-content: center;
    padding: 20px;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px; /* Espaço entre título e subtexto */
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 35px; /* AQUI ESTÁ A SOLUÇÃO: Empurra o botão para baixo */
    line-height: 1.6;
    max-width: 90%; /* Evita que o texto encoste nas bordas em telas pequenas */
}

.btn-hero {
    display: inline-block; /* Garante que o botão respeite as margens */
    padding: 15px 35px;
    background: var(--primaria);
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    text-shadow: none; /* Remove a sombra do texto apenas de dentro do botão */
    transition: 0.3s;
}

/* Ajuste para telas maiores */
@media (min-width: 768px) {
    .hero-content h1 { font-size: 3.5rem; }
    .hero-content p { font-size: 1.4rem; }
}

/* SETAS DE NAVEGAÇÃO */
.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    padding: 20px 15px;
    cursor: pointer;
    z-index: 10;
    font-size: 20px;
    transition: 0.3s;
    border-radius: 0 5px 5px 0;
}

.slider-next { right: 0; border-radius: 5px 0 0 5px; }
.slider-prev:hover, .slider-next:hover { background: var(--primaria); }

/* BOLINHAS (DOTS) */
.nav-dots {
    position: absolute;
    bottom: 25px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid rgba(0,0,0,0.3);
    transition: 0.3s;
}

.dot.active {
    background: var(--primaria);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* Imagens (Mantendo a lógica Desktop/Mobile) */
.slide1 { background-image: url('img/empresabk-mob.jpg'); }
.slide2 { background-image: url('img/cupombk-mob.jpg'); }
.slide3 { background-image: url('img/bk2-mob.jpg'); }
.slide4 { background-image: url('img/bk4-mob.jpg'); }

@media (min-width: 768px) {
    .slide1 { background-image: url('img/empresabk-desk.jpg'); }
    .slide2 { background-image: url('img/cupombk-desk.jpg'); }
    .slide3 { background-image: url('img/bk2-desk.jpg'); }
    .slide4 { background-image: url('img/bk4-desk.jpg'); }
}