/* ==========================================================================
   1. IMPORTAÇÃO DE FONTES E VARIÁVEIS DO SISTEMA
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Abel&display=swap');

:root {
    --verde-oliva: #525943;   /* Cor Primária da Marca */
    --dourado: #dac17f;       /* Destaques, Botões e Detalhes */
    --texto-escuro: #0a0a0a;  /* Cor Principal de Texto */
    --texto-suave: #4a4a4a;   /* Textos Secundários e Descrições */
    --fundo-pagina: #FAF9F6;  /* Off-White suave para o fundo */
    --fundo-card: #FFFFFF;    /* Fundo dos Cards de Conteúdo */
    --font-principal: 'Abel', sans-serif;
}

/* ==========================================================================
   2. RESET GLOBAL & CONFIGURAÇÕES BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-principal);
    background-color: var(--fundo-pagina);
    color: var(--texto-escuro);
    line-height: 1.6;
    font-size: 1.1rem;
    -webkit-font-smoothing: antialiased;
}

@keyframes entradaSuave {
    from { 
        opacity: 0; 
        transform: translateY(6px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

main {
    animation: entradaSuave 0.45s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* ==========================================================================
   3. LAYOUT, CONTAINERS & GRIDS
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ==========================================================================
   4. TIPOGRAFIA & HIERARQUIA DE TÍTULOS
   ========================================================================== */
h1, h2, h3, h4, h5, h6, nav a, .btn-primary-wa, .btn-header-wa, .btn-form-submit {
    font-family: var(--font-principal);
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--verde-oliva);
    margin-bottom: 1rem;
    font-weight: 400;
}

.section-subtitle {
    color: var(--dourado);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    display: block;
}

/* ==========================================================================
   5. CABEÇALHO (HEADER) E NAVEGAÇÃO
   ========================================================================== */
header {
    width: 100%;
    background-color: var(--verde-oliva);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    max-height: 115px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.02);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    position: relative;
    display: flex;
    align-items: center;
}

nav > ul > li:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 16px;
    background-color: rgba(218, 193, 127, 0.4);
    margin: 0 1.2rem;
}

