/* ===== ESTILOS GERAIS E RESET ===== */
:root {
    --azul-marinho: #001f3f;
    --cinza-escuro: #333333;
    --branco: #FFFFFF;
    --dourado: #D4AF37;
    --cinza-claro: #f4f4f4;
    --cinza-divisorias: #e0e0e0;
    --fonte-titulo: 'Merriweather', serif;
    --fonte-corpo: 'Lato', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--fonte-corpo);
    color: var(--cinza-escuro);
    line-height: 1.6;
    background-color: var(--branco);
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

h1, h2, h3, h4 {
    font-family: var(--fonte-titulo);
    color: var(--azul-marinho);
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

section {
    padding: 80px 0;
}

.cta-button {
    display: inline-block;
    background-color: var(--dourado);
    color: var(--branco);
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: 2px solid transparent;
    white-space: nowrap;
}

.cta-button:hover {
    background-color: #c5a231;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--dourado);
    border: 2px solid var(--dourado);
}

.cta-button.secondary:hover {
    background-color: var(--dourado);
    color: var(--branco);
}

/* ===== CABEÇALHO E NAVEGAÇÃO ===== */
.main-header {
    background-color: var(--branco);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--fonte-titulo);
    font-size: 1.5rem;
    color: var(--azul-marinho);
    text-decoration: none;
    font-weight: bold;
}

.main-nav .nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.main-nav .nav-links li {
    padding: 0 15px;
    border-right: 1px solid var(--cinza-divisorias);
}

.main-nav .nav-links li:last-child {
    border-right: none;
}

.main-nav .nav-links a {
    text-decoration: none;
    color: var(--cinza-escuro);
    font-weight: bold;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-bottom-color 0.3s;
    white-space: nowrap;
    font-size: 0.95rem;
}

.main-nav .nav-links a:hover,
.main-nav .nav-links a.active {
    color: var(--dourado);
    border-bottom-color: var(--dourado);
}

.menu-hamburger {
    display: none;
    cursor: pointer;
}

.menu-hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--azul-marinho);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}


/* ===== SEÇÃO HERO ===== */
.hero-section {
    background: linear-gradient(rgba(0, 31, 63, 0.7), rgba(0, 31, 63, 0.7)), url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?q=80&w=2070&auto=format&fit=crop') no-repeat center center/cover;
    color: var(--branco);
    text-align: center;
    padding: 100px 0;
}

.hero-section h1 {
    color: var(--branco);
    max-width: 800px;
    margin: 0 auto 20px auto;
}

.hero-section .subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

.hero-cta {
    font-size: 1.1rem;
    padding: 15px 35px;
    display: inline-flex;
    align-items: center;
}

.hero-cta .icon {
    margin-right: 12px;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ===== SEÇÃO ÁREAS DE ATUAÇÃO ===== */
.areas-atuacao-section {
    background-color: var(--cinza-claro);
}

.section-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

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

.card {
    background-color: var(--branco);
    padding: 40px 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--azul-marinho);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.card-icon {
    width: 40px;
    height: 40px;
    fill: var(--branco);
}

.card h3 {
    margin-bottom: 15px;
}

.card-link {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: var(--dourado);
    font-weight: bold;
}

/* ===== SEÇÃO DIFERENCIAIS ===== */
.diferenciais-section {
    padding-bottom: 60px;
}
.diferenciais-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    text-align: center;
    margin-top: 50px;
}

.diferencial-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--cinza-claro);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.diferencial-icon {
    width: 36px;
    height: 36px;
    fill: var(--azul-marinho);
}

.diferencial h3 {
    margin-bottom: 10px;
}

/* ===== SEÇÃO SOBRE (RESUMO) ===== */
.sobre-resumo-section {
    background-color: var(--cinza-claro);
}

.sobre-resumo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.sobre-resumo-imagem img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.sobre-resumo-texto h2 {
    text-align: left;
    margin-bottom: 20px;
}

.sobre-resumo-texto p {
    margin-bottom: 30px;
}

/* ===== SEÇÃO CTA FINAL (GERAL) ===== */
.cta-final-section {
    background-color: var(--azul-marinho);
    color: var(--branco);
    text-align: center;
}

.cta-final-section h2 {
    color: var(--branco);
}

