/* =========================================================
   STYLE.CSS - ALVIM REZENDE ADVOGADOS (VERSÃO FINAL CONSOLIDADA)
   ========================================================= */

/* --- 1. VARIÁVEIS E GERAL --- */
:root {
    --azul-alvim: #1a253a;
    --azul-dark: #0b111a;
    /* Mude apenas esta linha abaixo para testar */
    --dourado: #a2b9bc; 
    --cinza-bg: #f3f4f6;
    --texto: #333;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--texto);
    overflow-x: hidden;
    background-color: #fff;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Playfair Display', serif;
    color: var(--azul-alvim);
    font-weight: 700;
}

a { text-decoration: none; transition: 0.3s; }
.ls-2 { letter-spacing: 2px; }
.ls-1 { letter-spacing: 1px; }

/* Divisor Dourado */
.divisor-dourado {
    width: 60px; height: 3px; background-color: var(--dourado);
    margin-top: 12px; margin-bottom: 25px;
}

/* --- 2. NAVBAR --- */
.navbar { background-color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); padding: 15px 0; }
.navbar-brand img { max-height: 55px; }

.nav-link {
    color: var(--azul-alvim) !important; font-weight: 500;
    text-transform: uppercase; font-size: 0.9rem; margin: 0 10px; position: relative;
}
.nav-link::after {
    content: ''; display: block; width: 0; height: 2px;
    background: var(--dourado); transition: width .3s;
    position: absolute; bottom: -5px; left: 0;
}
.nav-link:hover::after { width: 100%; }

/* Menu Ativo */
.nav-link.active { color: var(--dourado) !important; font-weight: 700; }
.nav-link.active::after { width: 100%; }

/* --- 4. CARROSSEL (BANNER) --- */
.carousel-item {
    height: 100%;        /* Ocupa toda a altura do container pai */
    background-color: transparent; /* FUNDAMENTAL: Deixa o degradê de fundo aparecer */
    position: relative;
    overflow: hidden;
}

/* (O resto do CSS do carrossel pode manter igual) */
.overlay-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-position: center; background-size: cover; opacity: 0.5;
    transform: scale(1); transition: transform 6s linear;
}
.carousel-item.active .overlay-image { transform: scale(1.15); }
.carousel-caption {
    top: 0; bottom: 0; display: flex !important; align-items: center;
    justify-content: center; z-index: 10; text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}
.carousel-control-prev, .carousel-control-next, .carousel-indicators { z-index: 20; opacity: 1; }
.carousel-indicators [data-bs-target] {
    background-color: #fff; opacity: 0.5; width: 10px; height: 10px;
    border-radius: 50%; margin: 0 5px; border: none;
}
.carousel-indicators .active { background-color: var(--dourado); opacity: 1; }

/* Animações */
@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 40px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}
.animate-title { opacity: 0; animation: fadeInUp 0.8s ease-out forwards 0.3s; }
.animate-subtitle { opacity: 0; animation: fadeInUp 0.8s ease-out forwards 0.6s; }
.animate-btn { opacity: 0; animation: fadeInUp 0.8s ease-out forwards 0.9s; }

/* --- 4. SEÇÕES E CARDS --- */
.texto-sobre-destaque strong { color: var(--azul-alvim); font-weight: 700; }
.bg-contraste { background-color: var(--cinza-bg); padding-top: 80px; padding-bottom: 80px; }

/* Cards Atuação */
.card-atuacao {
    display: flex; flex-direction: column; height: 100%;
    background: #fff; padding: 40px 30px; border: none; border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: all 0.3s ease;
    border-bottom: 3px solid transparent; position: relative;
}
.card-atuacao:hover {
    transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-bottom: 3px solid var(--dourado);
}
.card-atuacao p { flex-grow: 1; margin-bottom: 20px; }
.card-btn-area { margin-top: auto; }

/* --- CORREÇÃO DOS ÍCONES REDONDOS (Global) --- */
.icon-circle {
    /* Tamanho padrão (pode ser sobrescrito via style="" no HTML) */
    width: 70px; 
    height: 70px; 
    
    background-color: var(--cinza-bg);
    border-radius: 50%; 
    color: var(--azul-alvim); 
    font-size: 1.8rem; 
    transition: 0.3s;

    /* A MÁGICA DA CENTRALIZAÇÃO (Faltava isso) */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Garante que a bolinha não amasse em telas pequenas */
    flex-shrink: 0; 
}

