:root {
    --color-bg: #111111;
    --color-text-primary: #E6DBC4;
    --color-text-secondary: #d1d1d1;
    --color-gold: #BF9D3E;
    --color-border: #282828;
    --font-heading: 'Instrument Serif', serif;
    --font-body: 'Geist', sans-serif;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0px 32px;
}

/* Header & Nav Bar (Fixa com Animação) */
.header {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
    padding: 24px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease-in-out;
}

/* Estado compacto acionado ao rolar a página via JS */
.header.scrolled {
    padding: 14px 0;
    background-color: rgba(10, 10, 10, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    border-bottom-color: rgba(191, 157, 62, 0.2);
}

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

.logo img {
    height: 65px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

.header.scrolled .logo img {
    height: 52px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--color-text-primary);
    font-size: 20px;
    font-weight: 400;
    transition: opacity 0.4s ease;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* Botão Menu Hambúrguer (Escondido no Desktop) */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 101;
    padding: 0;
}

.mobile-menu-btn .bar {
    width: 100%;
    height: 2px;
    background-color: var(--color-text-primary);
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}

.mobile-menu-btn.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--color-gold);
}

.mobile-menu-btn.active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--color-gold);
}

/* Hero Section (Ocupa a Viewport inteira) */
.hero {
    height: 100vh;
    min-height: 100vh;
    display: flex;
    background: linear-gradient(to right, #0A0A0A 30%, #111111 100%);
    align-items: center;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 100%;
}

.hero-text {
    max-width: 580px;
    z-index: 3;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 76px;
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 5px;
    letter-spacing: -0.5px;
}

.sub-text {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 25px;
    color: var(--color-gold);
    line-height: 1.4;
    margin-bottom: 40px;
}

/* Botões */
.cta-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1), background-color 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-gold {
    background-color: var(--color-gold);
    color: #000000;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-text-primary);
    border: 1px solid var(--color-gold);
}

.btn-outline:hover {
    background-color: var(--color-text-primary);
    color: var(--color-bg);
}

.icon-whatsapp {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Posicionamento dos Advogados Hero */
.hero-image-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
}

.lawyer-img {
    position: absolute;
    bottom: 0;
    object-fit: cover;
}

.lawyer-woman {
    z-index: 2;
    right: 180px;
    height: 110%;
    filter: grayscale(1);
    max-height: 1000px;
}

.lawyer-man {
    z-index: 1;
    right: 0;
    height: 80%;
    max-height: 1000px;
}

/* ==========================================================================
   Seção Áreas de Atuação
   ========================================================================== */

.practice-areas {
    padding: 100px 0;
    background-color: #111111;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 400;
    color: var(--color-text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.section-description {
    font-family: var(--font-body);
    font-size: 18px;
    color: #a0a0a0;
    line-height: 1.6;
    font-weight: 300;
}

/* Grid de Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.area-card {
    background-color: #161616;
    border: 1px solid #222222;
    border-radius: 8px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    transition: transform 0.7s cubic-bezier(0.2, 1, 0.3, 1), 
                border-color 0.7s ease, 
                box-shadow 0.7s ease;
    will-change: transform;
}

.area-card:hover {
    z-index: 5;
    transform: translateY(-6px);
    border-color: var(--color-gold);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.card-number {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--color-gold);
}

.card-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 400;
    color: var(--color-text-primary);
    margin-bottom: 16px;
    line-height: 1.2;
}

.card-text {
    font-family: var(--font-body);
    font-size: 16px;
    color: #8e8e8e;
    line-height: 1.6;
    font-weight: 300;
    margin-bottom: 0;
}

/* Botão "Ver mais" */
.card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    align-self: flex-start;
    padding: 0 22px;
    max-height: 0;
    margin-top: 0;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--color-gold);
    background-color: rgba(191, 157, 62, 0.08);
    border: 0px solid var(--color-gold);
    border-radius: 4px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(8px);
    overflow: hidden;
    transition: max-height 0.7s cubic-bezier(0.2, 1, 0.3, 1),
                padding 0.7s cubic-bezier(0.2, 1, 0.3, 1),
                margin-top 0.7s cubic-bezier(0.2, 1, 0.3, 1),
                opacity 0.6s ease-out,
                transform 0.7s cubic-bezier(0.2, 1, 0.3, 1),
                background-color 0.4s ease,
                color 0.4s ease,
                box-shadow 0.4s ease;
}

