/* ==============================================
   PORTAL JURÍDICO - DESIGN PREMIUM
   ============================================== */

:root {
    /* Cores principais */
    --primary-dark: #0f0719;
    --primary: #2D1B4E;
    --primary-light: #4a2c7a;
    --secondary: #F5B042;
    --secondary-dark: #d4921a;
    --secondary-light: #fcd48a;
    
    /* Neutras */
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-600: #6c757d;
    --gray-800: #343a40;
    --dark: #1a1a2e;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    --gradient-hero: linear-gradient(135deg, #0f0719 0%, #2D1B4E 50%, #1a0f2e 100%);
    
    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 50px rgba(0,0,0,0.12);
    --shadow-xl: 0 30px 60px rgba(0,0,0,0.15);
    --shadow-glow: 0 0 30px rgba(245,176,66,0.3);
    
    /* Bordas */
    --radius-sm: 12px;
    --radius: 20px;
    --radius-lg: 30px;
    --radius-full: 9999px;
    
    /* Transições */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--gray-100);
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ==============================================
   HEADER MODERNO COM BLUR
   ============================================== */
.header {
    background: rgba(45, 27, 78, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header.scrolled {
    padding: 0.7rem 5%;
    background: rgba(45, 27, 78, 0.98);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--white) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo span {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    transition: var(--transition);
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a:hover {
    color: var(--secondary);
}

.nav-admin {
    background: rgba(245, 176, 66, 0.15);
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(245,176,66,0.3);
}

.nav-admin:hover {
    background: rgba(245, 176, 66, 0.3);
}

.menu-mobile {
    display: none;
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

/* ==============================================
   HERO SECTION COM ANIMAÇÃO
   ============================================== */
.hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 5% 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="200" cy="200" r="300" fill="rgba(245,176,66,0.03)"/><circle cx="800" cy="600" r="400" fill="rgba(245,176,66,0.02)"/></svg>');
    background-repeat: no-repeat;
    background-size: cover;
    animation: floatBackground 30s infinite ease-in-out;
}

@keyframes floatBackground {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(2deg); }
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(245,176,66,0.08) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--white) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.counter-highlight {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); text-shadow: 0 0 10px rgba(245,176,66,0.5); }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: var(--primary-dark);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==============================================
   SEÇÕES GERAIS
   ============================================== */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--gradient-secondary);
    margin: 0.5rem auto 0;
    border-radius: var(--radius-full);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* ==============================================
   SIMULADOR
   ============================================== */
.simulador-section {
    padding: 5rem 0;
    background: var(--white);
}

.simulador-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.simulador-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 40px 60px rgba(0,0,0,0.12);
}

.simulador-step {
    display: none;
    animation: fadeInScale 0.5s ease;
}

.simulador-step.active {
    display: block;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.simulador-pergunta {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 2rem;
    text-align: center;
}

.simulador-opcoes {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.simulador-opcao {
    background: var(--gray-100);
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    flex: 1;
    text-align: center;
    font-weight: 500;
    min-width: 150px;
}

.simulador-opcao:hover {
    border-color: var(--secondary);
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==============================================
   FILTROS E ADVOGADOS
   ============================================== */
.advogados-section {
    padding: 5rem 0;
    background: var(--gray-100);
}

.filtros {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filtro-select, .filtro-input {
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--gray-300);
    font-size: 1rem;
    background: var(--white);
    transition: var(--transition);
}

.filtro-select:focus, .filtro-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(245,176,66,0.2);
}

.btn-filtrar {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.btn-filtrar:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.05);
}

.advogados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Cards 3D */
.advogado-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow);
    cursor: pointer;
    position: relative;
}

.advogado-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: var(--transition);
}

.advogado-card:hover::before {
    transform: scaleX(1);
}

.advogado-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

/* ==============================================
   FOTO DO ADVOGADO NO CARD (CORRIGIDO)
   ============================================== */
.advogado-foto {
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.advogado-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.advogado-card:hover .advogado-foto img {
    transform: scale(1.05);
}

.advogado-foto i {
    font-size: 4rem;
    color: var(--secondary);
    opacity: 0.8;
}

/* Fallback quando não tem imagem */
.advogado-foto.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.advogado-foto.no-image i {
    font-size: 4rem;
    color: var(--secondary);
}

.advogado-info {
    padding: 1.5rem;
}

.advogado-nome {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.advogado-especialidade {
    display: inline-block;
    background: linear-gradient(135deg, rgba(245,176,66,0.15) 0%, rgba(245,176,66,0.05) 100%);
    color: var(--secondary-dark);
    padding: 0.2rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.estrelas {
    color: var(--secondary);
    margin: 0.8rem 0;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    background: #1da851;
    transform: scale(1.02);
}

/* ==============================================
   DEPOIMENTOS
   ============================================== */
.depoimentos-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
}

.depoimentos-section .section-title {
    color: var(--white);
}

.depoimentos-section .section-title::after {
    background: var(--secondary);
}

.depoimentos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.depoimento-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.2);
}

.depoimento-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.15);
}

.depoimento-stars {
    color: var(--secondary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.depoimento-text {
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.depoimento-author strong {
    color: var(--secondary);
}

.depoimento-author a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}

/* ==============================================
   BLOG
   ============================================== */
.blog-section {
    padding: 5rem 0;
    background: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.blog-card-content {
    padding: 1.8rem;
}

.blog-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 700;
}

.blog-card p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.btn-artigo {
    background: transparent;
    color: var(--secondary-dark);
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.btn-artigo:hover {
    gap: 10px;
    color: var(--primary);
}

/* ==============================================
   CONTATO
   ============================================== */
.contato-section {
    padding: 5rem 0;
    background: var(--gray-100);
}

.contato-section .section-title {
    color: var(--primary);
}

.contato-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.contato-info {
    background: var(--gradient-primary);
    padding: 3rem;
    color: var(--white);
}

.contato-info i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.contato-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.contato-info p {
    opacity: 0.9;
    line-height: 1.6;
}

.info-item {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.contato-form {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contato-form input,
.contato-form select,
.contato-form textarea {
    padding: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
}

.contato-form input:focus,
.contato-form select:focus,
.contato-form textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(245,176,66,0.2);
}

.contato-form button {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
}

/* ==============================================
   FOOTER
   ============================================== */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    font-family: 'Poppins', sans-serif;
}

.footer-logo span {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.social-links a {
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
}

.social-links a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ==============================================
   MODAL
   ============================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    animation: fadeInScale 0.3s ease;
}

.loading {
    text-align: center;
    padding: 3rem;
    color: var(--gray-600);
}

/* ==============================================
   RESPONSIVIDADE
   ============================================== */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contato-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-mobile {
        display: block;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 1.5rem;
        text-align: center;
        gap: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav.active {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .advogados-grid {
        grid-template-columns: 1fr;
    }
    
    .filtros {
        flex-direction: column;
    }
    
    .filtro-select, .filtro-input, .btn-filtrar {
        width: 100%;
    }
    
    .simulador-pergunta {
        font-size: 1.2rem;
    }
    
    .simulador-opcoes {
        flex-direction: column;
    }
    
    .simulador-opcao {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .contato-info, .contato-form {
        padding: 1.5rem;
    }
    
    .depoimentos-grid, .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-200);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}