/* Responsive Styles for Renovate App Landing Page */

/* Tablet Styles (768px - 1023px) */
@media screen and (max-width: 1023px) {
    .container {
        width: 90%;
    }
    
    /* Header */
    .header-content {
        padding: 15px 0;
    }
    
    /* Hero Section */
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        margin-bottom: 40px;
        max-width: 100%;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        margin-top: 20px;
    }
    
    /* Features Section */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    /* How It Works Section */
    .steps {
        flex-direction: column;
    }
    
    .step {
        margin-bottom: 30px;
        max-width: 100%;
    }
    
    /* Results Section */
    .results-grid {
        flex-direction: column;
    }
    
    .result-card {
        margin-bottom: 30px;
        max-width: 100%;
    }
    
    .metrics {
        flex-wrap: wrap;
    }
    
    .metric {
        flex: 0 0 50%;
        margin-bottom: 20px;
    }
    
    /* Download Section */
    .download-content {
        flex-direction: column;
        text-align: center;
    }
    
    .download-text {
        margin-bottom: 40px;
        max-width: 100%;
    }
    
    .app-rating {
        justify-content: center;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .link-group {
        flex: 0 0 50%;
        margin-bottom: 30px;
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .app-store-button {
        margin-top: 20px;
    }
}

/* Mobile Styles (up to 767px) */
@media screen and (max-width: 767px) {
    /* Header */
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--light);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav ul {
        flex-direction: column;
        padding: 20px;
    }
    
    .nav li {
        margin: 10px 0;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* Hero Section */
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    /* Features Section */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        flex-direction: column;
    }
    
    .feature-image {
        margin-bottom: 20px;
        width: 100%;
    }
    
    .feature-content {
        width: 100%;
    }
    
    /* Results Section */
    .before-after {
        flex-direction: column;
    }
    
    .before, .after {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .metrics {
        flex-direction: column;
    }
    
    .metric {
        flex: 0 0 100%;
    }
    
    /* Footer */
    .link-group {
        flex: 0 0 100%;
    }
    
    /* App Store Button */
    .app-store-button {
        width: 100%;
        justify-content: center;
    }
}

/* Small Mobile Styles (up to 480px) */
@media screen and (max-width: 480px) {
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .download-text h2 {
        font-size: 1.8rem;
    }
    
    .btn-large {
        width: 100%;
    }
    
    .phone-mockup {
        transform: scale(0.8);
    }
}

/* Ensure App Store buttons look good on all devices */
@media screen and (max-width: 360px) {
    .app-store-button {
        padding: 6px 12px;
        min-width: auto;
    }
    
    .app-store-button .logo {
        font-size: 1.5rem;
    }
    
    .app-store-button .download-text {
        font-size: 0.6rem;
    }
    
    .app-store-button .store-text {
        font-size: 0.9rem;
    }
}

/* High-resolution screens */
@media screen and (min-width: 1440px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-text h1 {
        font-size: 3.5rem;
    }
    
    .section-header h2 {
        font-size: 2.8rem;
    }
}

/* Fix for iOS Safari issues */
@supports (-webkit-touch-callout: none) {
    .app-store-button {
        -webkit-appearance: none;
    }
    
    input, 
    textarea, 
    button, 
    select {
        -webkit-appearance: none;
        border-radius: 0;
    }
}
