/* ==========================================================================
   Signal Booster Mumbai — Universal Viewport & Responsive Layout Reset
   Ensures 100% responsive rendering on first page load, refresh & direct visits.
   Eliminates all horizontal overflow and prevents layout blowouts.
   ========================================================================== */

html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    box-sizing: border-box;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    position: relative;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure all media and embeds never exceed screen width */
img,
picture,
video,
canvas,
svg,
iframe {
    max-width: 100%;
    height: auto;
}

/* Constrain containers to viewport width across all breakpoints */
.container,
.container-fluid {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .container {
        width: 750px;
        max-width: 100%;
    }
}

@media (min-width: 992px) {
    .container {
        width: 970px;
        max-width: 100%;
    }
}

@media (min-width: 1200px) {
    .container {
        width: 1170px;
        max-width: 100%;
    }
}

/* Hero Banner Slider initial load protection */
#slider,
#slider .flexslider,
#slider .flex-viewport {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

#slider .slides img,
.flexslider .slides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* Prevent text and footer from overflowing on small mobile screens */
.bottom-footer,
.bottom-footer p,
.bottom-footer span,
#heading,
.heading-content,
.message-form,
.send-message {
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.send-message input,
.send-message textarea {
    max-width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   Signal Booster Mumbai — Modern, Responsive & Reliable Navigation System
   High-performance, lightweight, accessibility-first, and zero layout shift.
   ========================================================================== */

header {
    position: sticky;
    top: 0;
    z-index: 1011;
}

/* --- Top Header Bar --- */
.top-header {
    background-color: #0f172a;
    color: #e2e8f0;
    padding: 7px 0;
    font-size: 12px;
    line-height: 1.4;
    border-bottom: 2px solid #0284c7;
    position: relative;
    z-index: 1010;
}

.top-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-contact {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
}

.header-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-contact-item i {
    color: #38bdf8;
    font-size: 13px;
    transition: transform 0.2s ease;
}

.header-contact-item a,
.header-contact-item span {
    color: #e2e8f0;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.2px;
    transition: color 0.2s ease;
}

.header-contact-item a:hover {
    color: #38bdf8;
    text-decoration: none;
}

.header-contact-item:hover i {
    transform: scale(1.15);
}

/* --- Main Header Container --- */
#main-header {
    background: #ffffff;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    padding: 12px 0;
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.07);
    transition: all 0.25s ease;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
}

/* --- Logo (Explicit Overrides for Legacy CSS) --- */
.logo,
#main-header .logo {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: left !important;
    flex-shrink: 0;
}

.logo img,
#main-header .logo img {
    max-width: 175px;
    height: auto;
    display: block;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.logo:hover img {
    transform: scale(1.02);
    opacity: 0.95;
}

/* --- Desktop Navigation --- */
.main-menu,
#main-header .main-menu {
    flex: 1;
    margin: 0 20px;
    padding: 0;
}

.main-menu ul,
#main-header .main-menu ul {
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    display: flex !important;
    gap: 6px !important;
    justify-content: center !important;
    align-items: center !important;
}

.main-menu li,
#main-header .main-menu li {
    position: relative !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
    list-style: none !important;
}

.main-menu a,
#main-header .main-menu a {
    display: block !important;
    padding: 9px 14px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    color: #1e293b !important;
    text-transform: uppercase !important;
    letter-spacing: 0.4px !important;
    text-decoration: none !important;
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 14px;
    right: 14px;
    height: 2px;
    background: linear-gradient(90deg, #0284c7, #0ea5e9);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-menu a:hover {
    color: #0284c7 !important;
    background-color: #f0f9ff !important;
    text-decoration: none !important;
}

.main-menu a:focus-visible {
    outline: 2px solid #0284c7;
    outline-offset: 2px;
}

.main-menu a:hover::after,
.main-menu a:focus-visible::after {
    transform: scaleX(1);
}

.main-menu li.active a,
#main-header .main-menu li.active a {
    color: #0284c7 !important;
    background-color: #f0f9ff !important;
    font-weight: 700 !important;
}

.main-menu li.active a::after {
    transform: scaleX(1);
}

