/* ===== PABLO THAFAREL - ADVOGADO CRIMINALISTA - PREMIUM DESIGN ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Paleta Sóbria e Elegante para Direito Criminal */
    --primary: #1a1a2e;
    --primary-light: #16213e;
    --accent: #0f3460;
    --gold: #c9a227;
    --gold-light: #d4b84a;
    --gold-dark: #a68820;
    --red-accent: #8b0000;
    --white: #ffffff;
    --gray: #f0f0f0;
    --text-light: #e8e8e8;
    --text-muted: #9ca3af;
    --dark-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--primary);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Padrão de fundo sutil */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(201, 162, 39, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(15, 52, 96, 0.1) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.4s ease;
    background: transparent;
}

header.scrolled {
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    padding: 10px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 1px;
}

.logo-title {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

nav a {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    position: relative;
    padding: 8px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--gold);
}

nav a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu span {
    width: 25px;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s ease;
}

/* ===== HERO ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--dark-gradient);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at bottom right, rgba(201, 162, 39, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at top left, rgba(15, 52, 96, 0.2) 0%, transparent 50%);
    z-index: 1;
}

/* Linhas decorativas animadas */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(to right, rgba(201, 162, 39, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(201, 162, 39, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 0;
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
    max-width: 900px;
}

.hero-badge {
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 162, 39, 0.1), transparent);
    animation: shine 3s infinite;
}

.hero h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    color: var(--white);
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

.hero h1 span {
    color: var(--gold);
    display: block;
    font-size: 0.4em;
    font-weight: 400;
    margin-top: 10px;
    letter-spacing: 4px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 45px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 45px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(201, 162, 39, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(201, 162, 39, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 45px;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    font-size: 0.85rem;
    transition: all 0.4s ease;
}

.btn-secondary:hover {
    background: var(--gold);
    color: var(--primary);
}

/* ===== NÚMEROS / STATS ===== */
.stats-bar {
    background: rgba(22, 33, 62, 0.95);
    border-top: 1px solid rgba(201, 162, 39, 0.15);
    border-bottom: 1px solid rgba(201, 162, 39, 0.15);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: rgba(201, 162, 39, 0.2);
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ===== SECTIONS ===== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 70px;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-bottom: 20px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

.divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--red-accent));
    margin: 25px auto;
}

/* ===== SOBRE ===== */
.sobre {
    background: var(--primary-light);
    position: relative;
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.sobre-images {
    position: relative;
}

.sobre-image-main {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.sobre-image-secondary {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 45%;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 4px solid var(--primary-light);
}

.sobre-content {
    padding-left: 20px;
}

.sobre-content .section-label {
    text-align: left;
}

.sobre-content h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.2;
}

.sobre-content h2 span {
    color: var(--gold);
}

.sobre-content p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1rem;
}

.sobre-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(201, 162, 39, 0.05);
    border-radius: 6px;
    border-left: 3px solid var(--gold);
}

.highlight-item span {
    font-size: 0.9rem;
    color: var(--text-light);
}

.highlight-icon {
    font-size: 1.2rem;
}

