/* =========================================
   VARIÁVEIS GLOBAIS (Injetadas pelo PHP)
   ========================================= */
:root {
    --cor-primaria: #1a3a5c;
    --cor-secundaria: #c9a961;
    --cor-texto: #334155;
    --cor-fundo: #f8fafc;
    --branco: #ffffff;
    --sombra-suave: 0 10px 40px -10px rgba(26, 58, 92, 0.1);
    --sombra-hover: 0 20px 40px -10px rgba(26, 58, 92, 0.2);
    --transicao: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   RESET E BASE
   ========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', sans-serif;
    color: var(--cor-texto);
    line-height: 1.7;
    background: var(--cor-fundo);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    color: var(--cor-primaria);
    line-height: 1.2;
}

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

/* =========================================
   HEADER (Navegação)
   ========================================= */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transicao);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 24px;
}

.logo { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.logo img { height: 55px; width: auto; object-fit: contain; }
.logo h1 { 
    font-size: 1.25rem; 
    font-weight: 700; 
    color: var(--cor-primaria);
    letter-spacing: -0.5px;
}

.nav { display: flex; gap: 8px; }
.nav a {
    color: var(--cor-primaria);
    text-decoration: none;
    padding: 10px 16px;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    transition: var(--transicao);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--cor-secundaria);
    transition: var(--transicao);
}

.nav a:hover { color: var(--cor-secundaria); background: rgba(201, 169, 97, 0.05); }
.nav a:hover::after { width: 60%; }

/* =========================================
   SLIDER / HERO
   ========================================= */
.slider {
    position: relative;
    height: 85vh; /* Mais alto e impactante */
    min-height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Alinha texto à esquerda */
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.slide.active { opacity: 1; }

/* Overlay gradiente elegante para legibilidade */
.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(26, 58, 92, 0.9) 0%, rgba(26, 58, 92, 0.6) 50%, rgba(26, 58, 92, 0.2) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 0 24px;
    margin-left: 5%; /* Afastado da borda esquerda */
    color: var(--branco);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-content h2 {
    color: var(--branco);
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.slide-content p { 
    font-size: 1.25rem; 
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    color: var(--branco);
    border: 1px solid rgba(255,255,255,0.3);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 3;
    transition: var(--transicao);
}

.slider-btn:hover { background: var(--cor-secundaria); border-color: var(--cor-secundaria); }
.slider-btn.prev { left: 30px; }
.slider-btn.next { right: 30px; }

/* =========================================
   SEÇÕES GERAIS
   ========================================= */
section { padding: 100px 0; }

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    color: var(--cor-primaria);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--cor-secundaria);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* =========================================
   CARDS DE ÁREAS DE ATUAÇÃO
   ========================================= */
.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.area-card {
    background: var(--branco);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--sombra-suave);
    transition: var(--transicao);
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--cor-secundaria);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.area-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--sombra-hover);
}

.area-card:hover::before { transform: scaleX(1); }

.area-card i {
    font-size: 3rem;
    color: var(--cor-secundaria);
    margin-bottom: 25px;
    transition: var(--transicao);
}

.area-card:hover i { transform: scale(1.1); }

.area-card h3 { 
    font-size: 1.4rem; 
    margin-bottom: 15px; 
    font-weight: 600;
}

.area-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =========================================
   BOTÕES
   ========================================= */
.btn {
    display: inline-block;
    background: var(--cor-primaria);
    color: var(--branco);
    padding: 16px 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--transicao);
    box-shadow: 0 4px 15px rgba(26, 58, 92, 0.3);
}

.btn:hover { 
    background: var(--cor-secundaria); 
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(201, 169, 97, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--cor-primaria);
    color: var(--cor-primaria);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--cor-primaria);
    color: var(--branco);
}

/* =========================================
   PROCESSOS / CASOS
   ========================================= */
.processos-list {
    display: grid;
    gap: 25px;
    max-width: 900px;
    margin: 0 auto;
}

.processo-item {
    background: var(--branco);
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--sombra-suave);
    border-left: 5px solid var(--cor-secundaria);
    transition: var(--transicao);
}

.processo-item:hover {
    transform: translateX(5px);
    box-shadow: var(--sombra-hover);
}

.processo-item h3 { 
    font-size: 1.3rem; 
    margin-bottom: 12px; 
}

