/* RESET E ESTILOS BÁSICOS */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, Helvetica, sans-serif; line-height: 1.6; color: #333; scroll-behavior: smooth; }

.bg-light { background-color: #f9f9f9; }
.container-small { max-width: 800px; margin: 0 auto; }

/* TOPO E MENU */
.top-bar { background-color: #111; color: #fff; display: flex; justify-content: space-around; padding: 8px 16px; font-size: 14px; }
.header { display: flex; justify-content: space-between; align-items: center; padding: 20px 50px; background-color: #000; position: sticky; top: 0; z-index: 100; }
.logo h1 { color: #2ecc71; font-size: 24px; }
.menu a { color: #fff; text-decoration: none; margin-left: 20px; font-weight: bold; font-size: 15px; }
.menu a:hover { color: #2ecc71; }

/* HERO COM DEGRADÊ */
.hero {
    background-image: url("https://lh3.googleusercontent.com/d/1gGT754VHhp16qW-4GyaKUTgUv_yWuzP0");
    background-size: cover; background-position: center; min-height: 80vh;
    display: flex; align-items: center; padding: 80px; position: relative;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 80%);
    z-index: 1;
}
.hero-content { position: relative; max-width: 600px; color: #fff; z-index: 2; }
.hero-content h2 { font-size: 48px; margin-bottom: 8px; line-height: 1.2; }
.btn { display: inline-block; background-color: #2ecc71; color: #000; padding: 12px 30px; text-decoration: none; font-weight: bold; border-radius: 5px; margin-top: 30px}
.btn:hover { transform: scale(1.1); background-color: #128c7e; }

/* SEÇÕES GERAIS */
.section { padding: 80px 40px; text-align: center; }
.section h2 { font-size: 32px; margin-bottom: 20px; position: relative; padding-bottom: 10px; }

/* SEÇÃO SOBRE */
.about-section p { font-size: 18px; color: #555; margin-bottom: 20px; text-align: justify; }

/* GRID SERVIÇOS E PORTFÓLIO */
.services-grid, .portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 40px; }
.service-card { background-color: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: 0.3s; }
.service-card:hover { transform: translateY(-5px); }

/* PORTFÓLIO */
/*.portfolio { background-color: #fafafa; }
.portfolio-item { background-color: #fff; border-radius: 8px; overflow: hidden; border: 1px solid #eee; }
.portfolio-image { height: 180px; background-color: #ddd; }
.portfolio-item span { display: block; padding: 15px; font-weight: bold; color: #333; }

/* FORMULÁRIO DE ORÇAMENTO (ESTILO 002) */
.contact { background-color: #fff; padding: 80px 20px; text-align: center; }
.contact-content { max-width: 450px; margin: auto; }
.contact-content h2 { color: #006437; font-size: 32px; margin-bottom: 30px; }
.contact-content h3 { color: #010805; font-size: 14px; margin-bottom: 10px; }
.form-group { text-align: left; margin-bottom: 15px; }
.form-group label { display: block; color: #006437; font-weight: bold; margin-bottom: 5px; }
.contact-content input, .contact-content select { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 8px; font-size: 16px; color: #006437; }
.btn-submit { width: 100%; background-color: #2ecc71; color: #fff; border: none; padding: 15px; font-size: 20px; font-weight: bold; border-radius: 12px; cursor: pointer; margin-top: 20px; }
.btn-submit:hover { transform: scale(1.1); background-color: #128c7e; }

/* RODAPÉ */
.footer { background-color: #000; color: #fff; text-align: center; padding: 20px; }

/* WHATSAPP FLUTUANTE */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px;
    background-color: #25d366; color: #FFF; border-radius: 50px;
    text-align: center; font-size: 35px; box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000; display: flex; align-items: center; justify-content: center;
    text-decoration: none; transition: 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); background-color: #128c7e; }

/* RESPONSIVIDADE */
@media (max-width: 768px) {
    .header { flex-direction: column; padding: 20px; }
    .menu { margin-top: 15px; }
    .hero-content h2 { font-size: 32px; }
    .section { padding: 60px 20px; }
}
/* Isso vai limitar a imagem que está dentro da div .logo */
.logo img {
    height: 60px;       /* Ajuste essa altura conforme o seu gosto */
    width: auto;        /* Mantém a proporção da imagem sem achatar */
    display: block;     /* Remove espaços extras abaixo da imagem */
    max-width: 100%;    /* Garante que ela não ultrapasse o limite da tela */
}

/* Se quiser alinhar a logo com o texto (caso ainda use o h1) */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;          /* Espaço entre a imagem e o texto */
}
/* --- NOVOS AJUSTES DE RESPONSIVIDADE E ESPAÇAMENTO --- */

@media (max-width: 768px) {
    /* 1. Ajusta a barra do topo para não amontoar os ícones */
    .top-bar {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px;
        gap: 5px;
    }

    /* 2. Ajusta o menu para os links não ficarem colados */
    .menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        margin-left: 0;
    }
    
    .menu a {
        margin-left: 0; /* Remove a margem lateral fixa para centralizar melhor */
        padding: 5px 10px;
    }

    /* 3. Ajusta a seção principal (Hero) no celular */
    .hero {
        padding: 40px 20px; /* Reduz o padding lateral que era 80px */
        justify-content: center;
        text-align: center;
    }

    .hero::before {
        /* No celular, escurecemos a imagem inteira para o texto centralizado ler melhor */
        background: rgba(0, 0, 0, 0.7);
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h2 {
        font-size: 28px; /* Título menor para caber na tela do celular */
    }

    /* 4. Faz os Cards de Serviços e Portfólio ficarem um embaixo do outro */
    .services-grid, .portfolio-grid {
        grid-template-columns: 1fr; 
    }
}

/* 5. Ajuste de espaço extra no botão que você pediu (independente do tamanho da tela) */
.hero-content .btn {
    margin-top: 40px; /* Aumenta o espaço entre o texto e o botão */
}
/* Estilo geral para todas as imagens do portfólio */
.portfolio-image {
    height: 180px;
    background-size: cover;    /* Faz a imagem preencher o espaço sem distorcer */
    background-position: center; /* Centraliza a foto no quadro */
    background-repeat: no-repeat;
}

/* Link para a Imagem 1 */
.img-1 {
    background-image: url('https://lh3.googleusercontent.com/d/1t0uyB_lxDCznW6RZONziEFs3zoY7PKoG');
}

/* Link para a Imagem 2 */
.img-2 {
    background-image: url('https://lh3.googleusercontent.com/d/1z0BzKwHM76ahvheb9Ud71JFBYFdqkIXE');
}

/* Link para a Imagem 3 */
.img-3 {
    background-image: url('https://lh3.googleusercontent.com/d/1LC89l8OOGasO_XoTxvqqS1-hFLMZOlH4');
}
/* Link para a Imagem 4 */
.img-4 {
    background-image: url('https://lh3.googleusercontent.com/d/19Xi7Jby19lRtCnG1kra6Q9PoJ08QQDn3');
}
/* Link para a Imagem 5 */
.img-5 {
    background-image: url('https://lh3.googleusercontent.com/d/1ONDutIQZRq_gFUv3pFHgUAdLlO7IpcwW');
}
/* Link para a Imagem 6 */
.img-6 {
    background-image: url('https://lh3.googleusercontent.com/d/1GYzJebS7BURXfokHnvazenzasm1mcUDb');
}
/* Link para a Imagem 7 */
.img-7 {
    background-image: url('https://lh3.googleusercontent.com/d/1KmTPFIyE_M75lk9n80Gk2O1zkgUM4uKv');
}
/* Link para a Imagem 8 */
.img-8 {
    background-image: url('https://lh3.googleusercontent.com/d/1cBF6_hh9Ap84VMny5cWseVj5eSg1b7Gs');
}
/* Link para a Imagem 9 */
.img-9 {
    background-image: url('https://lh3.googleusercontent.com/d/1LfpzfMwNllVdMEpk124lfS-G840Rmh8s');
}
/* Link para a Imagem 10 */
.img-10 {
    background-image: url('https://lh3.googleusercontent.com/d/1czli-5-HrOQjjEoEA9PI_D60Eq8N65GI');
}
/* Link para a Imagem 11 */
.img-11 {
    background-image: url('https://lh3.googleusercontent.com/d/1b8zupVfVRY15wBDOSfgVW6QOwcSUFbh9');
}
/* Link para a Imagem 12 */
.img-12 {
    background-image: url('https://lh3.googleusercontent.com/d/1nBwSXTW77nM0qDnQw66G5JCkWR00LWD_');
}

/* Container do item - agora ele controla o corte da imagem */
.portfolio-item {
    position: relative;
    height: 250px; /* Aumentei um pouco a altura para ficar mais imponente */
    border-radius: 12px;
    overflow: hidden; /* Importante: esconde a imagem quando ela cresce no zoom */
    border: none;
}

/* A imagem em si */
.portfolio-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease; /* Suavidade no zoom */
}

/* Efeito de Zoom ao passar o mouse */
.portfolio-item:hover .portfolio-image {
    transform: scale(1.1); /* Amplia a imagem em 10% */
}

/* A etiqueta de texto no topo esquerdo */
.portfolio-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.7); /* Fundo escuro transparente */
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    z-index: 2; /* Garante que o texto fique acima da imagem */
    pointer-events: none; /* Evita que o texto atrapalhe o hover */
}

/* Overlay Escuro (Opcional: deixa a imagem um pouco mais escura para o texto ler melhor) */
.portfolio-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 50%);
    z-index: 1;
}
/* Estilo do Popup */
.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fundo escurecido */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 9999;
}

.popup-container.mostrar {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.popup-content i {
    color: #25D366; /* Verde do WhatsApp */
    font-size: 50px;
    margin-bottom: 15px;
    display: block;
}

.popup-content p {
    font-weight: bold;
    color: #333;
    font-family: sans-serif;
}
