/* ==========================================================================
   LARAX INDUSTRIES - RESPONSIVE STYLESHEET
   Mobile, Tablet, Laptop, and Large Screen Breakpoints
   ========================================================================== */

/* --------------------------------------------------------------------------
   Large Desktop Screens (1440px and above)
   -------------------------------------------------------------------------- */
@media (min-width: 1440px) {
    .container {
        max-width: 1360px;
    }
    .hero-heading {
        font-size: 4.8rem;
    }
}

/* --------------------------------------------------------------------------
   Standard Laptop / Small Desktop (1025px - 1280px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 18px;
    }
    .nav-link {
        font-size: 0.82rem;
    }
    .btn-quote-header {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    .footer-grid {
        grid-template-columns: 2fr 1fr 1.3fr 1.5fr;
        gap: 30px;
    }
}

/* --------------------------------------------------------------------------
   Tablets Landscape & Medium Devices (992px - 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    /* Switch desktop navigation to mobile drawer if screen width is constrained */
    .desktop-navigation {
        display: none;
    }
    .mobile-toggle-btn {
        display: flex;
    }
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .hero-features-strip {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .manufacturing-timeline::before {
        left: 28px;
    }
    .timeline-step {
        justify-content: flex-start !important;
        margin-bottom: 40px;
    }
    .timeline-step-node {
        left: 28px !important;
        transform: none !important;
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
    .timeline-step-content {
        width: calc(100% - 64px) !important;
        margin-left: 64px !important;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
}

/* --------------------------------------------------------------------------
   Tablets Portrait & Mobile Large (768px - 991px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .top-bar-left span {
        display: none;
    }
    .top-bar-left .top-whatsapp-link span {
        display: inline;
    }
    .top-export-tag {
        display: none;
    }

    .hero-section {
        min-height: auto;
        padding-top: 40px;
        padding-bottom: 50px;
    }
    .hero-content {
        padding-top: 30px;
        padding-bottom: 30px;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .hero-buttons .btn {
        width: 100%;
    }

    .grid-2 {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .grid-4 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-row,
    .form-row-3 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .form-card {
        padding: 24px 18px;
    }

    .modal-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .catalog-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .catalog-search-box {
        min-width: 100%;
    }
    .catalog-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-bottom-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    /* Mobile Drawer Open Styles */
    .mobile-nav-drawer {
        display: block;
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        height: 100%;
        background-color: #121212;
        border-left: 1px solid #292929;
        z-index: 1060;
        transition: right var(--transition-base);
        overflow-y: auto;
    }

    .mobile-nav-drawer.open {
        right: 0;
    }

    .mobile-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.7);
        z-index: 1055;
        display: none;
    }

    .mobile-backdrop.open {
        display: block;
    }

    .mobile-nav-inner {
        padding: 24px;
        display: flex;
        flex-direction: column;
        min-height: 100%;
    }

    .mobile-nav-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 20px;
        border-bottom: 1px solid #222222;
        margin-bottom: 20px;
    }

    .mobile-close-btn {
        color: var(--color-white);
        font-size: 28px;
        line-height: 1;
    }

    .mobile-menu-list li {
        margin-bottom: 12px;
    }

    .mobile-nav-link {
        font-family: var(--font-subheading);
        font-size: 1rem;
        font-weight: 700;
        color: #DDDDDD;
        display: block;
        padding: 8px 0;
        border-bottom: 1px solid #1C1C1C;
    }

    .mobile-nav-link.active,
    .mobile-nav-link:hover {
        color: var(--color-red);
    }

    .mobile-nav-cta-item {
        margin-top: 16px;
    }

    .mobile-contact-info {
        margin-top: auto;
        padding-top: 24px;
        border-top: 1px solid #222222;
        font-size: 0.82rem;
        color: #888888;
    }

    .mobile-tagline {
        color: #CCCCCC;
        margin-bottom: 8px;
    }

    .mobile-address,
    .mobile-phone {
        margin-bottom: 6px;
    }

    .inline-icon {
        vertical-align: middle;
        color: var(--color-red);
    }

    .mobile-social-bar {
        display: flex;
        gap: 10px;
        margin-top: 14px;
    }

    .social-icon-box {
        width: 32px;
        height: 32px;
        background-color: #202020;
        color: #FFFFFF;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        font-size: 0.72rem;
        font-weight: 800;
    }
    .social-icon-box.wa {
        background-color: var(--color-whatsapp);
    }
}

/* --------------------------------------------------------------------------
   Small Mobile Devices (320px - 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .brand-logo-img {
        height: 36px;
    }

    .btn-quote-header {
        display: none; /* Hide top CTA on very narrow mobile to maintain clean header */
    }

    .section-padding {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .floating-whatsapp-container {
        bottom: 18px;
        left: 18px;
    }
    .floating-whatsapp-btn {
        width: 52px;
        height: 52px;
    }
    .floating-whatsapp-btn svg {
        width: 28px;
        height: 28px;
    }
    .whatsapp-tooltip {
        display: none; /* Suppress hover tooltip on touch devices */
    }

    .product-actions {
        grid-template-columns: 1fr;
    }
}
