/* ===================================================================
   STYLE.CSS - VERSÃO FINAL CORRIGIDA | LOPES & LOPES ADVOCACIA
   =================================================================== */

:root {
    --primary-color: #081f2e;
    /* Azul Profundo */
    --secondary-color: #16324a;
    /* Azul Intermediário */
    --accent-color: #c49a50;
    /* Dourado Premium */
    --accent-hover: #d4a95e;
    /* Dourado Claro */
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #555555;
    --background-light: #f8f9fa;
    --background-white: #ffffff;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.1);
    --font-family: "Montserrat", sans-serif;
    --header-height: 100px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    font-family: var(--font-family);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--background-white);
    color: var(--text-dark);
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-height);
}

/* --- ANIMAÇÕES --- */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* --- HEADER & NAVEGAÇÃO --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
}

.logo {
    height: auto;
    width: 280px;
    transition: transform 0.3s ease;
    padding: 5px;
    margin-left: -30px;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    z-index: 2005;
    /* Garante que a logo fique acima do menu, se quiser */
}

/* Menu Desktop */
header nav ul {
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color var(--transition-speed) ease;
}

nav a:hover {
    color: var(--accent-color);
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}


.whatsapp-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 8px 16px;
    border-radius: 4px;
    transition: all var(--transition-speed);
}

.whatsapp-link:hover {
    background-color: var(--accent-color);
    color: var(--primary-color) !important;
}

/* --- MENU HAMBÚRGUER (Botão e Animação X) --- */
.menu-toggle {
    display: none;
    position: relative;
    /* Essencial para o posicionamento absoluto das linhas */
    width: 30px;
    height: 22px;
    /* Altura fixa para calcular o centro */
    cursor: pointer;
    z-index: 2002;
    /* Fica ACIMA do menu aberto (2000) */
    background: transparent;
    border: none;
    padding: 0;
}

.menu-toggle span {
    display: block;
    position: absolute;
    /* Segredo para o X perfeito */
    height: 3px;
    width: 100%;
    background-color: var(--accent-color);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: all 0.25s ease-in-out;
}

/* Posicionamento inicial das 3 linhas */
.menu-toggle span:nth-child(1) {
    top: 0px;
}

.menu-toggle span:nth-child(2) {
    top: 9px;
}

/* Centro vertical exato */
.menu-toggle span:nth-child(3) {
    top: 18px;
}

/* --- ESTADO ATIVO (Transforma em X) --- */
.nav-open .menu-toggle span:nth-child(1) {
    top: 9px;
    /* Vai para o centro */
    transform: rotate(135deg);
    /* Gira 135 graus */
}

.nav-open .menu-toggle span:nth-child(2) {
    opacity: 0;
    /* A linha do meio some */
    left: -60px;
}

.nav-open .menu-toggle span:nth-child(3) {
    top: 9px;
    /* Vai para o centro */
    transform: rotate(-135deg);
    /* Gira -135 graus */
}

/* --- SEÇÕES GERAIS --- */
section[id],
main[id] {
    scroll-margin-top: 110px;
}

h1,
h2,
h3 {
    font-weight: 700;
    color: var(--primary-color);
}

h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-align: center;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 15px auto 0;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-radius: 4px;
    text-decoration: none;
    transition: all var(--transition-speed);
    border: 1px solid var(--accent-color);
    cursor: pointer;
}

.btn:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(196, 154, 80, 0.3);
}

/* --- HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    background-color: var(--primary-color);
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(255, 255, 255, 0) 100%), url('background-hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    margin-top: calc(var(--header-height) * -1);
    padding-top: var(--header-height);
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text-light);
}

.hero-content h1 span {
    color: var(--accent-color);
}

.hero-content p {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 550px;
}

/* --- SERVICES --- */
.services-section {
    padding: 100px 5%;
    background-color: var(--background-white);
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.service-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-card-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.service-description {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    flex-grow: 1;
}

/* --- ABOUT --- */
.about-us-section {
    padding: 100px 5%;
    background-color: var(--background-light);
}

.about-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
}

.about-text {
    flex: 1;
    min-width: 300px;
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.6;
    max-width: 700px;
    text-align: center;
}

/* --- TEAM --- */
.team-section {
    padding: 100px 5%;
}

.team-card {
    display: flex;
    background: white;
    box-shadow: var(--shadow-md);
    border-radius: 12px;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto;
}

.team-img-wrapper {
    flex: 0 0 40%;
    min-height: 400px;
}

.team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-content {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-content p {
    margin-top: 15px;
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.5;
}

.team-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.team-content h4 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.specialization-list li {
    margin-bottom: 5px;
    padding-left: 15px;
    position: relative;
}

.specialization-list li::before {
    content: "•";
    color: var(--accent-color);
    position: absolute;
    left: 0;
}

/* --- BLOG --- */
.blog-section {
    padding: 100px 5%;
    background-color: var(--background-light);
}

.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-speed);
}

.blog-card:hover {
    transform: translateY(-5px);
}

.blog-card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.blog-card-content {
    padding: 25px;
}

.blog-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.btn-read-more {
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 15px;
}

/* --- ADDRESS --- */
.address-section {
    padding: 80px 5%;
    text-align: center;
    background-color: #eeeeee;
    color: var(--text-light);
}

.address-section h2 {
    color: var(--text-dark);
}

.address-unit {
    margin-top: 30px;
    font-size: 1rem;
    color: var(--text-dark);
}

.address-unit .map-container {
    margin-top: 20px;
    width: 100%;
    height: 300px;
    border: 2px solid var(--accent-color);
    border-radius: 8px;
    overflow: hidden;
}

/* Alteração: Estilo movido do HTML para cá */
.map-container iframe {
    border: 0;
}

.address-unit a {
    color: var(--text-dark);
    text-decoration: none;
}

