/**
 * Responsive Styles for 10App Landing Page
 * Mobile-First Responsive Design
 * Breakpoints: 320px, 480px, 640px, 768px, 1024px, 1280px
 */

/* ========================================
   UTILITIES
   ======================================== */

.hide-mobile {
    display: none !important;
}

@media (min-width: 768px) {
    .hide-mobile {
        display: block !important;
    }
    .hide-desktop {
        display: none !important;
    }
}

/* ========================================
   EXTRA SMALL DEVICES (320px - 479px)
   ======================================== */

@media (max-width: 479px) {
    /* Container */
    .container {
        width: calc(100% - 1.5rem);
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Typography */
    h1, .hero-headline {
        font-size: 1.75rem !important;
        line-height: 1.2;
    }

    h2 {
        font-size: 1.5rem !important;
        line-height: 1.25;
    }

    h3 {
        font-size: 1.25rem !important;
    }

    h4 {
        font-size: 1.125rem !important;
    }

    p, .hero-subtitle {
        font-size: 0.9375rem !important;
        line-height: 1.6;
    }

    /* Header & Navigation */
    header {
        padding: 0.5rem 0 !important;
    }

    .logo-img {
        height: 36px !important;
    }

    .brand-logo {
        font-size: 1.25rem !important;
    }

    /* Mobile Menu */
    .mobile-menu {
        display: flex !important;
    }

    .nav-links {
        position: fixed !important;
        top: 56px !important;
        left: 0 !important;
        right: 0 !important;
        flex-direction: column !important;
        align-items: stretch !important;
        background: white !important;
        border-bottom: 1px solid #E5E7EB !important;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
        padding: 1rem !important;
        gap: 0.5rem !important;
        display: none !important;
        z-index: 999 !important;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block !important;
        padding: 0.75rem 1rem !important;
        border-radius: 4px !important;
        width: 100%;
    }

    .nav-links a:hover {
        background: #F6F6EE !important;
    }

    /* Hero Section */
    .hero, .page-hero {
        padding: 80px 0 40px !important;
        min-height: auto !important;
    }

    .hero-content {
        text-align: center;
        max-width: 100% !important;
    }

    .section-tag {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.875rem !important;
    }

    /* Search Bar */
    .search-bar {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
        padding: 0.75rem !important;
    }

    .search-input,
    .location-input,
    .search-btn {
        width: 100% !important;
        padding: 0.875rem !important;
        font-size: 0.9375rem !important;
    }

    /* Buttons */
    .cta-buttons {
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }

    .btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.875rem 1.25rem !important;
        font-size: 0.9375rem !important;
    }

    /* Stats */
    .hero-stats {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center;
    }

    .stat {
        min-width: auto !important;
    }

    /* Grids */
    .category-grid,
    .trust-grid,
    .benefits-grid,
    .values-grid,
    .how-steps,
    .vendor-steps,
    .posts-grid,
    .cities-grid,
    .services-grid,
    .reviews-grid,
    .features-grid,
    .testimonials-grid,
    .verification-steps,
    .resolution-steps,
    .requirements-list,
    .contact-methods,
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }

    /* Cards */
    .category-card,
    .benefit-card,
    .value-card,
    .testimonial-card,
    .blog-post,
    .city-card,
    .service-item,
    .review-card,
    .feature-card {
        padding: 1.25rem !important;
    }

    /* Forms */
    .waitlist-form,
    .contact-form {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    .waitlist-form input,
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 0.875rem !important;
        font-size: 0.9375rem !important;
    }

    /* App Experience Section */
    .app-experience-section {
        padding: 3rem 0 !important;
    }

    .app-experience-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .app-experience-title {
        font-size: 1.75rem !important;
        line-height: 1.2 !important;
    }

    .app-experience-description {
        font-size: 0.9375rem !important;
    }

    .app-store-buttons {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .app-store-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.875rem 1.25rem !important;
    }

    .app-stats {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }

    .app-experience-phones {
        min-height: 300px !important;
    }

    .phone-mockup-wrapper {
        height: 300px !important;
    }

    .app-screen-back {
        width: 160px !important;
        max-width: 160px !important;
    }

    .app-screen-front {
        width: 180px !important;
        max-width: 180px !important;
    }

    .phone-mockup {
        width: 160px !important;
        height: 330px !important;
    }

    .phone-mockup:first-child {
        display: none !important;
    }

    .phone-mockup:last-child {
        transform: none !important;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .footer-column {
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }

    .footer-links {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    /* Sections */
    section {
        padding: 3rem 0 !important;
    }

    .section-header {
        margin-bottom: 2rem !important;
    }

    .section-title {
        font-size: 1.75rem !important;
        margin-bottom: 0.75rem !important;
    }

    .section-description {
        font-size: 0.9375rem !important;
    }

    /* Tables */
    table {
        font-size: 0.875rem !important;
    }

    th, td {
        padding: 0.5rem !important;
    }

    /* Modals and Overlays */
    .modal,
    .overlay-content {
        width: 95% !important;
        max-width: 95% !important;
        padding: 1.25rem !important;
    }

    /* Trust & Safety */
    .trust-strip-grid {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }

    /* FAQ */
    .faq-item {
        padding: 1rem !important;
    }

    /* Testimonials */
    .testimonial-featured {
        padding: 1.25rem !important;
    }

    .featured-quote p {
        font-size: 0.9375rem !important;
    }

    .testimonials-compact {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================
   SMALL DEVICES (480px - 639px)
   ======================================== */

@media (min-width: 480px) and (max-width: 639px) {
    .container {
        width: calc(100% - 2rem);
    }

    h1, .hero-headline {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.625rem !important;
    }

    .logo-img {
        height: 40px !important;
    }

    .hero, .page-hero {
        padding: 100px 0 50px !important;
    }

    .search-bar {
        grid-template-columns: 1fr !important;
    }

    .category-grid,
    .benefits-grid,
    .values-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.25rem !important;
    }

    .app-experience-title {
        font-size: 2rem !important;
    }

    .phone-mockup {
        width: 180px !important;
        height: 370px !important;
    }

    section {
        padding: 3.5rem 0 !important;
    }
}

/* ========================================
   MEDIUM DEVICES (640px - 767px)
   ======================================== */

@media (min-width: 640px) and (max-width: 767px) {
    .container {
        width: calc(100% - 2.5rem);
    }

    h1, .hero-headline {
        font-size: 2.25rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    .logo-img {
        height: 44px !important;
    }

    .hero, .page-hero {
        padding: 110px 0 60px !important;
    }

    .search-bar {
        grid-template-columns: 1fr 1fr auto !important;
    }

    .category-grid,
    .benefits-grid,
    .values-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }

    .how-steps,
    .vendor-steps {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .cta-buttons {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    .btn {
        width: auto !important;
        min-width: 200px !important;
    }

    .app-experience-grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    .app-experience-title {
        font-size: 2.5rem !important;
    }

    .app-store-buttons {
        flex-direction: row !important;
        flex-wrap: wrap !important;
    }

    .app-store-btn {
        width: auto !important;
        min-width: 180px !important;
    }

    .phone-mockup-wrapper {
        justify-content: center !important;
    }

    section {
        padding: 4rem 0 !important;
    }
}

/* ========================================
   TABLETS (768px - 1023px)
   ======================================== */

@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        width: calc(100% - 3rem);
        max-width: 720px;
    }

    .mobile-menu {
        display: none !important;
    }

    .nav-links {
        display: flex !important;
        position: static !important;
        flex-direction: row !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        gap: 1.25rem !important;
    }

    .nav-links a {
        padding: 0.35rem 0 !important;
        width: auto !important;
    }

    h1, .hero-headline {
        font-size: 2.75rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    .hero, .page-hero {
        padding: 120px 0 70px !important;
    }

    .search-bar {
        grid-template-columns: 1fr 1fr auto !important;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .benefits-grid,
    .values-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .how-steps,
    .vendor-steps {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .posts-grid,
    .cities-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .reviews-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .app-experience-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 3rem !important;
    }

    .app-experience-title {
        font-size: 3rem !important;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    section {
        padding: 4.5rem 0 !important;
    }
}

/* ========================================
   SMALL LAPTOPS (1024px - 1279px)
   ======================================== */

@media (min-width: 1024px) and (max-width: 1279px) {
    .container {
        width: calc(100% - 4rem);
        max-width: 960px;
    }

    h1, .hero-headline {
        font-size: 3.25rem !important;
    }

    h2 {
        font-size: 2.25rem !important;
    }

    .category-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    .benefits-grid,
    .values-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .how-steps,
    .vendor-steps {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .posts-grid,
    .cities-grid,
    .services-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .reviews-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .footer-content {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    section {
        padding: 5rem 0 !important;
    }
}

/* ========================================
   LARGE SCREENS (1280px+)
   ======================================== */

@media (min-width: 1280px) {
    .container {
        max-width: 1160px;
    }

    .category-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }

    .benefits-grid,
    .values-grid,
    .features-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .posts-grid,
    .cities-grid,
    .services-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    .reviews-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    section {
        padding: 5.5rem 0 !important;
    }
}

/* ========================================
   LANDSCAPE ORIENTATION
   ======================================== */

@media (max-height: 600px) and (orientation: landscape) {
    .hero, .page-hero {
        min-height: auto !important;
        padding: 80px 0 40px !important;
    }

    .hero-headline {
        font-size: 2rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .modal,
    .overlay-content {
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
}

/* ========================================
   TOUCH DEVICES
   ======================================== */

@media (hover: none) and (pointer: coarse) {
    /* Increase tap targets */
    a, button, .btn, .nav-links a {
        min-height: 44px !important;
        min-width: 44px !important;
    }

    /* Remove hover effects */
    a:hover,
    button:hover,
    .btn:hover {
        transform: none !important;
    }

    /* Improve form inputs */
    input, textarea, select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    header,
    .mobile-menu,
    .cta-buttons,
    .search-bar,
    .app-store-buttons,
    footer,
    video {
        display: none !important;
    }

    body {
        font-size: 12pt !important;
        line-height: 1.5 !important;
        color: #000 !important;
        background: #fff !important;
    }

    a {
        text-decoration: underline !important;
    }

    .container {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* ========================================
   ACCESSIBILITY ENHANCEMENTS
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   HIGH CONTRAST MODE
   ======================================== */

@media (prefers-contrast: high) {
    .btn,
    .search-btn,
    a {
        border-width: 2px !important;
    }

    .nav-links a::after {
        height: 3px !important;
    }
}

/* ========================================
   AI FEATURES SECTION RESPONSIVE
   ======================================== */

@media (max-width: 479px) {
    .ai-features-section {
        padding: 60px 0 !important;
    }
    
    .ai-title {
        font-size: 2rem !important;
        line-height: 1.15 !important;
    }
    
    .ai-subtitle {
        font-size: 1rem !important;
        margin-bottom: 40px !important;
    }
    
    .ai-badge {
        font-size: 11px !important;
        padding: 8px 16px !important;
    }
    
    .ai-features-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        margin-bottom: 48px !important;
    }
    
    .ai-feature-card {
        padding: 24px 20px !important;
    }
    
    .ai-icon-wrapper {
        width: 56px !important;
        height: 56px !important;
        margin-bottom: 20px !important;
    }
    
    .ai-icon-wrapper svg {
        width: 28px !important;
        height: 28px !important;
    }
    
    .ai-feature-card h3 {
        font-size: 1.125rem !important;
    }
    
    .ai-feature-card p {
        font-size: 0.875rem !important;
    }
    
    .ai-cta-section {
        padding: 28px 20px !important;
        gap: 24px !important;
    }
    
    .ai-cta-content {
        text-align: center !important;
    }
    
    .ai-cta-content h3 {
        font-size: 1.375rem !important;
    }
    
    .ai-cta-content p {
        font-size: 0.9375rem !important;
    }
    
    .ai-waitlist-form {
        flex-direction: column !important;
    }
    
    .ai-email-input,
    .ai-submit-btn {
        width: 100% !important;
    }
}

@media (min-width: 480px) and (max-width: 767px) {
    .ai-features-section {
        padding: 80px 0 !important;
    }
    
    .ai-features-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .ai-waitlist-form {
        flex-direction: column !important;
    }
    
    .ai-submit-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .ai-features-section {
        padding: 100px 0 !important;
    }
    
    .ai-features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (min-width: 1024px) {
    .ai-features-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}
