/* ===================================================================
ARQUIVO CSS COMPLETO E FINAL - FRATTA & FERREIRA ADVOGADOS
=================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Public+Sans:ital,wght@0,100..900;1,100..900&display=swap');

/* 1. Reset e Variáveis Globais */
:root {
    --primary-blue: #0a2d4d;
    /* Azul escuro principal */
    --secondary-blue: #00aaff;
    /* Azul ciano vibrante */
    --light-gray: #f0f2f5;
    /* Cinza de fundo */
    --text-color: #333;
    --white: #ffffff;
    --footer-bg: #2d2d2d;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
}

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

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 60px;
}

/* 2. Cabeçalho */
.main-header {
    background-color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom: 3px solid var(--secondary-blue);
}

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

.main-header .logo img {
    max-height: 80px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.main-nav a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding-bottom: 5px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.main-nav a:hover {
    color: var(--secondary-blue);
}

.main-nav a.active {
    color: var(--secondary-blue);
    border-bottom: 2px solid var(--secondary-blue);
}

.cta-button-header {
    background-color: var(--secondary-blue);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Public Sans", sans-serif;
}

a {
    text-decoration: none !important;
}

/* 3. Seção Hero */
#hero {
    background: url('/img/banner1.jpg') center/cover no-repeat;
    height: 90vh;
    display: flex;
    flex-direction: column;
    text-align: center;
    color: var(--white);
    position: relative;
}

#hero::after {
    content: '';
    position: absolute;
    top: 25%;
    right: 15%;
    width: 80px;
    height: 50px;
    background-image: linear-gradient(to bottom right, transparent 48%, white 48%, white 52%, transparent 52%), linear-gradient(to bottom right, transparent 48%, white 48%, white 52%, transparent 52%), linear-gradient(to bottom right, transparent 48%, white 48%, white 52%, transparent 52%);
    background-size: 100% 4px;
    background-repeat: no-repeat;
    background-position: top, center, bottom;
    transform: rotate(-45deg);
    opacity: 0.5;
}

.hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.25rem;
    font-weight: 400;
    text-align: center;
}

.hero-bottom-bar {
    width: 100%;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
}

.bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Public Sans", sans-serif
}

.info-col {
    padding: 0 20px;
    color: #e0e0e0 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.info-col:last-child {
    border-right: none;
}

.contact-details {
    text-align: left;
    font-size: 0.8rem;
    line-height: 1.6;
    flex-basis: 35%;
}

.stat-col {
    text-align: center;
    flex-basis: 20%;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    text-align: left;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    text-align: left;
}

/* 4. Seção Apresentação (Layout Atualizado) */
#about {
    background-color: var(--white);
    padding-top: 150px;
    padding-bottom: 0;
}

#about .container {
    padding-bottom: 80px;
}

.about-content {
    display: flex;
    align-items: flex-start;
    gap: 60px;
}

.about-title-wrapper {
    flex: 1.5;
    position: relative;
}

.about-subtitle {
    color: #888;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.decorator-line {
    width: 50px;
    height: 2px;
    background-color: #ccc;
    margin-top: 0;
    margin-bottom: 15px;
}

.about-title-wrapper h2 {
    font-size: 2.0rem;
    color: var(--primary-blue);
    line-height: 1.3;
}

.about-text {
    flex: 2.5;
    font-size: 1rem;
    line-height: 1.8;
    color: black;
    padding-top: 10px;
}

.about-text p {
    margin-bottom: 20px;
}

.about-text strong {
    color: var(--text-color);
}

.section-divider {
    border: none;
    height: 1px;
    background-color: #e0e0e0;
    margin-top: 80px;
}

/* 5. Seção Serviços */
#services {
    padding: 0;
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.service-card {
    position: relative;
    overflow: hidden;
    height: 350px;
    color: var(--white);
    display: flex;
    align-items: flex-end;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    transition: transform 0.4s ease;
}

.service-card:hover img {
    transform: scale(1.1);
}

.card-overlay {
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(10, 45, 77, 0.95), rgba(10, 45, 77, 0));
    z-index: 2;
    position: relative;
    transition: background 0.4s ease-in-out;
}

.card-overlay ul {
    padding: 0;
    margin-top: 15px;
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0;
    max-height: 0;
    transform: translateY(20px);
    overflow: hidden;
    transition: opacity 0.4s ease-in-out, max-height 0.4s ease-in-out, transform 0.4s ease-in-out;
    list-style-type: disc;
    list-style-position: inside;
    padding-left: 20px;
}

.card-overlay h3 {
    font-size: 1.8rem;
    font-weight: 600;
}

.service-card:hover .card-overlay {
    background: linear-gradient(to top, rgba(10, 45, 77, 0.98), rgba(10, 45, 77, 0.5));
}

.service-card:hover .card-overlay ul {
    opacity: 1;
    max-height: 200px;
    transform: translateY(0);
}

/* 6. Seção Equipe */
#team {
    background-image: url('/img/bkg-squad.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    color: #192953;
    justify-content: center;
    align-items: center;
    display: flex;
}