.area-card:hover .card-link {
    max-height: 48px;
    padding: 10px 22px;
    margin-top: 22px;
    opacity: 1;
    transform: translateY(0);
    border-width: 1px;
}

.card-link:hover {
    background-color: var(--color-gold);
    color: #000000;
    box-shadow: 0 4px 14px rgba(191, 157, 62, 0.35);
}

/* ==========================================================================
   Seção Sobre Nós
   ========================================================================== */

.about-us {
    height: 100vh;
    max-height: 100vh;
    padding: 4vh 0;
    background-color: #0d0d0d;
    border-top: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
}

.about-us .section-header {
    margin-bottom: 2.5vh;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-card {
    background-color: #161616;
    border: 1px solid #222222;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color 0.4s ease, transform 0.4s ease;
}

.about-card:hover {
    border-color: var(--color-gold);
    transform: translateY(-4px);
}

.about-img-container {
    width: 100%;
    height: 41vh;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #202020;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.6s ease;
}

.about-card:nth-child(2) .about-img {
    object-position: center 35%;
}

.about-card:hover .about-img {
    transform: scale(1.03);
}

.about-info {
    padding: 5vh 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.about-name {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 400;
    color: var(--color-text-primary);
    margin-bottom: 10px;
    line-height: 1.2;
}

.about-bio {
    font-family: var(--font-body);
    font-size: 16px;
    color: #a0a0a0;
    line-height: 1.5;
    font-weight: 300;
}

/* ==========================================================================
   Efeito Fade In
   ========================================================================== */

.fade-in {
    opacity: 0;
    transform: translateY(90px);
    transition: opacity 3s cubic-bezier(0.2, 1, 0.3, 1), 
                transform 1.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.cards-grid .area-card:nth-child(1), .about-grid .about-card:nth-child(1) { transition-delay: 0.1s; }
.cards-grid .area-card:nth-child(2), .about-grid .about-card:nth-child(2) { transition-delay: 0.2s; }
.cards-grid .area-card:nth-child(3) { transition-delay: 0.3s; }
.cards-grid .area-card:nth-child(4) { transition-delay: 0.4s; }
.cards-grid .area-card:nth-child(5) { transition-delay: 0.5s; }
.cards-grid .area-card:nth-child(6) { transition-delay: 0.6s; }

/* ==========================================================================
   Seção Contato & Footer
   ========================================================================== */

.contact-section {
    position: relative;
    background-color: #0b0b0b;
    border-top: 1px solid var(--color-border);
    padding: 80px 0 30px 0;
    overflow: hidden;
}

.contact-section::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 550px;
    height: 550px;
    background-image: url('logo-dourada-Photoroom 2.svg');
    background-repeat: no-repeat;
    background-position: right top 100%; 
    background-size: cover;
    opacity: 0.9;
    pointer-events: none;
    z-index: 1;
}

.contact-container {
    position: relative;
    z-index: 2;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 400;
    color: var(--color-text-primary);
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 70px;
    max-width: 600px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: var(--font-body);
    font-size: 14.5px;
    color: #c5c5c5;
}

.contact-item a {
    color: #c5c5c5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--color-gold);
}

.contact-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold);
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 24px;
    text-align: center;
}

.privacy-link {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-text-primary);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.privacy-link:hover {
    opacity: 0.7;
}

/* ==========================================================================
   Responsividade & Mobile
   ========================================================================== */

