/* --- PROFESSIONAL RESPONSIVE QUERIES --- */

/* Big tablet to 1200px */
@media only screen and (max-width: 1200px) {
    .row {
        max-width: 95%;
        padding: 0;
    }
    
    .hero-text-box {
        max-width: 95%;
    }
}

/* Small tablet to big tablet: from 768px to 1023px */
@media only screen and (max-width: 1023px) {
    body { font-size: 18px; }
    
    section { padding: 60px 0; }
    
    .long-copy {
        width: 85%;
        margin-left: 7.5%;
    }

    .meals-showcase {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }
    
    .meals-showcase li { 
        height: auto;
        aspect-ratio: 4/3; 
    }
    
    .app-screen { width: 50%; }
    
    .contact-form { width: 90%; }
}

/* Phones and Small Tablets: up to 767px */
@media only screen and (max-width: 767px) {
    body { font-size: 16px; }
    
    section { padding: 40px 0; }
    
    .row { max-width: 90%; }
    
    /* Navigation Redesign */
    nav .row {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .logo {
        float: none;
        margin: 20px 0;
        height: 80px;
    }
    
    .main-nav {
        float: none;
        margin-top: 10px;
        text-align: center;
        padding: 0;
    }
    
    .main-nav li {
        display: block;
        margin: 10px 0;
    }
    
    .main-nav li a:link,
    .main-nav li a:visited {
        font-size: 110%;
    }
    
    /* Hero Section */
    header { height: auto; min-height: 100vh; padding-bottom: 50px; }
    
    h1 { font-size: 180%; word-spacing: 2px; }
    
    .hero-text-box { margin-top: 50px; text-align: center; }
    
    .btn:link, .btn:visited { margin: 10px 5px; }
    
    /* Grids to 1 Column */
    .content, 
    .section-cities .row:last-child,
    .testomonial-grid,
    .container-plan,
    .section-steps .row:nth-child(2) {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .meals-showcase {
        grid-template-columns: repeat(2, 1fr);
        width: 100%;
    }

    .meals-showcase li { 
        height: auto;
        aspect-ratio: 1/1; 
    }
    .meal-photo { height: auto; }
    
    /* Form Redesign */
    .contact-form {
        width: 100%;
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 20px;
    }
    
    .form-row label {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .form-row input[type="submit"] {
        width: 100%;
        margin-top: 10px;
    }

    .form-row input[type="checkbox"] {
        margin-top: 5px;
    }
    
    /* Steps Box */
    .steps-box:last-child { margin-top: 40px; padding: 0; }
    
    .app-screen { width: 40%; }
    
    .app-buttons-container {
        justify-content: flex-start;
        padding-left: 10%; /* Subtle shift to the right */
    }
    
    .works-step { margin-bottom: 25px; display: flex; align-items: flex-start; }
    
    .works-step div {
        flex-shrink: 0;
        height: 45px;
        width: 45px;
        margin-right: 15px;
        font-size: 130%;
    }
    
    .works-step p { margin: 0; padding-top: 5px; }

    /* Footer */
    .footer-nav-section {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .social-links { justify-self: center; margin-top: 20px; }
    
    .footer-nav li, .social-links li { margin: 0 10px; }
}

/* Smaller Phones: up to 480px */
@media only screen and (max-width: 480px) {
    h1 { font-size: 160%; }
    h2 { font-size: 140%; }
    
    .hero-text-box { margin-top: 30px; }
    
    .app-screen { width: 60%; }
    
    .plan-box { padding: 10px; }
    
    .testomonial-grid cite img {
        width: 60px;
        height: 60px;
    }
}