nav a,
nav a:visited {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

nav a:hover, 
nav a.active {
    color: var(--dourado) !important;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: -15px;
    background-color: var(--verde-oliva);
    min-width: 260px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.8rem 0;
    z-index: 1001;
    border-top: 2px solid var(--dourado);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

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

.dropdown-menu li::after {
    display: none !important;
}

.dropdown-menu a,
.dropdown-menu a:visited {
    padding: 0.6rem 1.5rem;
    display: block;
    font-size: 1rem;
    color: #FFFFFF !important;
    white-space: nowrap;
}

.dropdown-menu a:hover {
    background-color: rgba(218, 193, 127, 0.15);
    color: var(--dourado) !important;
}

/* ==========================================================================
   6. BOTÕES
   ========================================================================== */
.btn-header-wa {
    border: 1px solid var(--dourado);
    color: var(--dourado);
    padding: 0.55rem 1.4rem;
    border-radius: 24px;
    font-size: 1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-header-wa:hover {
    background-color: var(--dourado);
    color: var(--verde-oliva);
}

.btn-primary-wa {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background-color: var(--verde-oliva);
    color: #FFFFFF;
    padding: 0.9rem 2.2rem;
    border-radius: 24px;
    font-size: 1.15rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--verde-oliva);
}

.btn-primary-wa:hover {
    background-color: var(--dourado);
    border-color: var(--dourado);
    color: var(--verde-oliva);
    transform: translateY(-2px);
}

/* ==========================================================================
   7. SEÇÃO HERO
   ========================================================================== */
.hero-fullwidth {
    position: relative;
    width: 100%;
    min-height: 520px;
    background: url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.65) 60%, rgba(10, 10, 10, 0.45) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.hero-title {
    font-size: 3rem;
    color: #FFFFFF;
    line-height: 1.25;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    max-width: 900px;
}

.hero-title .title-sub {
    display: block;
    color: var(--dourado);
    font-size: 0.7em;
    font-weight: 400;
    margin-top: 0.4rem;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #E0E0E0;
    max-width: 800px;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ==========================================================================
   8. DIVISORES VISUAIS COM AFUNILAMENTO (TAPERED DIVIDER)
   ========================================================================== */
.divisor-container {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 2rem;
}

.divisor-secao {
    border: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--dourado) 50%, transparent 100%);
    border-radius: 50%;
    opacity: 0.85;
    margin: 0 auto;
    width: 100%;
}

/* ==========================================================================
   9. CARDS & IMAGENS
   ========================================================================== */
.card-atuacao {
    background-color: var(--fundo-card);
    border: 1px solid rgba(82, 89, 67, 0.18);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.card-atuacao:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.img-card {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3 {
    color: var(--verde-oliva);
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
}

.card-body p {
    color: var(--texto-escuro);
    font-size: 1.05rem;
}

.categoria-tag {
    color: var(--dourado);
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.4rem;
    display: block;
}

.link-ler-mais {
    color: var(--verde-oliva);
    font-weight: 700;
    text-decoration: none;
    margin-top: 1rem;
    display: inline-block;
    transition: color 0.2s ease;
}

.link-ler-mais:hover {
    color: var(--dourado);
}

.foto-claudia {
    width: 100%;
    max-width: 380px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
    filter: grayscale(100%);
}

/* ==========================================================================
   10. RODAPÉ (FOOTER)
   ========================================================================== */
footer {
    background-color: var(--verde-oliva);
    color: #FFFFFF;
    padding: 4rem 2rem 1.5rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.grid-footer {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.3fr;
    gap: 3.5rem;
    align-items: start;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    max-height: 125px;
    width: auto;
    display: block;
    margin-bottom: 1.2rem;
}

.footer-title {
    font-size: 1.3rem;
    color: var(--dourado);
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.footer-redes {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 1.2rem;
}

.footer-redes a,
.footer-redes a:visited {
    color: #FFFFFF;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: color 0.3s ease;
}

.footer-redes a:hover {
    color: var(--dourado);
}

.social-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-form {
    display: flex;
    flex-direction: column;
    gap: 0.82rem;
}

.footer-form input,
.footer-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid rgba(218, 193, 127, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    font-family: var(--font-principal);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-form input::placeholder,
.footer-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.footer-form input:focus,
.footer-form textarea:focus {
    outline: none;
    border-color: var(--dourado);
    background-color: rgba(255, 255, 255, 0.14);
}

.btn-form-submit {
    background-color: var(--dourado);
    color: var(--verde-oliva);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 24px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-form-submit:hover {
    background-color: #FFFFFF;
    color: var(--verde-oliva);
    transform: translateY(-2px);
}

.footer-copy {
    max-width: 1200px;
    margin: 3rem auto 0 auto;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(218, 193, 127, 0.3);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   11. BOTÃO WHATSAPP
   ========================================================================== */
.wa-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background-color: #25D366;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.38);
    z-index: 9999;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wa-float:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
}

.wa-icon {
    width: 30px;
    height: 30px;
    fill: #FFFFFF;
}

/* ==========================================================================
   12. RESPONSIVIDADE
   ========================================================================== */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-footer {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-footer {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.1rem;
    }
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    nav > ul > li:not(:last-child)::after {
        margin: 0 0.6rem;
    }
}

/* ==========================================================================
   13. PAINEL ADMINISTRATIVO
   ========================================================================== */
.admin-aviso {
    background-color: rgba(218, 193, 127, 0.15);
    border: 1px solid var(--dourado);
    color: var(--texto-escuro);
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.admin-feedback {
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.admin-feedback-sucesso {
    background-color: rgba(82, 89, 67, 0.1);
    border: 1px solid var(--verde-oliva);
    color: var(--verde-oliva);
}

.admin-feedback-erro {
    background-color: rgba(178, 58, 58, 0.08);
    border: 1px solid #b23a3a;
    color: #b23a3a;
}

.admin-bloco {
    background-color: var(--fundo-card);
    border: 1px solid rgba(82, 89, 67, 0.18);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2.5rem;
}

.admin-bloco-titulo {
    color: var(--verde-oliva);
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(82, 89, 67, 0.15);
}

.admin-form {
    margin-bottom: 2rem;
}

.admin-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.admin-campo {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.2rem;
}

.admin-form-row .admin-campo {
    margin-bottom: 0;
}

.admin-campo label {
    font-size: 0.85rem;
    color: var(--texto-suave);
    margin-bottom: 0.4rem;
}

.admin-campo input,
.admin-campo select,
.admin-campo textarea {
    padding: 0.7rem 0.9rem;
    border-radius: 6px;
    border: 1px solid rgba(82, 89, 67, 0.25);
    background-color: var(--fundo-pagina);
    color: var(--texto-escuro);
    font-family: var(--font-principal);
    font-size: 1rem;
}

.admin-campo input:focus,
.admin-campo select:focus,
.admin-campo textarea:focus {
    outline: none;
    border-color: var(--dourado);
}

.admin-campo-btn {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    justify-content: flex-start;
}

.btn-form-submit-admin {
    background-color: var(--verde-oliva);
    color: #FFFFFF;
    border: none;
    padding: 0.75rem 1.6rem;
    border-radius: 24px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-form-submit-admin:hover {
    background-color: var(--dourado);
    color: var(--verde-oliva);
}

.btn-cancelar-admin {
    background: none;
    border: 1px solid rgba(82, 89, 67, 0.3);
    color: var(--texto-suave);
    padding: 0.75rem 1.4rem;
    border-radius: 24px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cancelar-admin:hover {
    border-color: var(--verde-oliva);
    color: var(--verde-oliva);
}

.admin-lista {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.admin-vazio {
    color: var(--texto-suave);
    font-size: 0.95rem;
}

.admin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.1rem;
    background-color: var(--fundo-pagina);
    border: 1px solid rgba(82, 89, 67, 0.12);
    border-radius: 8px;
    gap: 1rem;
}

.admin-item-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-item-info strong {
    color: var(--texto-escuro);
    font-size: 1.05rem;
}

.admin-item-slug {
    color: var(--texto-suave);
    font-size: 0.85rem;
}

.admin-item-acoes {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
}

.admin-btn-editar,
.admin-btn-excluir {
    border: none;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-btn-editar {
    background-color: rgba(218, 193, 127, 0.2);
    color: var(--verde-oliva);
}

.admin-btn-editar:hover {
    background-color: var(--dourado);
    color: #FFFFFF;
}

.admin-btn-excluir {
    background-color: rgba(178, 58, 58, 0.08);
    color: #b23a3a;
}

.admin-btn-excluir:hover {
    background-color: #b23a3a;
    color: #FFFFFF;
}

@media (max-width: 768px) {
    .admin-form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   14. MODAL DE ARTIGO COMPLETO (BLOG)
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.75);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.modal-caixa {
    background-color: var(--fundo-card);
    border-radius: 12px;
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 2.2rem;
}

.modal-fechar {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--texto-suave);
    cursor: pointer;
}

.modal-fechar:hover {
    color: var(--verde-oliva);
}

.modal-imagem {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.2rem;
}

.modal-titulo {
    color: var(--verde-oliva);
    font-size: 1.8rem;
    font-weight: 400;
    margin: 0.5rem 0 1.2rem;
}

.modal-corpo p {
    color: var(--texto-escuro);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.modal-corpo h2,
.modal-corpo h3 {
    color: var(--verde-oliva);
    margin: 1.4rem 0 0.8rem;
}

.modal-corpo ul,
.modal-corpo ol {
    margin: 0 0 1rem 1.4rem;
    color: var(--texto-escuro);
}

.modal-corpo li {
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.modal-corpo blockquote {
    border-left: 3px solid var(--dourado);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--texto-suave);
    font-style: italic;
}

.modal-corpo a {
    color: var(--dourado);
    text-decoration: underline;
}

.modal-corpo strong {
    font-weight: 700;
}

.modal-corpo em {
    font-style: italic;
}