/* Estilo Geral do Site - Desentupidora Chikaba */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f4f7f9; /* Azul bem claro de fundo */
    color: #333;
}

.container {
    width: 85%;
    margin: auto;
    overflow: hidden;
    padding: 0 20px;
}

/* ==================
   Cabeçalho
   ================== */
header {
    background: #0d47a1; /* Azul escuro principal */
    color: #ffffff;
    padding-top: 20px;
    min-height: 80px;
    border-bottom: #42a5f5 4px solid; /* Azul mais claro para detalhe */
}

header a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: bold;
}

header ul {
    padding: 0;
    margin: 0;
    float: right;
    margin-top: 25px;
}

header li {
    display: inline;
    padding: 0 15px;
}

header #branding {
    float: left;
}

header #branding h1 {
    margin: 0;
    font-size: 32px;
}

header .highlight {
    color: #bbdefb; /* Azul claro para destaque no nome */
}

header nav a:hover {
    color: #bbdefb;
}

/* Botão de Orçamento no Menu */
.button-orcamento {
    background-color: #25d366; /* Verde WhatsApp */
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
}

/* ==================
   Seções
   ================== */
section {
    padding: 30px 0;
}

h1, h2 {
    color: #0d47a1; /* Títulos em azul escuro */
}

/* Banner Principal */
#showcase {
    min-height: 400px;
    background: url('../img/banner-principal.jpg') no-repeat center center/cover;
    color: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-shadow: 2px 2px 5px #000;
}

#showcase h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: #fff;
}

#showcase p {
    font-size: 20px;
}

/* Boxes de Serviços */
#boxes {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.box {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    width: 30%;
    min-width: 280px;
}

.box img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Conteúdo Principal e Barra Lateral */
#main-content {
    display: flex;
    gap: 30px;
}

#main-col {
    flex: 3; /* Ocupa 3/4 do espaço */
}

aside#sidebar {
    flex: 1; /* Ocupa 1/4 do espaço */
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* ==================
   Formulário
   ================== */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #0d47a1;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box; /* Garante que o padding não aumente a largura */
}

.button-submit {
    display: inline-block;
    background: #0d47a1;
    border: none;
    padding: 15px 25px;
    color: #ffffff;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
}

.button-submit:hover {
    background: #1565c0;
}

/* ==================
   Rodapé
   ================== */
footer {
    padding: 25px;
    margin-top: 25px;
    color: #ffffff;
    background-color: #0d47a1;
    text-align: center;
}

/* ==================
   Ícone Flutuante WhatsApp
   ================== */
.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: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ================================================= */
/* CÓDIGO DE RESPONSIVIDADE               */
/* ================================================= */

/* Ajustes para telas de tablets e celulares (até 768px de largura) */
@media(max-width: 768px) {

    /* --- Cabeçalho e Navegação --- */
    header {
        padding-bottom: 20px;
    }

    header #branding,
    header nav,
    header nav ul {
        float: none; /* Remove o alinhamento flutuante */
        text-align: center; /* Centraliza tudo */
        width: 100%;
    }

    header nav ul {
        margin-top: 20px;
    }
    
    header li {
        display: block; /* Faz cada item do menu ocupar uma linha */
        padding: 10px;
        border-bottom: 1px solid #005f9e;
    }
    header li:last-child {
        border-bottom: none;
    }

    /* --- Banner Principal --- */
    #showcase h1 {
        font-size: 38px; /* Diminui o tamanho do título principal */
    }

    #showcase p {
        font-size: 18px; /* Diminui o tamanho do subtítulo */
    }

    /* --- Caixas de Serviços --- */
    #boxes .box {
        width: 90%; /* Faz cada caixa de serviço ocupar quase toda a largura */
        margin-bottom: 20px;
        float: none;
    }

    /* --- Layout de Colunas --- */
    #main-col {
        width: 100%; /* Faz a coluna principal ocupar 100% da largura */
        float: none;
        padding-right: 0;
    }

    aside#sidebar {
        width: 100%; /* Faz a barra lateral ocupar 100% da largura e ir para baixo */
        float: none;
        margin-top: 20px;
    }
    
    .container {
        width: 95%; /* Aumenta a largura do container para aproveitar mais a tela */
    }

    /* --- Ícone do WhatsApp --- */
    .whatsapp-float {
        width: 50px; /* Diminui um pouco o ícone */
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float i {
        margin-top: 15px;
    }
}

/* ================================================= */
/* CORREÇÃO DE ESPAÇAMENTO VERTICAL (MARGIN)         */
/* ================================================= */

#main-content {
    margin-top: 40px; /* Adiciona um espaço superior de 40 pixels */
}