/* Efeito Hover (Mantém igual) */
.card-atuacao:hover .icon-circle { 
    background-color: var(--azul-alvim); 
    color: var(--dourado); 
}


.stretched-link::after { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; content: ""; }

/* Áreas de Atuação (Detalhe) */
.bg-azul-alvim { background-color: var(--azul-alvim); }
.icon-circle-large {
    width: 80px; height: 80px; background-color: rgba(255,255,255,0.1);
    border-radius: 50%; color: var(--dourado); font-size: 2.5rem;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid rgba(255,255,255,0.2);
}
.conteudo-lista ul { list-style: none; padding-left: 0; }
.conteudo-lista li { position: relative; padding-left: 30px; margin-bottom: 12px; font-size: 1.05rem; }
.conteudo-lista li::before {
    content: '\f058'; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; left: 0; top: 2px; color: var(--dourado);
}

/* --- 5. BLOG --- */
.blog-img-wrapper { height: 220px; overflow: hidden; }
.blog-img-wrapper img { height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card-blog:hover .blog-img-wrapper img { transform: scale(1.1); }
.blog-date-badge {
    position: absolute; top: 20px; left: 20px; background-color: #fff;
    color: var(--azul-alvim); padding: 8px 15px; border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); font-family: 'Roboto', sans-serif; line-height: 1.2;
}
.card-blog { border: none; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.card-blog:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.1) !important; }

