/* 🚀 HERO SECTION CSS - Critical Styles for Perfect Display
   شركة تسليك مجارى بالرياض - Hero Section Optimization */

/* Hero Section Base Styles */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #007bff, #10b981);
    contain: layout style paint;
    will-change: transform;
    overflow: hidden;
}

/* Hero Background Images */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    contain: strict;
    transform: translateZ(0);
}

.hero-bg-1 {
    background-image: url('../images/Banner1.jpg');
}

.hero-bg-2 {
    background-image: url('../images/Banner-2.jpg');
}

.hero-bg-3 {
    background-image: url('../images/Banner-3.jpg');
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* Hero Content Container */
.hero-content-optimized {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 2rem 1rem;
    contain: layout style;
    width: 100%;
}

/* Hero Title */
.hero-title-optimized {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    contain: layout style;
    font-family: 'Cairo', 'Arial', sans-serif;
}

/* Hero Subtitle */
.hero-subtitle-optimized {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    line-height: 1.4;
    contain: layout style;
    font-family: 'Cairo', 'Arial', sans-serif;
}

/* Call-to-Action Buttons Container */
.hero-cta-primary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin: 2rem 0;
    contain: layout;
}

/* CTA Buttons */
.btn-cta-call,
.btn-cta-whatsapp {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 700;
    min-width: 250px;
    min-height: 100px;
    transition: all 0.3s ease;
    justify-content: center;
    will-change: transform;
    contain: layout style;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-family: 'Cairo', 'Arial', sans-serif;
}

.btn-cta-call {
    background: #007bff;
    color: #fff;
}

.btn-cta-whatsapp {
    background: #25D366;
    color: #fff;
}

.btn-cta-call:hover,
.btn-cta-whatsapp:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 8px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-cta-call i,
.btn-cta-whatsapp i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.btn-cta-call span,
.btn-cta-whatsapp span {
    font-size: 1.1rem;
    font-weight: 700;
}

.btn-cta-call small,
.btn-cta-whatsapp small {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Hero Features */
.hero-features-optimized {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.feature-item-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
    min-width: 120px;
}

.feature-item-opt i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #25D366;
}

.feature-item-opt span {
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Cairo', 'Arial', sans-serif;
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 20px;
    z-index: 4;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background-color: transparent;
    opacity: 0.5;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: #25D366;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    z-index: 4;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-content-optimized {
        padding: 1.5rem 1rem;
    }
    
    .hero-title-optimized {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle-optimized {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-cta-primary {
        flex-direction: column;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .btn-cta-call,
    .btn-cta-whatsapp {
        min-width: 280px;
        min-height: 90px;
        padding: 0.8rem 1rem;
    }
    
    .hero-features-optimized {
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .feature-item-opt {
        min-width: 100px;
    }
    
    .feature-item-opt i {
        font-size: 1.5rem;
    }
    
    .feature-item-opt span {
        font-size: 0.8rem;
    }
}

/* Desktop Optimizations */
@media (min-width: 768px) {
    .hero-cta-primary {
        flex-direction: row;
        gap: 2rem;
    }
    
    .btn-cta-call,
    .btn-cta-whatsapp {
        min-width: 260px;
    }
}

/* Large Desktop Optimizations */
@media (min-width: 1200px) {
    .hero-content-optimized {
        padding: 3rem 1rem;
    }
    
    .hero-title-optimized {
        font-size: clamp(2.5rem, 4vw, 3.5rem);
    }
    
    .hero-subtitle-optimized {
        font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    }
    
    .btn-cta-call,
    .btn-cta-whatsapp {
        min-width: 280px;
        min-height: 110px;
    }
    
    .hero-features-optimized {
        gap: 3rem;
    }
    
    .feature-item-opt {
        min-width: 140px;
    }
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Performance Optimizations */
.hero-section * {
    will-change: auto;
}

.hero-section:hover * {
    will-change: transform;
}

/* Print Styles */
@media print {
    .hero-section {
        background: #007bff;
        color: #fff;
        min-height: 50vh;
    }
    
    .hero-overlay,
    .hero-bg {
        display: none;
    }
}
