/* ============================================================
   SHARED MOBILE NAV — Mumbai Eye Care
   Applied to all pages via <link rel="stylesheet" href="css/mobile-nav.css">
   All classes prefixed with mec- to avoid conflicts
   ============================================================ */

/* ---------- Logo sizing (consistent across all pages) ---------- */

/* Mobile logo inside mec-mobile-header */
.mec-logo-img {
    max-height: 70px !important;
    width: auto !important;
    display: block;
}

/* Desktop logo on inner pages — same 90px height as home page */
.navbar-brand.logo {
    height: 90px !important;
    line-height: 90px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
}

.navbar-brand.logo .logo-1,
.navbar-brand.logo .logo-1-new {
    max-height: 67px !important;
    width: auto !important;
}

/* Ensure the navbar-header and navbar grow to fit the 90px logo */
.navbar-main .navbar-header {
    height: 90px !important;
    display: flex !important;
    align-items: center !important;
}

/* desktop only — moved below into @media (min-width:992px) */


/* ---------- Mobile header bar (logo left, hamburger right) ---------- */
.mec-mobile-header {
    display: none;
    position: relative;
    z-index: 9990;
    background: #fff;
    border-bottom: 1px solid #dcdcdc;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

.mec-mobile-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.mec-mobile-logo {
    display: flex;
    align-items: center;
    height: 70px;
    text-decoration: none;
}

/* ---------- Hamburger button ---------- */
.mec-hamburger {
    display: none;
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px 10px;
    cursor: pointer;
    line-height: 1;
    flex-shrink: 0;
}

.mec-hamburger .icon-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #555;
    margin: 4px 0;
    border-radius: 1px;
}

/* ---------- Overlay ---------- */
.mec-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.52);
    z-index: 1000000;
}

.mec-nav-overlay.mec-active {
    display: block;
}

/* ---------- Slide-in drawer (from right) ---------- */
.mec-mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 1000001;
    overflow-y: auto;
    transition: right 0.3s ease;
    box-shadow: -3px 0 15px rgba(0, 0, 0, 0.15);
}

.mec-mobile-drawer.mec-open {
    right: 0;
}

/* ---------- Drawer close button (× top right) ---------- */
.mec-drawer-close {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 15px;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    box-sizing: border-box;
}

.mec-drawer-close-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f0f0f0;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    line-height: 1;
    cursor: pointer;
    border: 1px solid #ccc;
}

.mec-drawer-close-icon:hover {
    background: #139099;
    color: #fff;
    border-color: #139099;
}

/* ---------- Drawer nav list ---------- */
.mec-drawer-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 2px solid #139099;
}

.mec-drawer-nav li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 20px;
    color: #222;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mec-drawer-nav li a:hover {
    background: #f5f5f5;
    color: #139099;
}

/* Expand/collapse toggle icon */
.mec-expand-icon {
    font-size: 18px;
    font-weight: 300;
    color: #aaa;
    flex-shrink: 0;
    margin-left: 8px;
}

/* Sub-menu */
.mec-drawer-submenu {
    display: none;
    background: #f9f9f9;
    list-style: none;
    margin: 0;
    padding: 0;
}

.mec-drawer-submenu li a {
    padding: 10px 20px 10px 32px;
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: #444;
}

.mec-drawer-submenu li a:hover {
    color: #139099;
}

.mec-drawer-parent.mec-expanded>a .mec-expand-icon {
    color: #139099;
}

.mec-drawer-parent.mec-expanded .mec-drawer-submenu {
    display: block;
}

/* ---------- Responsive breakpoints ---------- */
@media (max-width: 991px) {
    .mec-mobile-header {
        display: block;
    }

    .mec-hamburger {
        display: block;
    }

    /* collapse the head-wrap so its forced min-height doesn't leave a white gap */
    header.head-wrap {
        min-height: 0 !important;
        overflow: hidden;
    }

    /* kill Bootstrap's .navbar base: min-height:50px and margin-bottom:20px */
    .navbar {
        min-height: 0 !important;
        margin-bottom: 0 !important;
    }

    /* kill the 60px top-padding on .header .navbar from mumbai-eye-care.css */
    .header .navbar {
        padding: 0 !important;
        margin: 0 !important;
        height: 0 !important;
    }

    .header .navbar-header {
        padding: 0 !important;
        margin: 0 !important;
        height: 0 !important;
    }

    /* zero out container/row spacing inside the collapsed header */
    header.head-wrap .container-fluid,
    header.head-wrap .row {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* hide old Bootstrap hamburger & navbar-toggle if still in DOM */
    .navbar-toggle {
        display: none !important;
    }

    /* hide desktop collapse nav in mobile */
    .navbar-main .collapse.navbar-collapse {
        display: none !important;
    }

    /* hide pc-only top nav strips and desktop logo row */
    #top-nav1,
    #top-nav-new-fixed {
        display: none !important;
    }

    /* explicitly hide the desktop logo strip row (index.html) */
    .idx-logo-nav-strip {
        display: none !important;
    }

    /* also hide the old Bootstrap brand logo that shows in the header on mobile */
    .navbar-main .navbar-header .navbar-brand {
        display: none !important;
    }

    /* mobile logo row height */
    .header .navbar-main {
        min-height: 0 !important;
    }
}

@media (min-width: 992px) {
    .mec-mobile-header {
        display: none !important;
    }

    .mec-hamburger {
        display: none !important;
    }

    .mec-nav-overlay {
        display: none !important;
    }

    .mec-mobile-drawer {
        display: none !important;
    }

    /* desktop logo row height */
    .header .navbar-main {
        min-height: 90px !important;
    }
}