/* ===================================
   CUSTOM CSS - DATAJUG
   Versão: 1.0
   Data: 2025-01-26
   Autor: Datajug Team
   =================================== */

/* ===================================
   VARIÁVEIS CSS
   =================================== */
:root {
    /* Cores principais */
    --primary-color: #4951DC;
    --primary-hover: #3240a8;
    --secondary-color: #329FD7;
    --accent-color: #963BEA;
    
    /* Cores de texto */
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --text-white: #ffffff;
    
    /* Cores de fundo */
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-overlay: rgba(0, 0, 0, 0.6);
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.2);
    
    /* Bordas */
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 16px;
    --border-radius-xl: 20px;
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Tipografia */
    --font-primary: 'Oswald', sans-serif;
    --font-secondary: 'Roboto', sans-serif;
    
    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
}

/* ===================================
   RESET E BASE
   =================================== */
* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ===================================
   TIPOGRAFIA
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-light);
}

/* ===================================
   BOTÕES
   =================================== */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-white);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-white);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    color: var(--text-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===================================
   CARDS
   =================================== */
.card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: none;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.card-body {
    padding: var(--spacing-lg);
}

.card-title {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.card-text {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===================================
   NAVEGAÇÃO
   =================================== */
.navbar {
    background: var(--bg-white) !important;
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-sm) 0;
}

.navbar-brand img {
    transition: transform var(--transition-normal);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color var(--transition-fast);
}

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

.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
    border-radius: var(--border-radius-sm);
    padding: var(--spacing-sm) 0;
}

.dropdown-item {
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--text-white);
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--spacing-xl) 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.9;
}

/* ===================================
   SEÇÕES
   =================================== */
.section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title h2 {
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===================================
   CARROSSEL
   =================================== */
.swiper-container {
    position: relative;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-pagination-bullet {
    background: var(--text-white);
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--text-white);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    transition: all var(--transition-normal);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

/* ===================================
   CHAT WIDGET
   =================================== */
#chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--text-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
    border: none;
}

#chat-button:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

#chat-widget {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 320px;
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1001;
    overflow: hidden;
    transition: all var(--transition-normal);
}

#chat-widget.hidden {
    display: none;
}

.chat-header {
    background: var(--primary-color);
    color: var(--text-white);
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h5 {
    margin: 0;
    font-size: 1.1rem;
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
}

.chat-body {
    padding: var(--spacing-md);
}

.chat-buttons a {
    display: block;
    background: var(--secondary-color);
    color: var(--text-white);
    text-align: center;
    padding: var(--spacing-sm);
    margin: var(--spacing-xs) 0;
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.chat-buttons a:hover {
    background: #25D366;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ===================================
   EXIT POPUP
   =================================== */
#exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

#exit-popup.hidden {
    display: none;
}

.exit-popup-content {
    background: var(--bg-white);
    padding: var(--spacing-xl);
    max-width: 450px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    position: relative;
    margin: var(--spacing-md);
}

.exit-popup-content h3 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.exit-popup-content p {
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.exit-popup-close {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.exit-popup-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

/* ===================================
   RESPONSIVIDADE
   =================================== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .card-body {
        padding: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 2rem;
        --spacing-lg: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .navbar-brand img {
        max-width: 70px !important;
        width: 70px !important;
    }
    
    #chat-widget {
        width: 90%;
        right: 5%;
        left: 5%;
    }
    
    .exit-popup-content {
        margin: var(--spacing-sm);
        padding: var(--spacing-lg);
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title h2 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: var(--spacing-sm);
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* ===================================
   UTILITÁRIOS
   =================================== */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-accent { color: var(--accent-color) !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-light { background-color: var(--bg-light) !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

.rounded-sm { border-radius: var(--border-radius-sm) !important; }
.rounded-md { border-radius: var(--border-radius-md) !important; }
.rounded-lg { border-radius: var(--border-radius-lg) !important; }

.transition { transition: all var(--transition-normal) !important; }
.transition-fast { transition: all var(--transition-fast) !important; }
.transition-slow { transition: all var(--transition-slow) !important; }

/* ===================================
   ANIMAÇÕES
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* ===================================
   ACESSIBILIDADE
   =================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Foco visível para navegação por teclado */
.btn:focus,
.nav-link:focus,
.dropdown-item:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Contraste melhorado para texto */
.text-light {
    color: var(--text-light) !important;
}

/* ===================================
   PERFORMANCE
   =================================== */
/* Otimização para GPU */
.card,
.btn,
.navbar-brand img,
#chat-button,
#chat-widget {
    will-change: transform;
}

/* ===================================
   FIXES ESPECÍFICOS
   =================================== */
/* Fix para scrollbar customizada quando JS está desabilitado */
.simplebar-content-wrapper {
    overflow: auto;
}

/* Fix para logos responsivos */
.logo-wrapper {
    text-align: center;
    width: 100%;
}

.logo-wrapper img {
    margin: 0 auto;
    display: block;
}

/* Fix para dropdowns no mobile */
@media (max-width: 991.98px) {
    .dropdown-menu {
        border: none;
        box-shadow: none;
        background: transparent;
    }
    
    .dropdown-item {
        color: var(--text-dark);
        padding: 0.5rem 0;
    }
} 