/* ==========================================================================
   Responsive Styles for ShipTesla
   ========================================================================== */

/* 1200px - Large Desktops */
@media (max-width: 1200px) {
}

/* 1024px - Tablets Landscape / Small Desktops */
@media (max-width: 1024px) {
    .grid-4, .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-bg {
        /* On smaller screens, make the overlay cover everything fully */
        background: rgba(255,255,255,0.9);
    }
    .hero-overlay {
        background: rgba(255,255,255,0.85);
    }
    
    .hero-text {
        text-align: center;
        max-width: 700px;
        margin: 0 auto;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats-row {
        justify-content: center;
    }
    
    .hero-quote {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 768px - Tablets Portrait */
@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(1, 1fr);
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Navigation adjustments */
    .menu-toggle {
        display: block;
        z-index: 101;
    }
    
    .menu-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        background-color: var(--clr-white);
        box-shadow: var(--shadow-lg);
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        z-index: 100;
        align-items: flex-start;
    }
    
    .menu-wrapper.is-open {
        right: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    
    .main-navigation a {
        padding: 15px 0;
        border-bottom: 1px solid var(--clr-border);
    }
    
    .main-navigation .sub-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-bottom: 1px solid var(--clr-border);
        padding-left: 20px;
        display: none;
    }
    
    .main-navigation li.menu-item-has-children.open-sub > .sub-menu {
        display: flex;
    }
    
    .header-cta {
        margin-top: 20px;
        width: 100%;
    }
    .header-cta .btn {
        width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    /* Pricing specific adjustment to remove scaling overlap on mobile */
    .pricing-card.recommended {
        transform: none;
    }
    .pricing-card.recommended:hover {
        transform: translateY(-5px);
    }
    
    .trust-logos {
        justify-content: center;
    }
}

/* 480px - Mobile Phones */
@media (max-width: 480px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .hero-stats-row {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }
    
    .hero-stat-box {
        width: 45%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 15px;
        text-align: center;
    }
    
    .cta-actions {
        flex-direction: column;
    }
    
    .cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
    
    .flex-row-center {
        flex-direction: column;
    }
    .flex-row-center .btn {
        width: 100%;
    }
}
