/* REGRA FUNDAMENTAL PARA RESPONSIVIDADE */
* {
    margin: 0;
    padding: 0;
    /* Essencial para que padding e border não quebrem o layout em % */
    box-sizing: border-box; 
}

/* --- ESTILOS BASE --- */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    background-color: #f0f0f0;
    color: #333;
    line-height: 1.6; /* Melhor legibilidade */
}

/* --- HEADER / CABEÇALHO --- */
header {
    background-color: #161313;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Necessário para posicionar o menu-toggle */
}
.logo {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}
nav ul li {
    margin-left: 20px;
}
nav ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 16px;
	font-weight: bold;
}
.contact-btn {
    background-color: #cb9843;
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
}
/* Estilo para o botão Hamburger (escondido por padrão) */
.menu-toggle {
    display: none; 
    background: none;
    border: none;
    color: #cb9843;
    font-size: 28px;
    cursor: pointer;
}

/* Modificação no estilo base do link de navegação */
nav ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 16px;
    /* ADIÇÃO: Transição para um efeito suave */
    transition: color 0.3s ease-in-out; 
}

/* NOVO ESTILO: Efeito ao passar o cursor */
nav ul li a:hover {
    color: #cb9843; /* Sua cor de destaque */
}

/* --- HERO / BANNER --- */
.hero {
    background-image: url("../images/contabilidade-01.webp");
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 500px;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.1));
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 500px;
    margin: 75px auto 0 5%;
}
.hero h1 {
    color: #fff;
    font-size: 48px;
    margin-bottom: 20px;
}
.hero p {
    color: #eee;
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}
.hero-buttons a {
    background-color: #cb9843;
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    margin-right: 15px;
    display: inline-block; /* Garante que funcione bem com flex/empilhamento */
}
.hero-buttons a.secondary {
    background-color: #666;
}

/* --- PARTNERS (Se existir) --- */
.partners {
    background-color: #eee;
    padding: 20px 5%;
    text-align: center;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap; /* Adicionado para responsividade */
}
.partner-logo {
    width: 80px;
    height: 40px;
    background-color: #bbb;
    margin: 0 10px;
    display: inline-block;
    line-height: 40px;
    color: #666;
    font-size: 12px;
    text-align: center;
}

/* --- SERVICES / SERVIÇOS --- */
.services-section {
    padding: 50px 5%;
    background-color: #fff;
    text-align: center;
}
.services-section h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
}
.services-section p {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}
.service-grid {
    display: grid;
    /* Grid responsivo: 1fr até 300px, então auto-ajusta */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.service-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 30px;
    border-radius: 8px;
    text-align: left;
}
.service-card .icon {
    width: 40px;
    height: 40px;
    background-color: #cb9843;
    border-radius: 50%;
    margin: 0 auto 20px auto; /* NOVO: Centraliza o BLOCÃO do ícone horizontalmente e adiciona margem inferior */

    /* AQUI ESTÁ A CHAVE: Define o display como flex e centraliza o conteúdo */
    display: flex; /* Transforma em Flex Container */
    justify-content: center; /* Centraliza o ícone horizontalmente (o <i>) */
    align-items: center; /* Centraliza o ícone verticalmente (o <i>) */
    
    color: #fff;
    font-weight: bold;
    /* Certifique-se de que o ícone interno (<i>) tenha um tamanho adequado */
    font-size: 20px; 
}
.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}
.service-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}
.service-card a {
    color: #cb9843;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}
.view-all-services {
    margin-top: 50px;
}
.view-all-services a {
    background-color: #cb9843;
    color: #fff;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
}

/* --- ABOUT / SOBRE NÓS --- */
.about-section {
    background-color: #f0f0f0;
    padding: 60px 5%;
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
}
.about-content {
    flex: 2;
}
.about-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}
.about-content p {
    font-size: 16px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}
.about-list ul {
    list-style: none;
    padding: 0;
}
.about-list ul li {
    margin-bottom: 15px;
    font-size: 16px;
    color: #666;
    position: relative;
    padding-left: 30px;
}
.about-list ul li::before {
    content: '✔'; /* Placeholder for icon */
    color: #cb9843;
    position: absolute;
    left: 0;
    font-weight: bold;
}
.about-image {
    flex: 1;
    background-image: url("../images/contadores.webp");
	background-size: 660px;
	background-position-x: center;
    height: 350px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #666;
    font-size: 18px;
    text-align: center;
}

.about-image {
    flex: 1;
    background-image: url("../images/contadores.webp");
    background-size: 660px;
    background-position-x: center;
    height: 350px;
    border-radius: 8px;
    /* Para que o ::before possa ser posicionado sobre ele */
    position: relative; 
    display: flex;
    /* Mantenha o 'justify-content' e 'align-items' para centralizar
       o conteúdo interno (.about-stats) acima do overlay 
    */
    justify-content: center;
    align-items: center;
    /* Garante que o texto fique por cima do overlay */
    z-index: 1; 
    color: #666;
    font-size: 18px;
    text-align: center;
}

.about-image::before {

    content: ""; 

    position: absolute; 
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    background-color: rgba(0, 0, 0, 0.5); 

    border-radius: 8px; 

    z-index: 0; 
}



.about-stats {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    text-align: center;
	z-index: inherit;
}
.stat-card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    flex: 1;
}
.stat-card .number {
    font-size: 36px;
    font-weight: bold;
    color: #cb9843;
    margin-bottom: 5px;
}
.stat-card .text {
    font-size: 14px;
    color: #666;
}

