/* ==========================================================================
   RESET E CONFIGURAÇÕES GLOBAIS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f9fa;
    color: #333333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   CABEÇALHO E MENU DE NAVEGAÇÃO (HEADER CORRIGIDO)
   ========================================================================== */
.main-header {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    flex-wrap: wrap; /* Permite quebra de linha em telas médias */
}

.logo a {
    color: #1A252F;
    text-decoration: none;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap; /* Ajuda na responsividade do menu */
}

.nav-menu a {
    color: #4a5568;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
    display: inline-block;
    padding: 10px 5px;
}

.nav-menu a:hover {
    color: #1A252F;
}

.nav-menu i {
    margin-right: 5px;
    opacity: 0.8;
}

/* Mecanismo Corrigido do Dropdown */
.dropdown {
    position: relative; /* Essencial para o dropdown se alinhar ao pai */
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%); /* Centraliza o submenu embaixo do botão */
    background-color: #ffffff;
    min-width: 240px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    padding: 8px 0;
    margin-top: 2px;
    border-top: 3px solid #FF5733; /* Pode ligar dinamicamente depois */
}

.dropdown-content li {
    width: 100%;
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px 20px;
    color: #4a5568;
    font-size: 0.9rem;
    width: 100%;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: #1A252F;
}

/* Garante que o menu recolha e SÓ apareça no HOVER (passar o mouse) */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Botão de Orçamento no Menu */
.btn-contato-menu {
    color: #ffffff !important;
    padding: 8px 18px !important;
    border-radius: 4px;
    font-weight: 600 !important;
    transition: transform 0.2s ease, filter 0.2s ease !important;
}

/* ==========================================================================
   RESPONSIVIDADE ATUALIZADA (MOBILE E TABLETS)
   ========================================================================== */
@media (max-width: 992px) {
    .container-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .nav-menu ul {
        justify-content: center;
        gap: 10px;
    }
}

@media (max-width: 768px) {
    /* Ajustes para telas de celulares */
    .hero h1 {
        font-size: 1.8rem !important;
    }
    
    .hero p {
        font-size: 1rem !important;
    }

    /* Transforma o dropdown em lista simples expansível no mobile */
    .dropdown-content {
        position: static;
        transform: none;
        box-shadow: none;
        background-color: #f8f9fa;
        min-width: 100%;
        margin-top: 5px;
        border-top: none;
        border-left: 3px solid #FF5733;
    }
}

/* ==========================================================================
   CONTEÚDO DA HOME (INDEX EXCLUSIVO)
   ========================================================================== */
.hero {
    color: #ffffff;
    padding: 90px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.hero .btn {
    color: #ffffff;
    text-decoration: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 4px;
    display: inline-block;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.hero .btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.sobre {
    padding: 60px 0;
    text-align: center;
    background-color: #ffffff;
}

.sobre h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #1A252F;
}

/* ==========================================================================
   RODAPÉ (FOOTER)
   ========================================================================== */
.main-footer {
    margin-top: auto;
    padding: 50px 0 20px 0;
}

.container-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-box h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.footer-box p {
    font-size: 0.9rem;
    margin-bottom: 12px;
    opacity: 0.85;
}

.footer-box i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.footer-box ul {
    list-style: none;
}

.footer-box ul li {
    margin-bottom: 10px;
}

.footer-box ul a {
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-box ul a:hover {
    color: #ffffff !important;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0 auto;
    padding: 20px 20px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ==========================================================================
   BOTÃO WHATSAPP FLUTUANTE
   ========================================================================== */
.btn-whatsapp-flutuante {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: transform 0.2s ease;
    text-decoration: none;
}

.btn-whatsapp-flutuante:hover {
    transform: scale(1.1);
}

/* Estilização do ícone FontAwesome dentro do botão */
.btn-whatsapp-flutuante i {
    color: #ffffff;
    font-size: 34px;
    display: block;
    line-height: 60px; /* Alinha perfeitamente o ícone no centro vertical */
}

/* ==========================================================================
   RESPONSIVIDADE (MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    .container-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: #f8f9fa;
        min-width: 100%;
        padding-left: 15px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
}
