/**
 * CSS Customizado para Elementor - OnCabo Theme
 * Estilos específicos para widgets e seções Elementor
 */

/* ===================================
   VARIÁVEIS CSS PARA ELEMENTOR
   =================================== */
:root {
    --e-oncabo-green: var(--oncabo-green, #13fa1c);
    --e-oncabo-green-dark: var(--oncabo-green-hover, #10d118);
    --e-oncabo-green-light: var(--oncabo-green-light, #E6F9EE);
    --e-oncabo-blue-dark: var(--oncabo-dark, #0F172A);
    --e-oncabo-blue-medium: var(--oncabo-dark-alt, #1E293B);
    --e-oncabo-gray: var(--oncabo-gray-500, #6B7280);
    --e-oncabo-orange: #FF6600;
    --e-container-width: 1200px;
}

/* ===================================
   ELEMENTOR SEÇÕES E CONTAINERS
   =================================== */

/* Largura máxima dos containers Elementor */
.elementor-section.elementor-section-boxed > .elementor-container {
    max-width: var(--e-container-width);
}

/* Seção full width */
.elementor-section.elementor-section-full_width {
    width: 100%;
}

/* Espaçamento padrão entre seções */
.elementor-section {
    padding: 60px 0;
}

@media (max-width: 768px) {
    .elementor-section {
        padding: 40px 0;
    }
}

/* ===================================
   WIDGETS ELEMENTOR - TÍTULOS
   =================================== */

.elementor-widget-heading .elementor-heading-title {
    font-family: 'Figtree', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--e-oncabo-blue-dark);
}

/* Destaque em títulos (sublinhado) */
.elementor-widget-heading .highlight {
    position: relative;
    color: var(--e-oncabo-green);
}

.elementor-widget-heading .highlight::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--e-oncabo-green);
    border-radius: 2px;
}

/* ===================================
   WIDGETS ELEMENTOR - BOTÕES
   =================================== */

/* Botão primário estilo OnCabo */
.elementor-button.oncabo-btn-primary {
    background: linear-gradient(135deg, var(--e-oncabo-green) 0%, var(--e-oncabo-green-dark) 100%);
    color: var(--e-oncabo-blue-dark);
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.2);
}

.elementor-button.oncabo-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.3);
}

/* Botão outline estilo OnCabo */
.elementor-button.oncabo-btn-outline {
    background: transparent;
    color: var(--e-oncabo-green);
    border: 2px solid var(--e-oncabo-green);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.elementor-button.oncabo-btn-outline:hover {
    background: var(--e-oncabo-green);
    color: var(--e-oncabo-blue-dark);
}

/* ===================================
   WIDGETS ELEMENTOR - CARDS DE PLANOS
   =================================== */

/* Card de plano base */
.elementor-widget-container .plano-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.elementor-widget-container .plano-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--e-oncabo-green);
}

/* Badge do plano popular */
.elementor-widget-container .plano-card .badge-popular {
    position: absolute;
    top: 20px;
    right: -30px;
    background: linear-gradient(135deg, var(--e-oncabo-orange) 0%, #e55d00 100%);
    color: white;
    padding: 8px 40px;
    font-size: 0.875rem;
    font-weight: 700;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}

/* Velocidade do plano */
.elementor-widget-container .plano-velocidade {
    text-align: center;
    margin-bottom: 24px;
}

.elementor-widget-container .velocidade-numero {
    font-size: 4rem;
    font-weight: 800;
    color: var(--e-oncabo-green);
    line-height: 1;
    font-family: 'Rubik', sans-serif;
}

.elementor-widget-container .velocidade-unidade {
    font-size: 1.25rem;
    color: var(--e-oncabo-gray);
    font-weight: 600;
}

/* Preço do plano */
.elementor-widget-container .plano-preco {
    text-align: center;
    margin-bottom: 24px;
}

.elementor-widget-container .preco-valor {
    font-size: 3rem;
    font-weight: 800;
    color: var(--e-oncabo-blue-dark);
}

.elementor-widget-container .preco-periodo {
    font-size: 1rem;
    color: var(--e-oncabo-gray);
}

/* ===================================
   WIDGETS ELEMENTOR - ÍCONES
   =================================== */

.elementor-icon-box-wrapper {
    text-align: center;
    padding: 24px;
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.elementor-icon-box-wrapper:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.elementor-icon-box-icon {
    margin-bottom: 16px;
}

.elementor-icon-box-icon i {
    color: var(--e-oncabo-green);
    font-size: 48px;
}

.elementor-icon-box-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--e-oncabo-blue-dark);
    margin-bottom: 8px;
}

.elementor-icon-box-description {
    color: var(--e-oncabo-gray);
    line-height: 1.6;
}

/* ===================================
   WIDGETS ELEMENTOR - ESTATÍSTICAS
   =================================== */

.elementor-widget-counter {
    text-align: center;
    padding: 24px;
}

.elementor-counter-number-wrapper {
    font-size: 3rem;
    font-weight: 800;
    color: var(--e-oncabo-green);
    line-height: 1;
    margin-bottom: 8px;
}

.elementor-counter-title {
    font-size: 1rem;
    color: var(--e-oncabo-gray);
    font-weight: 600;
}

