﻿* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Roboto', sans-serif; color: #333; line-height: 1.6; }
.container { max-width: 1100px; margin: auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-light { background: #f4f4f4; }
.center { text-align: center; margin-bottom: 40px; }

/* Header & Nav */
header { background: #0a192f; color: #fff; padding: 20px 0; position: sticky; top: 0; z-index: 1000; }
nav { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: bold; }
.logo span { color: #c5a059; font-weight: 300; }
nav ul { display: flex; list-style: none; }
nav ul li { margin-left: 20px; }
nav ul li a { color: #fff; text-decoration: none; font-size: 0.9rem; transition: 0.3s; }
nav ul li a:hover { color: #c5a059; }
.btn-contato { border: 1px solid #c5a059; padding: 8px 15px; border-radius: 4px; color: #c5a059 !important; }

/* Hero */
.hero { 
    height: 80vh; 
    background: linear-gradient(rgba(10, 25, 47, 0.8), rgba(10, 25, 47, 0.8)), 
                url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    display: flex; align-items: center; color: #fff; 
}
.hero h1 { font-family: 'Playfair Display', serif; font-size: 3rem; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; max-width: 600px; margin-bottom: 30px; font-weight: 300; }
.cta { background: #c5a059; color: #fff; padding: 12px 30px; text-decoration: none; border-radius: 4px; font-weight: bold; }

/* Grid de Áreas e Sobre */
.sobre-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 50px; }
.stat-item { padding: 20px; border-bottom: 2px solid #c5a059; margin-bottom: 10px; }
.stat-item strong { display: block; font-size: 2rem; color: #0a192f; }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.card { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); border-top: 5px solid #0a192f; }
.card h3 { margin-bottom: 15px; color: #0a192f; }

/* Footer */
footer { background: #0a192f; color: #fff; padding: 50px 0 0; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; padding-bottom: 40px; }
.bottom-bar { background: #050c16; text-align: center; padding: 20px; font-size: 0.8rem; border-top: 1px solid #1a2a44; }

/* Botão Flutuante WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

/* Ajuste link de e-mail no footer */
#email-protegido a:hover {
    text-decoration: underline !important;
}

/* Responsividade para o botão no celular */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
}

/* Ajustes para Dispositivos Móveis (Tablets e Celulares em Portrait) */
@media (max-width: 768px) {
    
    /* Hero Section - Ajuste de altura e texto */
    .hero {
        height: 60vh;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem; /* Diminui o título para não quebrar muitas linhas */
        padding: 0 10px;
    }

    .hero p {
        font-size: 1rem;
        margin: 0 auto 20px;
    }

    /* Navegação - Transforma em menu vertical simples ou empilhado */
    nav {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 0;
    }

    nav ul li {
        margin-left: 0;
    }

    /* Sobre o Escritório - Empilhamento */
    .sobre-grid {
        grid-template-columns: 1fr; /* Muda de 2 colunas para 1 */
        text-align: center;
        gap: 30px;
    }

    .stats {
        display: flex;
        justify-content: space-around;
        border-top: 1px solid #ddd;
        padding-top: 20px;
    }

    .stat-item {
        border-bottom: none;
        margin-bottom: 0;
    }

    /* Áreas de Atuação - Cards em tela cheia */
    .cards-grid {
        grid-template-columns: 1fr; /* Cards ocupam a largura toda */
        gap: 15px;
    }

    .card {
        padding: 20px;
    }

    /* Footer - Centralização */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    /* Botão do WhatsApp - Melhor posicionamento no mobile */
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
}

/* Ajuste fino para celulares muito pequenos (iPhone SE, etc) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.7rem;
    }
    
    .logo {
        font-size: 1.2rem;
    }
}