/* Reset e configurações gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #063970;
    --primary-dark: #042F5A;
    --primary-light: #1e88e5;
    --secondary: #0A4A8A;
    --secondary-dark: #063970;
    --text-dark: #333333;
    --text-medium: #555555;
    --text-light: #777777;
    --background: #f9f9f9;
    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
    font-weight: 400;
}

/* Header */
.header {
    background: rgba(6, 57, 112, 0.95);
    color: var(--white);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background: var(--white);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}


/* Hero Section */
.carousel-container {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 80px;
    background: #f8f9fa;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
                rgba(6, 57, 112, 0.85) 0%, 
                rgba(6, 57, 112, 0.6) 50%, 
                rgba(6, 57, 112, 0.4) 100%);
    z-index: 1;
}

/* Definindo a imagem do hero */
.carousel-slide:nth-child(1) {
    background-image: url('images/carrossel/carrossel1.jpg');
    background-color: #f8f9fa;
}

.carousel-content {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    z-index: 10;
    max-width: 600px;
    color: var(--white);
}

.carousel-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: var(--white);
    line-height: 1.2;
}

.carousel-content .tagline {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    padding-left: 60px;
    display: inline-block;
}

.carousel-content .tagline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 50px;
    height: 1px;
    background-color: var(--white);
}

.carousel-content p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.8;
    color: var(--white);
}

.cta-button {
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    color: var(--primary);
    padding: 16px 36px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: -1;
}

.cta-button:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.cta-button:hover::before {
    transform: translateX(0);
}

/* Services Section */
.services {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    z-index: 100;
    min-height: 100vh;
}

.services .container {
    position: relative;
    z-index: 101;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background-color: var(--primary);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 80px;
    color: var(--text-medium);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    font-weight: 300;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.service-card {
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(6, 57, 112, 0.08);
    border-radius: 12px;
    padding: 0; /* Removido o padding para o banner da imagem */
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 57, 112, 0.05), transparent);
    transition: left 0.6s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.service-card-image {
    height: 200px;
    width: 100%;
    background-size: cover;
    background-position: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.service-card-content {
    padding: 40px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--primary);
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    position: relative;
    padding-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 1px;
    background-color: var(--primary-light);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.95rem;
    font-weight: 300;
}

/* Team Section */
.team {
    padding: 100px 0;
    background: #f8f9fa;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 50px;
    margin-top: 60px;
    align-items: stretch; /* Make all cards same height */
}

.team-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(6, 57, 112, 0.12);
    transition: all 0.4s ease;
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(6, 57, 112, 0.15);
    border-color: #063970;
}

.team-photo {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.icon-photo {
    height: 280px;
    background: linear-gradient(135deg, #063970, #1e88e5);
    color: #f8f9fa;
    font-size: 4rem;
}

.team-photo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), transparent);
    z-index: 1;
}

.team-member-img {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.team-card:hover .team-member-img {
    transform: scale(1.02);
}

.team-info {
    padding: 40px;
    flex: 1; /* Make team-info expand to fill available space */
    display: flex;
    flex-direction: column;
}

.team-info h3 {
    font-size: 1.5rem;
    color: #063970;
    margin-bottom: 10px;
    font-weight: 600;
}

.team-info .role {
    color: #1e88e5;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1rem;
}

.team-info .oab {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 20px;
    font-style: italic;
}

.team-info p {
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: justify;
}

/* Atuação Nacional Section */
.atuacao-nacional {
    padding: 100px 0;
    background: var(--white); /* Ou use #f8f9fa para alternar a cor de fundo */
}

.atuacao-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Cria duas colunas de tamanho igual */
    align-items: center; /* Alinha o texto e a imagem verticalmente */
    gap: 60px; /* Espaçamento entre o texto e a imagem */
    margin-top: 80px;
}

.atuacao-texto h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 15px;
}