/* ===================================
   WIDGETS ELEMENTOR - DEPOIMENTOS
   =================================== */

.elementor-testimonial-wrapper {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.elementor-testimonial-content {
    color: var(--e-oncabo-gray);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.elementor-testimonial-name {
    font-weight: 700;
    color: var(--e-oncabo-blue-dark);
    font-size: 1.125rem;
}

.elementor-testimonial-job {
    color: var(--e-oncabo-gray);
    font-size: 0.875rem;
}

/* ===================================
   WIDGETS ELEMENTOR - ACCORDION/FAQ
   =================================== */

.elementor-accordion .elementor-accordion-item {
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.elementor-accordion .elementor-accordion-item:hover {
    border-color: var(--e-oncabo-green);
}

.elementor-accordion .elementor-tab-title {
    background: white;
    padding: 20px 24px;
    font-weight: 600;
    color: var(--e-oncabo-blue-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.elementor-accordion .elementor-tab-title.elementor-active {
    background: var(--e-oncabo-green);
    color: var(--e-oncabo-blue-dark);
}

.elementor-accordion .elementor-tab-content {
    padding: 20px 24px;
    background: #F9FAFB;
    color: var(--e-oncabo-gray);
    line-height: 1.8;
}

/* ===================================
   WIDGETS ELEMENTOR - FORMULÁRIOS
   =================================== */

.elementor-field-group input,
.elementor-field-group textarea,
.elementor-field-group select {
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.elementor-field-group input:focus,
.elementor-field-group textarea:focus,
.elementor-field-group select:focus {
    border-color: var(--e-oncabo-green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.elementor-button[type="submit"] {
    background: var(--e-oncabo-green);
    color: var(--e-oncabo-blue-dark);
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.elementor-button[type="submit"]:hover {
    background: var(--e-oncabo-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 136, 0.3);
}

/* ===================================
   SEÇÕES CUSTOMIZADAS ESTILO BRISANET
   =================================== */

/* Seção Hero com gradiente */
.elementor-section.oncabo-hero {
    background: linear-gradient(135deg, var(--e-oncabo-blue-dark) 0%, var(--e-oncabo-blue-medium) 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.elementor-section.oncabo-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 102, 0, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Seção de estatísticas */
.elementor-section.oncabo-stats {
    background: #F9FAFB;
    padding: 40px 0;
}

/* Seção de planos com fundo */
.elementor-section.oncabo-planos {
    background: linear-gradient(180deg, white 0%, #F9FAFB 100%);
}

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

@media (max-width: 1024px) {
    .elementor-widget-container .velocidade-numero {
        font-size: 3rem;
    }

    .elementor-widget-container .preco-valor {
        font-size: 2.5rem;
    }

    .elementor-section.oncabo-hero {
        padding: 60px 0;
    }
}

@media (max-width: 768px) {
    .elementor-widget-container .plano-card {
        padding: 24px;
    }

    .elementor-widget-container .velocidade-numero {
        font-size: 2.5rem;
    }

    .elementor-widget-container .preco-valor {
        font-size: 2rem;
    }

    .elementor-counter-number-wrapper {
        font-size: 2rem;
    }

    .elementor-section {
        padding: 40px 0;
    }

    .elementor-section.oncabo-hero {
        padding: 40px 0;
    }
}

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

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

.elementor-widget-container.animated {
    animation: fadeInUp 0.6s ease-out;
}

/* ===================================
   UTILITÁRIOS PARA ELEMENTOR
   =================================== */

/* Margem inferior para seções */
.elementor-section.mb-0 {
    margin-bottom: 0 !important;
}

/* Padding personalizado */
.elementor-section.py-large {
    padding: 100px 0 !important;
}

.elementor-section.py-medium {
    padding: 60px 0 !important;
}

.elementor-section.py-small {
    padding: 40px 0 !important;
}

/* Cores de fundo personalizadas */
.elementor-section.bg-green {
    background: var(--e-oncabo-green) !important;
}

.elementor-section.bg-dark {
    background: var(--e-oncabo-blue-dark) !important;
    color: white;
}

.elementor-section.bg-light {
    background: #F9FAFB !important;
}

/* ===================================
   CLASSES HELPER PARA WIDGETS
   =================================== */

/* Texto alinhado */
.text-center {
    text-align: center !important;
}

.text-left {
    text-align: left !important;
}

.text-right {
    text-align: right !important;
}

/* Cores de texto */
.text-green {
    color: var(--e-oncabo-green) !important;
}

.text-dark {
    color: var(--e-oncabo-blue-dark) !important;
}

.text-gray {
    color: var(--e-oncabo-gray) !important;
}

/* Font weights */
.font-bold {
    font-weight: 700 !important;
}

.font-extrabold {
    font-weight: 800 !important;
}

/* ===================================
   COMPATIBILIDADE COM TEMA ONCABO
   =================================== */

/* Garantir que os estilos do tema não conflitem com Elementor */
.elementor-section .container,
.elementor-section .plano-card,
.elementor-section .beneficio-card {
    all: unset;
}

/* Reset de margens para widgets */
.elementor-widget:not(:last-child) {
    margin-bottom: 20px;
}
