/*
Theme Name: Camila Almeida Advocacia - Blog Premium
Theme URI: https://camilaalmeida.adv.br
Author: João Samuel
Description: Tema clássico e independente em 3 colunas para o Blog Jurídico.
Version: 1.3
*/

/* --- CONFIGURAÇÕES GERAIS --- */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700&display=swap');

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Raleway', sans-serif; 
}

body { 
    background-color: #ffffff; 
    color: #2b2b2b; 
    overflow-x: hidden; 
}

#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }

/* --- PADRÃO DE PONTINHOS DA MARCA (TECH PATTERN) --- */
.tech-pattern {
    background-color: #f4f6f9;
    background-image: radial-gradient(rgba(197, 160, 89, 0.15) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* --- HEADER FIXO E IDÊNTICO --- */
header {
    position: fixed; width: 100%; top: 0; left: 0; z-index: 1000;
    padding: 15px 8%;
    display: flex; justify-content: space-between; align-items: center;
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(197, 160, 89, 0.3);
}

.logo-container { display: flex; align-items: center; gap: 15px; }
.logo-text h2 { font-size: 1.4rem; letter-spacing: 1px; margin: 0; color: #c5a059; font-weight: 700; line-height: 1.2; }
.logo-text span { font-size: 0.65rem; letter-spacing: 3px; color: #555555; font-weight: 600; display: block; margin-top: 2px; }

.btn-outline { 
    color: #c5a059; background: transparent; padding: 10px 22px; border-radius: 6px; 
    text-decoration: none; font-weight: 600; font-size: 0.8rem; letter-spacing: 1px;
    text-transform: uppercase; border: 1px solid #c5a059; display: inline-flex; align-items: center; transition: 0.3s;
}
.btn-outline:hover { background: #c5a059; color: #fff !important; transform: translateY(-3px); }

/* --- MIOLO DO BLOG --- */
.blog-main-content {
    padding: 140px 8% 60px 8%;
    max-width: 1250px;
    margin: 0 auto;
}

.section-header-blog { text-align: center; margin-bottom: 30px; }
.section-header-blog span { font-size: 0.8rem; letter-spacing: 3px; color: #555555; text-transform: uppercase; font-weight: 600; display: block; margin-bottom: 8px; }
.section-header-blog h2 { font-size: 2rem; color: #c5a059; font-weight: 700; }

/* ==========================================
   DESTAQUE PREMIUM (COMPACTADO - MÁX 300PX)
   ========================================== */
.destaque-card-box {
    background: #ffffff;
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    max-height: 300px !important;
}

/* --- A GRADE DE 3 COLUNAS --- */
.cards-grid-blog {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* --- CARDS DA LISTAGEM (ALTURA TOTAL ACHATADA) --- */
.card-post-juridico {
    background: #ffffff;
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.card-post-juridico:hover {
    transform: translateY(-5px);
    border-color: #c5a059;
    box-shadow: 0 10px 25px rgba(197, 160, 89, 0.15);
}

/* Fixando a imagem em 150px de altura obrigatoriamente */
.card-post-img-wrapper { 
    width: 100% !important; 
    height: 150px !important; 
    max-height: 150px !important;
    overflow: hidden !important; 
    position: relative !important;
    background: #f4f6f9; 
}
.card-post-img-wrapper img { 
    width: 100% !important; 
    height: 100% !important; 
    object-fit: cover !important; 
    transition: 0.5s; 
}
.card-post-juridico:hover .card-post-img-wrapper img { 
    transform: scale(1.04); 
}

.card-post-no-img {
    background: linear-gradient(135deg, #f4f6f9 0%, rgba(197, 160, 89, 0.1) 100%); 
    width: 100%; 
    height: 100%;
}

.card-post-body { 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
    flex-grow: 1; 
}

.card-post-meta { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 10px; 
    font-size: 0.72rem; 
    font-weight: 600; 
}
.post-category { color: #c5a059; text-transform: uppercase; letter-spacing: 1px; }
.post-read-time { color: #a0a0a0; }

.card-post-body h3 { 
    font-size: 1.15rem; 
    margin-bottom: 8px; 
    line-height: 1.35; 
}
.card-post-body h3 a { 
    color: #2b2b2b; 
    text-decoration: none; 
    font-weight: 700; 
    transition: 0.3s; 
}
.card-post-juridico:hover .card-post-body h3 a { color: #c5a059; }

.card-post-excerpt { 
    font-size: 0.9rem; 
    color: #555555; 
    line-height: 1.5; 
    margin-bottom: 15px; 
}

.card-post-link { 
    margin-top: auto; 
    padding-top: 10px;
    color: #c5a059; 
    font-weight: 600; 
    font-size: 0.78rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    text-decoration: none; 
    display: inline-flex; 
    align-items: center; 
    gap: 5px; 
    transition: gap 0.3s ease;
}
.card-post-juridico:hover .card-post-link { gap: 8px; }

/* --- BANNER DE CAPTURA COMPACTO --- */
.contato-banner-small { 
    margin: 0 auto 20px; max-width: 900px;
    padding: 30px 20px; background: #ffffff; 
    border-radius: 12px; border: 1px solid #c5a059; text-align: center; box-shadow: 0 10px 30px rgba(197, 160, 89, 0.15); box-sizing: border-box;
}
.contato-banner-small h3 { color: #c5a059; font-weight: 700; font-size: 1.3rem; margin: 0 0 8px 0; }
.contato-banner-small p { color: #555555; font-size: 0.9rem; margin: 0 0 18px 0; }
.btn-gold-small {
    padding: 10px 22px; border-radius: 5px; text-decoration: none; font-weight: 600; font-size: 0.75rem; letter-spacing: 1px; text-transform: uppercase; transition: all 0.3s ease; display: inline-block; background: #c5a059; color: #ffffff !important;
}
.btn-gold-small:hover { background: #b08d4a; transform: translateY(-2px); }

/* --- FOOTER --- */
footer { padding: 40px 8%; border-top: 1px solid rgba(197, 160, 89, 0.3); text-align: center; background: #ffffff; }
.footer-info { display: flex; justify-content: center; gap: 40px; margin: 20px 0; flex-wrap: wrap; }
.footer-info a, .footer-info p { color: #555555; text-decoration: none; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; font-weight: 500; transition: 0.3s; margin: 0;}
.footer-info a:hover { color: #c5a059; }

/* --- RESPONSIVIDADE COMPLETA --- */
@media (max-width: 992px) { 
    .cards-grid-blog { grid-template-columns: repeat(2, 1fr); gap: 20px; } 
    .destaque-card-box { grid-template-columns: 1fr; max-height: none !important; }
    .destaque-card-box > div:first-child { height: 200px !important; }
}
@media (max-width: 768px) {
    header { padding: 15px 5%; }
    .logo-text span { display: none; }
    .btn-outline { padding: 8px 12px; font-size: 0.65rem; }
    .blog-main-content { padding-top: 100px; }
    .cards-grid-blog { grid-template-columns: 1fr; }
    .footer-info { flex-direction: column; gap: 12px; align-items: center; }
}

/* ==========================================
   ESTILIZAÇÃO DA PÁGINA INTERNA (SINGLE)
   ========================================== */
article.post-completo-card {
    background: #ffffff;
    border: 1px solid rgba(197, 160, 89, 0.25);
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    max-width: 850px;
    margin: 0 auto;
    box-sizing: border-box;
}