/* ============================================================
   DESIGN SYSTEM — JUCIMARA CAMPOS ADVOCACIA
   Paleta: Azul Escuro · Azul Claro · Bege · Dourado Degrade
   Estilo: Luxo Refinado · Advocacia Previdenciária de Elite
   Baseado no modelo: Sandra 2.0
 ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Aboreto&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Cores */
    --blue-dark: #1a2a3c;
    --blue-dark-soft: #233549;
    --blue-dark-mid: #2d4054;
    --blue-border: rgba(70, 91, 110, 0.25);
    --blue-light: #465b6e;

    --gold-500: #d5c783;
    --gold-600: #b19455;
    --gold-400: #e3d9a2;
    --gold-metallic: linear-gradient(135deg, #b19455 0%, #d5c783 50%, #b19455 100%);
    --gold-title-gradient: linear-gradient(135deg, #b19455 0%, #d5c783 100%);

    --gold-glow: rgba(213, 199, 131, 0.18);
    --gold-subtle: rgba(213, 199, 131, 0.06);

    --bg-beige: #eceae5;
    --bg-beige-soft: #f4f3f0;
    --beige-border: #edece9;

    --white: #ffffff;
    --silver: #9A9AA8;
    --silver-light: #C8C8D4;

    --whatsapp-green: #25D366;
    --whatsapp-dark: #128C7E;

    /* Fontes */
    --font-serif: 'Aboreto', cursive, sans-serif;
    --font-sans: 'Inter', sans-serif;

    /* Transições */
    --transition-base: all 0.55s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-fast: all 0.3s ease;
}

/* ── Reset ─────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--blue-dark);
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ── Tipografia e Utilidades ────────────────────────────── */

.text-gold-gradient {
    background: var(--gold-title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-glow-gold {
    filter: drop-shadow(0 0 22px rgba(213, 199, 131, 0.35));
}

.section-tag {
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--gold-500);
    display: block;
    margin-bottom: 1.1rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3.8vw, 2.4rem);
    font-weight: 300;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: 0.01em;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3.8vw, 2.4rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 0.8rem;
    letter-spacing: 0.01em;
}

.section-description {
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 300;
    color: var(--silver);
    max-width: 820px;
    line-height: 1.8;
}

.gold-line {
    width: 60px;
    height: 1px;
    background: var(--gold-metallic);
    margin: 1.5rem 0;
}

/* ── Botões ────────────────────────────────────────────── */
.btn-premium-outer {
    display: inline-block;
    border: none;
    text-decoration: none;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    border-radius: 9999px;
}

.btn-premium-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a5f4c 0%, #15b797 100%);
    color: var(--white);
    padding: 13px 32px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: var(--transition-base);
    gap: 10px;
    border-radius: 9999px;
}

.btn-premium-outer:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(21, 183, 151, 0.4);
}

.btn-premium-outer:hover .btn-premium-inner {
    background: linear-gradient(135deg, #0d7961 0%, #1ad0ac 100%);
    color: var(--white);
}

.btn-premium-outer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    transition: none;
    pointer-events: none;
}

.btn-premium-outer:hover::after {
    left: 180%;
    transition: all 0.75s ease-in-out;
}

.btn-ghost {
    display: inline-block;
    border: 1px solid var(--gold-500);
    padding: 14px 36px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-500);
    text-decoration: none;
    transition: var(--transition-base);
    border-radius: 8px;
}

.btn-ghost:hover {
    background: var(--gold-500);
    color: var(--blue-dark);
}

/* ── Cards de Serviços ───────────────────────────────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.service-card {
    background: linear-gradient(135deg, #283c54 0%, #152230 100%);
    padding: 3rem 2.2rem;
    border: 1px solid var(--blue-border);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-metallic);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-base);
}

.service-card:hover {
    background: linear-gradient(135deg, #2d445e 0%, #182839 100%);
    border-color: rgba(213, 199, 131, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 40px var(--gold-glow);
}

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

.service-card .step-number {
    display: none;
}

/* ── Animações ──────────────────────────────────────────── */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px);
    transition: var(--transition-base);
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* ── Diferenciais (Carousel Infinito) ────────────────────── */
.differentials-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 40px 0;
    background: var(--bg-beige);
}

.differentials-carousel::before,
.differentials-carousel::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15vw;
    min-width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.differentials-carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-beige) 20%, transparent 100%);
}