.atuacao-texto .afirmacao {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.atuacao-texto p {
    color: var(--text-medium);
    line-height: 1.8;
    margin-bottom: 20px;
    text-align: justify;
}

.atuacao-mapa img {
    max-width: 100%;
    height: auto;
    display: block; /* Remove espaços extras abaixo da imagem */
}

/* Deixa a seção responsiva para telas menores */
@media (max-width: 992px) {
    .atuacao-grid {
        grid-template-columns: 1fr; /* Coloca o mapa embaixo do texto */
        text-align: center;
    }

    .atuacao-mapa {
        margin-top: 50px; /* Adiciona um espaço quando o layout muda */
    }

    .atuacao-texto h3 {
        font-size: 1.8rem;
    }
}

.read-more {
    color: #063970;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.read-more:hover {
    color: #1e88e5;
}

.read-more::after {
    content: ' →';
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translateX(5px);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #f8f9fa;
}

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

.contact-item {
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 50px 30px;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(6, 57, 112, 0.12);
    border: 1px solid #e9ecef;
    transition: all 0.4s ease;
}

.contact-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(6, 57, 112, 0.15);
    border-color: #063970;
}

.contact-icon {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
}

/* Estilos específicos para o mapa responsivo */
.contact-item.map-item .contact-icon {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 75%; /* Proporção 4:3 */
    margin-bottom: 30px; /* Mantém o espaçamento consistente */
    min-width: 0; /* Corrige bug de overflow em layouts de grid */
    border-radius: 12px; /* Arredonda os cantos do mapa */
}

.contact-item.map-item .contact-icon iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0; /* Garante que não há borda */
}

.contact-item h3 {
    color: #063970;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
}

.contact-item p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer h3, .footer h4 {
    margin-bottom: 25px;
    color: var(--white);
    font-weight: 600;
    font-family: 'Playfair Display', serif;
    position: relative;
    padding-bottom: 15px;
    font-size: 1.3rem;
}

.footer h3::after, .footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    margin-bottom: 15px;
    font-weight: 400;
    letter-spacing: 1px;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
    padding-left: 15px;
}

.footer-links a::before {
    content: '›';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-light);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 20px;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    margin-top: 40px;
}

.footer-bottom p {
    margin-bottom: 10px;
    opacity: 0.7;
    color: var(--white);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.footer-social {
    margin-bottom: 20px;
}

.footer-social a, .footer-social a span {
    color: var(--white) !important;
    text-decoration: none;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.footer-social a:hover, .footer-social a:hover span {
    color: rgba(255, 255, 255, 0.8) !important;
}

.footer-social svg {
    width: 24px;
    height: 24px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .carousel-container {
        height: 80vh;
    }

    .carousel-slide {
        background-attachment: scroll;
    }

    .carousel-content {
        left: 20px;
        right: 20px;
        max-width: none;
        padding: 20px;
    }

    .carousel-content h1 {
        font-size: 2.5rem;
    }

    .carousel-content p {
        font-size: 1.1rem;
    }

    .services-grid,
    .team-grid,
    .articles-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .service-card,
    .team-card,
    .article-card,
    .contact-item {
        margin-bottom: 20px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f8f9fa;
}

::-webkit-scrollbar-thumb {
    background: #063970;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e88e5;
}

/* WhatsApp Floating Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    background-color: #25D366;
    color: white;
    border-radius: 0;
    padding: 12px 24px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulseWhatsApp 2s infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.whatsapp-button svg {
    margin-right: 10px;
}

.whatsapp-button:hover {
    background-color: #22c15e;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-button:active {
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 20px;
        right: 20px;
        padding: 10px 20px;
    }
}

@keyframes pulseWhatsApp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mapa Responsivo no Footer */
.footer-map-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 75%; /* Proporção 4:3 */
    margin-top: 20px; /* Espaçamento acima do mapa */
    border-radius: 8px; /* Bordas arredondadas */
}

.footer-map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Alinhamento da lista de emails */
.email-list {
    text-align: left;
    display: inline-block;
}