/* 
   Mobile Styles for Pressure Washing Theme 
   This file handles all responsiveness up to max-width: 900px.
*/

@media (min-width: 901px) {
    .mobile-menu-btn {
        display: none;
    }
    .mobile-menu-wrapper {
        display: flex;
        align-items: center;
        gap: 30px;
    }
    .mobile-menu-logo {
        display: none;
    }
}

@media (max-width: 900px) {
    /* Header & Mobile Menu */
    .site-header {
        border-radius: 20px;
        padding: 15px 20px;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 1.8rem;
        color: #0369A1;
        cursor: pointer;
        z-index: 2001; /* Keep it above the popup wrapper */
        padding: 10px;
    }

    .mobile-menu-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: #F8F5EE;
        z-index: 2000;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        padding: 40px 20px;
        overflow-y: auto;
    }

    .mobile-menu-logo {
        margin-bottom: 40px;
    }

    .mobile-menu-logo img {
        max-height: 80px;
        width: auto;
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    body.mobile-menu-open .mobile-menu-wrapper {
        opacity: 1;
        visibility: visible;
    }

    body.mobile-menu-open .mobile-menu-wrapper .header-nav {
        display: flex !important;
        width: 100%;
        margin-top: 0;
    }

    body.mobile-menu-open .mobile-menu-wrapper .header-nav ul {
        flex-direction: column;
        gap: 25px;
        align-items: center;
        width: 100%;
    }

    body.mobile-menu-open .mobile-menu-wrapper .header-nav ul li {
        width: 100%;
        text-align: center;
    }

    body.mobile-menu-open .mobile-menu-wrapper .header-nav ul li a {
        font-size: 1.6rem;
        display: inline-block;
    }

    /* Sub-menu Toggle State */
    .mobile-submenu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        color: #0369A1;
        cursor: pointer;
        margin-left: 10px;
        vertical-align: middle;
        transition: transform 0.3s ease;
    }
    
    .mobile-submenu-toggle.is-open {
        transform: rotate(180deg);
    }

    body.mobile-menu-open .mobile-menu-wrapper .header-nav ul .sub-menu {
        position: static;
        transform: none;
        display: none; /* Initially hidden */
        box-shadow: none;
        margin-top: 15px;
        background: transparent;
        width: 100%;
        padding: 0;
        gap: 15px;
        opacity: 1;
        visibility: visible;
    }
    
    body.mobile-menu-open .mobile-menu-wrapper .header-nav ul .sub-menu.is-open {
        display: flex;
    }
    
    body.mobile-menu-open .mobile-menu-wrapper .header-nav ul .sub-menu li a {
        font-size: 1.2rem;
        color: #555;
    }

    body.mobile-menu-open .mobile-menu-wrapper .header-cta {
        margin-top: 50px;
        font-size: 1.4rem;
        justify-content: center;
        display: inline-flex;
    }

    /* General site responsiveness */
    .custom-hero {
        padding: 100px 20px 80px 20px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }

    /* Steps Section Buttons responsiveness (For the 1. CONNECT WITH THE TEAM block) */
    .steps-panel-btns {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        align-items: center !important;
        width: 100% !important;
    }

    .steps-panel-btns .hero-btn {
        width: 100% !important;
        max-width: 350px !important;
        justify-content: space-between !important;
    }

    /* Fix Squished Contact Form layout */
    .contact-page-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    /* Restore Steps Arrows on Mobile */
    .steps-arrow {
        display: flex !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 0.95rem !important;
    }
    .steps-arrow.prev-arrow { left: -10px !important; }
    .steps-arrow.next-arrow { right: -10px !important; }
}

@media (max-width: 480px) {
    .trust-card, .service-card, .faq-item, .rescom-slide-item .rescom-slide-middle {
        flex-direction: column;
        text-align: center;
    }
    .rescom-col-center, .rescom-col-left, .rescom-col-right {
        margin: 0 !important;
    }
}
