/* ==========================================
   ESTILOS PRINCIPAIS - OdontoConnect
   Versão: 2.0 | Otimizado e sem conflitos
   ========================================== */

/* Variáveis Globais */
:root {
    /* Cores Principais */
    --primary-color: #4f46e5;
    --primary-dark: #3730a3;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #ffffff;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    
    /* Cores Douradas */
    --gold-color: #fbbf24;
    --gold-dark: #f59e0b;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Bordas e Arredondamento */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    
    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset e Configurações Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

/* ==========================================
   COMPONENTES REUTILIZÁVEIS
   ========================================== */

/* Botões */
.btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    padding: 0.875rem 2rem;
    transition: all var(--transition-normal);
    border: none;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 60px;
    min-height: 60px;
    position: relative;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    z-index: -1;
    transition: all var(--transition-normal);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary::before {
    background: var(--gradient-primary);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-outline-primary {
    color: #fff;
    background: rgb(21 86 181);
}

.btn-outline-primary::before {
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

/* Cards Base */
.card {
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    background: var(--white);
    overflow: hidden;
}

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

/* ==========================================
   SEÇÕES ESPECÍFICAS
   ========================================== */

/* Navbar */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    transition: all var(--transition-normal);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color var(--transition-fast);
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
    background: rgba(79, 70, 229, 0.1);
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
    padding: 6rem 0 4rem;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    margin-bottom: 2rem;
    opacity: 0.95;
    max-width: 600px;
}

/* Badge do Hero */
.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    display: inline-block;
    margin-bottom: 1rem;
}

/* Text Gradient */
.text-gradient {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Cards de Estatísticas */
.stat-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    transition: all var(--transition-normal);
    text-align: center;
    box-shadow: var(--shadow-md);
    color: var(--dark-color);
    position: relative;
    z-index: 1;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--gold-color);
    display: block;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    line-height: 1;
}

.stat-label {
    color: var(--secondary-color);
    margin: 0;
    font-weight: 500;
    font-size: 1rem;
}

/* Formulário de Busca */
.search-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all var(--transition-normal);
}

.search-form:hover {
    box-shadow: var(--shadow-lg);
}

/* Efeito Glass */
.glass-effect {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    pointer-events: auto !important;
}

.glass-effect .form-control,
.glass-effect .form-select {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    transition: all var(--transition-normal);
}

.glass-effect .form-control:focus,
.glass-effect .form-select:focus {
    background: var(--white) !important;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
    outline: none;
}

/* Anúncios em Destaque */
.ad-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ad-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.ad-image {
    height: 220px;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.ad-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gold-color);
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.ad-card .card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ad-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.ad-card .card-text {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    line-height: 1.5;
    flex: 1;
}

/* Seção de Benefícios */
.benefit-card {
    padding: 2.5rem 1.5rem;
    transition: transform var(--transition-normal);
    text-align: center;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-8px);
}

.benefit-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.benefit-card h5 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.benefit-card p {
    color: var(--secondary-color);
    line-height: 1.6;
}

/* Depoimentos */
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-secondary);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-section p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: var(--dark-color);
    padding: 3rem 0 1rem;
    color: var(--white);
}

.footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: var(--primary-color);
}

/* ==========================================
   UTILITÁRIOS E HELPER CLASSES
   ========================================== */

/* Backgrounds */
.bg-primary {
    background: var(--gradient-primary) !important;
}

.bg-secondary {
    background: var(--gradient-secondary) !important;
}

.bg-success {
    background: var(--gradient-success) !important;
}

/* Sombras */
.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

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

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

/* Text Colors */
.text-primary {
    color: var(--primary-color) !important;
}

.text-gold {
    color: var(--gold-color) !important;
}

/* Border Radius */
.rounded-sm {
    border-radius: var(--radius-sm) !important;
}

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

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

/* Spacing */
.pt-xl {
    padding-top: var(--spacing-xl) !important;
}

.pb-xl {
    padding-bottom: var(--spacing-xl) !important;
}

.my-xl {
    margin-top: var(--spacing-xl) !important;
    margin-bottom: var(--spacing-xl) !important;
}

/* ==========================================
   RESPONSIVIDADE
   ========================================== */

