/* ==========================================================================
   MANASVI HEALTHCARE - ENHANCED RESPONSIVE STYLESHEET
   Comprehensive Support for 1680px, 1440px, 1200px, 992px, 768px, 480px, 375px, 320px
   ========================================================================== */

/* Large Desktop (1680px and down) */
@media (max-width: 1680px) {
    .mh-container {
        padding: 0 28px;
    }
}

/* Standard Desktop / Laptop (1440px and down) */
@media (max-width: 1440px) {
    .mh-hero__content {
        padding: 56px 32px 56px 28px;
    }

    .mh-hero__title {
        font-size: 2.5rem;
    }

    .mh-testi-slide {
        flex: 0 0 calc(33.333% - 16px);
        max-width: calc(33.333% - 16px);
    }
}

/* Medium Laptop (1200px and down) */
@media (max-width: 1200px) {
    .mh-hero__grid {
        grid-template-columns: 5.5fr 6.5fr;
    }

    .mh-hero__title {
        font-size: 2.25rem;
    }

    .mh-services__layout {
        grid-template-columns: 280px 1fr;
        gap: 32px;
    }

    .mh-industries__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }

    .mh-footer__grid {
        grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
        gap: 32px;
    }
}

/* Tablet Landscape & Portrait (991px and down) */
@media (max-width: 991px) {
    .mh-container {
        padding: 0 20px;
    }

    /* Mobile Single-Line Header: Logo Left + Hamburger Toggle Right, Hide Topbar Contacts & Outer CTA */
    .mh-site-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        position: sticky;
        top: 0;
        z-index: 1000;
        background-color: var(--mh-white);
        border-bottom: 1px solid var(--mh-border);
        padding: 10px 20px;
    }

    .mh-navbar.is-sticky {
        position: static;
        box-shadow: none;
    }

    .mh-topbar {
        background: transparent;
        border-bottom: none;
        padding: 0;
        flex: 1;
        min-width: 0;
    }

    .mh-topbar .mh-container {
        padding: 0;
    }

    .mh-topbar__inner {
        justify-content: flex-start;
    }

    .mh-topbar__contacts {
        display: none !important;
    }

    .mh-navbar {
        background: transparent;
        position: static;
        flex-shrink: 0;
    }

    .mh-navbar .mh-container {
        padding: 0;
    }

    .mh-navbar__cta {
        display: none !important;
    }

    .mh-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 5px;
        background-color: var(--mh-primary-navy);
        border-color: var(--mh-primary-navy);
        color: var(--mh-white);
    }

    .mh-menu-toggle:hover,
    .mh-menu-toggle:focus {
        background-color: var(--mh-secondary-navy);
        border-color: var(--mh-primary-green);
    }

    .mh-navbar__inner {
        position: static;
        min-height: auto;
        justify-content: flex-end;
    }

    .mh-nav-wrap {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--mh-primary-navy);
        border-top: 1px solid rgba(255, 255, 255, 0.14);
        box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease, visibility 0.25s;
        z-index: 1001;
    }

    .mh-nav-wrap.is-open {
        max-height: 650px;
        opacity: 1;
        visibility: visible;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .mh-nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px 20px 8px;
    }

    .mh-nav-menu > li > a {
        padding: 14px 0;
        font-size: 0.96rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mh-nav-menu > li:last-child > a {
        border-bottom: none;
    }

    .mh-nav-menu .sub-menu {
        display: none;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.06);
        border-top: none;
        border-left: 2px solid var(--mh-secondary-green);
        margin: 4px 0 10px 8px;
        padding: 6px 0 6px 14px;
        border-radius: 4px;
    }

    .mh-nav-menu .menu-item-has-children.is-dropdown-open > .sub-menu,
    .mh-nav-menu .sub-menu.is-visible {
        display: block;
    }

    .mh-submenu-arrow {
        background: transparent;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 4px;
        color: rgba(255, 255, 255, 0.85);
        transition: transform 0.25s ease, color 0.25s ease;
    }

    .mh-nav-menu .menu-item-has-children.is-dropdown-open > a > .mh-submenu-arrow {
        transform: rotate(180deg);
        background: transparent;
        color: #7CE87E;
    }

    .mh-nav-menu .sub-menu li a {
        color: rgba(255, 255, 255, 0.85);
        padding: 9px 0;
        font-size: 0.88rem;
    }

    .mh-nav-wrap__mobile-cta {
        display: block;
        padding: 12px 20px 22px;
    }

    /* Hero Section */
    .mh-hero {
        min-height: 100vh;
        min-height: 100svh;
        padding: 64px 0;
    }

    .mh-hero__content {
        padding: 0;
        text-align: left;
    }

    /* About Us */
    .mh-about__grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    /* Services Section Layout */
    .mh-services__layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .mh-services__intro {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 16px;
    }

    .mh-services__nav {
        margin-top: 0;
    }

    /* Why Choose Us */
    .mh-glass-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    /* Testimonials Slide Width (2 visible) */
    .mh-testi-slide {
        flex: 0 0 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }

    /* CTA Banner */
    .mh-cta-banner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .mh-cta-banner__curve {
        display: none;
    }

    .mh-cta-banner__content {
        padding: 44px 32px;
    }

    .mh-cta-banner__media {
        min-height: 320px;
    }

    /* Footer */
    .mh-footer__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }
}

