/* ========================================
   Mobile Responsive Fixes & Enhancements
   ======================================== */

/* Mobile Menu Bar with Logo */
.mean-container .mean-bar {
    background: #19142d;
    min-height: 70px;
    padding: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Mobile Logo Styling */
.mean-container .mean-bar::before {
    content: "";
    background-image: url('../images/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 60px;
    height: 60px;
    position: absolute;
    right: 70px;
    top: 5px;
    /* Golden filter removed - logo displays in original colors */
}

/* Alternative: If you want to use text logo */
.mobile-logo-text {
    display: none;
}

@media (max-width: 991px) {
    .mobile-logo-text {
        display: block;
        position: absolute;
        right: 70px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 20px;
        font-weight: 700;
        color: #FFD700;
        text-decoration: none;
        z-index: 1000;
    }
}

/* Mobile Menu Toggle Button */
.mean-container a.meanmenu-reveal {
    padding: 15px;
    top: 50%;
    transform: translateY(-50%);
    left: 15px;
}

/* Mobile Navigation Improvements */
.mean-container .mean-nav {
    background: #fff;
}

.mean-container .mean-nav ul li {
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.mean-container .mean-nav ul li a {
    background: #fff;
    color: #141422;
    font-size: 16px;
    padding: 15px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mean-container .mean-nav ul li a:hover {
    background: #f5f5f5;
    color: #B8860B;
    padding-left: 25px;
}

/* Sub-menu styling */
.mean-container .mean-nav ul li li a {
    background: #f9f9f9;
    color: #141422;
    padding: 12px 20px 12px 40px;
    font-size: 15px;
}

.mean-container .mean-nav ul li li a:hover {
    background: #f0f0f0;
    color: #B8860B;
}

/* Expand button for sub-menus */
.mean-container .mean-nav ul li a.mean-expand {
    background: transparent;
    color: #B8860B;
    font-size: 18px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    top: 5px;
}

/* ========================================
   General Mobile Responsive Fixes
   ======================================== */

/* Ensure proper viewport behavior */
@media (max-width: 991px) {
    
    /* Hide desktop header on mobile */
    .roofing-topbar-section,
    .roofing-header-section {
        display: none !important;
    }
    
    /* Show mobile menu */
    .mobile-menu-area {
        display: block !important;
    }
    
    /* Container padding adjustments */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Hero/Slider Section */
    .slider-section {
        min-height: 60vh;
        padding: 80px 0 40px;
    }
    
    .slider-content {
        padding: 40px 0;
        text-align: center;
    }
    
    .slider-content h1,
    .hero-main-title,
    .hero-title {
        font-size: 32px !important;
        line-height: 1.3 !important;
        margin-bottom: 15px;
    }
    
    .slider-content h4,
    .hero-subtitle {
        font-size: 16px !important;
        margin-bottom: 10px;
    }
    
    .slider-content p,
    .hero-description {
        font-size: 16px !important;
        line-height: 1.6 !important;
        width: 100% !important;
        margin: 20px 0 30px;
    }
    
    /* Buttons */
    .roofing-btn {
        margin: 10px 5px;
        display: inline-block;
    }
    
    .roofing-btn a {
        padding: 12px 20px;
        font-size: 15px;
        display: inline-block;
    }
    
    .roofing-btn.slider2 {
        margin-left: 5px;
    }
    
    /* Section Titles */
    .section-main-title h2,
    .about-section-main-title h2 {
        font-size: 28px !important;
        line-height: 1.3 !important;
        margin-bottom: 20px;
    }
    
    .section-sub-title h4 {
        font-size: 18px !important;
    }
    
    /* Why Choose Section */
    .why-choose-section {
        padding: 60px 0;
    }
    
    .why-section-title {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }
    
    .why-section-description {
        font-size: 16px !important;
    }
    
    .why-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .why-item {
        padding: 30px 20px;
    }
    
    /* About Section */
    .about-section {
        padding: 60px 0;
    }
    
    .about-thumb {
        margin-bottom: 30px;
    }
    
    .about-text {
        position: static;
        margin-bottom: 20px;
    }
    
    .about-shape {
        display: none;
    }
    
    .about-list ul li {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .about-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .about-us-icon {
        margin-left: 0;
        margin-bottom: 15px;
    }
    
    .about-us-phone {
        margin-left: 0;
    }
    
    /* Service Section */
    .service-section {
        padding: 60px 0;
    }
    
    .service-box {
        margin-bottom: 30px;
    }
    
    .service-main-content {
        width: 90%;
        height: auto;
        padding: 15px;
    }
    
    .service-main-title h3 {
        font-size: 18px;
        line-height: 1.4;
    }
    
    /* Offer Section */
    .offer-section {
        padding: 60px 0;
    }
    
    .offer-content {
        margin-left: 0;
        margin-bottom: 30px;
    }
    
    .offer-thumb {
        margin-top: 0;
    }
    
    /* Counter Section */
    .counter-section {
        padding: 60px 0;
    }
    
    .counter-item-box {
        margin-bottom: 20px;
        padding: 20px;
        text-align: center;
    }
    
    .counter-icon {
        float: none;
        margin: 0 auto 15px;
        display: block;
    }
    
    .counter-number h2,
    .counter-number span {
        font-size: 36px;
    }
    
    .counter-text p {
        font-size: 18px;
    }
    
    /* Call to Action */
    .row.call-do {
        padding: 40px 20px;
    }
    
    .call-do-title {
        text-align: center;
        margin-bottom: 20px;
    }
    
    .call-do-title h4 {
        font-size: 24px;
        line-height: 1.4;
    }
    
    .col-do-icon {
        text-align: center;
        margin-left: 0;
    }
    
    /* Team Section */
    .team-section {
        padding: 60px 0;
    }
    
    .team-items-box {
        margin-bottom: 30px;
    }
    
    /* Portfolio Section */
    .portfolio-section {
        padding: 60px 0;
    }
    
    .portfolio-itmes-box {
        margin-bottom: 20px;
    }
    
    .portfolio-content-text {
        width: 90%;
    }
    
    /* Testimonial Section */
    .testimonial-section {
        padding: 60px 0;
    }
    
    .testi-itmes-box {
        padding: 30px 15px;
        margin-bottom: 20px;
    }
    
    .testi-content p {
        font-size: 15px;
        line-height: 1.6;
    }
    
    /* Blog Section */
    .blog-section {
        padding: 60px 0;
    }
    
    .blog-items-box {
        margin-bottom: 30px;
    }
    
    .blog-content {
        padding: 20px 15px;
    }
    
    .blog-thumb.two {
        float: none;
        margin-bottom: 20px;
    }
    
    .blog-thumb.two img {
        width: 100%;
    }
    
    /* Get Started Section */
    .get-strat-section {
        padding: 60px 0;
    }
    
    .get-strat-section .section-main-title h2 {
        font-size: 28px !important;
        line-height: 1.3 !important;
    }
    
    /* Form Elements */
    .form-box input,
    .form-box select,
    .form-box textarea {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .form-box-button button {
        width: 100%;
        padding: 15px;
    }
    
    /* Footer */
    .footer-section {
        padding: 60px 0 0;
    }
    
    .footer-wiget {
        margin-bottom: 30px;
    }
    
    .footer-thumb,
    .footer-icon,
    .footer-shape {
        display: none;
    }
    
    .copyright-text,
    .footer-condition {
        text-align: center;
    }
    
    .footer-condition ul li {
        display: block;
        margin: 10px 0;
    }
    
    /* Owl Carousel Navigation */
    .owl-nav {
        position: static;
        text-align: center;
        margin-top: 20px;
    }
    
    .owl-prev,
    .owl-next {
        display: inline-block;
        margin: 0 5px;
    }
    
    .owl-prev i,
    .owl-next i {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 20px;
    }
    
    /* WhatsApp Button */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-icon {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
    
    /* Tables */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Progress Bar */
    .barfiller {
        width: 100% !important;
    }
    
    /* Choose Us Box */
    .choose-us-box {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .choose-icon-thumb {
        float: none;
        margin: 0 auto 15px;
        display: block;
        text-align: center;
    }
    
    .choose-icon-thumb::before {
        display: none;
    }
    
    .choose-content {
        text-align: center;
    }
}

/* Tablet Specific Adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .slider-content h1,
    .hero-main-title,
    .hero-title {
        font-size: 42px !important;
    }
    
    .section-main-title h2 {
        font-size: 36px !important;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .counter-item-box {
        display: flex;
        align-items: center;
        text-align: left;
    }
    
    .counter-icon {
        float: left;
        margin-right: 20px;
    }
}

/* Small Mobile Specific */
@media (max-width: 480px) {
    .slider-content h1,
    .hero-main-title,
    .hero-title {
        font-size: 26px !important;
    }
    
    .section-main-title h2 {
        font-size: 24px !important;
    }
    
    .roofing-btn a {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .why-icon {
        width: 60px;
        height: 60px;
    }
    
    .why-icon i {
        font-size: 28px;
    }
    
    .why-title {
        font-size: 18px;
    }
    
    .why-description {
        font-size: 14px;
    }
}

/* Landscape Mobile */
@media (max-width: 991px) and (orientation: landscape) {
    .slider-section {
        min-height: 50vh;
    }
}

/* Fix for sticky mobile menu */
.mobile-menu-area.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Ensure content doesn't hide under fixed mobile menu */
@media (max-width: 991px) {
    body.mobile-menu-active {
        padding-top: 70px;
    }
}