/* --- Search Box / Contact Info Header Widget --- */
.search-box,
#main-header .search-box {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #0284c7;
    text-align: left;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.search-box:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.search-box span {
    color: #334155;
    font-size: 12px;
    line-height: 1.5;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: block;
    white-space: nowrap;
}

.search-box span strong {
    color: #0f172a;
    font-weight: 700;
}

.search-box i {
    color: #0284c7;
    margin-right: 5px;
}

.search-box a {
    color: inherit;
    text-decoration: none;
}

.search-box a:hover {
    color: #0284c7;
    text-decoration: none;
}

/* --- Mobile Menu Toggle Button --- */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    font-size: 20px;
    color: #1e293b;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
}

.menu-toggle:hover {
    background-color: #f0f9ff;
    color: #0284c7;
    border-color: #bae6fd;
}

.menu-toggle:focus-visible {
    outline: 2px solid #0284c7;
    outline-offset: 2px;
}

.menu-toggle i {
    pointer-events: none;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.menu-toggle.is-active {
    background-color: #f0f9ff;
    color: #0284c7;
    border-color: #0284c7;
}

.menu-toggle.is-active i {
    transform: rotate(90deg);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
    .main-menu {
        margin: 0 10px;
    }

    .main-menu a,
    #main-header .main-menu a {
        padding: 8px 10px !important;
        font-size: 12.5px !important;
    }

    .search-box {
        padding: 5px 10px;
    }

    .search-box span {
        font-size: 11.5px;
    }
}

@media (max-width: 860px) {
    .search-box {
        display: none !important;
    }
}

/* Mobile & Tablet Drawer (max-width: 768px) */
@media (max-width: 768px) {
    .top-header {
        padding: 6px 0;
    }

    .top-header .container {
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
    }

    .header-contact {
        width: 100%;
        justify-content: space-around;
        margin: 0;
        gap: 12px;
    }

    .header-contact-item a,
    .header-contact-item span {
        font-size: 11.5px;
    }

    #main-header {
        padding: 10px 0;
    }

    .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo img,
    #main-header .logo img {
        max-width: 145px;
    }

    .menu-toggle {
        display: inline-flex;
        order: 2;
        margin-left: 12px;
    }

    /* Mobile Drawer with Smooth Animation */
    .main-menu,
    #main-header .main-menu {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff;
        border-top: 1px solid #e2e8f0;
        border-bottom: 2px solid #0284c7;
        box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.16);
        display: block !important;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: max-height 0.32s cubic-bezier(0.16, 1, 0.3, 1),
            opacity 0.22s ease,
            visibility 0.22s ease,
            transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        order: 3;
    }

    .main-menu.show,
    #main-header .main-menu.show {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .main-menu ul,
    #main-header .main-menu ul {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 10px 14px !important;
        gap: 4px !important;
        width: 100% !important;
        margin: 0 !important;
    }

    .main-menu li,
    #main-header .main-menu li {
        width: 100% !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .main-menu a,
    #main-header .main-menu a {
        padding: 12px 16px !important;
        border-radius: 8px;
        font-size: 14px !important;
        color: #1e293b !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        border: 1px solid transparent;
        text-align: left !important;
        -webkit-tap-highlight-color: transparent;
        transition: background-color 0.18s ease, color 0.18s ease;
    }

    .main-menu a::after {
        display: none !important;
    }

    .main-menu a:hover,
    .main-menu a:active,
    #main-header .main-menu a:hover,
    #main-header .main-menu a:active {
        background-color: #f8fafc !important;
        color: #0284c7 !important;
        border-color: #e2e8f0;
    }

    .main-menu li.active a,
    #main-header .main-menu li.active a {
        background-color: #f0f9ff !important;
        color: #0284c7 !important;
        border-color: #bae6fd;
        font-weight: 700 !important;
        border-left: 4px solid #0284c7 !important;
        padding-left: 14px !important;
    }
}

/* Extra Small Phones */
@media (max-width: 480px) {
    .header-contact {
        flex-direction: column;
        align-items: center;
        gap: 4px;
    }

    .header-contact-item a,
    .header-contact-item span {
        font-size: 11px;
    }

    .logo img,
    #main-header .logo img {
        max-width: 130px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .main-menu a,
    #main-header .main-menu a {
        padding: 11px 14px !important;
        font-size: 13.5px !important;
    }
}