/* ==========================================================================
   PROJETO: João Marcos Soares - Advocacia Especializada
   REVISÃO: Correção de Alinhamento do Slider e Footer Fixo
   ========================================================================== */

:root {
    --verde-petroleo: #1A3C3B;
    --dourado-fosco: #C3A36F;
    --texto-escuro: #2B2B2B;    
    --texto-paragrafo: #444444; 
    --branco: #FFFFFF;
    --cinza-bg: #F9F9F9;
    --whatsapp: #25d366;
}

/* 1. Reset e Estrutura de Layout */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    /* Ativa Flexbox Vertical para empurrar o footer */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; 
    font-family: 'Montserrat', sans-serif;
    color: var(--texto-escuro);
    background-color: var(--branco);
    line-height: 1.6;

    /* Segurança contra cópia */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Garante que o slider e seções ocupem a linha inteira (Corrige quebra do Slider) */
header, 
main, 
section, 
footer, 
.hero-slider {
    width: 100%;
    flex-shrink: 0; 
}

/* O conteúdo principal cresce para preencher o espaço e fixar o footer no fundo */
main, .service-details, #atuacao, #sobre {
    flex: 1 0 auto;
}

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

/* 2. Header e Navegação */
header {
    background-color: var(--verde-petroleo);
    padding: 15px 0;
    border-bottom: 4px solid var(--dourado-fosco);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img { height: 50px; width: auto; }

.logo-text {
    color: var(--dourado-fosco);
    font-weight: 800;
    font-size: 1rem;
    text-transform: uppercase;
    line-height: 1.1;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.link-inicio {
    color: var(--branco);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: 0.3s;
}

.link-inicio:hover { color: var(--dourado-fosco); }

.btn-nav {
    background-color: transparent !important;
    color: var(--dourado-fosco) !important;
    border: 1px solid var(--dourado-fosco) !important;
    padding: 8px 18px !important;
    border-radius: 2px;
    font-weight: 600 !important;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.8rem;
    transition: 0.3s;
    display: inline-block;
}

.btn-nav:hover {
    background-color: var(--dourado-fosco) !important;
    color: var(--verde-petroleo) !important;
}

/* 3. Hero Slider (Home) */
.hero-slider {
    position: relative;
    height: 60vh;
    overflow: hidden;
    background: var(--verde-petroleo);
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slide.active { opacity: 1; }

.slide-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.slide-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(26, 60, 59, 0.75);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: var(--branco);
    padding: 0 20px;
    max-width: 850px;
}

.slide-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* 4. Botões e Ações */
.btn-gold {
    background-color: var(--dourado-fosco);
    color: var(--verde-petroleo);
    padding: 15px 35px;
    text-decoration: none;
    font-weight: 800;
    border-radius: 4px;
    display: inline-block;
    transition: 0.3s;
    text-transform: uppercase;
    border: none;
    font-size: 0.9rem;
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 5. Serviços e Cards */
.section-title {
    text-align: center;
    color: var(--verde-petroleo);
    font-weight: 800;
    font-size: 2.2rem;
    margin: 50px 0 30px;
    text-transform: uppercase;
}

.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--branco);
    padding: 35px;
    border-top: 5px solid var(--dourado-fosco);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
    transition: 0.3s;
}

/* 6. Páginas de Serviço Internas */
.service-hero {
    padding: 80px 15px;
    text-align: center;
    color: var(--branco);
}

.service-details {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 20px 20px 80px; 
    margin-top: 50px !important;
}

@media (max-width: 992px) {
    .service-details {
        display: flex;
        flex-direction: column;
        margin-top: 30px !important;
        padding: 15px;
        gap: 30px;
    }
}

.content-text h2 { color: var(--verde-petroleo); margin-bottom: 20px; }
.content-text p { color: var(--texto-paragrafo); margin-bottom: 15px; }
.content-text ul { list-style: none; padding: 0; }
.content-text ul li { margin-bottom: 12px; color: var(--texto-paragrafo); position: relative; padding-left: 25px; }
.content-text ul li::before { content: "✔"; color: var(--dourado-fosco); position: absolute; left: 0; font-weight: bold; }

.card-cta {
    background: var(--cinza-bg);
    padding: 30px;
    border-radius: 8px;
    border-left: 5px solid var(--dourado-fosco);
}

/* 7. WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp);
    color: var(--branco);
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: 0.3s;
}

.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float img { width: 35px; }

/* 8. Rodapé */
footer {
    background-color: var(--verde-petroleo);
    color: var(--branco);
    padding: 30px 0;
    border-top: 4px solid var(--dourado-fosco);
}

/* 9. Elementos Dinâmicos e Conversão */
.wa-bubble {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--branco);
    padding: 12px 18px;
    border-radius: 15px 15px 0 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    font-size: 0.85rem;
    z-index: 999;
    border-right: 4px solid var(--whatsapp);
    animation: fadeInUp 0.5s ease-out;
}

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

.stat-number { display: block; font-size: 1.8rem; font-weight: 800; color: var(--verde-petroleo); }

/* 10. Responsividade Mobile */
@media (max-width: 992px) {
    nav { flex-direction: column; gap: 15px; }
    .nav-right { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .hero-slider { height: 70vh; }
    .slide-content h1 { font-size: 1.8rem; }
    .grid-services { grid-template-columns: 1fr; }
    .section-title { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .btn-gold { width: 100%; text-align: center; }
    .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; }
    .logo-text { font-size: 0.85rem; }
    .wa-bubble { right: 20px; bottom: 85px; font-size: 0.75rem; }
}