/* Home Page Custom Styles */

/* 1. Mobile & Global Resets */
html, body {
    touch-action: pan-y !important;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
    .mad-product, 
    .mad-product *, 
    .owl-carousel, 
    .owl-carousel *, 
    .hero-carousel, 
    .hero-carousel *,
    .mad-grid-item,
    .mad-grid,
    .mad-owl-item,
    .owl-stage-outer,
    .owl-stage,
    .owl-item,
    .mad-products {
        touch-action: auto !important; /* Allow system to handle scrolling/gestures */
        -ms-touch-action: auto !important;
    }
    
    .owl-stage-outer.owl-grab {
        cursor: default !important;
    }
    
    .owl-carousel .owl-stage {
        touch-action: pan-y !important; /* Explicitly prioritize vertical scrolling within carousels */
    }
}

/* 2. Hero Carousel Custom Styles already in style.css, but ensure consistency */

/* 3. About Us Section */
.about-section {
    padding: 100px 0;
    background: #fdfdfd;
}

.about-image-wrapper {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.about-image-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.5s;
}

.about-image-wrapper img:hover {
    transform: scale(1.05);
}

.about-experience-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-badge-icon {
    width: 50px;
    height: 50px;
    background: #f97316;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.about-badge-text h6 {
    margin: 0;
    font-weight: 800;
    font-size: 1rem;
    color: #1e293b;
}

.about-badge-text p {
    margin: 0;
    font-size: 0.8rem;
    color: #64748b;
}

.about-content-col {
    padding-left: 50px;
}

.about-tagline {
    color: #f97316;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.about-title {
    font-size: 3rem;
    font-weight: 900;
    color: #1e293b;
    line-height: 1.1;
    margin-bottom: 25px;
}

.about-title span {
    color: #f97316;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 30px;
}

.about-trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.trust-icon {
    color: #f97316;
    background: rgba(249, 115, 22, 0.1);
    padding: 8px;
    border-radius: 10px;
}

.trust-text h6 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.trust-text p {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

.about-cta-btn {
    background: #1e293b;
    color: #fff !important;
    padding: 18px 40px;
    border-radius: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    text-decoration: none;
}

.about-cta-btn:hover {
    background: #f97316 !important;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
}

/* 4. Testimonials Section */
.testimonials-section {
    background: #fdfefd;
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tagline {
    color: #f97316;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-main-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1e293b;
}

.testimonial-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    border-color: #f97316;
}

.testimonial-stars {
    color: #f59e0b;
    margin-bottom: 20px;
    font-size: 1.25rem;
}

.testimonial-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #475569;
    font-style: italic;
    margin-bottom: 30px;
    flex: 1;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

.user-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f1f5f9;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info h6 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #1e293b;
}

.user-status {
    font-size: 0.85rem;
    color: #f97316;
    font-weight: 600;
}

/* 5. CTA Premium Section */
.cta-premium-section {
    background: linear-gradient(135deg, #c2410c 0%, #1e4f6e 100%);
    margin-top: 60px;
    padding: 80px 0 !important;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(194, 65, 12, 0.15);
}

.cta-decoration-1 {
    position: absolute;
    top: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(70,166,156,0.15) 0%, rgba(70,166,156,0) 70%);
    border-radius: 50%;
}

.cta-decoration-2 {
    position: absolute;
    bottom: -80px;
    right: 5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.cta-inner {
    position: relative;
    z-index: 2;
}

.cta-subtitle {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(249, 115, 22, 0.15);
    color: #4de0d2;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.cta-title {
    color: #ffffff;
    font-weight: 900;
    font-size: 3rem !important;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.cta-highlight {
    position: relative;
    z-index: 1;
}

.cta-highlight svg {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    z-index: -1;
}

.cta-text {
    color: #cbd5e1;
    font-size: 1.15rem;
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    padding-right: 20px;
}

.cta-btns {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: flex-end;
}

.cta-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f97316;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.3);
    border: 2px solid #f97316;
    width: 100%;
    max-width: 320px;
}

.cta-primary-btn i {
    margin-left: 10px;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.cta-primary-btn:hover {
    background: #ffffff;
    color: #f97316 !important;
    box-shadow: 0 15px 30px rgba(249, 115, 22, 0.4);
    transform: translateY(-3px);
}

.cta-primary-btn:hover i {
    transform: translateX(5px);
}

.cta-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 16px 45px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 100%;
    max-width: 320px;
}

.cta-secondary-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-3px);
}

@media (max-width: 991px) {
    .cta-premium-section {
        padding: 60px 20px !important;
        text-align: center !important;
    }
    .cta-premium-section .col-lg-7 {
        text-align: center !important;
        padding-right: 0 !important;
    }
    .cta-title {
        font-size: 2.2rem !important;
    }
    .cta-text {
        margin: 0 auto 30px auto !important;
        padding-right: 0 !important;
    }
    .cta-btns {
        align-items: center !important;
        width: 100%;
    }
    .cta-primary-btn, .cta-secondary-btn {
        max-width: 100%;
    }
}

