/**
 * Canavieiras Hero Slider CSS - Mobile Fix
 */

/* ==========================================================================
   HERO SLIDER CONTAINER
   ========================================================================== */
.canavieiras-hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    margin: 30px auto 40px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: #f8f9fa;
    touch-action: pan-y;
}

/* ==========================================================================
   SLIDES CONTAINER
   ========================================================================== */
.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide.contain-image {
    background-size: contain;
    background-color: #f8f9fa;
}

/* MOBILE FIX - FORÇAR COVER SEMPRE */
@media (max-width: 768px) {
    .hero-slide,
    .hero-slide.contain-image {
        background-size: cover !important;
        background-position: center center !important;
        background-color: transparent !important;
    }
}

/* ==========================================================================
   OVERLAY E CONTEÚDO
   ========================================================================== */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.5), rgba(52, 152, 219, 0.3));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    max-width: 700px;
    padding: 0 30px;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.hero-slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

/* ==========================================================================
   TIPOGRAFIA
   ========================================================================== */
.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    color: white;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.95;
    line-height: 1.5;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
    color: #f8f9fa;
    font-weight: 400;
}

/* ==========================================================================
   BOTÃO
   ========================================================================== */
.hero-btn {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    color: white;
}

.hero-btn:hover::before {
    left: 100%;
}

/* ==========================================================================
   CONTROLES REMOVIDOS
   ========================================================================== */
.hero-arrow {
    display: none !important;
}

.hero-prev,
.hero-next {
    display: none !important;
}

/* ==========================================================================
   DOTS ATIVOS
   ========================================================================== */
.hero-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 4;
}

.hero-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.6);
    outline: none;
}

.hero-dot.active {
    background: white;
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.hero-dot:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* ==========================================================================
   RESPONSIVO MOBILE - MELHORADO
   ========================================================================== */
@media (max-width: 768px) {
    .canavieiras-hero-slider {
        height: 350px !important;
        margin: 20px 5px 30px 5px;
        border-radius: 12px;
    }
    
    .hero-content {
        max-width: 90%;
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem !important;
        margin-bottom: 12px;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        margin-bottom: 20px;
        line-height: 1.4;
    }
    
    .hero-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
    
    .hero-dots {
        bottom: 20px;
        gap: 10px;
    }
    
    .hero-dot {
        width: 12px;
        height: 12px;
    }
    
    /* OVERLAY MAIS ESCURO NO MOBILE */
    .hero-overlay {
        background: linear-gradient(135deg, rgba(44, 62, 80, 0.7), rgba(52, 152, 219, 0.5));
    }
}

@media (max-width: 480px) {
    .canavieiras-hero-slider {
        height: 300px !important;
        margin: 15px 3px 25px 3px;
        border-radius: 10px;
    }
    
    .hero-title {
        font-size: 1.8rem !important;
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 18px;
    }
    
    .hero-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .hero-dots {
        bottom: 15px;
        gap: 8px;
    }
    
    .hero-dot {
        width: 10px;
        height: 10px;
    }
}

/* ==========================================================================
   TABLET
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .canavieiras-hero-slider {
        height: 400px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
}

/* ==========================================================================
   DESKTOP LARGE
   ========================================================================== */
@media (min-width: 1400px) {
    .canavieiras-hero-slider {
        height: 550px;
        max-width: 1200px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
}

/* ==========================================================================
   PERFORMANCE
   ========================================================================== */
.hero-slides {
    will-change: transform;
}

.hero-slide {
    backface-visibility: hidden;
    transform: translateZ(0);
}

.hero-content {
    will-change: opacity, transform;
}