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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #f8f9fa;
}

/* ==========================================
   CABEÇALHO E NAVEGAÇÃO
   ========================================== */
header {
    background: linear-gradient(135deg, #1a3a52 0%, #2c5aa0 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
}

header nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    flex-wrap: wrap;
    padding: 0;
}

header nav li {
    margin: 0;
}

header nav a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    padding: 18px 22px;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

header nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: #d4af37;
}

/* ==========================================
   SEÇÕES GERAIS
   ========================================== */
section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

section h1 {
    font-size: 38px;
    color: #1a3a52;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1px;
}

section h2 {
    font-size: 20px;
    color: #2c5aa0;
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: 600;
}

section h3 {
    color: #2c5aa0;
    font-weight: 600;
}

section p {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
}

/* ==========================================
   SEÇÃO BEM-VINDAS
   ========================================== */
#boas-vindas {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    text-align: center;
    padding: 80px 20px;
}

#boas-vindas img {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#boas-vindas h1 {
    font-size: 48px;
    margin: 30px 0 15px 0;
    color: #1a3a52;
}

#boas-vindas h3 {
    font-size: 18px;
    color: #2c5aa0;
    margin-bottom: 25px;
    font-weight: 500;
}

#boas-vindas p {
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto;
    color: #555;
}

/* ==========================================
   SEÇÃO DE SERVIÇOS
   ========================================== */
#servicos {
    background-color: #ffffff;
    border-top: 1px solid #e0e5eb;
    border-bottom: 1px solid #e0e5eb;
}

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

.card-servico {
    background: #ffffff;
    border: 1px solid #e0e5eb;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card-servico:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #2c5aa0;
}

.card-servico img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-servico h3 {
    padding: 20px 20px 10px 20px;
    font-size: 18px;
}

.card-servico p {
    padding: 0 20px 20px 20px;
    font-size: 14px;
    color: #666;
}

/* ==========================================
   SEÇÃO MISSÃO, VISÃO E VALORES
   ========================================== */
#missao-visao-valores {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: flex-start;
}

#titulo-mvv {
    width: 100%;
    gap: 30px;
    align-items: center;
    justify-content: center;
}


#missao-visao-valores img {
    min-width: 400px;
    width: 400px;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.textos-mvv {
    flex: 1;
}

.textos-mvv h2 {
    color: #1a3a52;
    font-size: 18px;
    margin-top: 0;
}

.textos-mvv p {
    margin-bottom: 25px;
    color: #666;
}

@media (max-width: 768px) {
    #missao-visao-valores {
        flex-direction: column;
    }

    #missao-visao-valores img {
        min-width: 100%;
        width: 100%;
    }
}

/* ==========================================
   SEÇÃO ADVOGADOS
   ========================================== */
#advogados {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

.cards-advogados {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card-advogado {
    background: #ffffff;
    border-radius: 8px;
    text-align: center;
    padding: 30px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0e5eb;
}

.card-advogado:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    border-color: #2c5aa0;
}

.card-advogado img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 20px;
    object-fit: cover;
    border: 3px solid #2c5aa0;
}

.card-advogado h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.card-advogado p {
    color: #666;
    font-size: 14px;
    font-style: italic;
}

/* ==========================================
   SEÇÃO CONTATO
   ========================================== */
#contato {
    background: linear-gradient(135deg, #1a3a52 0%, #2c5aa0 100%);
    color: #ffffff;
    text-align: center;
}

#contato h1 {
    color: #ffffff;
    margin-bottom: 30px;
}

#contato p {
    color: #ecf0f1;
    font-size: 15px;
    margin: 10px 0;
}

#contato p:first-of-type {
    margin-bottom: 25px;
    font-weight: 500;
}

footer div{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: #1a3a52;
    color: #ffffff;
    text-align: center;
    padding: 20px 10px;
    font-size: 14px;
    border-top: 2px solid #2c5aa0;
}

/* ==========================================
   RESPONSIVIDADE
   ========================================== */
@media (max-width: 768px) {
    header nav ul {
        flex-direction: column;
    }

    header nav a {
        padding: 12px 16px;
        border-bottom: none;
        border-left: 3px solid transparent;
    }

    header nav a:hover {
        border-left-color: #d4af37;
    }

    section {
        padding: 40px 15px;
    }

    section h1 {
        font-size: 28px;
    }

    #boas-vindas {
        padding: 50px 15px;
    }

    #boas-vindas h1 {
        font-size: 32px;
    }

    #boas-vindas h3 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 30px 10px;
    }

    section h1 {
        font-size: 22px;
    }

    header nav a {
        padding: 10px 12px;
        font-size: 12px;
    }

    #boas-vindas h1 {
        font-size: 24px;
    }

    .cards-servicos,
    .cards-advogados {
        gap: 20px;
    }
}
