* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
}

header {
    background: linear-gradient(to right, #1e3c72, #2a5298);
    color: white;
    padding: 1.5rem 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    /* Garantindo que o logo fique à esquerda */
    margin-right: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
    /* Alinhamento à direita para telas grandes */
    margin-left: auto;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    color: #c3cfe2;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 999;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 8px;
}

.hamburger span:nth-child(3) {
    top: 16px;
}

.hamburger.open span:nth-child(1) {
    top: 8px;
    transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.open span:nth-child(3) {
    top: 8px;
    transform: rotate(-135deg);
}

main {
    flex: 1;
    padding: 3rem 5%;
}


p{
    text-align: justify;
    justify-content: center;
}

.hero {
    display: flex;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
    position: relative;
}

.lawyer-image {
    flex: 0 0 300px;
    height: 450px;
    background: linear-gradient(to bottom, #2a5298, #1e3c72);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
}

.lawyer-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.background-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    opacity: 0.15;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    
    color: #2a5298;
}

h2 {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.lawyer-description {
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(to right, #1e3c72, #2a5298);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.services {
    margin-bottom: 4rem;
}

.services h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #1e3c72;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.service-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #1e3c72;
}

.contact-section {
    padding: 2rem 0;
}

.contact-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #1e3c72;
    text-align: center;
}

.contact-grid {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.contact-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    max-width: 24%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    background: linear-gradient(to bottom right, #f5f7fa, #e0e6ed);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(to right, #1e3c72, #2a5298);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.2rem;
}

.contact-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #1e3c72;
}

.contact-info {
    line-height: 1.4;
    font-size: 0.9rem;
}


footer {
    background: linear-gradient(to right, #1e3c72, #2a5298);
    color: white;
    padding: 2rem 5%;
    text-align: center;
    margin-top: 3rem;
}

/* Estilos responsivos para telas menores */
@media (max-width: 992px) {
    .contact-grid {
        flex-wrap: wrap;
    }
    
    .contact-card {
        max-width: 48%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    /* Hamburger menu para mobile */
    .hamburger {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: linear-gradient(to bottom, #1e3c72, #2a5298);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: all 0.5s ease;
        z-index: 998;
        padding: 2rem;
        /* Removida a margem automática para versão mobile */
        margin-left: 0;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
    }
    
    /* Overlay para quando o menu está aberto */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.7);
        z-index: 997;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease;
    }
    
    .overlay.active {
        opacity: 1;
        visibility: visible;
    }
    
    /* Ajustes na seção hero */
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .lawyer-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        height: 380px;
    }
    
    .background-image {
        display: none;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.2rem;
    }
    
    /* Ajustes na grid de serviços */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    /* Ajustes nos cards de contato */
    .contact-card {
        max-width: 100%;
        width: 100%;
    }

    .contact-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-card {
        max-width: 70%;
        width: 70%;
        margin-bottom: 1.5rem;
    }
    
    

}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }
    
    .lawyer-image {
        height: 320px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.1rem;
    }
    
    .lawyer-description {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .services h3, .contact-section h3 {
        font-size: 1.5rem;
    }
    
    .nav-links {
        width: 85%;
    }
    .contact-card {
        max-width: 90%;
        width: 90%;
    }
}