/* ===== ÁREAS DE ATUAÇÃO ===== */
.areas {
    background: var(--primary);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.area-card {
    background: linear-gradient(145deg, rgba(22, 33, 62, 0.7), rgba(26, 26, 46, 0.9));
    border: 1px solid rgba(201, 162, 39, 0.1);
    border-radius: 12px;
    padding: 35px 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--red-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.area-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 162, 39, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.area-card:hover::before {
    transform: scaleX(1);
}

.area-icon {
    width: 60px;
    height: 60px;
    background: rgba(201, 162, 39, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.area-card:hover .area-icon {
    background: var(--gold);
}

.area-card h3 {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 12px;
}

.area-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== DIFERENCIAIS ===== */
.diferenciais {
    background: var(--primary-light);
    position: relative;
}

.diferenciais::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(201, 162, 39, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.diferencial {
    text-align: center;
    padding: 40px 30px;
    background: rgba(26, 26, 46, 0.5);
    border-radius: 12px;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.diferencial:hover {
    border-color: rgba(201, 162, 39, 0.2);
    transform: translateY(-5px);
}

.diferencial-icon {
    width: 90px;
    height: 90px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.2rem;
    transition: all 0.4s ease;
    position: relative;
}

.diferencial-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold);
    border-radius: 50%;
    opacity: 0;
    transform: scale(1.2);
    transition: all 0.4s ease;
}

.diferencial:hover .diferencial-icon {
    background: var(--gold);
}

.diferencial:hover .diferencial-icon::before {
    opacity: 0.3;
    transform: scale(1.4);
}

.diferencial h4 {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 15px;
}

.diferencial p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ===== CTA ===== */
.cta {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    text-align: center;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.05) 0%, transparent 60%);
    animation: rotate 30s linear infinite;
}

.cta h2 {
    font-size: 2.8rem;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cta p {
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.cta .btn-primary {
    position: relative;
    z-index: 2;
}

/* ===== CONTATO ===== */
.contato {
    background: var(--primary);
}

.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

.contato-info h3 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 15px;
}

.contato-info>p {
    color: var(--text-muted);
    margin-bottom: 35px;
    font-size: 1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    padding: 22px;
    background: rgba(22, 33, 62, 0.6);
    border-radius: 10px;
    border-left: 3px solid var(--gold);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(8px);
    background: rgba(22, 33, 62, 0.9);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(201, 162, 39, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 0.95rem;
    color: var(--gold);
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.info-text p,
.info-text a {
    color: var(--text-light);
    font-size: 0.95rem;
}

.info-text a:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 40px;
}

.social-links a {
    width: 55px;
    height: 55px;
    border: 2px solid rgba(201, 162, 39, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    color: var(--text-light);
}

.social-links a:hover {
    background: var(--gold);
    color: var(--primary);
    border-color: var(--gold);
    transform: translateY(-5px);
}

/* Galeria no Contato */
.contato-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:nth-child(1) {
    grid-row: span 2;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ===== FOOTER ===== */
footer {
    background: #0d0d15;
    padding: 50px 0 25px;
    text-align: center;
    border-top: 1px solid rgba(201, 162, 39, 0.1);
}

.footer-brand {
    margin-bottom: 25px;
}

.footer-brand .logo-name {
    font-size: 1.6rem;
}

.footer-brand .logo-title {
    font-size: 0.75rem;
}

footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 10px;
}

footer a {
    color: var(--gold);
}

footer a:hover {
    text-decoration: underline;
}

.footer-disclaimer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25d366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.35);
    z-index: 999;
    animation: pulse 2s infinite;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .sobre-grid {
        gap: 50px;
    }

    .diferenciais-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(26, 26, 46, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 1001;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    nav a {
        font-size: 1.1rem;
    }

    .mobile-menu {
        display: flex;
        z-index: 1002;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item::after {
        display: none;
    }

    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sobre-images {
        order: -1;
    }

    .sobre-image-secondary {
        right: 10px;
        bottom: -20px;
    }

    .sobre-content {
        padding-left: 0;
    }

    .sobre-highlights {
        grid-template-columns: 1fr;
    }

    .diferenciais-grid {
        grid-template-columns: 1fr;
    }

    .contato-grid {
        grid-template-columns: 1fr;
    }

    .contato-gallery {
        grid-template-columns: 1fr;
    }

    .gallery-item:nth-child(1) {
        grid-row: auto;
    }

    .cta h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    section {
        padding: 70px 0;
    }

    .hero-badge {
        font-size: 0.65rem;
        padding: 8px 18px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .area-card {
        padding: 25px 20px;
    }

    .diferencial {
        padding: 30px 20px;
    }

    .info-item {
        padding: 18px;
    }
}