/* VANILLA AUDITORIA - ESTILOS CSS */

:root {
    --cor-base: #F3E9D9;
    --cor-secundaria: #C7AE86;
    --cor-contraste: #025000;
    --cor-texto: #333333;
    --cor-fundo: #FFFFFF;
    --cor-borda: #E8DCC9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Carlito', 'Calibri', sans-serif;
    line-height: 1.6;
    color: var(--cor-texto);
    background-color: var(--cor-fundo);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* HEADER */
header {
    background: linear-gradient(135deg, var(--cor-contraste) 0%, #034d00 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.logo p {
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.9;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--cor-base);
}

/* HERO */
.hero {
    background: linear-gradient(rgba(2, 80, 0, 0.7), rgba(2, 80, 0, 0.7)), var(--cor-base);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--cor-base);
    color: var(--cor-contraste);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid var(--cor-base);
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--cor-base);
    transform: translateY(-2px);
}

/* SERVIÇOS */
.servicos {
    background-color: var(--cor-base);
    padding: 4rem 2rem;
}

.servicos h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--cor-contraste);
    margin-bottom: 3rem;
}

.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.servico-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--cor-contraste);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.servico-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.servico-card h3 {
    color: var(--cor-contraste);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.servico-card p {
    color: var(--cor-texto);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* BLOG */
.blog {
    padding: 4rem 2rem;
    background-color: white;
}

.blog h2 {
    text-align: center;
    font-size: 2rem;
    color: var(--cor-contraste);
    margin-bottom: 3rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.artigo-card {
    background: var(--cor-base);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    display: flex;
    flex-direction: column;
}

.artigo-card:hover {
    transform: translateY(-5px);
}

.artigo-header {
    background: linear-gradient(135deg, var(--cor-contraste), var(--cor-secundaria));
    color: white;
    padding: 1.5rem;
}

.artigo-header .categoria {
    display: inline-block;
    background: rgba(255,255,255,0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.artigo-header h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.artigo-header .data {
    font-size: 0.85rem;
    opacity: 0.9;
}

.artigo-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.artigo-body p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.ler-mais {
    color: var(--cor-contraste);
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    margin-top: auto;
}

.ler-mais:hover {
    text-decoration: underline;
}

.comentarios-section {
    background: var(--cor-borda);
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
}

.comentarios-section.ativo {
    display: block;
}

.comentarios-section h4 {
    color: var(--cor-contraste);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.comentario {
    background: white;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    border-left: 3px solid var(--cor-contraste);
}

.comentario-autor {
    font-weight: bold;
    color: var(--cor-contraste);
    font-size: 0.9rem;
}

.comentario-data {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.comentario-texto {
    font-size: 0.9rem;
    color: var(--cor-texto);
    line-height: 1.5;
}

/* CONTATO */
.contato {
    background: var(--cor-base);
    padding: 4rem 2rem;
    text-align: center;
}

.contato h2 {
    color: var(--cor-contraste);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.contato p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    color: var(--cor-contraste);
    text-decoration: none;
    font-weight: bold;
    margin: 0 1rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: white;
}

/* FOOTER */
footer {
    background: var(--cor-texto);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

footer h3 {
    margin-bottom: 1rem;
}

footer p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    nav {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    nav a {
        display: block;
        padding: 0.5rem 0;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .servicos h2, .blog h2, .contato h2 {
        font-size: 1.5rem;
    }

    .logo h1 {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .artigo-card {
        margin: 0;
    }
}

/* ANIMAÇÕES */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.artigo-card {
    animation: fadeIn 0.6s ease-in-out;
}

.servico-card {
    animation: fadeIn 0.6s ease-in-out;
}