.differentials-carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-beige) 20%, transparent 100%);
}

.differentials-track {
    display: flex;
    gap: 30px;
    width: max-content;
    animation: scrollCards 35s linear infinite;
}

.differentials-track:hover {
    animation-play-state: paused;
}

@keyframes scrollCards {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 15px));
    }
}

.premium-diff-card {
    width: 320px;
    background: var(--blue-dark);
    border: 1px solid var(--blue-border);
    border-top: 2px solid var(--gold-500);
    padding: 40px 30px;
    border-radius: 8px;
    transition: all 0.4s ease;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
}

.premium-diff-card:hover {
    transform: translateY(-8px);
    border-color: rgba(213, 199, 131, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(213, 199, 131, 0.08);
}

.premium-diff-icon {
    width: 50px;
    height: 50px;
    background: rgba(213, 199, 131, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--gold-500);
    transition: transform 0.4s ease;
}

.premium-diff-card:hover .premium-diff-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--gold-500);
    color: var(--blue-dark);
}

/* ── Depoimentos (Manual Slider) ─────────────────────────── */
.reviews-slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    padding: 20px 0 60px;
}

.reviews-track {
    display: flex;
    transition: transform 0.65s cubic-bezier(0.23, 1, 0.32, 1);
}

.review-slide {
    flex: 0 0 100%;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .review-slide {
        flex: 0 0 50%;
    }
}

@media (min-width: 1024px) {
    .review-slide {
        flex: 0 0 33.333%;
    }
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.slider-btn {
    width: 52px;
    height: 52px;
    border: 1px solid var(--blue-border);
    background: var(--blue-dark-soft);
    color: var(--gold-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    font-size: 1.2rem;
    border-radius: 4px;
}

.slider-btn:hover {
    border-color: var(--gold-500);
    background: var(--gold-500);
    color: var(--blue-dark);
}

.google-review-badge {
    position: absolute;
    top: 28px;
    right: 28px;
    width: 22px;
    height: 22px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/c/c1/Google_%22G%22_logo.svg') no-repeat center;
    background-size: contain;
    opacity: 0.75;
}

.testimonial-card {
    background: var(--blue-dark-soft);
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid var(--blue-border);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.test-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.test-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--blue-light);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.test-meta {
    line-height: 1.3;
}

.test-name {
    font-weight: 600;
    color: var(--white);
    font-size: 0.95rem;
}

.test-date {
    font-size: 0.8rem;
    color: var(--silver);
}

.test-stars-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.test-stars {
    color: #ffc107;
    font-size: 0.9rem;
    display: flex;
    gap: 2px;
}

.test-verified {
    color: var(--gold-500);
    font-size: 0.9rem;
}

.test-text {
    font-size: 0.9rem;
    color: var(--silver-light);
    line-height: 1.7;
    font-weight: 300;
}

/* ── Ticker / Faixas ────────────────────────────────────── */
.ticker-wrap {
    overflow: hidden;
    background: linear-gradient(135deg, #eceae5 0%, #dcd9cf 50%, #c4bfae 100%);
    border-top: 1px solid var(--beige-border);
    border-bottom: 1px solid var(--beige-border);
    padding: 22px 0;
}

.ticker {
    display: flex;
    gap: 4rem;
    white-space: nowrap;
    animation: marquee 32s linear infinite;
}

.ticker span {
    color: var(--blue-dark) !important;
}

.ticker span span {
    color: var(--gold-600) !important;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq-icon-wrapper {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(177, 148, 85, 0.08);
    border-radius: 50%;
    transition: var(--transition-base);
    flex-shrink: 0;
}

.faq-icon {
    width: 15px;
    height: 15px;
    color: var(--gold-600);
    transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

details[open] .faq-icon {
    transform: rotate(180deg);
}

details[open] .faq-icon-wrapper {
    background: var(--gold-500);
}

details[open] .faq-icon {
    color: var(--blue-dark);
}

/* ── Header & Hero ──────────────────────────────────────── */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(26, 42, 60, 0.85);
    border-bottom: 1px solid var(--blue-border);
    backdrop-filter: blur(12px);
    transition: var(--transition-fast);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--silver-light);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--gold-500);
}

.hero-bg {
    background: url('../img/backg01.webp') no-repeat center center;
    background-size: cover;
    position: absolute;
    inset: 0;
}

.hero-bg-mobile {
    display: none;
}

/* ── Mapa & Localização ────────────────────────────────── */
.info-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 40px;
}

@media (min-width: 992px) {
    .info-layout {
        grid-template-columns: 1fr 1fr;
    }
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background: var(--blue-dark-soft);
    border: 1px solid var(--blue-border);
    padding: 35px;
    border-radius: 8px;
}

.info-map-wrap {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--blue-border);
    min-height: 350px;
    background: #000;
}

