/* =====================================================
   GS LOGISTICS - RESPONSIVE STYLESHEET
   Matches: style.css
===================================================== */

/* =====================================================
   LARGE TABLETS & SMALL DESKTOPS (Max-Width: 1200px)
===================================================== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-container {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .why-image {
        grid-column: 1 / -1;
        min-height: 380px;
    }

    .why-image img {
        min-height: 380px;
    }
}


/* =====================================================
   TABLETS (Max-Width: 1024px)
===================================================== */
@media (max-width: 1024px) {
    /* Header adjustments */
    .main-nav {
        gap: 20px;
    }

    .main-nav a {
        font-size: 16px;
    }

    /* Hero adjustments */
    .hero-left {
        width: 58%;
    }

    .hero-right {
        width: 35%;
    }

    .hero-left h1 {
        font-size: clamp(36px, 4.5vw, 54px);
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2) {
        border-right: none;
    }

    .stat-item:nth-child(1),
    .stat-item:nth-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    /* Footer adjustments */
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}


/* =====================================================
   MOBILE NAVIGATION & BREAKPOINT (Max-Width: 900px)
===================================================== */
@media (max-width: 900px) {
    /* Enable Mobile Menu Toggle Button */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Transform main nav into mobile dropdown */
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.4s ease;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        margin-left: 0;
    }

    .main-nav.active {
        max-height: 400px;
        padding: 20px 30px;
    }

    .main-nav a {
        padding: 12px 0;
        width: 100%;
        border-bottom: 1px solid var(--border);
        font-size: 16px;
    }

    .main-nav a::after {
        display: none;
    }

    .header-cta {
        display: none; /* Can be integrated into mobile menu if needed */
    }

    /* Hero layout stacking */
    .hero-section,
    .hero-content {
        min-height: auto;
    }

    .hero-content {
        flex-direction: column;
        padding: 120px 0 60px;
        text-align: left;
    }

    .hero-left {
        width: 100%;
    }

    .hero-right {
        display: none; /* Hide floating side element on smaller views */
    }

    /* Process steps grid */
    .process-wrapper {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 20px;
    }

    .process-arrow {
        display: none;
    }

    /* Trusted Logos */
    .trusted-logos {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Quote Banner */
    .quote-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        padding: 60px 0;
    }

    .quote-banner-slogan {
        text-align: left;
        margin-right: 0;
    }
}


/* =====================================================
   SMALLER TABLETS & PHONES (Max-Width: 768px)
===================================================== */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .why-features {
        grid-template-columns: 1fr;
    }

    .network-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .network-content {
        text-align: center;
    }

    .network-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .network-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .network-stat {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding-bottom: 15px;
    }

    .network-stat:last-child {
        border-bottom: none;
    }
}


/* =====================================================
   MOBILE DEVICES (Max-Width: 600px)
===================================================== */
@media (max-width: 600px) {
    .container {
        width: min(calc(100% - 30px), var(--container));
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .industries-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.15);
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .process-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        gap: 15px;
    }

    .hero-left h1 {
        font-size: 38px;
        letter-spacing: -1px;
    }
}
/* =====================================================
   STATS SECTION - 2x2 GRID ON MOBILE
===================================================== */
@media (max-width: 768px) {
    .stats-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .stat-item {
        border-right: 1px solid rgba(255, 255, 255, 0.15);
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    /* Remove right border for the right column (items 2 and 4) */
    .stat-item:nth-child(2),
    .stat-item:nth-child(4) {
        border-right: none !important;
    }

    /* Remove bottom border for the bottom row (items 3 and 4) */
    .stat-item:nth-child(3),
    .stat-item:nth-child(4) {
        border-bottom: none !important;
    }
}
/* =====================================================
   INDUSTRIES SECTION - MOBILE ROTATING CAROUSEL
===================================================== */
@media (max-width: 768px) {
    .industries-grid {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 16px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 15px;
    }

    .industries-grid::-webkit-scrollbar {
        height: 4px;
    }

    .industries-grid::-webkit-scrollbar-thumb {
        background: var(--orange);
        border-radius: 4px;
    }

    .industry-card {
        min-width: 100%; /* Shows 1 full card at a time or adjust to 85% for partial peek */
        scroll-snap-align: start;
        flex-shrink: 0;
    }
}