/* Variáveis de Cores (Estilo Advocacia) */
:root {
    --primary-color: #0b1f38; /* Azul Escuro Marinho */
    --accent-color: #c5a365; /* Dourado/Areia */
    --accent-hover: #e0bb77;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
}

/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3, h4, .logo {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section (Topo) */
.hero {
    position: relative;
    background-color: #1a1a1a;
    background-image: url('banner.jpg');
    background-size: cover;
    background-position: center right; /* Mantém o foco no logo que está na direita */
    color: var(--white);
    min-height: 85vh; /* Aumenta a altura do banner para ocupar quase a tela toda */
    display: flex;
    align-items: center;
    text-align: left; /* Trava o alinhamento do texto na esquerda */
}

/* Camada escura apenas na esquerda para dar leitura ao texto, deixando a direita limpa */
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to right, rgba(11, 31, 56, 0.98) 0%, rgba(11, 31, 56, 0.7) 45%, transparent 100%);
    z-index: 1;
}

/* Efeito de suavização elegante no final do banner fundindo com o fundo branco */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent, var(--white));
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%; /* Garante que o Flexbox respeite a largura da tela mantendo as margens do .container */
}

/* Limita a largura dos textos para não invadir o lado direito (a logo) */
.hero-content h1, 
.hero-content p, 
.hero-content .badge {
    max-width: 650px;
}

.badge {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #e0e0e0;
}

/* Botões */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* Seções Gerais */
.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 50px;
    font-size: 1.1rem;
}

/* Grid de Atuação */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    border-bottom: 4px solid transparent;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Como Funciona */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
    padding: 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px auto;
}

.step h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Call to Action Final */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 20px;
}

.cta-section p {
    margin-bottom: 30px;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background-color: #06111e;
    color: #a0a0a0;
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-info .logo {
    color: var(--white);
    margin-bottom: 15px;
}

.footer-contact h4 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
}

/* Botão WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Responsividade Básica (Mobile) */
@media (max-width: 768px) {
    /* 1. Esconde os links do menu e centraliza o nome no topo */
    .nav-links {
        display: none;
    }
    
    .nav-content {
        justify-content: center;
    }

    /* 2. Ajusta o banner: foco 100% na logo, sem textos e mais baixo */
    .hero {
        min-height: 45vh; /* Altura reduzida para o usuário chegar mais rápido nas áreas de atuação */
        background-position: 85% center; /* Foca a câmera do celular direto na logo da imagem */
        padding: 0;
    }

    /* Oculta todo o texto, badge e o botão "Falar com o advogado" */
    .hero-content {
        display: none;
    }

    /* Remove a camada escura, já que não temos mais texto para dar leitura. A imagem fica nítida. */
    .hero-overlay {
        display: none;
    }

    /* 3. Ajustes gerais para alinhar o rodapé no celular */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}