.info-map-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ── WhatsApp Floating Widget ───────────────────────────── */
#whatsapp-widget {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

#wa-balloon {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    background: #efeae2;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.3);
    width: 320px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

#wa-balloon.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.wa-pulse {
    animation: pulse-green 2.5s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }
    50% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }
}

@keyframes bounceX {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-6px);
    }
}

/* ── Exit Intent Popup ──────────────────────────────────── */
#exit-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 20, 30, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#exit-popup {
    background: var(--blue-dark-soft);
    border: 1px solid var(--gold-500);
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    padding: 40px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0 !important;
    }

    .section-title {
        font-size: clamp(1.1rem, 5vw, 1.55rem) !important;
    }

    .hero-title {
        font-size: clamp(1.1rem, 5vw, 1.55rem) !important;
    }

    .btn-premium-outer {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .btn-premium-inner {
        padding: 12px 16px !important;
        font-size: 0.75rem !important;
        letter-spacing: 0.04em !important;
        white-space: normal !important;
        text-align: center !important;
        line-height: 1.4 !important;
        width: 100% !important;
        max-width: 100% !important;
        justify-content: center !important;
    }

    .btn-premium-inner svg {
        width: 16px;
        height: 16px;
    }

    .logo-desktop {
        display: none !important;
    }

    .logo-mobile {
        display: block !important;
    }

    .hero-subtitle {
        margin-bottom: 1.5rem !important;
    }

    #home {
        padding-top: 130px !important;
        padding-bottom: 80px !important;
        min-height: auto !important;
    }

    .hero-bg {
        display: none !important;
    }

    .hero-bg-mobile {
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        z-index: 1;
        pointer-events: none;
    }

    .hero-text-container {
        padding-bottom: 280px;
    }

    .nav-links {
        display: none; /* Simplificado para landing page */
    }

    .nav-container {
        justify-content: center;
    }

    #wa-balloon {
        display: none !important; /* Esconde o balão no mobile para não cobrir a tela */
    }
    
    .wa-label-btn {
        display: none !important; /* Esconde a etiqueta no mobile */
    }

    .services-grid {
        grid-template-columns: 1fr !important;
    }

    details summary {
        padding: 16px 20px !important;
        font-size: 0.95rem !important;
    }

    details div {
        padding: 16px 20px !important;
        font-size: 0.85rem !important;
    }

    .differentials-carousel::before,
    .differentials-carousel::after {
        display: none !important;
    }
}

/* ── Seção Sobre (Escritório) ───────────────────────────── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

@media (min-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 80px;
    }
}

.about-img-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.about-img-decoration {
    position: absolute;
    top: 20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--gold-600);
    border-radius: 12px;
    z-index: 1;
    pointer-events: none;
    transition: var(--transition-base);
}

.about-img-wrap:hover .about-img-decoration {
    transform: translate(-10px, 10px);
    border-color: var(--gold-500);
}

.about-img {
    position: relative;
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    display: block;
}

.about-text-wrap {
    display: flex;
    flex-direction: column;
}

.about-text-wrap .section-tag {
    margin-bottom: 1rem;
}

.about-text-wrap .section-title {
    margin-bottom: 1rem;
    text-align: left;
}

.about-text-wrap .gold-line {
    margin: 1rem 0 2rem;
}

.about-text {
    font-size: 1.05rem;
    color: var(--silver-light);
    font-weight: 300;
    line-height: 1.85;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .about-text-wrap {
        text-align: center;
        align-items: center;
    }
    
    .about-text-wrap .section-title {
        text-align: center;
    }
    
    .about-text-wrap .gold-line {
        margin: 1rem auto 2rem;
    }
    
    .about-img-decoration {
        left: -10px;
        top: 10px;
    }
}
