/* ==========================================================================
   Responsive Styles
   ========================================================================== */

/* Laptop (max-width: 1280px) */
@media (max-width: 1280px) {
    .nav__list {
        gap: 20px;
    }
    
    .footer__grid {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 24px;
    }
    
    .footer__col:last-child {
        grid-column: span 4;
        margin-top: 20px;
    }
}

/* Tablet Landscape (max-width: 1024px) */
@media (max-width: 1024px) {
    .header__search {
        margin: 0 20px;
    }
    
    .search-form__category {
        display: none; /* Hide category dropdown in search to save space */
    }
    
    .hero__title {
        font-size: 2.5rem;
    }
    
    .hero__features {
        grid-template-columns: 1fr;
    }
    
    .powering-industries__box {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    
    .powering-industries__divider {
        width: 100%;
        height: 1px;
    }
    
    .powering-industries__features {
        justify-content: center;
        flex-wrap: wrap;
        padding-right: 0;
    }
    
    .powering-industries__map {
        display: none; /* Hide map on smaller screens */
    }
    
    .cta__container {
        flex-direction: column;
        text-align: center;
    }
    
    .cta__icon {
        display: none;
    }
    
    .brands__grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .categories__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__col:last-child {
        grid-column: span 2;
    }
}

/* Tablet Portrait (max-width: 768px) */
@media (max-width: 768px) {
    .top-bar {
        display: none; /* Hide top bar on mobile for cleaner header */
    }
    
    .header__icons {
        display: none; /* Hide icons, move to mobile menu later if needed */
    }
    
    .header__mobile-toggle {
        display: block;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: var(--shadow-lg);
        z-index: 99;
    }
    
    .nav.is-open {
        display: block;
    }
    
    .nav__list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav__link {
        padding: 16px 20px;
        border-bottom: 1px solid var(--border);
    }
    
    .nav__link--active::after {
        display: none;
    }
    
    .nav__quote-btn {
        display: block;
        margin: 20px;
        text-align: center;
    }
    
    .hero__container {
        text-align: center;
    }
    
    .hero__features {
        display: none; /* Simplify hero on mobile */
    }
    
    .feature-strip__container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .feature-strip__item {
        width: 100%;
    }
    
    .brands__grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__col:last-child {
        grid-column: span 1;
    }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .header__logo img {
        height: 40px;
    }
    
    .header__search {
        display: none; /* Search might need a toggle button on very small screens */
    }
    
    .section {
        padding: 40px 0;
    }
    
    .hero {
        padding: 60px 0 40px;
    }
    
    .cta__actions {
        flex-direction: column;
        width: 100%;
    }
    
    .cta__actions .btn {
        width: 100%;
    }
    
    .brands__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories__grid {
        grid-template-columns: 1fr;
    }
}