/* PAGINAÇÃO CORRIGIDA */
.pagination { align-items: center; justify-content: center; gap: 5px; }
.page-link {
    border: none; color: var(--azul-alvim); font-weight: 600;
    border-radius: 50% !important; transition: all 0.3s ease;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
/* Números Redondos */
.page-item:not(.texto-nav) .page-link { width: 40px; height: 40px; padding: 0; }
/* Botões de Texto Ovais */
/* Correção para botões de texto (Anterior/Próximo) */
.page-item.texto-nav .page-link {
    width: auto;       /* Largura automática para caber o texto */
    height: 40px;
    padding: 0 20px;   /* Espaço nas laterais */
    border-radius: 20px !important; /* Formato oval */
    background-color: #fff;
}
/* Ativo e Hover */
.page-item.active .page-link {
    background-color: var(--azul-alvim); color: #fff;
    box-shadow: 0 4px 10px rgba(26, 37, 58, 0.3); transform: translateY(-2px);
}
.page-link:hover { background-color: var(--dourado); color: #fff; transform: translateY(-2px); }
.page-item.disabled .page-link { background-color: transparent; color: #ccc; box-shadow: none; pointer-events: none; }

/* --- 6. DEPOIMENTOS E FOOTER --- */
.bg-depoimentos { background-color: var(--azul-alvim); color: #fff; position: relative; z-index: 2; }
.card-depoimento {
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px; border-radius: 8px; height: 100%; display: flex; flex-direction: column;
}
.icone-aspas { font-size: 2rem; color: var(--dourado); opacity: 0.5; margin-bottom: 15px; }

footer {
    background-color: var(--azul-dark); color: #ccc;
    padding: 60px 0 20px 0; border-top: 1px solid rgba(255,255,255,0.05);
    position: relative; z-index: 2;
}
footer h5 { color: var(--dourado); font-size: 1rem; font-weight: 700; margin-bottom: 20px; }
footer a { color: #bbb; }
footer a:hover { color: var(--dourado); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 20px; font-size: 0.85rem;
}

/* --- REDES SOCIAIS (CORREÇÃO HOVER) --- */

.social-icons {
    display: inline-flex;
    gap: 10px; /* Espaço entre os ícones */
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Deixa redondinho */
    
    /* Estado Normal */
    background-color: rgba(255, 255, 255, 0.1); /* Fundo transparente sutil */
    color: #fff; /* Ícone Branco */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Borda fina */
    
    text-decoration: none;
    transition: all 0.3s ease; /* Animação suave */
}

/* O QUE ACONTECE NO HOVER (MOUSE EM CIMA) */
.social-icons a:hover {
    background-color: var(--dourado); /* Fundo vira Dourado */
    border-color: var(--dourado);     /* Borda vira Dourada */
    color: #fff !important;           /* Ícone FORÇADO a ser Branco */
    transform: translateY(-3px);      /* Efeito de "pulo" elegante */
}

/* --- 7. INPUTS E BOTÕES --- */
.btn-dourado {
    background-color: var(--dourado); color: #fff; padding: 12px 30px;
    border: none; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; border-radius: 0; transition: 0.3s;
}
.btn-dourado:hover { background-color: #b08d4b; color: #fff; }
.form-control:focus {
    border-color: var(--dourado); box-shadow: 0 0 0 0.25rem rgba(197, 160, 89, 0.25);
}
/* Detalhes Profissionais */
.card-profissional:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important; }
.border-bottom-dourado { height: 4px; background-color: var(--dourado); width: 100%; }
.card-profissional:hover .card-img-top-wrapper img { transform: scale(1.05); }
.card-profissional:hover .fa-user-tie { color: var(--dourado) !important;
transition: 0.3s; }

/* --- BOTÕES DE COMPARTILHAMENTO (BLOG) --- */

.btn-social-share {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff !important; /* Ícone sempre branco */
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Cores Oficiais das Redes */
.btn-social-share.whatsapp { background-color: #25D366; }
.btn-social-share.linkedin { background-color: #0077b5; }
.btn-social-share.email    { background-color: #6c757d; }

/* Efeito Hover */
.btn-social-share:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0.9;
    color: #fff !important;
}

/* --- HEADER PREMIUM (SEM IMAGEM, SÓ COR) --- */
.bg-header-premium {
    /* Degradê elegante do Azul Marca para um Azul Quase Preto */
    background: linear-gradient(135deg, var(--azul-alvim) 0%, #0b111a 100%);
    position: relative;
    height: 300px; /* Altura padrão para cabeçalhos internos */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Garante que nada vaze */
}

/* Detalhe de textura sutil (opcional, para não ficar "chapado") */
.bg-header-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(var(--dourado) 1px, transparent 1px);
    background-size: 40px 40px; /* Pontinhos dourados muito sutis */
    opacity: 0.05; /* Quase invisível, só para dar textura */
}

/* Borda dourada fina na parte inferior para acabamento */
.bg-header-premium::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 4px;
    background: var(--dourado);
}
/* --- CSS PARA O CORPO JURÍDICO (Profissionais) --- */

/* Wrapper do Card */
.card-profissional {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; 
    background: #fff;
}

.card-profissional:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

/* Área da Imagem */
.card-img-top-wrapper {
    position: relative;
    overflow: hidden;
    height: 350px; /* Altura fixa para todos ficarem iguais */
    background-color: #f8f9fa;
}

/* A Imagem em si (O Pulo do Gato) */
.img-profissional {
    width: 100%;
    height: 100%;
    object-fit: cover;    /* Preenche o espaço sem esticar */
    object-position: top; /* FOCA NO ROSTO (Topo da foto) */
    transition: transform 0.5s ease, filter 0.5s ease;
}

/* Efeito Premium: Foto fica levemente preto e branco e ganha cor no mouseover */
/* (Se não gostar, pode remover a linha 'filter') */
.img-profissional {
    filter: grayscale(100%); 
}
.card-profissional:hover .img-profissional {
    transform: scale(1.05); /* Zoom suave */
    filter: grayscale(0%);  /* Volta a cor */
}

/* Placeholder (Quando não tem foto) */
.placeholder-profissional {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    color: #adb5bd;
}

.border-bottom-dourado {
    height: 4px;
    background-color: var(--dourado);
    width: 100%;
    position: relative;
    z-index: 2;
}

/* --- CLIENTES (Logos) --- */
.logo-cliente {
    height: 110px; /* Aumentei de 80px para 110px para ficarem maiores */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    
    /* Removi o filter: grayscale(100%) para ficarem coloridos sempre */
    /* Removi a opacity: 0.6 para ficarem nítidos */
    
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Efeito "elástico" suave */
}

.logo-cliente:hover {
    transform: scale(1.15); /* Cresce 15% ao passar o mouse */
    cursor: pointer;
}

/* --- CORREÇÃO BLOG --- */

/* Título do Post */
.link-blog-titulo {
    color: var(--azul-alvim); /* Cor escura da marca */
    transition: color 0.3s ease;
}

.link-blog-titulo:hover {
    color: var(--dourado); /* Cobre/Dourado no mouse */
}

/* Paginação (Números 1, 2, 3...) */
.page-link {
    color: var(--azul-alvim);
    border: 1px solid #dee2e6;
}

.page-link:hover {
    color: var(--dourado);
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

.page-item.active .page-link {
    background-color: var(--azul-alvim);
    border-color: var(--azul-alvim);
    color: #fff;
}

/* --- CRÉDITOS DO DESENVOLVEDOR --- */
.dev-link {
    color: rgba(255, 255, 255, 0.5); /* Cinza discreto */
    font-weight: 600;
    transition: color 0.3s ease;
}

.dev-link:hover {
    color: var(--dourado); /* Acende na cor da marca (Cobre) */
    text-decoration: none;
}



/* --- 1. CONFIGURAÇÃO BASE DO CARROSSEL --- */
#heroCarousel { 
    background-color: var(--azul-dark); 
    overflow: hidden; 
    height: 85vh; 
    min-height: 550px;
    position: relative;
}

.banner-bg-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; z-index: 1;
    transition: transform 8s ease-in-out;
    transform: scale(1);
}

/* Efeito Zoom Ken Burns Universal */
.carousel-item.active .banner-bg-img { transform: scale(1.15); }

.banner-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
}

/* --- 2. MODELO 1: PADRÃO (Centralizado) --- */
.banner-tipo-padrao .banner-overlay {
    background: radial-gradient(circle, rgba(26, 37, 58, 0.85) 0%, rgba(11, 17, 26, 0.6) 100%);
}
.banner-tipo-padrao .barra-dourada-movel {
    height: 4px; background: var(--dourado);
    margin: 0 auto 30px auto; width: 80px; /* FIXA */
}

/* --- 3. MODELO 2: MODERNO (Lateral) --- */
.banner-tipo-moderno .banner-overlay {
    background: linear-gradient(90deg, rgba(11, 17, 26, 1) 0%, rgba(26, 37, 58, 0.4) 100%);
}
.banner-tipo-moderno .barra-dourada-movel {
    height: 6px; background: linear-gradient(90deg, var(--dourado), transparent);
    margin: 0 0 30px 0; width: 0; 
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.5s;
}
.carousel-item.active.banner-tipo-moderno .barra-dourada-movel { width: 350px; }

/* --- 4. BOTÃO E TEXTOS (PC) --- */
.btn-banner-premium {
    display: inline-block; padding: 18px 40px; background-color: var(--dourado);
    color: #fff !important; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2px; transition: 0.4s; border: none; z-index: 10; position: relative;
    text-decoration: none;
}
.btn-banner-premium:hover {
    background-color: #fff; color: var(--azul-alvim) !important;
    transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.animate-entrada-titulo { opacity: 0; transform: translateY(30px); transition: 0.8s all 0.6s; }
.animate-entrada-subtitulo { opacity: 0; transition: 1s all 1s; }
.animate-entrada-btn { opacity: 0; transform: translateY(20px); transition: 0.6s all 1.4s; }

.active .animate-entrada-titulo, .active .animate-entrada-btn { opacity: 1; transform: translateY(0); }
.active .animate-entrada-subtitulo { opacity: 1; }

/* --- 5. AJUSTES PARA CELULAR (MOBILE) --- */
@media (max-width: 768px) {
    #heroCarousel { 
        height: 75vh; 
        min-height: 500px; 
    }

    /* 1. Título e Subtítulo: Menores para caber no centro */
    .display-2 { 
        font-size: 1.8rem !important; 
        line-height: 1.2; 
        margin-bottom: 15px !important;
    }
    .fs-3 { 
        font-size: 1rem !important; 
        margin-bottom: 25px !important; 
        padding: 0 10px;
    }

    /* 2. Barra Dourada Mobile */
    .banner-tipo-moderno.active .barra-dourada-movel { width: 140px !important; }

    /* 3. SETAS (CONTROLES): O segredo para não cobrir o texto */
    .carousel-control-prev, .carousel-control-next {
        width: 40px; /* Largura da zona de clique reduzida */
        opacity: 0.7;
    }
    
    .carousel-control-prev-icon, .carousel-control-next-icon {
        width: 25px;
        height: 25px;
        background-color: rgba(0,0,0,0.4); /* Fundo sutil circular */
        border-radius: 50%;
        background-size: 50%;
    }

    /* 4. CONTAINER RESPONSIVO: Força o texto para o meio */
    .carousel-item .container {
        padding-left: 50px !important; /* Espaço de segurança para a seta esquerda */
        padding-right: 50px !important; /* Espaço de segurança para a seta direita */
    }

    /* 5. Ajuste de zoom para não distorcer */
    .carousel-item.active .banner-bg-img { transform: scale(1.1); }
}

/* Ajuste fino para telas muito pequenas (iPhone SE) */
@media (max-width: 375px) {
    .display-2 { font-size: 1.5rem !important; }
    .carousel-item .container { padding-left: 45px !important; padding-right: 45px !important; }
}