/* --- CTA / CHAMADA PARA AÇÃO --- */
.cta-section {
    background-color: #161313;
    padding: 60px 5%;
    text-align: center;
    color: #fff;
}
.cta-section h2 {
    font-size: 32px;
    margin-bottom: 15px;
}
.cta-section p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}
.cta-buttons a {
    background-color: #fff;
    color: #cb9843;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    margin: 0 10px;
    display: inline-block; /* Garante que funcione bem com flex/empilhamento */
}
.cta-buttons a.secondary {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}

/* --- FAQ / DÚVIDAS --- */
.faq-section {
    background-color: #f0f0f0;
    padding: 60px 5%;
    text-align: center;
}
.faq-section h2 {
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}
.faq-item {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    margin-bottom: 15px;
    text-align: left;
    border-radius: 8px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
.faq-item h3 {
    font-size: 18px;
    margin: 0;
    color: #333;
}

/* --- FOOTER / RODAPÉ --- */
footer {
    background-color: #161313;
    color: #fff;
    padding: 40px 5%;
    text-align: center;
}
.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.footer-column {
    flex: 1;
    min-width: 200px;
    text-align: left;
}
.footer-column h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #cb9843;
}
.footer-column p, .footer-column ul {
    font-size: 14px;
    color: #ccc;
    line-height: 1.6;
    list-style: none;
    padding: 0;
}
.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
}
.social-icons a {
    color: #ccc;
    font-size: 20px;
    margin-right: 15px;
}
.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid #555;
    padding-top: 20px;
    font-size: 12px;
    color: #888;
}

/* ---------------------------------------------------------------------- */
/* --- MEDIA QUERIES PARA RESPONSIVIDADE --- */
/* ---------------------------------------------------------------------- */

/* Telas com largura máxima de 992px (Tablets) */
@media (max-width: 992px) {
    /* Ajuste de Fontes e Espaçamento */
    .hero h1 {
        font-size: 38px;
    }

    /* Seção Sobre Nós: Quebra de duas colunas para empilhado */
    .about-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-content, .about-image {
        flex: none; 
        width: 100%; 
        max-width: 600px;
    }

    .about-image {
        height: 250px;
        order: -1; 
        margin-bottom: 30px;
    }
    
    .about-content h2, .about-content p {
        text-align: center;
    }

    .about-list ul {
        text-align: left;
        margin: 0 auto;
        padding-left: 20px;
    }

    /* Rodapé: Duas colunas em tablets */
    .footer-content {
        justify-content: space-between;
        padding: 0 2%;
    }
    
    .footer-column {
        min-width: 45%; 
        margin-bottom: 30px;
    }
}

/* Telas com largura máxima de 768px (Smartphones Grandes) */
@media (max-width: 768px) {

    /* Cabeçalho: Configura para o Menu Hamburger */
    header {
        flex-wrap: wrap; /* Permite a quebra dos itens */
        flex-direction: row; /* Volta para a linha para logo e botão */
        justify-content: space-between;
        align-items: center;
        padding: 15px 5%;
    }

    .logo {
        margin-bottom: 0; /* Ajuste para não empilhar com o botão */
    }
    
    /* MENU HAMBURGER: MOSTRAR e reorganizar a navegação */
    .menu-toggle {
        display: block; /* MOSTRAR no mobile */
        /* Removido position: absolute, deixa-o no fluxo do flexbox */
        order: 2;
    }
    
    nav {
        /* Escondido por padrão no mobile */
        display: none; 
        width: 100%;
        order: 10; /* Empurra o menu para baixo */
        background-color: #444; 
    }
    
    /* Classe adicionada/removida pelo JavaScript para abrir o menu */
    nav.open {
        display: block;
    }

    nav ul {
        flex-direction: column; /* Links empilhados */
        padding: 10px 0;
    }

    nav ul li {
        margin: 0;
        border-top: 1px solid #555;
    }

    nav ul li:first-child {
        border-top: none; /* Ajuste visual */
    }

    nav ul li a {
        color: #fff;
        padding: 15px;
        display: block;
    }

    .contact-btn {
        width: 100%;
        text-align: center;
        margin-top: 10px;
        order: 11; /* Fica abaixo do menu quando aberto */
    }
    
    /* Hero */
    .hero {
        height: auto; 
        padding: 60px 5%;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto; 
        text-align: center;
    }

    .hero h1 {
        font-size: 30px;
    }
    
    /* Botões do Hero: Empilhados */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .hero-buttons a {
        margin: 0;
        text-align: center;
    }

    /* Parceiros: Permite quebra de linha */
    .partners {
        flex-wrap: wrap;
        justify-content: center;
    }
    .partner-logo {
        margin: 5px;
    }
    
    /* Grade de Serviços: Uma coluna */
    .service-grid {
        grid-template-columns: 1fr;
    }

    /* Seção CTA e FAQ: Ajustes de botões */
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .cta-buttons a {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    /* Rodapé: Colunas empilhadas */
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    .footer-column {
        min-width: 100%;
        text-align: center;
    }
    .footer-column ul {
        text-align: center;
    }
}

/* Telas com largura máxima de 480px (Smartphones) */
@media (max-width: 480px) {
    /* Redução de Fontes */
    .hero h1 {
        font-size: 26px;
    }
    .services-section h2, .about-content h2, .cta-section h2, .faq-section h2 {
        font-size: 24px;
    }

    /* Estatísticas: Empilhadas */
    .about-stats {
        flex-direction: column;
        gap: 15px;
    }
}