@media (max-width: 1024px) {
    .main-title {
        font-size: 58px;
    }

    .lawyer-woman {
        right: 120px;
        height: 75%;
    }

    .lawyer-man {
        height: 85%;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-us {
        height: auto;
        max-height: none;
        padding: 80px 0;
    }

    .about-img-container {
        height: 380px;
    }
}

@media (max-width: 850px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #0A0A0A;
        border-bottom: 1px solid var(--color-border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.2, 1, 0.3, 1), padding 0.4s ease;
        padding: 0 32px;
    }

    .nav-links.active {
        max-height: 300px;
        padding: 24px 32px;
    }

    .nav-links ul {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .hero {
        height: auto;
        min-height: 85vh;
    }

    .hero-container {
        grid-template-columns: 1fr;
        padding-top: 12px;
        text-align: center;
        padding-left: 20px;
        padding-right: 20px;
    }

    .hero-text {
        max-width: 100%;
        margin-bottom: 24px;
        padding-top: 20vh;
    }

    .main-title {
        font-size: 38px;
        line-height: 1.1;
    }

    .sub-text {
        font-size: 18px;
        margin-bottom: 24px;
    }

    .cta-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
        max-width: 280px;
        margin: 0 auto;
    }

    .btn {
        padding: 12px 20px;
        font-size: 13px;
        width: 100%;
    }

    .hero-image-container {
        height: 360px;
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        position: relative;
        overflow: hidden;
    }

    .lawyer-img {
        position: relative;
        right: auto;
        bottom: 0;
        max-height: 100%;
        object-fit: contain;
    }

    .lawyer-man {
        height: 100%;
        width: auto;
    }

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

    .about-img-container {
        height: 320px;
    }
}

@media (max-width: 768px) {
    .contact-title {
        font-size: 38px;
    }

    .contact-section::after {
        width: 280px;
        height: 280px;
        right: 0px;
        bottom: 0px;
        opacity: 0.25;
    }
}

@media (max-width: 640px) {
    .practice-areas, .about-us {
        padding: 60px 0;
    }

    .section-title {
        font-size: 40px;
    }

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

    .area-card {
        padding: 28px 24px;
    }

    @media (hover: none) {
        .card-link {
            max-height: 48px;
            padding: 10px 22px;
            margin-top: 20px;
            opacity: 1;
            transform: translateY(0);
            border-width: 1px;
        }
    }
}

@media (max-width: 500px) {
    .main-title {
        font-size: 32px;
    }

    .sub-text {
        font-size: 16px;
    }

    .nav-links a {
        font-size: 16px;
    }
}

/* Estilos do Popup / Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #121212; /* Ajuste para a cor do seu tema */
    width: 90%;
    max-width: 650px; /* Garante que ele seja bem largo e confortável para a leitura */
    padding: 40px;
    border-radius: 12px;
    position: relative;
    box-sizing: border-box;
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--color-text-primary);
    font-size: 28px;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.area-card {
    cursor: pointer; /* Indica que o card é clicável */
}

/* Fundo escuro do Modal cobrindo toda a tela */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Caixa do Modal grande, ocupando mais espaço da página */
.modal-content {
    background-color: #1a1a1a; /* Ajuste para o tom de fundo do seu site */
    border: 1px solid #333;
    width: 100%;
    max-width: 850px; /* Deixou o modal bem largo */
    max-height: 85vh;  /* Ocupa grande parte da altura da tela */
    overflow-y: auto;  /* Permite rolar se o texto for muito longo */
    padding: 50px;     /* Espaçamento interno generoso */
    border-radius: 12px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    box-sizing: border-box;
}

/* Tamanho de fonte bem maior para o texto descritivo do modal */
.modal-content .card-text {
    font-size: 1.125rem; /* ~18px, bem maior e legível */
    line-height: 1.8;    /* Espaçamento confortável entre linhas */
    color: #e0e0e0;      /* Cor suave para leitura prolongada */
    margin-top: 20px;
    margin-bottom: 30px;
}

.modal-content .card-title {
    font-size: 2.2rem;   /* Título grande dentro do modal */
}

.modal-close {
    position: absolute;
    top: 25px;
    right: 30px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}