#team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
    justify-content: center;
}

.team-logo-icon {
    grid-column: span 1;
    text-align: center;
}

.team-member {
    grid-column: span 1;
    text-align: center;
}

.team-member img {
    width: 100%;
    max-width: 450px;
    height: auto;
    margin-bottom: 15px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.team-member h4 {
    color: #1b3557;
    font-size: 1.7rem;
    margin-bottom: 15px;
}

.team-button {
    background-color: var(--secondary-blue);
    color: var(--white);
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.team-button:hover {
    background-color: #0088cc;
}

/* 7. Seção Contato */
#contact {
    background-color: var(--primary-blue);
    color: var(--white);
    background-image: url('/img/bkg-forms.jpg');
    background-position: center;
    background-size: cover;
}

/* ATUALIZAÇÃO: Centraliza o conteúdo da seção de contato */
.contact-container {
    display: flex;
    justify-content: center;
    /* Centraliza o conteúdo horizontalmente */
    text-align: center;
    /* Centraliza o texto */
}

.contact-info {
    flex: 0 1 700px;
    /* Define uma base flexível para o conteúdo */
}

.contact-subtitle {
    font-size: 1.1rem;
    font-weight: 600;
}

.decorator-line-contact {
    width: 40px;
    height: 3px;
    background-color: var(--secondary-blue);
    margin: 5px auto 20px auto;
    /* Centraliza a linha */
}

.contact-info h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.address-block {
    font-size: 0.9rem;
    line-height: 1.8;
    color: white !important;
    margin-top: 40px;
    /* Adiciona espaço acima do bloco de endereço */
}

.address-street {
    margin-top: 20px;
}

.cta-button {
    background-color: var(--secondary-blue);
    color: var(--white);
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
    /* Garante que o padding seja aplicado corretamente */
    margin-top: 20px;
}

.cta-button:hover {
    background-color: #0088cc;
}


/* 8. Mapa */
#map iframe {
    display: block;
    border: none;
}

/* 9. Rodapé */
.main-footer {
    background: url('/img/bkg-footer.jpg.png') repeat;
    color: white;
    padding: 30px 0;
    text-align: center;
    background-size: cover;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.footer-logo {
    max-width: 180px;
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-divider {
    width: 100%;
    max-width: 800px;
    border: 0;
    height: 1px;
}

/* Adicione este bloco dentro da seção do Rodapé no seu CSS */

.footer-nav a:hover {
    color: var(--white);
}

/* ========================================================== */
/* NOVOS ESTILOS PARA ÍCONES SOCIAIS NO RODAPÉ       */
/* ========================================================== */
.footer-social {
    display: flex; /* Alinha os ícones */
    gap: 25px; /* Espaçamento entre os ícones */
}

.footer-social a {
    color: var(--white); /* Cor do ícone (branco) */
    font-size: 1.7rem; /* Tamanho do ícone */
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    color: var(--secondary-blue); /* Muda a cor para azul ao passar o mouse */
    transform: translateY(-3px); /* Adiciona um leve efeito de elevação */
}

.developer-credit {
    font-size: 0.9rem;
    color: white;
}

.developer-credit a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    vertical-align: middle;
}

.developer-credit img {
    max-height: 25px;
    vertical-align: middle;
    margin-left: 5px;
}

/* 10. Animações e Responsividade */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 11. Sistema de Modal (Popup) da Equipe */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 45, 77, 0.85);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-backdrop.is-visible {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    color: var(--text-color);
    padding: 30px 40px;
    border-radius: 8px;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}

.modal-backdrop.is-visible .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-blue);
}

.modal-content h2 {
    color: var(--primary-blue);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-blue);
}

.modal-body p {
    line-height: 1.7;
    margin-bottom: 15px;
}

.modal-body h3 {
    color: var(--primary-blue);
    margin-top: 25px;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.modal-body ul {
    list-style-position: inside;
    padding-left: 5px;
}

.modal-body ul li {
    margin-bottom: 8px;
}

@media (max-width: 1200px) {
    .main-nav {
        display: none;
    }
}

@media (max-width: 992px) {
    #hero {
        height: auto;
    }

    .hero-content {
        padding: 80px 20px;
    }

    .bar-container {
        flex-direction: column;
        gap: 30px;
    }

    .info-col {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        padding: 0 20px 20px 20px;
        width: 100%;
        text-align: center;
    }

    .info-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .contact-details {
        text-align: center;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .decorator-line {
        margin: 10px auto 30px auto;
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
    }

    .team-logo-icon {
        grid-column: 1 / -1;
        margin-bottom: 40px;
    }
    
    .contact-container {
        flex-direction: column;
        gap: 50px;
        align-items: center;
    }

    .contact-info {
        text-align: center;
    }

    .stat-number {
        text-align: center;
    }

    .about-content {
        flex-direction: column;
        text-align: left;
        gap: 30px;
    }

    .decorator-line {
        margin-left: 0;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    #hero::after {
        display: none;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-logo-icon {
        display: none;
    }
}