/* 6. Newsletter Section */
.newsletter-section {
    background: #f97316;
    padding: 80px 0;
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.newsletter-title {
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 10px;
    font-size: 2rem;
}

.newsletter-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.1rem;
    margin-bottom: 0;
}

.newsletter-form-wrapper {
    display: flex;
    background: #ffffff;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.newsletter-input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    color: #1e293b;
    background: transparent;
    outline: none;
}

.newsletter-submit {
    background: #1e293b;
    color: #ffffff;
    padding: 15px 35px;
    border-radius: 40px;
    font-weight: 700;
    border: none;
    transition: 0.3s;
    cursor: pointer;
}

.newsletter-submit:hover {
    background: #334155;
}

@media (max-width: 991px) {
    .about-content-col {
        padding-left: 15px;
        margin-top: 40px;
    }
    .about-title {
        font-size: 2.2rem;
    }
    .cta-inner .col-lg-7 {
        text-align: center;
    }
}

/* 7. Natural Care Banner Enhancements - Matching premium aesthetic */
.mad-banner.banner-small {
    min-height: 520px;
    border-radius: 24px;
    padding: 2.5rem 1.5rem !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: center !important;
    background-size: cover !important;
    background-position: center !important;
    position: relative;
    overflow: hidden;
    gap: 30px;
}

.mad-banner.banner-small::before {
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.15));
}

.mad-banner.banner-small .mad-col {
    margin-bottom: 0 !important;
    padding: 0 !important;
    width: 100%;
}

.mad-banner.banner-small h4.mad-title {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 5px !important;
}

.mad-banner.banner-small h6.mad-title {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    opacity: 0.95;
}

.mad-banner.banner-small .content-element {
    background: #ffffff !important;
    color: #1e293b !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    display: inline-block !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    margin: 40px auto 20px auto !important;
}

.mad-banner.banner-small .btn {
    background: #f97316 !important;
    color: #ffffff !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    padding: 18px 30px !important;
    border-radius: 18px !important;
    width: 90% !important;
    max-width: 240px;
    margin: 0 auto;
    box-shadow: 0 8px 15px rgba(249, 115, 22, 0.4);
    transition: all 0.3s ease;
    border: none !important;
}

.mad-banner.banner-small .btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 25px rgba(249, 115, 22, 0.5);
    background: #ea580c !important;
}

@media (max-width: 1199px) {
    .mad-banner.banner-small {
        min-height: 480px;
    }
    .mad-banner.banner-small h4.mad-title {
        font-size: 1.8rem !important;
    }
}

/* 8. Two-Column Promotional Banners Readability Enhancements */
.mad-banners.two-coll .mad-banner {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    padding: 3rem 2rem !important;
}

.mad-banners.two-coll .mad-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Darker gradient from left for maximum text contrast */
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.mad-banners.two-coll .mad-banner > * {
    position: relative;
    z-index: 2;
}

.mad-banners .mad-title {
    text-shadow: 0 4px 20px rgba(0,0,0,0.8), 0 0 10px rgba(0,0,0,0.4) !important;
    letter-spacing: -0.5px;
}

.mad-banners .color-white {
    color: #ffffff !important;
}

.mad-banners .color-blue {
    color: #4dd0e1 !important; /* Extremely vibrant cyan-blue for contrast */
    text-shadow: 0 0 20px rgba(77, 208, 225, 0.4), 0 4px 10px rgba(0,0,0,0.8) !important;
}

.mad-banners .banner-list li {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mad-banners .banner-list li i, 
.mad-banners .banner-list li span {
    color: #4dd0e1 !important;
}

.mad-banners .btn {
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

@media (max-width: 767px) {
    .mad-banners.two-coll .mad-banner {
        padding: 2rem 1.5rem !important;
    }
    .mad-banners.two-coll .mad-banner::before {
        background: rgba(0,0,0,0.4); /* Solid overlay on mobile for best readability */
    }
}

/* 9. Trust Grid Icon Centering & Styling Fix */
.mad-icon-box-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 60px !important;
    height: 60px !important;
    line-height: 1 !important;
    background: #e0f2fe !important; /* Soft blue background */
    color: #f97316 !important; /* Orange icon */
    border-radius: 50% !important;
    font-size: 24px !important;
    margin-right: 15px !important;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* Ensure FontAwesome pseudo-elements don't have offsets */
.mad-icon-box-icon::before {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    position: relative;
    z-index: 2;
}

/* Remove theme's secondary background circles */
.mad-icon-box-icon::after {
    display: none !important;
}
