/* --- RESET E VARIÁVEIS GLOBAIS --- */
:root {
    --primary-color: #38653D;
    --secondary-color: #FFFFFF;
    --background-light: #f8f9fa;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --font-primary: 'Inter', sans-serif;
    --font-headings: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.7;
    background-color: var(--secondary-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h1, h2, h3 {
    font-family: var(--font-headings);
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 3rem;}
h3 { font-size: 1.5rem; }

section {
    padding: 5rem 0;
}

/* --- BARRA DE NAVEGAÇÃO (HEADER) --- */
.navbar {
    width: 100%;
    background: var(--secondary-color);
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    list-style: none;
    display: flex;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* --- SEÇÃO INÍCIO (HERO) --- */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('escritorio.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; 
    color: var(--text-light);
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 60px; /* Espaço para o header fixo */
}

.hero-content h1 {
    color: var(--text-light);
    font-size: 3.5rem;
}

.hero-content .subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- BOTÕES --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background: #2a4e2d;
    border-color: #2a4e2d;
    transform: translateY(-2px);
}

/* --- SEÇÃO SOBRE (NOVO LAYOUT) --- */
.sobre {
    background: var(--background-light);
}

.sobre-content {
    display: grid;
    grid-template-columns: 1fr; /* Padrão mobile: uma coluna */
    gap: 3rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    text-align: center; /* Padrão mobile: centralizado */
}

.sobre-imagem {
    display: flex; /* Para centralizar a imagem em mobile */
    justify-content: center;
}

.foto-advogada {
    width: 100%;
    max-width: 300px; /* Aumentado o tamanho máximo para ter destaque */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    object-fit: cover;
    aspect-ratio: 9 / 16; /* Mantido para a proporção vertical */
}

.sobre-info {
    text-align: center; /* Padrão mobile: centralizado */
}

.sobre-info h2 {
    text-align: center; /* Garante que o h2 fique centralizado em mobile */
}

.sobre-info h3 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 400;
    color: #555;
    margin-bottom: 1.5rem;
}

.sobre-info p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .sobre-content {
        grid-template-columns: 1fr 2fr; /* Desktop: imagem na esquerda, texto na direita */
        text-align: left; /* Alinha o texto à esquerda no desktop */
    }

    .sobre-imagem {
        justify-content: flex-end; /* Alinha a imagem à direita da sua coluna */
    }

    .sobre-info {
        text-align: left; /* Alinha o texto à esquerda */
    }

    .sobre-info h2 {
        text-align: left; /* Alinha o h2 à esquerda no desktop */
    }
}


/* --- SEÇÃO SERVIÇOS --- */
.servicos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.card-servico {
    background: var(--secondary-color);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    text-align: left;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card-servico:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.card-titulo {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.card-descricao {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.5rem;
    min-height: 40px; /* Alinha os cards */
}

.card-servico ul {
    list-style: none;
    padding-left: 0;
}

.card-servico li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.card-servico li::before {
    content: '✓'; /* Checkmark */
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

/* --- SEÇÃO CONTATO --- */
.contato {
    background: var(--background-light);
}

.contato-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Duas colunas */
    gap: 3rem; /* Espaço entre as colunas */
    align-items: flex-start; /* Alinha o topo do conteúdo das colunas */
    max-width: 900px; /* Limita a largura do container do contato */
    margin: 0 auto; /* Centraliza o container do contato */
}

.contato-info {
    text-align: left; /* Garante que o texto da info fique à esquerda por padrão */
}

.contato-info h2 {
    font-size: 2.5rem;
    text-align: left; /* Garante que o h2 fique à esquerda */
    margin-bottom: 1.5rem;
}

.contato-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    font-size: 1.1rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
}

.btn-whatsapp:hover {
    background: #1EAB51;
    transform: translateY(-2px);
}

.btn-whatsapp svg {
    margin-right: 0.5rem;
    vertical-align: middle;
}

.social-links {
    margin-top: 2rem;
    display: flex; 
    align-items: center; /* Centraliza verticalmente o ícone com o texto */
    gap: 1.5rem; 
}

.social-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    display: flex; /* Faz os links usarem flex para alinhar ícone e texto */
    align-items: center; /* Centraliza verticalmente o ícone com o texto */
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.social-links a i {
    margin-right: 0.5rem; /* Espaço entre o ícone e o texto */
    font-size: 1.2rem; /* Tamanho dos ícones */
}

/* Estilos do Novo Formulário */
.contato-form form {
    background: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #ddd;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Estiliza o botão de envio do formulário */
.contato-form .btn-primary {
    width: 100%;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}

/* --- RODAPÉ --- */
.footer {
    background: var(--primary-color);
    color: var(--text-light);
    text-align: center;
    padding: 2rem 0;
}

.footer p {
    font-size: 0.9rem;
    margin: 0.25rem 0;
    opacity: 0.8;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 900px) {
    .contato-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contato-info {
        text-align: center;
    }

    .contato-info h2 {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero {
        height: auto;
        padding: 6rem 0;
        margin-top: 0;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .navbar {
        position: static;
    }

    .navbar .container {
        flex-direction: column;
    }
    
    .nav-logo {
        margin-bottom: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        text-align: center;
        width: 100%;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }
}