/* Definições de Cores e Fontes Globais */
:root {
    --bg-dark: #071126;       /* Azul Escuro Profundo (Navbar, Rodapé e Destaques) */
    --bg-light: #ffffff;      /* Fundo Principal Branco */
    --bg-section-alt: #f8fafc; /* Fundo Alternado Neutro e Claro para seções */
    --gold: #d4af37;          /* Dourado para detalhes e ícones */
    --gold-hover: #b8972f;
    --text-dark: #1e293b;     /* Cor da fonte principal nas seções claras */
    --text-muted: #64748b;    /* Cor secundária para descrições */
    --text-white: #ffffff;    /* Texto para fundos escuros */
    --border-color: #e2e8f0;  /* Bordas suaves */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* Elementos Comuns de Texto */
.section-tag {
    color: var(--gold);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--bg-dark);
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 18px;
}

.text-gold {
    color: var(--gold);
}

/* Botões Modernos */
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: #25d366; /* Verde WhatsApp corporativo */
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-cta:hover {
    transform: translateY(-3px);
    background-color: #20ba59;
}

.btn-about {
    background-color: #b8972f;
    color: var(--white);
    border: 1px solid var(--bg-dark);
    box-shadow: 0 4px 15px rgba(7, 17, 38, 0.15);
}

.btn-about:hover {
    background-color: var(--gold);
    color: var(--bg-dark);
    border-color: var(--gold);
}

/* WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 4px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Navbar / Header */
.navbar {
    background-color: var(--bg-dark);
    border-bottom: 1px solid rgba(214, 175, 55, 0.2);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    width: 100%;
}

/* Logo Wrapper - Padrão para Computadores */
.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    width: auto; /* Permite que o menu ocupe a mesma linha no desktop */
}

.logo {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
}

.logo-sub {
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--text-white);
}

/* Menu de links - Alinhamento Horizontal Seguro */
.nav-links {
    display: flex;
    align-items: center;
    white-space: nowrap; /* Impede a quebra de texto em palavras longas */
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    margin-left: 25px;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--gold);
}

.nav-links .btn-nav {
    border: 1px solid var(--gold);
    padding: 8px 18px;
    border-radius: 4px;
    color: var(--gold);
}

.nav-links .btn-nav:hover {
    background-color: var(--gold);
    color: var(--bg-dark);
}

/* Esconde o contato mobile por padrão no computador */
.header-contact-mobile {
    display: none;
    align-items: center;
    gap: 8px;
    background-color: #25d366;
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.3);
}

.header-contact-mobile i {
    font-size: 16px;
}

/* Hero Section (Fundo Branco/Claro) */
.hero {
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 60px 0;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 25px;
    color: var(--bg-dark); 
}

.hero-subtitle {
    font-size: 20px;
    color: var(--gold-hover);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-description {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 35px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    max-height: 480px;
    object-fit: cover;
}

/* Seção de Áreas de Atuação */
.services {
    background-color: var(--bg-section-alt);
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.service-card {
    background-color: var(--bg-light); 
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 35px 25px;
    text-align: left;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.service-icon {
    font-size: 32px;
    color: var(--bg-dark);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 21px;
    color: var(--bg-dark);
    margin-bottom: 15px;
}

.service-card ul {
    list-style: none;
}

.service-card ul li {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.service-card ul li::before {
    content: "•";
    color: var(--gold);
    font-weight: bold;
    display: inline-block; 
    width: 1em;
    margin-left: -0.5em;
}

/* Seção Sobre */
.about {
    background-color: var(--bg-light);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1.2;
}

.about-text h2 {
    font-size: 36px;
    color: var(--bg-dark);
    margin-bottom: 30px;
}

.about-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.about-item i {
    font-size: 22px;
    margin-top: 3px;
    color: var(--gold-hover);
}

.about-item p {
    font-size: 16px;
    color: var(--text-dark);
}

/* FAQ / Sanfona */
.faq {
    background-color: var(--bg-section-alt);
    border-top: 1px solid var(--border-color);
}

.faq .section-tag, .faq .section-title {
    text-align: center;
}

.faq-wrapper {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.faq-item {
    background-color: var(--bg-light);
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    padding: 20px;
    color: var(--text-dark);
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: rgba(7, 17, 38, 0.02);
}

.faq-question i {
    transition: transform 0.3s ease;
    color: var(--gold-hover);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--bg-section-alt);
}

.faq-answer p {
    padding: 20px;
    color: var(--text-muted);
    font-size: 15px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Rodapé */
.footer {
    background-color: var(--bg-dark);
    border-top: 1px solid rgba(214, 175, 55, 0.1);
    color: var(--text-white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand h2 {
    color: var(--gold);
    margin-bottom: 15px;
}

.footer-brand p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 20px;
}

.oab-badge {
    background-color: rgba(214, 175, 55, 0.1);
    color: var(--gold);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    border: 1px solid var(--gold);
}

.footer-contact h3, .footer-links h3 {
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: var(--text-white);
}

.footer-contact p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.footer-contact i {
    color: var(--gold);
    margin-top: 3px;
}

.footer-links a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVIDADE AJUSTADA)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container, .about-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-image, .about-image {
        width: 100%;
        max-width: 400px;
        margin-top: 20px;
    }
    
    .about-item {
        text-align: left;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    /* Oculta os links normais e força o fim do bug visual do desktop */
    .nav-links {
        display: none !important;
    }
    
    /* Configura o topo para se expandir e empurrar o botão de contato para a direita no mobile */
    .logo-wrapper {
        width: 100%;
        justify-content: space-between;
    }
    
    /* Ativa o botão de WhatsApp no topo apenas nesta visualização */
    .header-contact-mobile {
        display: inline-flex;
    }
    
    .hero-text h1 {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
}

@media (max-width: 400px) {
    /* Oculta o número escrito em telas minúsculas para não comprimir o logotipo */
    .header-contact-mobile span {
        display: none;
    }
    .header-contact-mobile {
        padding: 8px 12px;
        border-radius: 50%;
    }
}