/* ============================================
   LAVES ADVOCACIA — Custom Styles
   Apenas o que Tailwind não cobre nativamente
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
    --brand: #1e3756;
    --brand-light: #2a4d78;
    --gold: #b8960c;
    --gold-light: #d4af37;
    --cream: #f8f6f1;
    --dark: #1a1a1a;
    --muted: #6b7280;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--dark);
    background: #fff;
    overflow-x: hidden;
}

/* ============================================
   TIPOGRAFIA
   ============================================ */

.font-playfair {
    font-family: 'Playfair Display', serif;
}

/* ============================================
   NAVBAR
   ============================================ */

#navbar {
    transition: all 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(30, 55, 86, 0.1);
}

.nav-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--brand);
    text-decoration: none;
    padding-bottom: 2px;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================
   HERO
   ============================================ */

.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f6f1 0%, #eef2f7 50%, #f0ece4 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
    opacity: 0.06;
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}

/* ============================================
   FOTO DO ADVOGADO
   ============================================ */

.lawyer-photo-container {
    position: relative;
}

.lawyer-photo-container::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -12px;
    right: 12px;
    bottom: 12px;
    border: 2px solid var(--gold-light);
    border-radius: 16px;
    z-index: 0;
    opacity: 0.5;
}

.lawyer-photo {
    position: relative;
    z-index: 1;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 24px 24px 64px rgba(30, 55, 86, 0.18), -8px -8px 32px rgba(255, 255, 255, 0.8);
}

.lawyer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* ============================================
   ANIMAÇÕES DE ENTRADA (Intersection Observer)
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

.reveal-delay-5 {
    transition-delay: 0.5s;
}

/* ============================================
   CARDS DE CASO
   ============================================ */

.case-card {
    background: #fff;
    border: 1px solid rgba(30, 55, 86, 0.08);
    border-radius: 16px;
    padding: 28px 24px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.case-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand), var(--gold-light));
    transform: scaleX(0);
    transition: transform 0.35s ease;
    transform-origin: left;
}

.case-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(30, 55, 86, 0.12);
    border-color: rgba(30, 55, 86, 0.15);
}

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

.case-card-icon {
    width: 52px;
    height: 52px;
    background: rgba(30, 55, 86, 0.06);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.35s ease;
}

.case-card:hover .case-card-icon {
    background: var(--brand);
}

.case-card:hover .case-card-icon svg {
    stroke: #fff;
}

.case-card-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--brand);
    transition: stroke 0.35s ease;
}

.case-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 8px;
    line-height: 1.4;
}

.case-card p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 16px;
}

.case-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: gap 0.3s ease;
}

.case-card:hover .case-card-btn {
    gap: 10px;
}

/* ============================================
   DIVISÓRIA SOFISTICADA
   ============================================ */

.divider-elegant {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 auto;
    max-width: 320px;
}

.divider-elegant::before,
.divider-elegant::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-light));
}

.divider-elegant::after {
    background: linear-gradient(90deg, var(--gold-light), transparent);
}

.divider-elegant span {
    color: var(--gold);
    font-size: 1rem;
}

/* Divisória de seção — linha fina com degradê */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(30, 55, 86, 0.15) 20%, rgba(184, 150, 12, 0.4) 50%, rgba(30, 55, 86, 0.15) 80%, transparent 100%);
    margin: 0;
}

/* ============================================
   PILARES DE TRANSPARÊNCIA
   ============================================ */

.pillar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 32px 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s ease;
}

.pillar-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.pillar-icon {
    width: 60px;
    height: 60px;
    background: rgba(184, 150, 12, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pillar-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--gold-light);
}

/* ============================================
   CONTADOR ANIMADO
   ============================================ */

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--brand);
    line-height: 1;
}

.stat-number .suffix {
    font-size: 2rem;
}

/* ============================================
   SLIDESHOW (Seção Bio)
   ============================================ */

.slideshow-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.slide {
    display: none;
    animation: fadeSlide 0.6s ease;
}

.slide.active {
    display: block;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: scale(1.02);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.slide-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.slide-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(30, 55, 86, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-dot.active {
    background: var(--brand);
    width: 24px;
    border-radius: 4px;
}

/* ============================================
   BLOG CARDS
   ============================================ */

.blog-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(30, 55, 86, 0.08);
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(30, 55, 86, 0.1);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%);
}

.blog-card-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--brand) 0%, #2a4d78 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   BOTÃO WHATSAPP (pulso)
   ============================================ */

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.btn-whatsapp::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50px;
    background: #25d366;
    opacity: 0;
    animation: waPulse 2.5s ease-in-out infinite;
    z-index: -1;
}

@keyframes waPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0;
    }

    50% {
        transform: scale(1.12);
        opacity: 0.2;
    }
}

.btn-whatsapp:hover {
    background: #1db954;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid var(--brand);
}

.btn-primary:hover {
    background: transparent;
    color: var(--brand);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--brand);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    border: 1.5px solid rgba(30, 55, 86, 0.3);
    transition: all 0.3s ease;
}

.btn-ghost:hover {
    border-color: var(--brand);
    background: rgba(30, 55, 86, 0.04);
}

/* ============================================
   DEPOIMENTOS
   ============================================ */

.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid rgba(30, 55, 86, 0.08);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: var(--gold-light);
    position: absolute;
    top: -8px;
    left: 20px;
    line-height: 1;
    opacity: 0.4;
}

/* ============================================
   SEÇÃO ESCURA (Transparência)
   ============================================ */

.section-dark {
    background: linear-gradient(135deg, var(--brand) 0%, #162d4a 100%);
    position: relative;
    overflow: hidden;
}

.section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(184, 150, 12, 0.08) 0%, transparent 70%);
}

/* ============================================
   SEÇÃO CREME
   ============================================ */

.section-cream {
    background: var(--cream);
    position: relative;
}

/* ============================================
   MOBILE NAV
   ============================================ */

#mobile-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    padding: 16px 24px;
    border-top: 1px solid rgba(30, 55, 86, 0.08);
}

#mobile-menu.open {
    display: flex;
}

#mobile-menu a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(30, 55, 86, 0.06);
    color: var(--brand);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.95rem;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: #0f1e2e;
}

footer a {
    transition: color 0.3s;
}

footer a:hover {
    color: var(--gold-light) !important;
}

/* ============================================
   SCROLL SUAVE GERAL
   ============================================ */

::selection {
    background: var(--gold-light);
    color: #fff;
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 768px) {
    .stat-number {
        font-size: 2.5rem;
    }

    .hero-section {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }
}