/* =========================
   GLOBAL MOBILE FIXES
========================= */
* {
    box-sizing: border-box;
}

/* html, body {
    overflow-x: hidden;
} */

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
}

/* Remove forced full-screen height on mobile */
@media (max-width: 991.98px) {
    .vh-100 {
        height: auto !important;
        min-height: auto !important;
    }

    section {
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }

    h1 {
        font-size: 30px !important;
        line-height: 1.25 !important;
    }

    h2 {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }

    h3 {
        font-size: 24px !important;
        line-height: 1.35 !important;
    }

    h4 {
        font-size: 20px !important;
        line-height: 1.35 !important;
    }

    h5 {
        font-size: 18px !important;
        line-height: 1.4 !important;
    }

    p,
    li,
    span,
    a {
        font-size: 30zpx;
        /* font-size: 15px; */

        line-height: 1.6;
    }
}

/* =========================
   NAVBAR MOBILE
========================= */
@media (max-width: 991.98px) {
    #navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 12px 16px;
        position: relative;
        z-index: 9999;
        background: var(--nav-bg, #fff);
    }

    .nav-logo-img {
        display: flex;
        align-items: center;
    }

        .nav-logo-img img {
            height: 40px !important;
            width: auto;
        }

    .iz-mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 0;
        padding: 8px;
        cursor: pointer;
        z-index: 10000;
    }

  /*  .nav-links {
        display: none !important;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin: 10px 0 0;
        padding: 12px 0;
        background: #fff !important;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }*/

        .nav-links.active {
            display: flex !important;
        }

    .nav-item {
        width: 100%;
        position: relative;
        list-style: none;
    }

        .nav-item > a,
        .nav-item > span {
            display: block;
            width: 100%;
            padding: 12px 16px;
            cursor: pointer;
        }

    .nav-dropdown {
        display: none !important;
        position: static !important;
        width: 100% !important;
        min-width: 100% !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: 0 !important;
        background: transparent !important;
        padding: 0 0 8px 18px !important;
    }

    .nav-item.open .nav-dropdown {
        display: block !important;
    }

    .nav-dropdown a {
        display: block;
        padding: 10px 0;
        white-space: normal;
    }

    .nav-cta-btn {
        display: block;
        width: calc(100% - 32px);
        margin: 8px 16px;
        text-align: center;
    }
}

/* =========================
   HERO SECTION
========================= */
@media (max-width: 991.98px) {
    .hero {
        padding-top: 40px !important;
        padding-bottom: 40px !important;
    }

        .hero .row {
            flex-direction: column;
        }

    .hero-inner {
        text-align: justify;
    }

    .hero-inner__desc {
        font-size: 15px !important;
        line-height: 1.7;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

        .hero-actions a {
            width: 100%;
            text-align: center;
        }

    .about-video img,
    .product-video video {
        width: 100%;
        border-radius: 14px;
    }
}

@media (max-width: 575.98px) {
    .hero h1 {
        font-size: 26px !important;
    }

    .hero h5 {
        font-size: 16px !important;
    }
}

/* =========================
   COMMON GRID / BOX FIXES
========================= */
@media (max-width: 991.98px) {
    .width-20 {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 15px;
    }

    .ba-block {
        display: block;
    }

    .ba-block-left,
    .ba-block-right {
        width: 100% !important;
        display: block;
    }

    .ba-block-left {
        margin-bottom: 15px;
        text-align: center;
    }

    .connecting-arrow {
        display: none;
    }

    .exe-title,
    .automation-content,
    .ba-plan-title,
    .ba-plan-content {
        text-align: center;
    }
}

/* =========================
   PRODUCTION / PROCESS SECTION
========================= */
@media (max-width: 991.98px) {
    .zestfloor-production-process .row,
    .zestfloor-smarter-industries .row,
    .zestfloor-business-architecture .row,
    .zestfloor-management .row,
    .zestfloor-tracking .row,
    .zestfloor-digital .row {
        row-gap: 24px;
    }

    .zest-floor-data-entry-section,
    .zestfloor-data-capturing,
    .zestfloor-post-production-section {
        margin-bottom: 20px;
    }

    .planning-process {
        margin-bottom: 20px;
    }

        .planning-process img {
            margin: 0 auto 10px;
        }
}

/* =========================
   MANAGEMENT SECTION
========================= */
@media (max-width: 991.98px) {
    .management-main-title {
        margin-bottom: 30px !important;
    }

    .management-bottom-section .row {
        row-gap: 12px;
    }

    .management-bottom-title {
        text-align: center;
        padding: 12px;
    }

    .logo-middle img {
        max-width: 180px;
        margin: 20px auto;
    }

    .md-sec {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* =========================
   TRACKING BOXES
========================= */
@media (max-width: 991.98px) {
    .warehouse-box {
        margin-bottom: 24px;
        height: auto !important;
    }

    .warehouse-content {
        padding: 20px 16px !important;
    }

    .tracking-list li {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 10px;
    }

    .material-track-header ul {
        padding-left: 18px;
    }
}

/* =========================
   TRACEABILITY SECTION
========================= */
@media (max-width: 991.98px) {
    .trace-sec {
        margin-bottom: 20px;
        padding: 18px;
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: 14px;
        height: 100%;
    }

    .traceability-content {
        text-align: center;
    }

    .traceability-img img {
        margin: 12px auto 0;
        max-width: 110px;
    }
}

/* =========================
   DIGITAL SECTION
========================= */
@media (max-width: 991.98px) {
    .digital-content {
        margin-bottom: 24px !important;
    }

    .digital-icon {
        padding-left: 0 !important;
        text-align: center;
    }

    .digi-content {
        display: block !important;
    }

    .digi-left,
    .digi-right {
        width: 100% !important;
        display: block;
    }

    .digi-left {
        padding: 14px;
    }

    .digi-right {
        padding: 16px;
    }
}

/* =========================
   CUSTOMER LOGOS
========================= */
@media (max-width: 767.98px) {
    .product-item {
        padding: 12px;
    }

    .product-item__thumb img {
        max-height: 50px;
        object-fit: contain;
    }
}

/* =========================
   SMALL MOBILE
========================= */
@media (max-width: 575.98px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .section-heading__inner,
    .w-lg {
        width: 100% !important;
    }

    .small-line {
        margin-left: auto;
        margin-right: auto;
    }

    .text-shadow {
        font-size: 28px !important;
    }

    .management-bottom-title h4,
    .ba-plan-title h4,
    .automation-content h4 {
        font-size: 15px !important;
    }

    .product-item__thumb img {
        max-height: 42px;
    }
}
