/* Mobile Responsiveness Improvements for Manchester Daycare */

/* Hide contact section on mobile devices */
@media only screen and (max-width: 767px) {

    /* Hide the header-top section completely on mobile */
    .main-header .header-top {
        display: none !important;
    }

    /* Improve logo spacing and presentation on mobile */
    .main-header .header-upper {
        padding-top: 5px;
        padding-bottom: 3px;
    }

    /* Make auto-container flexbox to align logo and nav on same line */
    .main-header .header-upper .auto-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .main-header .logo-outer {
        text-align: left;
        padding: 3px 0;
        margin: 0;
        flex: 0 0 auto;
    }

    .main-header .logo-outer .logo {
        margin-top: 0 !important;
        text-align: left;
    }

    .main-header .logo-outer .logo img {
        height: 130px !important;
        width: auto;
        max-width: 100%;
    }

    /* Position nav-outer to the right */
    .main-header .nav-outer {
        margin-top: 0;
        flex: 0 0 auto;
    }

    /* Improve mobile menu button positioning */
    .main-menu .navbar-header .navbar-toggle {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* Hide search box on mobile */
    .main-header .search-box-outer {
        display: none !important;
    }

    /* Responsive container adjustments */
    .main-header .auto-container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Tablet specific adjustments */
@media only screen and (min-width: 768px) and (max-width: 1023px) {

    /* Keep header-top visible on tablets but make it more compact */
    .main-header .header-top {
        padding: 8px 0;
    }

    .main-header .header-top .top-left ul li,
    .main-header .header-top .top-right ul li {
        font-size: 13px;
        margin: 0 5px;
    }

    /* Slightly smaller logo on tablets */
    .main-header .logo-outer .logo img {
        height: 130px !important;
    }
}

/* Extra small mobile devices */
@media only screen and (max-width: 480px) {

    /* Further optimize for very small screens */
    .main-header .header-upper {
        padding-top: 3px;
        padding-bottom: 2px;
    }

    .main-header .logo-outer {
        padding: 2px 0;
    }

    .main-header .logo-outer .logo img {
        height: 105px !important;
    }
}

/* Sticky header adjustments for mobile */
@media only screen and (max-width: 767px) {
    .sticky-header {
        display: none !important;
    }
}