.address-unit a:hover {
    color: var(--accent-color);
}

.operating-hours {
    margin-top: 20px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* Alteração: Estilo movido do HTML para cá */
.operating-hours {
    margin-top: 30px;
}

.operating-hours h3 {
    margin-bottom: 10px;
}

.operating-hours p {
    margin-bottom: 5px;
}

/* --- CONTACT --- */
.contact-section {
    padding: 100px 5%;
    text-align: center;
}

.contact-cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contact-card {
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    width: 300px;
    transition: box-shadow var(--transition-speed);
    background-color: #eeeeee;
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

.contact-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;

}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.contact-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.4;
    margin-bottom: 20px;
    text-align: center;
}

/* --- FOOTER --- */
footer {
    background-color: var(--text-dark);
    color: #888;
    padding: 50px 5%;
    text-align: center;
    border-top: 4px solid var(--accent-color);
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.social-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.social-bar a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    color: var(--text-light);
    font-size: 35px;
    text-decoration: none;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.social-bar a:hover {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    100% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
}

.social-bar a[href*="wa.me"] {
    background-color: #25D366;
    animation: pulse 2s infinite;
}

.social-bar a[href*="wa.me"]:hover {
    background-color: #128C7E;
    animation-play-state: paused;
}

/* --- CONSENT BANNER --- */
#consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    padding: 20px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 3000;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

#consent-banner.visible {
    transform: translateY(0);
}

/* ===================================================================
   NOVAS CLASSES DE REFACTORAÇÃO (LIMPEZA DO HTML)
   =================================================================== */

/* Card na sessão "Sobre" */
.about-card {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow-sm);
}

.about-card-title {
    margin-bottom: 20px;
}

.about-card-list {
    list-style: none;
}

.about-card-item {
    margin-bottom: 15px;
}

/* Ícones da lista */
.list-check-icon {
    color: var(--accent-color);
    margin-right: 10px;
}

/* Espaçamentos na sessão "Equipe" */
.mb-15 {
    margin-bottom: 15px;
}

.mt-15 {
    margin-top: 15px;
}

/* Link no Banner de Cookies */
.consent-link {
    color: var(--accent-color);
    font-weight: bold;
}

/* --- PÁGINAS INTERNAS (Artigos, Termos) --- */
.legal-page-content,
.article-page-content {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
}

.article-meta {
    display: block;
    color: #666;
    font-style: italic;
    margin-bottom: 30px;
    border-left: 3px solid var(--accent-color);
    padding-left: 10px;
}

.article-page-content p {
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
    text-align: justify;
}

.article-page-content h2,
.article-page-content h3 {
    text-align: left;
    margin-top: 40px;
}

.article-cta {
    background-color: #f0f4f8;
    padding: 40px;
    border-radius: 8px;
    margin-top: 50px;
    text-align: center;
    border: 1px solid #dce4ec;
}

.testimonials-section {
    padding: 100px 5%;
    background-color: var(--background-white);
    text-align: center;
}

.testimonials-container {
    display: grid;
    /* Cria colunas automáticas. Mínimo de 300px, se sobrar espaço divide igualmente */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f0f0f0;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent-color);
}

/* Imagem Redonda do Cliente */
.testimonial-img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid var(--accent-color);
    /* Borda dourada na foto */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Nome do Cliente */
.testimonial-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

/* Estrelas Douradas */
.stars {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

/* Texto do Depoimento */
.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-style: italic;
    line-height: 1.6;
}

/* Aspas decorativas (Opcional - dá um charme extra) */
.testimonial-card::before {
    content: "\201C";
    /* Código unicode para aspas esquerdas */
    font-size: 80px;
    color: rgba(196, 154, 80, 0.1);
    /* Dourado bem clarinho */
    position: absolute;
    top: 10px;
    left: 20px;
    font-family: serif;
    line-height: 1;
}


/* RESPONSIVIDADE & MENU MOBILE AJUSTADO */
@media (max-width: 1024px) {
    .logo {
        width: 250px;
        height: auto;
        padding: 3px;
        margin-left: -15px;
        /* Logo menor para caber */
    }

    header nav ul {
        display: none;
        /* Esconde menu padrão de lista */
    }

    .menu-toggle {
        display: block;
        /* Mostra o botão hambúrguer */
    }

    /* O Fundo do Menu Mobile */
    header nav {
        position: fixed;
        top: -60px;
        right: 0;
        width: 100%;
        /* Ocupa a tela toda lateralmente */
        height: 100vh;
        /* Ocupa a tela toda verticalmente */
        background-color: rgba(8, 31, 46, 0.98);
        /* Fundo quase sólido */
        backdrop-filter: blur(10px);

        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;

        transform: translateX(100%);
        /* Escondido à direita */
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 2000;
        /* Abaixo do botão (2002) */
    }

    header.nav-open nav {
        transform: translateX(0);
        /* Entra na tela */
    }

    header nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        width: 100%;
    }

    header nav ul li a {
        font-size: 1rem;
    }

    .whatsapp-link {
        margin-top: 10px;
        background-color: transparent;
        color: var(--accent-color);
        padding: 12px 25px;
    }

    .team-card {
        flex-direction: column;
    }

    .team-content {
        padding: 30px;
        padding-top: 1px;
    }

    .hero-content {
        margin-top: 50px;
    }

    .hero-section {
        background-image: linear-gradient(to right, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(255, 255, 255, 0) 100%), url('background-hero-mobile.png');

    }

    footer {
        padding-bottom: 100px;
    }
}

@media (max-width: 600px) {
    .hero-section {
        background-attachment: scroll;
    }

    .contact-card {
        width: 100%;
    }

    #consent-banner {
        flex-direction: column;
        text-align: center;
    }
}