/* ==========================================================================
   ALTA BANCA - DESIGN SYSTEM & CSS PRINCIPAL
   Estratégia Digital para Grandes Bancas
   Tema: Dark Mode Executivo (Azul Noturno Profundo + Dourado Champagne)
   ========================================================================== */

:root {
    --bg-dark: #0A0E17;
    --bg-surface: #121826;
    --bg-card: rgba(18, 24, 38, 0.75);
    --bg-card-hover: rgba(24, 32, 50, 0.85);
    
    --gold: #C5A869;
    --gold-hover: #D4AF37;
    --gold-light: #E5C989;
    --gold-border: rgba(197, 168, 105, 0.25);
    --gold-glow: rgba(197, 168, 105, 0.15);
    
    --text-main: #F4F5F6;
    --text-secondary: #CBD5E1;
    --text-muted: #94A3B8;
    
    --font-serif: 'Cinzel', serif;
    --font-sans: 'Inter', sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6, .brand-title, .font-serif {
    font-family: var(--font-serif);
    letter-spacing: 0.5px;
    font-weight: 600;
}

.text-gold { color: var(--gold) !important; }
.text-gold-light { color: var(--gold-light) !important; }
.text-muted-custom { color: var(--text-muted) !important; }
.text-secondary-custom { color: var(--text-secondary) !important; }

/* Navbar */
.navbar-altabanca {
    background: rgba(10, 14, 23, 0.92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--gold-border);
    padding: 18px 0;
    transition: all 0.3s ease;
}

.navbar-brand-logo {
    height: 42px;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-link-custom {
    color: var(--text-secondary) !important;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    padding: 8px 16px !important;
    transition: color 0.3s ease;
}

.nav-link-custom:hover {
    color: var(--gold) !important;
}

/* Botões de Ação */
.btn-gold-executive {
    background: linear-gradient(135deg, var(--gold) 0%, #A88746 100%);
    color: #0A0E17;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 4px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px var(--gold-glow);
    text-decoration: none;
}

.btn-gold-executive:hover {
    background: linear-gradient(135deg, var(--gold-hover) 0%, var(--gold) 100%);
    color: #0A0E17;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(197, 168, 105, 0.35);
}

.btn-outline-executive {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    font-weight: 500;
    padding: 12px 28px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-executive:hover {
    background: var(--gold-glow);
    color: var(--gold-light);
    border-color: var(--gold-light);
}

/* Badges & Tags */
.badge-comarca {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(197, 168, 105, 0.08);
    border: 1px solid var(--gold-border);
    color: var(--gold-light);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 24px;
}

/* Hero Section */
.hero-altabanca {
    padding: 170px 0 110px;
    min-height: 92vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(90deg, #0A0E17 0%, rgba(10, 14, 23, 0.95) 35%, rgba(10, 14, 23, 0.75) 60%, rgba(10, 14, 23, 0.35) 100%),
                url('../img/01.webp') no-repeat right center / cover;
    background-color: var(--bg-dark);
}

.hero-title-main {
    font-size: 3.4rem;
    line-height: 1.25;
    margin-bottom: 24px;
    color: var(--text-main);
}

.hero-lead-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 38px;
    max-width: 680px;
}

.hero-credentials-bar {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

.credential-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Mockup Visual - Fusão Perfeita com o Fundo */
.hero-mockup-wrapper {
    position: relative;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-mockup-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(197, 168, 105, 0.2) 0%, transparent 65%);
    filter: blur(35px);
    z-index: 0;
    pointer-events: none;
}

.hero-mockup-img {
    width: 100%;
    max-width: 460px;
    max-height: 580px;
    height: auto;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    border-radius: 0;
    /* Efeito de fusão: dissolve suavemente as 4 bordas para o fundo escuro */
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0) 80%);
    mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0) 80%);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-mockup-img:hover {
    transform: scale(1.02);
}

/* Seções Globais */
.section-padding-ab {
    padding: 110px 0;
    position: relative;
}

.section-tagline {
    font-family: var(--font-sans);
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

.section-heading-ab {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 20px;
}

.section-desc-ab {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 680px;
}

/* Glassmorphism Cards */
.card-executive {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--gold-border);
    border-radius: 6px;
    padding: 36px 30px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
}

.card-executive:hover {
    background: var(--bg-card-hover);
    border-color: rgba(197, 168, 105, 0.6);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.card-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    background: rgba(197, 168, 105, 0.08);
    border: 1px solid var(--gold-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 24px;
}

/* Founder Photo Box */
.founder-photo-box {
    position: relative;
    border-radius: 12px;
    padding: 24px 20px 0;
    background: radial-gradient(circle at 50% 30%, rgba(197, 168, 105, 0.15) 0%, rgba(18, 24, 38, 0.95) 75%);
    border: 1px solid var(--gold-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(197, 168, 105, 0.2);
    max-width: 380px;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.founder-photo {
    width: 100%;
    max-height: 440px;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: top center;
    filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.6));
    border-radius: 0;
}

.founder-caption {
    width: calc(100% + 40px);
    margin: 0 -20px;
    padding: 14px 20px;
    background: rgba(10, 14, 23, 0.95);
    border-top: 1px solid var(--gold-border);
    text-align: center;
    backdrop-filter: blur(10px);
}

/* Estudo de Caso (Case Box) */
.case-box-ab {
    background: linear-gradient(135deg, rgba(18, 24, 38, 0.95) 0%, rgba(10, 14, 23, 0.98) 100%);
    border: 1.5px solid var(--gold);
    border-radius: 8px;
    padding: 48px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.case-box-ab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold);
}

/* Process Steps */
.step-card-ab {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: 6px;
    padding: 32px 24px;
    text-align: center;
    height: 100%;
    position: relative;
}

.step-badge-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gold);
    color: #0A0E17;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

