:root {
    --primary-red: #E50914;
    --primary-red-hover: #C10712;
    --primary-blue: #0076F5;
    --primary-blue-hover: #0063CE;
    --white: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(255, 255, 255, 0.2);
}

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

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--white);
    background-color: #07090E;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: hidden;
    position: relative;
}

/* Background Media & Video Transition (Idêntico ao Login) */
.bg-media-container,
.video-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    background-color: #070b14;
}

.bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 1;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.bg-video,
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.bg-video.loaded,
.video-bg.loaded {
    opacity: 1;
}

/* Camada cinematográfica com tom de cor azul-marinho profundo e iluminação vívida */
.bg-overlay,
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(14, 30, 64, 0.46) 0%, rgba(5, 10, 24, 0.78) 100%),
                linear-gradient(180deg, rgba(8, 16, 38, 0.68) 0%, rgba(12, 26, 56, 0.38) 45%, rgba(5, 9, 20, 0.86) 100%);
    z-index: 3;
    pointer-events: none;
}

/* Header */
.site-header {
    width: 100%;
    padding: clamp(10px, 1.8vh, 18px) clamp(20px, 3.5vw, 40px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 50;
    box-sizing: border-box;
    flex-shrink: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo {
    height: clamp(34px, 4.2vh, 46px);
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
    transition: transform 0.25s ease;
}

.site-logo:hover {
    transform: scale(1.03);
}

/* Header Actions & Intranet Button in Navbar */
.header-actions {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.5vw, 16px);
    margin-right: 4px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: clamp(8px, 1.2vw, 14px);
}

.social-link {
    color: #FFFFFF;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.btn-intranet-nav {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #F1F5F9;
    border: 1px solid rgba(255, 255, 255, 0.28);
    padding: clamp(5px, 0.8vh, 7px) clamp(12px, 1.5vw, 16px);
    border-radius: 6px;
    font-size: clamp(0.66rem, 0.85vw, 0.72rem);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.btn-intranet-nav:hover {
    background: rgba(30, 41, 59, 0.98);
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
}

/* Hero Section */
.hero-section {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(6px, 1.2vh, 16px) clamp(16px, 3vw, 24px);
    position: relative;
    z-index: 5;
    box-sizing: border-box;
}

.hero-content {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.6vh, 18px);
}

/* ==========================================================
   Card de Auto Atendimento (Busca de CPF/CNPJ/RG + Parceiros)
   Design moderno, clean com glassmorphism e iluminação sutil
   ========================================================== */
.autoatendimento-card {
    width: 100%;
    max-width: 620px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    padding: clamp(14px, 2vh, 22px) clamp(18px, 2.5vw, 28px);
    margin: 0 auto;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 30px rgba(2, 132, 199, 0.22);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.autoatendimento-card:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42), 0 0 40px rgba(2, 132, 199, 0.32);
}

.autoatendimento-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 4px;
}

.autoatendimento-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0284C7;
    filter: drop-shadow(0 2px 6px rgba(2, 132, 199, 0.3));
}

.autoatendimento-title {
    font-size: clamp(1.25rem, 1.8vw, 1.45rem);
    font-weight: 800;
    color: #0284C7;
    margin: 0;
    letter-spacing: -0.3px;
}

.autoatendimento-subtitle {
    font-size: clamp(0.78rem, 0.95vw, 0.86rem);
    color: #1E293B;
    margin: 0 0 clamp(6px, 1.2vh, 12px) 0;
    font-weight: 600;
    line-height: 1.35;
}

/* Formulário e Input */
.autoatendimento-form {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    background: #F8FAFC;
    padding: clamp(6px, 1vh, 10px) clamp(8px, 1.2vw, 12px);
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    margin-bottom: clamp(8px, 1.4vh, 14px);
}