.cta-final-section p {
    margin-bottom: 30px;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-buttons-container a {
    margin: 0 10px;
}

/* ===== RODAPÉ ===== */
.main-footer {
    background-color: var(--cinza-escuro);
    color: #e0e0e0;
    padding: 60px 0 20px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-info .logo {
    color: var(--branco);
    margin-bottom: 20px;
    display: block;
}

.footer-info .nap {
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-links h4, .footer-social h4 {
    font-family: var(--fonte-titulo);
    color: var(--dourado);
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: #e0e0e0;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--dourado);
}

.footer-social .social-icon {
    width: 32px;
    height: 32px;
    fill: #e0e0e0;
    transition: fill 0.3s, transform 0.3s;
}

.footer-social .social-icon:hover {
    fill: var(--dourado);
    transform: scale(1.1);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #aaa;
}

/* ===== PÁGINAS INTERNAS (GENÉRICO) ===== */
.page-header {
    background: var(--azul-marinho);
    color: var(--branco);
    padding: 70px 0;
    text-align: center;
}
.page-header h1 {
    color: var(--branco);
}
.content-section {
    padding: 80px 0;
}
.content-section .container {
    max-width: 850px;
}
.content-section h2, .content-section h3 {
    text-align: left;
    margin-top: 40px;
    margin-bottom: 20px;
}
.content-section p, .content-section ul {
    margin-bottom: 20px;
}
.content-section ul {
    padding-left: 25px;
}
.content-section ul li {
    margin-bottom: 10px;
}

/* ===== BALÃO DE CTA NAS PÁGINAS DE ÁREA (CORREÇÃO DEFINITIVA) ===== */
.content-section .cta-final-section {
    padding: 40px;
    margin-top: 40px;
    border-radius: 8px;
    text-align: center; /* Centraliza o <p> e o <a> */
}

/* Anula a regra de alinhamento à esquerda apenas para o h2 dentro deste balão */
.content-section .cta-final-section h2 {
    text-align: center;
}


/* ===== PÁGINA SOBRE ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}
.about-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.about-text h2 {
    margin-top: 0;
}

.equipe-section {
    margin-top: 80px;
    border-top: 1px solid var(--cinza-divisorias);
    padding-top: 50px;
}

.equipe-section h2 {
    text-align: center;
    margin-bottom: 40px;
}

.advogado-item {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--cinza-divisorias);
}

.advogado-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.advogado-item h3 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 5px;
}

.advogado-item .oab {
    font-weight: bold;
    color: var(--dourado);
    margin-bottom: 10px;
}


/* ===== PÁGINA DE CONTATO ===== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-info h3 {
    margin-bottom: 25px;
    text-align: left;
}

.contact-info p {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
}
.contact-info a {
    color: var(--cinza-escuro);
    text-decoration: none;
    transition: color 0.3s;
}
.contact-info a:hover {
    color: var(--dourado);
}

.contact-icon {
    width: 24px;
    height: 24px;
    margin-right: 15px;
    fill: var(--dourado);
    flex-shrink: 0;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: var(--fonte-corpo);
    font-size: 1rem;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--dourado);
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}


.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.map-container {
    margin-top: 80px;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 8px;
}


/* ===== RESPONSIVIDADE ===== */

/* Telas de tablet (até 920px) - Apenas o menu é afetado */
@media (max-width: 920px) {
    .main-nav .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--branco);
        width: 100%;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        text-align: center;
        padding: 10px 0;
    }
    
    .main-nav .nav-links.active {
        display: flex;
    }

    .main-nav .nav-links li {
        margin: 0 auto;
        padding: 15px 0;
        border-bottom: 1px solid var(--cinza-divisorias);
        border-right: none; 
        width: 90%;
        text-align: center;
    }

    .main-nav .nav-links li:last-child {
        border-bottom: none;
    }

    .menu-hamburger {
        display: block;
    }
    
    .menu-hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .menu-hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}


/* Telas menores (até 768px) - Conteúdo é afetado */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    section { padding: 60px 0; }

    .sobre-resumo-content,
    .about-content,
    .contact-container,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .sobre-resumo-imagem,
    .about-image {
        grid-row: 1; 
        margin-bottom: 30px;
    }

    .sobre-resumo-texto h2,
    .about-text h2,
    .content-section h2 {
        text-align: center;
    }
    
    .footer-content {
        text-align: center;
        gap: 40px;
    }
    
    .contact-info {
        margin-bottom: 40px;
    }

    .advogado-item h3 {
        text-align: center;
    }
    .advogado-item {
        text-align: center;
    }
}

/* Telas de celular (até 480px) */
@media (max-width: 480px) {
    .cta-buttons-container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons-container a {
        margin: 10px 0;
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}
/* ===== ESTILOS PARA MENSAGENS DO FORMULÁRIO ===== */
#form-status {
    margin-top: 20px;
    font-weight: bold;
    text-align: center;
}

#form-status .success {
    color: #28a745; /* Verde */
    background-color: #e9f7eb;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #a3d9b1;
}

#form-status .error {
    color: #dc3545; /* Vermelho */
    background-color: #fce8e6;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #f5b7b1;
}