/* Tablets */
@media (max-width: 992px) {
    .hero-section {
        padding: 5rem 0 3rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin: 0 auto 2rem;
    }
    
    .stat-card {
        margin-bottom: 1.5rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0 2rem;
        min-height: 60vh;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .stat-card {
        padding: 2rem 1rem;
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-icon {
        font-size: 2.5rem;
    }
    
    .search-form {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        min-width: auto;
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }
    
    .benefit-card {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .benefit-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .testimonial-card {
        padding: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-section h2 {
        font-size: 2rem;
    }
    
    .cta-section p {
        font-size: 1.1rem;
    }
}

/* Small Mobile */
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .search-form {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* ==========================================
   ANIMAÇÕES
   ========================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ==========================================
   CORREÇÕES ESPECÍFICAS
   ========================================== */

/* Garantir contraste em textos */
.text-white {
    color: var(--white) !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

/* Overlay para backgrounds */
.bg-overlay {
    position: relative;
}

.bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.bg-overlay > * {
    position: relative;
    z-index: 2;
}

/* Melhorias para formulários */
.form-control {
    border-radius: var(--radius-sm);
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.25);
    outline: none;
}

/* Espaçamentos consistentes */
.section-padding {
    padding: 5rem 0;
}

.section-padding-sm {
    padding: 3rem 0;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 3rem 0;
    }
    
    .section-padding-sm {
        padding: 2rem 0;
    }
}

/* Ajuste para o Hover do Menu no Header Roxo */
.navbar-dark .navbar-nav .nav-link {
    color: #ffffff; /* Cor padrão branca */
    transition: color 0.3s ease; /* Suaviza a transição */
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    /* Opção 1: Verde Claro (Combina com os steps) */
    color: #75e6da !important; 
    
    /* Se preferir a Opção 2 (Lilás), use: color: #e0cffc !important; */
}

/* Opcional: Adicionar um leve brilho ou sublinhado */
.navbar-dark .navbar-nav .nav-link:hover {
    text-shadow: 0 0 5px rgba(117, 230, 218, 0.4);
}


/* Estilo base dos botões customizados */
.swiper-button-next-custom,
.swiper-button-prev-custom {
    /* Tamanho fixo de 40px */
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    
    /* Centralização perfeita */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* Estilo visual */
    border: 2px solid #6610f2 !important;
    color: #6610f2 !important;
    background-color: white !important;
    
    /* Bordas perfeitamente redondas */
    border-radius: 50% !important;
    
    /* Comportamento */
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 10 !important;
    
    /* Remover padding que pode distorcer o círculo */
    padding: 0 !important;
    
    /* Garantir que não haja overflow */
    overflow: hidden !important;
}

/* Efeito Hover (ao passar o mouse) */
.swiper-button-next-custom:hover,
.swiper-button-prev-custom:hover {
    background-color: #6610f2 !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(102, 16, 242, 0.3) !important;
    transform: translateY(-2px) scale(1.05) !important;
}

/* Estado Desabilitado (quando não há mais slides) */
.swiper-button-next-custom.swiper-button-disabled,
.swiper-button-prev-custom.swiper-button-disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
    border-color: #ccc !important;
    color: #ccc !important;
}

/* Ajuste para garantir que o ícone fique centralizado */
.swiper-button-next-custom i,
.swiper-button-prev-custom i {
    font-size: 16px !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Remover estilos padrão do Swiper que podem interferir */
.swiper-button-next-custom::after,
.swiper-button-prev-custom::after {
    content: none !important;
    display: none !important;
}

/* Garantir que os botões não sejam afetados por estilos globais */
.swiper-button-next-custom *,
.swiper-button-prev-custom * {
    box-sizing: border-box !important;
}



/* Estilo para o botão outline-primary ao passar o mouse */
.btn-outline-primary:hover {
    background-color: #007bff !important; /* Azul padrão do Bootstrap ou escolha um mais claro como #3391ff */
    color: #ffffff !important;            /* Garante que a letra fique branca */
    border-color: #007bff !important;     /* Mantém a borda na mesma cor do fundo */
}

/* Caso queira um azul mais claro específico */
.btn-outline-primary.me-2:hover {
    background-color: #4da3ff !important; /* Azul mais suave */
    color: #ffffff !important;
}




    /* Logo responsivo */
    .navbar-logo {
        transition: all 0.3s ease;
    }
    
    /* Desktop: logo maior */
    @media (min-width: 992px) {
        .navbar-logo {
            height: 55px !important;
            max-width: 230px !important;
        }
    }
    
    /* Tablet: logo médio */
    @media (min-width: 768px) and (max-width: 991px) {
        .navbar-logo {
            height: 60px !important;
            max-width: 250px !important;
        }
    }
    
    /* Mobile: logo menor */
    @media (max-width: 767px) {
        .navbar-logo {
            height: 50px !important;
            max-width: 190px !important;
        }
    }
    
    /* Mobile muito pequeno: logo ainda menor */
    @media (max-width: 480px) {
        .navbar-logo {
            height: 45px !important;
            max-width: 150px !important;
        }
    }
    
    /* Ajuste do navbar-brand para centralizar o logo */
    .navbar-brand {
        padding: 0;
        margin-right: 1rem;
    }
    
    /* Hover effect no logo */
    .navbar-logo:hover {
        opacity: 0.8;
        transform: scale(1.05);
    }