/* Tablet Portrait & Large Mobile (768px and down) */
@media (max-width: 768px) {
    .mh-hero__title {
        font-size: 2rem;
    }

    .mh-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .mh-stat-item__number {
        font-size: 2.1rem;
    }

    .mh-industries__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Service card sizing */
    .mh-service-card {
        flex: 0 0 280px;
        max-width: 280px;
        min-width: 280px;
    }

    /* Testimonial slider navigation: hide arrow buttons on smaller screens to maximize card area */
    .mh-testi-nav-btn {
        display: none;
    }

    .mh-testimonials__carousel-container {
        gap: 0;
    }

    .mh-testi-slide {
        flex: 0 0 85%;
        max-width: 85%;
        min-width: 260px;
    }

    .mh-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Devices (480px and down) */
@media (max-width: 480px) {
    .mh-container {
        padding: 0 16px;
    }

    .mh-site-header {
        padding: 10px 16px;
    }

    .mh-brand__logo-img {
        width: 40px;
        height: 40px;
    }

    .mh-brand__title {
        font-size: 1.1rem;
    }

    .mh-brand__subtitle {
        font-size: 0.5rem;
    }

    /* Hero Section */
    .mh-hero__content {
        padding: 0;
    }

    .mh-hero__title {
        font-size: 1.75rem;
    }

    .mh-hero__description {
        font-size: 0.88rem;
    }

    .mh-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .mh-hero__actions .mh-btn {
        width: 100%;
    }

    .mh-hero__media {
        min-height: 280px;
    }

    /* About Section */
    .mh-about {
        padding: 56px 0;
    }

    .mh-about__heading {
        font-size: 1.55rem;
    }

    .mh-about__highlights,
    .mh-stats-bento {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .mh-stat-card__number,
    .mh-stat-card--featured .mh-stat-card__number {
        font-size: 2.2rem;
    }

    /* Services Section */
    .mh-services {
        padding: 56px 0;
    }

    .mh-services__heading {
        font-size: 1.4rem;
    }

    .mh-service-card {
        flex: 0 0 260px;
        max-width: 260px;
        min-width: 260px;
    }

    .mh-service-card__img-wrap {
        height: 180px;
    }

    /* Why Choose Us */
    .mh-why-choose {
        padding: 60px 0;
    }

    .mh-why-choose__title {
        font-size: 1.5rem;
    }

    .mh-glass-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .mh-glass-card {
        padding: 24px 18px;
    }

    /* Industries We Serve */
    .mh-industries {
        padding: 56px 0;
    }

    .mh-industries__title {
        font-size: 1.45rem;
    }

    .mh-industries__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .mh-industry-card {
        padding: 16px 8px;
    }

    .mh-industry-card__title {
        font-size: 0.74rem;
    }

    /* Testimonials */
    .mh-testimonials {
        padding: 56px 0;
    }

    .mh-testimonials__title {
        font-size: 1.45rem;
    }

    .mh-testi-slide {
        flex: 0 0 90%;
        max-width: 90%;
        min-width: 250px;
    }

    .mh-testi-media-card,
    .mh-testi-quote-card {
        min-height: 290px;
    }

    /* CTA Section */
    .mh-cta-section {
        padding: 40px 0 56px;
    }

    .mh-cta-banner__content {
        padding: 32px 18px;
    }

    .mh-cta-banner__title {
        font-size: 1.35rem;
    }

    .mh-cta-banner__media {
        min-height: 240px;
    }

    /* Footer */
    .mh-footer {
        padding: 52px 0 0;
    }

    .mh-footer__grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    /* Floating WhatsApp & Contact */
    .mh-floating-actions {
        bottom: 18px;
        right: 16px;
        gap: 10px;
    }

    .mh-contact-float,
    .mh-enquiry-float,
    .mh-whatsapp-float {
        width: 46px;
        height: 46px;
    }

    .mh-back-to-top {
        width: 40px;
        height: 40px;
    }
}

/* Small Mobile Devices (320px - 360px) */
@media (max-width: 360px) {
    .mh-navbar__cta .mh-btn--header {
        display: none; /* Hide header CTA button on extra small screens so menu toggle has full space */
    }

    .mh-hero__title {
        font-size: 1.5rem;
    }

    .mh-service-card {
        flex: 0 0 240px;
        max-width: 240px;
        min-width: 240px;
    }
}
