/* =========================================
   1. CORES E VARIÁVEIS
   ========================================= */
:root {
    --gold: #D4AF37;
    --gold-hover: #b59021;
    --black: #000000; /* Preto Puro */
    --dark-gray: #1a1a1a;
    --light-gray: #F8F8F8;
    --white: #FFFFFF;
    --text-body: #333333;
    --header-height: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* FONTE GLOBAL (POPPINS) */
body { 
    font-family: 'Poppins', sans-serif; 
    color: var(--text-body); 
    background: var(--white); 
    line-height: 1.6; 
    overflow-x: hidden; 
}

/* FONTE DOS TÍTULOS (CINZEL) */
h1, h2, h3, h4, .logo, .logo-footer, .article-title, .blog-content h3, .modal-title, .hero-surtitle { 
    font-family: 'Cinzel', serif; 
}

/* Botões e Textos de UI (Poppins) */
.btn-gold, .btn-outline, .btn-outline-dark, .nav-menu a, .btn-read-more {
    font-family: 'Poppins', sans-serif;
}

img { max-width: 100%; display: block; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

a, a:hover, a:visited, a:active { text-decoration: none !important; border-bottom: none !important; }
ul { list-style: none; }

/* =========================================
   2. ESTRUTURA FULLSCREEN
   ========================================= */
.section-fullscreen {
    min-height: 100vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    padding: 60px 0; 
    position: relative; 
    scroll-margin-top: var(--header-height);
}
.bg-light { background: var(--light-gray); }
.bg-dark { background: var(--dark-gray); color: var(--white); }
.text-white { color: var(--white); }

/* =========================================
   3. HEADER & MENU (MODIFICADO PARA ESPAÇAMENTO MÁXIMO)
   ========================================= */
header {
    background: var(--black); 
    height: var(--header-height);
    display: flex; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 1000;
    border-bottom: 1px solid #222;
}

/* NOVO: Nav Container ocupa 95% da tela para empurrar itens para as bordas */
.nav-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    width: 95%; /* Maior largura */
    max-width: 100%; /* Sem limite de container */
    margin: 0 auto;
}

/* LOGO DE IMAGEM */
.header-logo { max-height: 50px; width: auto; object-fit: contain; }

.nav-menu ul { display: flex; gap: 25px; }
.nav-menu a { color: #aaa; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; transition: 0.3s; font-weight: 500; }
.nav-menu a:hover { color: var(--gold); }
.admin-link { border: 1px solid #444 !important; padding: 5px 10px; border-radius: 4px; font-size: 0.75rem !important; }

/* Menu Mobile Config */
#menu-toggle { display: none; }

.menu-icon { 
    display: none; 
    color: var(--gold); 
    font-size: 1.8rem; 
    cursor: pointer; 
    z-index: 1100; 
    position: relative; 
}

.menu-icon .icon-open { display: block; }
.menu-icon .icon-close { display: none; }

#menu-toggle:checked ~ .menu-icon .icon-open { display: none !important; }
#menu-toggle:checked ~ .menu-icon .icon-close { display: block !important; }

/* =========================================
   4. MODAIS
   ========================================= */
.modal-overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.95); z-index: 9999 !important; 
    display: flex; align-items: center; justify-content: center; 
    backdrop-filter: blur(5px);
}
.hidden { display: none !important; }

.modal-box { 
    background: var(--white); padding: 30px; width: 90%; max-width: 400px; 
    text-align: center; border-radius: 8px; border-top: 4px solid var(--gold); 
    animation: slideIn 0.3s ease-out; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.article-modal-box {
    background: var(--white); width: 90%; max-width: 800px; height: 85vh;
    border-radius: 8px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: slideIn 0.3s ease-out; padding: 40px 30px; border-top: 5px solid var(--gold);
}

.btn-close-article {
    position: absolute; top: 15px; right: 15px; width: 35px; height: 35px; background: #eee;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: #666; transition: 0.3s; z-index: 10;
}
.btn-close-article:hover { background: var(--black); color: var(--gold); }

.article-scroll-area { height: 100%; overflow-y: auto; padding-right: 10px; }
.article-title { font-size: 2rem; color: var(--black); margin-bottom: 20px; line-height: 1.2; padding-right: 30px; }

.article-float-img {
    float: left; width: 250px; height: auto; object-fit: cover;
    margin-right: 25px; margin-bottom: 15px; border-radius: 4px;
    border: 3px solid var(--gold); box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#modal-body-content { 
    font-size: 1.05rem; color: #444; line-height: 1.8; text-align: justify; 
    overflow-wrap: break-word; word-wrap: break-word; 
}

@keyframes slideIn { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-title { font-size: 1.5rem; margin-bottom: 10px; color: var(--black); }
.modal-msg { color: #555; margin-bottom: 25px; font-size: 1rem; }
.modal-actions { display: flex; gap: 10px; justify-content: center; }

.btn-confirm { background: var(--black); color: var(--gold); padding: 10px 25px; border: 1px solid var(--black); cursor: pointer; font-weight: bold; width: 100%; transition: 0.3s; border-radius: 4px; }
.btn-confirm:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }

.btn-cancel { background: transparent; color: #666; padding: 10px 25px; border: 1px solid #ccc; cursor: pointer; font-weight: bold; width: 100%; border-radius: 4px; }

.success-modal { border-top-color: #27ae60 !important; }
.error-modal { border-top-color: #c0392b !important; }

/* =========================================
   5. HERO BANNER
   ========================================= */
.hero-banner {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-color: #000000; 
    color: var(--white);
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg-layer {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%; 
    height: 100%;
    background-image: url('images/fotoPerfil_hero.jpeg');
    background-size: cover;
    background-position: center top;
    
    /* Filtro Suavizado e P&B */
    filter: grayscale(100%) brightness(0.6) contrast(1.1);
    z-index: 1;
}

/* Gradiente Suave */
.hero-bg-layer::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Preto sólido (0-10%) -> Transparente (85%) */
    background: linear-gradient(to right, #000000 0%, #000000 10%, rgba(0,0,0,0.4) 35%, rgba(0,0,0,0) 85%);
    pointer-events: none;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    height: 100%;
}

.hero-text-content {
    max-width: 650px;
    text-align: left;
    padding-left: 20px;
}

.hero-surtitle {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 20px;
}

.hero-banner h1 {
    font-size: 2.8rem;
    margin: 0 0 35px 0;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: none;
}

/* Botão Gold */
.btn-gold { 
    background: var(--gold); color: var(--black); 
    padding: 18px 45px; font-weight: 700; text-transform: uppercase; 
    border-radius: 4px; transition: all 0.3s ease; border: none !important; 
    text-decoration: none !important; display: inline-block; 
    font-size: 1rem; letter-spacing: 1px; 
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2); 
}
.btn-gold:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3); 
    background: var(--gold-hover); color: #000; 
}

.btn-outline { border: 2px solid var(--white) !important; color: var(--white); padding: 13px 35px; font-weight: 700; text-transform: uppercase; border-radius: 2px; transition: 0.3s; text-decoration: none !important; display: inline-block; }
.btn-outline:hover { background: var(--white); color: var(--black); }

/* =========================================
   6. SEÇÕES GERAIS
   ========================================= */
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 50px; position: relative; color: var(--black); font-weight: 700; }
.section-title.text-white { color: var(--white); }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--gold); margin: 15px auto 0; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.feature-card { background: var(--white); padding: 30px 20px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.3s; border-top: 3px solid transparent; height: 100%; border-radius: 8px; }
.feature-card:hover { transform: translateY(-10px); border-top-color: var(--gold); }
.icon-gold { font-size: 2.2rem; color: var(--gold); margin-bottom: 20px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; font-weight: 700; font-family: 'Cinzel', serif; }
.feature-card p { font-size: 0.9rem; color: #555; }
.diferenciais-footer-text { max-width: 900px; margin: 60px auto 0; text-align: center; color: #444; font-size: 1.05rem; line-height: 1.8; background: white; padding: 40px; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); border-left: 4px solid var(--gold); }

/* =========================================
   7. SOBRE (BIOGRAFIA)
   ========================================= */
.about-wrapper { display: flex; gap: 50px; align-items: center; }
.about-image { flex: 0.8; position: relative; max-width: 400px; margin: 0 auto; }
.about-image img { width: 100%; border-radius: 4px; position: relative; z-index: 2; max-height: 500px; object-fit: cover; box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
.gold-frame { position: absolute; top: 15px; left: -15px; width: 100%; height: 100%; border: 4px solid var(--gold); z-index: 1; }
.about-text { flex: 1.2; }
.about-text h4 { color: var(--gold); font-size: 0.95rem; letter-spacing: 3px; font-weight: 700; }
.about-text h2 { font-size: 2.8rem; margin-bottom: 25px; color: var(--black); font-weight: 700; }
.btn-outline-dark { background: transparent; color: var(--black); border: 2px solid var(--black) !important; padding: 12px 35px; font-weight: 700; text-transform: uppercase; border-radius: 4px; transition: all 0.3s ease; display: inline-block; margin-top: 30px; text-decoration: none !important; }
.btn-outline-dark:hover { background: var(--black); color: var(--gold); border-color: var(--black) !important; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.about-content-full p { text-align: justify; margin-bottom: 15px; }
.about-content-full { max-height: none; display: block; }
.btn-about-mobile { display: none; margin-top: 20px; border: 2px solid var(--gold); background: transparent; color: var(--black); }

/* =========================================
   8. ÁREAS DE ATUAÇÃO
   ========================================= */
.service-card { background: #111; padding: 30px; border: 1px solid #222; transition: 0.3s; display: flex; flex-direction: column; align-items: center; border-radius: 8px; }
.service-card:hover { border-color: var(--gold); background: #000; }
.service-card i { font-size: 2rem; color: var(--gold); margin-bottom: 15px; opacity: 1; }
.service-card h3 { color: var(--white); margin-bottom: 10px; font-weight: 700; font-family: 'Cinzel', serif; }
.service-list { text-align: left; padding: 0; margin-top: 20px; width: 100%; }
.service-list li { list-style: none; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 12px 0; color: #ccc; font-size: 0.95rem; display: flex; align-items: center; }
.service-list li:last-child { border-bottom: none; }
.service-list li::before { content: '•'; color: var(--gold); font-size: 1.5rem; margin-right: 10px; line-height: 0; opacity: 1; }
.service-card:hover .service-list li { color: var(--white); }

/* =========================================
   9. BLOG
   ========================================= */
.blog-list { display: flex; flex-direction: column; gap: 15px; max-width: 900px; margin: 0 auto; max-height: 700px; overflow-y: auto; padding-right: 10px; }
.blog-list::-webkit-scrollbar { width: 8px; }
.blog-list::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.blog-list::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
.blog-list::-webkit-scrollbar-thumb:hover { background: var(--gold-hover); }
.blog-card { display: flex; background: var(--white); border-radius: 8px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border: 1px solid #eee; min-height: 150px; transition: 0.3s; flex-shrink: 0; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); border-color: var(--gold); }
.blog-img-wrapper { flex: 0 0 30%; position: relative; overflow: hidden; background-color: #f4f4f4; display: flex; align-items: center; justify-content: center; }
.blog-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.blog-content { flex: 1; padding: 15px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.blog-content h3 { font-size: 1.2rem; margin-bottom: 8px; color: var(--black); line-height: 1.2; font-weight: 700; }
.blog-content p { font-size: 0.9rem; color: #555; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: break-word; word-wrap: break-word; }
.blog-actions { margin-top: auto; display: flex; gap: 8px; border-top: 1px solid #f0f0f0; padding-top: 8px; flex-wrap: wrap; }
.btn-read-more { background: var(--black); color: var(--gold); border: 1px solid var(--black) !important; padding: 5px 10px; border-radius: 4px; font-size: 0.75rem; cursor: pointer; flex: 1; transition: 0.3s; font-weight: bold; }
.btn-read-more:hover { background: var(--gold); color: var(--black); border-color: var(--gold) !important; }
.btn-share { background: transparent; border: 1px solid #ccc !important; color: #555; padding: 5px 10px; border-radius: 4px; cursor: pointer; font-size: 0.75rem; display: flex; align-items: center; justify-content: center; gap: 5px; transition: 0.3s; }
.btn-share:hover { background: #eee; color: var(--black); }

/* =========================================
   10. CONTATO E ADMIN
   ========================================= */
.contact-box { background: var(--white); padding: 50px; border-radius: 8px; box-shadow: 0 15px 40px rgba(0,0,0,0.1); max-width: 700px; margin: 0 auto; border-top: 5px solid var(--gold); }
.contact-header { text-align: center; margin-bottom: 30px; }
.contact-header h2 { font-size: 2rem; color: var(--black); margin-bottom: 10px; font-weight: 700; }
.contact-header p { color: #666; }
.form-grid { display: flex; flex-direction: column; gap: 15px; }
input, textarea { width: 100%; padding: 15px; border: 1px solid #ddd !important; border-radius: 4px; font-family: 'Poppins', sans-serif; font-size: 1rem; }
input:focus, textarea:focus { border-color: var(--gold) !important; outline: none; }
.full-width { width: 100%; }

/* Admin */
#admin-panel { background: #E8F6F3; padding: 50px 0; border-top: 5px solid var(--gold); margin-top: 20px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.admin-form-box { background: white; padding: 30px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.admin-preview-box { position: sticky; top: 100px; overflow: hidden; width: 100%; }
#live-preview-container { border: 2px dashed #ccc; background-color: #f9f9f9; border-radius: 8px; min-height: 220px; display: flex; align-items: center; justify-content: center; transition: 0.3s; max-height: 500px; overflow-y: auto; overflow-x: hidden; width: 100%; box-sizing: border-box; }
#live-preview-container .blog-card { width: 100%; margin: 0; box-shadow: none; border: none; }
.file-label { display: block; background: #ddd; padding: 12px; margin-bottom: 10px; text-align: center; cursor: pointer; border-radius: 4px; font-weight: bold; color: #444; }
.file-label:hover { background: #ccc; }
input[type="file"] { display: none; }
.btn-blue { background: var(--black); color: var(--gold); border: 1px solid var(--gold) !important; padding: 12px; cursor: pointer; font-weight: bold; width: 100%; border-radius: 4px; }
.btn-blue:hover { background: var(--gold); color: var(--black); border-color: var(--gold) !important; }

/* Footer */
footer { background: var(--black); color: #ccc; padding: 60px 0 20px; border-top: 1px solid #222; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-col { flex: 1; min-width: 250px; }
.logo-footer { color: var(--white); font-size: 1.5rem; font-weight: bold; margin-bottom: 15px; display: block; }
.logo-footer span { color: var(--gold); }
.contact-list li { margin-bottom: 15px; display: flex; gap: 10px; align-items: center; }
.contact-list i { color: var(--gold); opacity: 1; }
.social-links { display: flex; gap: 15px; }
.social-links a { width: 40px; height: 40px; background: #222; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--white); transition: 0.3s; border: none !important; }
.social-links a:hover { background: var(--gold); color: var(--black); }
.footer-bottom { text-align: center; border-top: 1px solid #222; padding-top: 20px; font-size: 0.8rem; opacity: 0.7; }
.footer-bottom p { margin: 5px 0; }
.oab-text { color: var(--gold); font-weight: bold; margin-top: 10px; font-size: 0.95rem; letter-spacing: 1px; opacity: 1; }

/* Created by Lucas (Fonte Babra/Cinzel + Link) */
.creator-text { margin-top: 10px; }
.creator-text a {
    font-family: 'Babra', 'Cinzel', serif; /* Babra se disponível, senão Cinzel */
    color: var(--white);
    text-decoration: none !important;
    font-size: 0.85rem;
    opacity: 0.8;
    transition: 0.3s;
    letter-spacing: 1px;
}
.creator-text a:hover {
    opacity: 1;
    color: var(--gold);
}

.wpp-float { position: fixed; bottom: 25px; right: 25px; background: #25D366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); z-index: 1500; transition: 0.3s; animation: pulse 2s infinite; text-decoration: none !important; border: none !important; }
.wpp-float:hover { background: #1ebc57; transform: scale(1.1); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* =========================================
   11. RESPONSIVIDADE
   ========================================= */
@media (max-width: 1024px) {
    .about-wrapper { flex-direction: column; text-align: center; }
    .about-image { max-width: 300px; margin-bottom: 30px; }
    .hero-bg-layer { width: 50%; }
    .hero-text-content { max-width: 50%; }
    .hero-banner h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .menu-icon { display: block; }
    /* Nav Mobile (Corrigido para Largura) */
    .nav-menu { position: fixed; top: 0; right: -100% !important; width: 80%; height: 100vh; background: var(--black); flex-direction: column; padding-top: 80px; transition: 0.4s ease-in-out; box-shadow: -5px 0 15px rgba(0,0,0,0.5); z-index: 1050; }
    .nav-menu ul { flex-direction: column; align-items: center; gap: 30px; }
    #menu-toggle:checked ~ .nav-menu { right: 0 !important; }
    #menu-toggle:checked ~ .menu-icon .icon-open { display: none; }
    #menu-toggle:checked ~ .menu-icon .icon-close { display: block; color: var(--gold); font-size: 2rem; }
    
    /* HERO MOBILE */
    .hero-banner {
        align-items: flex-start;
        padding-top: 100px;
    }
    
    .hero-bg-layer {
        width: 100%;
        height: 60%; 
        top: auto; bottom: 0;
        background-position: center top;
        filter: grayscale(100%) brightness(0.6);
    }
    
    /* Gradiente Vertical no Mobile */
    .hero-bg-layer::after {
        background: linear-gradient(to bottom, #000000 5%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,0) 100%);
    }
    
    .hero-text-content { max-width: 100%; text-align: center; margin-bottom: 300px; }
    .hero-banner h1 { font-size: 2.2rem; margin-bottom: 30px; }
    .hero-surtitle { font-size: 0.8rem; }
    
    .about-image { width: 100%; max-width: 280px; }
    
    #about-text-container { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
    .btn-about-mobile { display: block; margin: 15px auto; width: 100%; }

    /* BLOG MOBILE */
    .blog-list { max-height: none; overflow-y: visible; }
    .blog-card { flex-direction: row !important; align-items: stretch; min-height: auto; }
    .blog-img-wrapper { flex: 0 0 110px; height: auto; }
    .blog-content { padding: 15px; justify-content: flex-start; }
    .blog-content h3 { font-size: 1rem; margin-bottom: 5px; line-height: 1.2; }
    .blog-content p { font-size: 0.8rem; margin-bottom: 10px; -webkit-line-clamp: 3; }
    .btn-share, .btn-read-more { padding: 4px 8px; font-size: 0.7rem; }

    .contact-box { padding: 30px 20px; }
    .admin-grid { grid-template-columns: 1fr; }
    .admin-preview-box { position: static; margin-top: 30px; }
    .footer-content { flex-direction: column; text-align: center; }
    .contact-list li, .social-links { justify-content: center; }
}