/* Accordion FAQ */
.accordion-ab .accordion-item {
    background-color: var(--bg-surface);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 16px;
    border-radius: 6px !important;
    overflow: hidden;
}

.accordion-ab .accordion-button {
    background-color: var(--bg-surface);
    color: var(--text-main);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 22px 28px;
    box-shadow: none;
}

.accordion-ab .accordion-button:not(.collapsed) {
    color: var(--gold);
    background-color: rgba(197, 168, 105, 0.05);
    border-bottom: 1px solid rgba(197, 168, 105, 0.15);
}

.accordion-ab .accordion-button::after {
    filter: invert(1) brightness(150%);
}

.accordion-ab .accordion-button:not(.collapsed)::after {
    filter: sepia(100%) hue-rotate(5deg) saturate(300%);
}

.accordion-ab .accordion-body {
    background-color: rgba(10, 14, 23, 0.6);
    color: var(--text-secondary);
    padding: 24px 28px;
    font-size: 1rem;
    line-height: 1.7;
}

/* Formulários e Modais de Alta Conversão */
.form-control-ab {
    background-color: rgba(18, 24, 38, 0.8);
    border: 1px solid rgba(197, 168, 105, 0.2);
    color: var(--text-main);
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control-ab:focus {
    background-color: rgba(10, 14, 23, 1);
    border-color: var(--gold);
    box-shadow: 0 0 0 0.25rem rgba(197, 168, 105, 0.15);
    color: var(--text-main);
}

.form-select.form-control-ab {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23C5A869' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.border-gold {
    border: 1px solid rgba(197, 168, 105, 0.25);
}

.modal-content.border-gold {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

/* Foco total no modal: Fundo mais escuro e desfocado */
.modal-backdrop {
    background-color: #030508; /* Um preto ainda mais profundo */
}
.modal-backdrop.show {
    opacity: 0.95 !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Footer */
.footer-altabanca {
    background-color: #06090F;
    border-top: 1px solid var(--gold-border);
    padding: 90px 0 40px;
}

/* Microanimações */
.reveal-up {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Responsividade */
@media (max-width: 991px) {
    /* Menu Hamburguer Full-screen e Desfocado */
    .navbar-collapse.show, 
    .navbar-collapse.collapsing,
    .navbar-collapse.collapsing-off {
        position: fixed;
        top: 79px; /* Altura aproximada do header */
        left: 0;
        width: 100vw;
        height: calc(100vh - 79px);
        background-color: rgba(5, 7, 12, 0.98); /* Escurecimento brutal */
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 30px 20px;
        z-index: 1040;
        display: block;
        overflow-y: auto;
        transition: none; /* Remove a sanfona do bootstrap para aparecer fluido */
    }
    
    .navbar-nav {
        gap: 15px;
    }
    .hero-altabanca {
        background: radial-gradient(circle at 50% 20%, rgba(197, 168, 105, 0.08) 0%, var(--bg-dark) 75%) !important;
        min-height: auto;
        padding-top: 130px;
        padding-bottom: 60px;
    }
    .hero-title-main {
        font-size: 2.6rem;
    }
    .section-heading-ab {
        font-size: 2rem;
    }
    .case-box-ab {
        padding: 30px 20px;
    }
    .hero-mobile-visual {
        margin-top: 45px;
        position: relative;
    }
    .hero-mobile-img {
        width: 100%;
        max-width: 360px;
        height: auto;
        display: block;
        margin: 0 auto;
        -webkit-mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0) 80%);
        mask-image: radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 1) 45%, rgba(0, 0, 0, 0) 80%);
    }
}

@media (max-width: 767px) {
    .hero-altabanca {
        padding-top: 120px;
        padding-bottom: 50px;
        text-align: center;
    }
    .hero-lead-text {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-credentials-bar {
        justify-content: center;
    }
    .metrics-bar {
        justify-content: center;
    }
}

/* ==========================================================================
   MELHORIAS V2 — Métricas, Depoimentos & WhatsApp Flutuante
   ========================================================================== */

/* Barra de Métricas */
.metrics-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    padding: 36px 0;
}

.metric-item {
    text-align: center;
    padding: 20px 36px;
    border-right: 1px solid rgba(197, 168, 105, 0.15);
    flex: 1 1 auto;
    min-width: 160px;
}

.metric-item:last-child {
    border-right: none;
}

.metric-number {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
    margin-bottom: 4px;
}

.metric-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

/* Seção de Depoimentos */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: 6px;
    padding: 36px 32px;
    height: 100%;
    position: relative;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.testimonial-card:hover {
    border-color: rgba(197, 168, 105, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.testimonial-quote {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    position: relative;
    padding-left: 20px;
    border-left: 3px solid var(--gold-border);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold) 0%, #A88746 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: #0A0E17;
    font-weight: 700;
    flex-shrink: 0;
}

.testimonial-name {
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--gold-light);
    font-size: 0.95rem;
}

.testimonial-role {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 16px;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-sans);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

/* Esconde o botão flutuante quando o modal está aberto (foco total no formulário) */
body.modal-open .whatsapp-float {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.5);
}

.whatsapp-float:hover {
    background: #1EBE5A;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .metric-item {
        border-right: none;
        border-bottom: 1px solid rgba(197, 168, 105, 0.15);
        padding: 16px 20px;
        min-width: 50%;
    }
    .metric-item:last-child {
        border-bottom: none;
    }
    .metric-number {
        font-size: 1.8rem;
    }
}
