/* ==========================================================================
   METAL-LINK STEEL AND ALLOYS - RESPONSIVE STYLESHEET
   Comprehensive Media Queries for all viewports:
   1920px, 1600px, 1440px, 1366px, 1200px, 1024px, 992px, 768px, 576px, 480px, 390px, 375px, 360px, 320px
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ULTRA-WIDE BREAKPOINT (1920px - 1600px)
   -------------------------------------------------------------------------- */
@media (min-width: 1600px) {
    :root {
        --container-max: 1520px;
    }
    
    .hero-heading {
        font-size: 4.25rem;
    }
    
    .hero-img {
        height: 520px;
    }

    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* --------------------------------------------------------------------------
   2. DESKTOP & LARGE LAPTOPS (1440px - 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1440px) {
    .nav-list {
        gap: 16px;
    }
    
    .nav-link {
        font-size: 0.85rem;
    }

    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 30px;
    }
}

@media (max-width: 1366px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .hero-img {
        height: 400px;
    }

    .header-logo-img {
        height: 42px;
    }
}

/* --------------------------------------------------------------------------
   3. MEDIUM LAPTOPS & TABLETS LANDSCAPE (1200px - 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-hamburger-btn {
        display: flex;
    }

    .grid-4-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid-horizontal {
        grid-template-columns: repeat(4, 1fr);
        padding: 20px 15px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-trust-badges {
        justify-content: center;
    }

    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
    }

    .card-pipes {
        left: -10px;
    }

    .card-flanges {
        right: -10px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .quality-standards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .grid-2-col {
        grid-template-columns: 1fr;
    }

    .about-image-column {
        order: 2;
    }

    .about-content-column {
        order: 1;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-newsletter {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .newsletter-form {
        width: 100%;
    }

    .newsletter-form input {
        flex-grow: 1;
        width: auto;
    }
}

/* --------------------------------------------------------------------------
   4. TABLETS PORTRAIT & LARGE PHONES (992px - 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .top-contacts span.top-divider:nth-child(2),
    .top-contacts a.top-link:nth-child(3) {
        display: none;
    }

    .stats-grid-horizontal {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-item-h:nth-child(2)::after {
        display: none;
    }

    .timeline-track {
        left: 20px;
    }

    .timeline-item {
        flex-direction: row !important;
        margin-left: 0;
    }

    .timeline-number {
        margin-right: 20px;
    }

    .timeline-content {
        width: calc(100% - 70px);
    }

    .blog-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .cta-banner-card {
        padding: 40px 24px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height-desk: 70px;
    }

    .top-bar {
        display: none;
    }

    .main-nav-bar {
        padding: 10px 0;
    }

    .site-header.scrolled .main-nav-bar {
        padding: 8px 0;
    }

    .header-logo-img {
        height: 38px;
    }

    .hero-section {
        padding-top: 90px;
        padding-bottom: 60px;
    }

    .hero-heading {
        font-size: 2.25rem;
    }

    .floating-product-card {
        padding: 6px 12px;
    }

    .f-title {
        font-size: 0.78rem;
    }

    .f-subtitle {
        font-size: 0.65rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .industries-grid {
        grid-template-columns: 1fr;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .modal-container {
        padding: 20px;
    }

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

/* --------------------------------------------------------------------------
   5. MOBILE PHONES (576px - 480px - 390px - 375px - 360px - 320px)
   -------------------------------------------------------------------------- */
@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .stats-grid-horizontal {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .stat-item-h::after {
        display: none !important;
    }

    .section-title {
        font-size: 1.65rem;
    }

    .hero-heading {
        font-size: 1.85rem;
    }

    .hero-description {
        font-size: 0.925rem;
    }

    .btn-large {
        padding: 0.85rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
    }

    .hero-cta-group {
        width: 100%;
    }

    .hero-img {
        height: 320px;
    }

    .card-pipes, .card-flanges, .card-fittings {
        position: static;
        margin-top: 10px;
        width: 100%;
    }

    .hero-live-stat-card {
        position: static;
        margin-top: 15px;
        width: 100%;
        box-sizing: border-box;
    }

    .about-main-img {
        height: 320px;
    }

    .about-badge-floating {
        position: static;
        max-width: 100%;
        margin-top: 15px;
    }

    .product-filter-bar {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 8px;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .filter-btn {
        flex-shrink: 0;
    }

    .testimonial-card {
        padding: 24px;
    }

    .cta-banner-card {
        padding: 30px 16px;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .section-padding {
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .hero-heading {
        font-size: 1.7rem;
    }

    .pill-badge {
        padding: 4px 12px;
    }

    .pill-text {
        font-size: 0.72rem;
    }

    .std-badge {
        font-size: 0.75rem;
    }
}

@media (max-width: 390px) {
    .hero-heading {
        font-size: 1.55rem;
    }

    .header-logo-img {
        height: 34px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

@media (max-width: 375px) {
    .section-title {
        font-size: 1.45rem;
    }

    .stat-number-wrap {
        font-size: 2rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.88rem;
    }
}

@media (max-width: 320px) {
    .hero-heading {
        font-size: 1.4rem;
    }

    .pill-text {
        font-size: 0.65rem;
    }
}
