/* ================================
   Mobile Hero Section Optimizations
   Mobile-first responsive design
   ================================ */

/* Sticky CTA Bar for Mobile */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #FF8C00 0%, #FF6A00 100%);
    padding: 12px 20px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    animation: slideUpCTA 0.4s ease-out;
    border-top: 2px solid #FFB347;
}

@keyframes slideUpCTA {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.mobile-sticky-cta .cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
}

.mobile-sticky-cta .cta-text {
    flex: 1;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    margin-right: 12px;
}

    .mobile-sticky-cta .cta-text .price {
        font-size: 18px;
        font-weight: 700;
        display: block;
        margin-top: 2px;
    }

.mobile-sticky-cta .cta-button {
    background: #fff;
    color: #FF6A00;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .mobile-sticky-cta .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        color: #FF6A00;
    }

    .mobile-sticky-cta .cta-button i {
        font-size: 12px;
    }

/* Show sticky CTA only on mobile/tablet */
@media (max-width: 991px) {
    .mobile-sticky-cta {
        display: block;
    }

    /* Add bottom padding to body to prevent content being hidden by sticky bar */
    body {
        padding-bottom: 70px;
    }
}

/* Hide on very small screens to show simplified version */
@media (max-width: 360px) {
    .mobile-sticky-cta .cta-text {
        font-size: 12px;
    }

        .mobile-sticky-cta .cta-text .price {
            font-size: 16px;
        }

    .mobile-sticky-cta .cta-button {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ================================
   Mobile Hero Section Layout
   Form appears above image on mobile
   ================================ */

@media (max-width: 991px) {
    /* Reverse column order on mobile: content first, then image */
    /*.hero-wrapper-one .single-hero-slider .row {
        flex-direction: column-reverse;
    }*/

    .hero-wrapper-one .single-hero-slider .col-lg-6 {
        width: 100%;
        max-width: 100%;
    }

    /* Hero Content Mobile Optimization */
    .hero-content.style-one {
        text-align: center;
        padding: 40px 15px;
        margin-bottom: 30px;
    }

        .hero-content.style-one .sub-heading {
            font-size: 18px;
            margin-bottom: 15px;
        }

        .hero-content.style-one h1 {
            font-size: 28px;
            line-height: 1.3;
            margin-bottom: 12px;
        }

            .hero-content.style-one h1 span {
                font-size: 42px;
                display: block;
                margin: 8px 0;
            }

        .hero-content.style-one h1.pricing {
            font-size: 20px;
            margin-bottom: 15px;
        }

        .hero-content.style-one p {
            font-size: 15px;
            line-height: 1.6;
            margin-bottom: 15px;
        }

            .hero-content.style-one p b {
                display: block;
                margin-top: 8px;
            }

    /* Hero Image Mobile Optimization */
    .hero-wrapper-one .hero-image-box {
        width: 100%;
        height: auto;
        max-height: 350px;
        margin: 0 auto 20px;
    }

        .hero-wrapper-one .hero-image-box .hero-image img {
            border-radius: 20px;
        }

    /* Mobile CTA Buttons */
    .hero-content.style-one ul {
        flex-direction: column;
        gap: 12px;
    }

        .hero-content.style-one ul li {
            width: 100%;
        }

            .hero-content.style-one ul li .theme-btn {
                width: 100%;
                text-align: center;
                padding: 16px 30px;
                font-size: 16px;
            }
}

/* ================================
   High Contrast & Accessibility
   Ensures WCAG AAA compliance
   ================================ */

/* Enhanced contrast for text on mobile */
@media (max-width: 991px) {
    .hero-content.style-one h1,
    .hero-content.style-one h2,
    .hero-content.style-one h3 {
        color: #000;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    }

    .hero-content.style-one p {
        color: #1E1E2A;
    }

    .hero-content.style-one .color-black {
        color: #000 !important;
        font-weight: 700;
    }

    /* High contrast link */
    .hero-content.style-one a {
        color: #ff6a00;
        text-decoration: underline;
        font-weight: 700;
    }
    .home .hero-content.style-one a {
        color: #ffff;
        text-decoration:none;
        font-weight: 700;
    }

        .hero-content.style-one a:hover,
        .hero-content.style-one a:focus {
            color: #cc5500;
            text-decoration: none;
            outline: 2px solid #ff6a00;
            outline-offset: 2px;
        }
}

/* Focus indicators for accessibility */
.mobile-sticky-cta .cta-button:focus,
.hero-content.style-one .theme-btn:focus {
    outline: 3px solid #FFB347;
    outline-offset: 3px;
}

/* ================================
   Tablet Landscape Optimization
   ================================ */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-content.style-one h1 {
        font-size: 36px;
    }

        .hero-content.style-one h1 span {
            font-size: 52px;
        }

    .hero-wrapper-one .hero-image-box {
        max-height: 450px;
    }

    .mobile-sticky-cta .cta-text {
        font-size: 15px;
    }

        .mobile-sticky-cta .cta-text .price {
            font-size: 20px;
        }

    .mobile-sticky-cta .cta-button {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* ================================
   Extra Small Mobile (320px - 480px)
   ================================ */
@media (max-width: 480px) {
    .hero-wrapper-one {
        padding: 20px 0 0px;
    }

    .hero-content.style-one {
        padding: 10px 10px;
    }
    h1.pricing-line .month-text {
        font-size: 11px !important;
    }
    .hero-content.style-one h1 span {
        font-size: 42px !important;
    }
        .hero-content.style-one .sub-heading {
            font-size: 16px;
        }

        .hero-content.style-one h1 {
            font-size: 24px;
        }

            .hero-content.style-one h1 span {
                font-size: 36px;
            }

        .hero-content.style-one h1.pricing {
            font-size: 18px;
        }

        .hero-content.style-one p {
            font-size: 14px;
        }

    .hero-wrapper-one .hero-image-box {
        max-height: 280px;
    }
}

/* ================================
   Loading Animation for Mobile
   ================================ */
@media (max-width: 991px) {
    .hero-wrapper-one {
        animation: fadeInUp 0.6s ease-out;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ================================
   Dark Mode Support (Optional)
   ================================ */
@media (prefers-color-scheme: dark) and (max-width: 991px) {
    .mobile-sticky-cta {
        background: linear-gradient(135deg, #D96500 0%, #D95500 100%);
        border-top-color: #FF9447;
    }

    .mobile-sticky-cta .cta-button {
        background: #1E1E2A;
        color: #FFB347;
    }
}

/* ================================
   Reduced Motion Support
   ================================ */
@media (prefers-reduced-motion: reduce) {
    .mobile-sticky-cta {
        animation: none;
    }

    .hero-wrapper-one {
        animation: none;
    }

    .mobile-sticky-cta .cta-button {
        transition: none;
    }
}