.autoatendimento-input-wrapper {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.autoatendimento-label {
    font-size: 0.68rem;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.autoatendimento-input {
    width: 100%;
    padding: clamp(7px, 1vh, 9px) 12px;
    background: #FFFFFF;
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    font-size: clamp(0.85rem, 0.95vw, 0.92rem);
    color: #0F172A;
    font-weight: 600;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.autoatendimento-input:focus {
    border-color: #0284C7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
    background: #FFFFFF;
}

.autoatendimento-input::placeholder {
    color: #94A3B8;
    font-weight: 400;
}

.autoatendimento-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 clamp(16px, 2vw, 22px);
    background: linear-gradient(135deg, #0284C7, #0369A1);
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-size: clamp(0.86rem, 1vw, 0.94rem);
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35);
    white-space: nowrap;
    height: clamp(36px, 4.4vh, 42px);
    box-sizing: border-box;
}

.autoatendimento-btn:hover {
    background: linear-gradient(135deg, #0369A1, #075985);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.48);
}

.autoatendimento-btn:active {
    transform: translateY(1px);
}

.autoatendimento-btn:disabled,
.autoatendimento-btn.loading {
    opacity: 0.65;
    cursor: not-allowed !important;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

/* Seção Carteiras Parceiras */
.carteiras-parceiras-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.carteiras-logos-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(6px, 1vw, 12px);
    flex-wrap: wrap;
}

.carteira-logo-item {
    background: transparent;
    border: none;
    border-radius: 8px;
    padding: 0;
    height: clamp(30px, 3.8vh, 38px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.carteira-logo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.15);
}

.carteira-logo-item img {
    height: clamp(30px, 3.8vh, 38px);
    width: auto;
    max-height: clamp(30px, 3.8vh, 38px);
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

/* Especificidades visuais para logos parceiras */
.carteira-logo-item:has(img[src*="SOUTH"]),
.carteira-logo-item.carteira-south {
    background: #141B26;
    padding: 0 12px;
}

/* Headlines */
.hero-title {
    font-size: clamp(1.2rem, 2.1vw, 1.85rem);
    font-weight: 700;
    line-height: 1.25;
    color: #FFFFFF;
    margin: 0;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.85);
    letter-spacing: -0.3px;
}

/* Dynamic Rotating Word */
.dynamic-word-wrapper {
    display: inline-block;
    position: relative;
    vertical-align: baseline;
    min-height: 1.2em;
    text-shadow: none !important;
    filter: none !important;
}

.dynamic-word {
    display: inline-block;
    font-weight: 800;
    transition: opacity 0.35s ease, transform 0.35s ease;
    opacity: 1;
    transform: translateY(0);
    letter-spacing: -0.2px;
    text-shadow: none !important;
    filter: none !important;
}

.dynamic-word.fade-out {
    opacity: 0;
    transform: translateY(-4px);
}

.dynamic-word.fade-in {
    opacity: 0;
    transform: translateY(4px);
}

/* Azul Degradê Moderno e Polido */
.dynamic-word.color-blue {
    background: linear-gradient(90deg, #60A5FA 0%, #38BDF8 50%, #93C5FD 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
}

/* Dourado Ouro Reluzente Nobre */
.dynamic-word.color-gold {
    background: linear-gradient(90deg, #FDE68A 0%, #F59E0B 40%, #FBBF24 75%, #FEF3C7 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: none;
    animation: goldShimmer 3s ease-in-out infinite alternate;
}

@keyframes goldShimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 100% center;
    }
}

/* Action Buttons Bottom */
.hero-buttons-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.4vw, 16px);
    flex-wrap: wrap;
    margin: 0;
}

.whatsapp-icon {
    flex-shrink: 0;
    transition: transform 0.25s ease, filter 0.25s ease;
    color: #25D366;
    fill: #25D366;
    filter: drop-shadow(0 0 6px rgba(37, 211, 102, 0.45));
}

.btn-fale-conosco {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: var(--primary-blue);
    color: #FFFFFF;
    text-decoration: none;
    padding: clamp(8px, 1.2vh, 11px) clamp(18px, 2.2vw, 28px);
    border-radius: 30px;
    font-size: clamp(0.76rem, 0.9vw, 0.84rem);
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    transition: all 0.25s ease;
    box-shadow: 0 4px 18px rgba(0, 118, 245, 0.45);
}

.btn-fale-conosco:hover {
    background-color: var(--primary-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 118, 245, 0.65);
}

.btn-fale-conosco:hover .whatsapp-icon,
.btn-atendimento:hover .whatsapp-icon {
    transform: scale(1.15);
}

.btn-atendimento {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: rgba(10, 17, 28, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #FFFFFF;
    text-decoration: none;
    padding: clamp(8px, 1.2vh, 11px) clamp(16px, 2vw, 24px);
    border-radius: 30px;
    font-size: clamp(0.72rem, 0.85vw, 0.8rem);
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
    transition: all 0.25s ease;
}

.btn-atendimento:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

/* Responsividade & Dispositivos Móveis */
@media (max-width: 900px) {
    .site-header {
        padding: 14px 18px;
    }
    .hero-buttons-row {
        flex-direction: column;
        width: 100%;
    }
    .btn-fale-conosco, .btn-atendimento {
        width: 100%;
        max-width: 360px;
        text-align: center;
    }
}

@media (max-width: 640px), (max-height: 580px) {
    body {
        overflow-y: auto;
        height: auto;
        min-height: 100vh;
    }
    .hero-section {
        min-height: calc(100vh - 70px);
        padding: 16px 12px 32px 12px;
    }
    .autoatendimento-card {
        padding: 18px 14px 14px 14px;
    }
    .autoatendimento-form {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .autoatendimento-btn {
        width: 100%;
    }
}