.processo-meta {
    display: flex;
    gap: 20px;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.processo-meta strong {
    color: #166534;
    background: #dcfce7;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* =========================================
   CONTATO
   ========================================= */
.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.contato-info-card {
    background: var(--cor-primaria);
    color: var(--branco);
    padding: 40px;
    border-radius: 12px;
}

.contato-info-card h3 { color: var(--cor-secundaria); margin-bottom: 25px; font-size: 1.5rem; }
.contato-info-card p { margin-bottom: 20px; display: flex; align-items: center; gap: 15px; font-size: 1.05rem; }
.contato-info-card i { color: var(--cor-secundaria); font-size: 1.2rem; width: 25px; text-align: center; }

.form-contato input, .form-contato textarea {
    width: 100%;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--branco);
    transition: var(--transicao);
}

.form-contato input:focus, .form-contato textarea:focus {
    outline: none;
    border-color: var(--cor-secundaria);
    box-shadow: 0 0 0 4px rgba(201, 169, 97, 0.1);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
    background: var(--cor-primaria);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 30px;
    margin-top: 0;
    border-top: 4px solid var(--cor-secundaria);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer h3 { color: var(--branco); font-size: 1.5rem; margin-bottom: 20px; }
.footer h4 { color: var(--cor-secundaria); font-size: 1.1rem; margin-bottom: 20px; font-family: 'Roboto', sans-serif; text-transform: uppercase; letter-spacing: 1px; }
.footer p { margin-bottom: 15px; line-height: 1.6; }
.footer a { color: rgba(255,255,255,0.8); text-decoration: none; transition: var(--transicao); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.footer a:hover { color: var(--cor-secundaria); transform: translateX(5px); }
.footer .social-links a { font-size: 1.5rem; margin-right: 15px; }
.footer .social-links a:hover { transform: translateY(-3px); }

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

/* =========================================
   WHATSAPP FLUTUANTE
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: var(--branco);
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    animation: pulse-whatsapp 2s infinite;
    text-decoration: none;
    transition: var(--transicao);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

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

/* =========================================
   RESPONSIVIDADE (Mobile)
   ========================================= */
@media (max-width: 992px) {
    .contato-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .header-content { flex-direction: column; gap: 15px; }
    .nav { flex-wrap: wrap; justify-content: center; gap: 5px; }
    .nav a { padding: 8px 12px; font-size: 0.8rem; }
    
    .slide-content { margin-left: 0; text-align: center; }
    .slide-content h2 { font-size: 2.2rem; }
    .slider { height: 70vh; min-height: 500px; }
    
    section { padding: 60px 0; }
    .section-title { font-size: 2rem; margin-bottom: 40px; }
    
    .footer-content { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .footer a { justify-content: center; }
    .contato-info-card { text-align: center; }
    .contato-info-card p { justify-content: center; }
}

/* =========================================
   LINKS NO CARD DE CONTATO
   ========================================= */
.contato-info-card a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.contato-info-card a:hover {
    color: var(--cor-secundaria);
    transform: translateX(3px);
}

/* =========================================
   HEADER CENTRALIZADO + MENU MOBILE
   ========================================= */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 24px;
}

/* Centralizar menu */
.nav {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex: 1;
}

/* Link ativo */
.nav a.active {
    color: var(--cor-secundaria);
    background: rgba(201, 169, 97, 0.1);
    font-weight: 700;
    border-bottom: 2px solid var(--cor-secundaria);
}

.nav a.active::after {
    width: 60%;
}

/* Menu toggle (hambúrguer) */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    background: transparent;
    border: none;
    order: 2;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--cor-primaria);
    margin: 3px 0;
    transition: var(--transicao);
    border-radius: 3px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Overlay para menu mobile */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        position: relative;
        gap: 0;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--branco);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 30px 30px;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        gap: 10px;
        overflow-y: auto;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav a {
        padding: 15px;
        font-size: 0.95rem;
        border-radius: 8px;
        width: 100%;
        text-align: left;
        display: flex;
        align-items: center;
        gap: 10px;
        border-bottom: 1px solid rgba(26, 58, 92, 0.05);
    }
    
    .nav a::after {
        display: none;
    }
    
    .nav a:hover {
        background: rgba(201, 169, 97, 0.05);
        transform: translateX(5px);
    }
    
    .nav a.active {
        background: rgba(201, 169, 97, 0.15);
        border-left: 4px solid var(--cor-secundaria);
        padding-left: 11px;
    }
}

@media (max-width: 480px) {
    .nav {
        width: 280px;
        padding: 70px 20px 20px;
    }
}