/* ============================================
   MOOVHA - Mobile Responsive Styles
   Comprehensive mobile fixes for all breakpoints
   ============================================ */

/* ============================================
   Base Mobile Fixes
   ============================================ */

@media (max-width: 968px) {
    html {
        overflow-x: hidden;
    }
    
    body {
        overflow-x: hidden;
    }
}

/* ============================================
   Mobile Container & Layout
   ============================================ */

@media (max-width: 768px) {
    :root {
        --container-padding: 1.5rem;
        --space-2xl: 3rem;
        --space-3xl: 4rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
        --space-2xl: 2rem;
        --space-3xl: 3rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

/* ============================================
   Hero Section - Mobile
   ============================================ */

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        padding: calc(var(--nav-height) + var(--space-2xl)) 0 var(--space-2xl);
    }
    
    .hero .container {
        gap: var(--space-2xl);
    }
    
    .hero-content {
        margin-bottom: var(--space-xl);
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        line-height: 1.15;
        margin-bottom: var(--space-lg);
    }
    
    .hero-description {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: var(--space-lg);
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        margin-bottom: var(--space-md);
    }
    
    .hero-cta-group {
        margin-top: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .hero {
        padding: calc(var(--nav-height) + var(--space-xl)) 0 var(--space-2xl);
    }
    
    .hero-title {
        font-size: 1.875rem;
        line-height: 1.2;
        margin-bottom: var(--space-md);
    }
    
    .hero-description {
        font-size: 0.9375rem;
        margin-bottom: var(--space-md);
    }
    
    .hero-visual {
        min-height: 450px !important;
        height: 450px !important;
        padding-top: 60px;
        margin-top: var(--space-xl);
    }
    
    .phone-mockup {
        width: 200px !important;
        height: 420px !important;
    }
    
    .hero-visa-card {
        width: 150px !important;
        height: 240px !important;
        left: -65px !important;
    }
    
    .visa-moovha-logo {
        width: 55px !important;
    }
    
    .visa-card-number {
        font-size: 10px !important;
    }
}

/* ============================================
   CTA Buttons - Mobile
   ============================================ */

@media (max-width: 640px) {
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    
    .hero-cta-carousel {
        width: 100%;
        max-width: 100%;
    }
    
    .cta-morph-container {
        width: 100%;
        max-width: 400px;
    }
    
    .cta-morph-btn {
        width: 80% !important;
        max-width: 400px !important;
        margin: 0 auto;
        border-radius: 100px !important;
    }
    
    .cta-morph-btn .btn-bg,
    .cta-morph-btn .btn-border {
        border-radius: 100px !important;
    }
    
    .cta-nav-dots {
        margin-top: var(--space-sm);
        gap: 6px;
    }
    
    .nav-dot {
        width: 24px !important;
        height: 6px !important;
        border-radius: 100px !important;
    }
    
    .nav-dot .dot-fill {
        border-radius: 100px !important;
    }
}

@media (max-width: 480px) {
    .cta-morph-btn {
        width: 85% !important;
        max-width: 360px !important;
        height: 54px;
        font-size: 0.875rem;
        padding: 0.875rem 1.25rem !important;
    }
    
    .cta-morph-btn .btn-state {
        right: 42px;
        left: 1rem;
    }
    
    .cta-morph-btn .state-text {
        font-size: 0.875rem;
    }
    
    .cta-morph-btn .btn-arrow {
        width: 26px;
        height: 26px;
    }
    
    .cta-nav-dots {
        margin-top: 0.5rem;
        gap: 5px;
    }
    
    .nav-dot {
        width: 20px !important;
        height: 5px !important;
        border-radius: 100px !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
    
    .nav-dot .dot-fill {
        border-radius: 100px !important;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.8125rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 0.9375rem;
    }
    
    .btn-xl {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* ============================================
   Section Headers - Mobile
   ============================================ */

@media (max-width: 768px) {
    .section-header {
        margin-bottom: var(--space-xl);
    }
    
    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .section-tag {
        font-size: 0.6875rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .section-tag {
        font-size: 0.625rem;
        letter-spacing: 0.1em;
    }
}

/* ============================================
   Features Grid - Mobile
   ============================================ */

@media (max-width: 968px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .feature-grid.reverse {
        direction: ltr;
    }
    
    .feature-visual {
        order: -1;
    }
}

@media (max-width: 640px) {
    .feature-card {
        padding: var(--space-lg);
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
    }
    
    .feature-card h3 {
        font-size: 1.125rem;
    }
    
    .feature-card p {
        font-size: 0.875rem;
    }
    
    .feature-title {
        font-size: 1.75rem;
    }
    
    .feature-list {
        gap: var(--space-sm);
    }
}

@media (max-width: 480px) {
    .feature-section {
        padding: var(--space-2xl) 0;
    }
    
    .feature-title {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .feature-tag {
        font-size: 0.625rem;
        padding: 0.375rem 0.75rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .feature-text h4 {
        font-size: 0.9375rem;
    }
    
    .feature-text p {
        font-size: 0.8125rem;
    }
    
    .visual-container {
        min-height: 300px;
    }
}

/* ============================================
   WhatsApp Section - Mobile
   ============================================ */

@media (max-width: 768px) {
    .whatsapp-features {
        gap: var(--space-md);
        margin: var(--space-lg) 0;
    }
    
    .wa-icon {
        width: 48px;
        height: 48px;
    }
    
    .wa-text h4 {
        font-size: 1rem;
    }
    
    .wa-text p {
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .wa-feature {
        gap: var(--space-sm);
    }
    
    .wa-icon {
        width: 40px;
        height: 40px;
    }
    
    .interface-wa, .interface-app {
        width: 280px !important;
        min-width: 280px !important;
    }
}

/* ============================================
   Trust Section - Mobile
   ============================================ */

@media (max-width: 768px) {
    .trust-item {
        padding: var(--space-sm) var(--space-md);
    }
    
    .trust-item span {
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .trust-item {
        padding: 0.75rem var(--space-sm);
        gap: var(--space-sm);
    }
    
    .trust-item svg {
        width: 20px;
        height: 20px;
    }
    
    .trust-item span {
        font-size: 0.8125rem;
    }
}

/* ============================================
   CTA Section - Mobile
   ============================================ */

@media (max-width: 768px) {
    .cta-section {
        padding: var(--space-2xl) 0;
    }
    
    .cta-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }
    
    .cta-features {
        gap: var(--space-sm);
    }
    
    .cta-feature {
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .cta-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .cta-subtitle {
        font-size: 1.125rem;
    }
    
    .cta-feature {
        font-size: 0.875rem;
    }
    
    .cta-illustration {
        width: 80px;
        height: 80px;
    }
}

/* ============================================
   Footer - Mobile
   ============================================ */

@media (max-width: 968px) {
    .footer-top {
        flex-direction: column;
        gap: var(--space-2xl);
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-xl) var(--space-lg);
    }
}

@media (max-width: 640px) {
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .footer-col h4 {
        font-size: 1rem;
    }
    
    .footer-col a,
    .footer-col p {
        font-size: 0.875rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: var(--space-2xl) 0 var(--space-xl);
    }
    
    .footer-logo {
        font-size: 1.25rem;
    }
    
    .footer-tagline {
        font-size: 0.875rem;
    }
    
    .footer-desc {
        font-size: 0.8125rem;
    }
    
    .footer-app-links {
        gap: var(--space-sm);
    }
    
    .footer-app-badge {
        padding: 0.5rem 0.75rem;
    }
}

/* ============================================
   Navigation - Mobile
   ============================================ */

@media (max-width: 968px) {
    .nav {
        padding: 0.75rem 0;
    }
    
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .nav-logo {
        font-size: 1.25rem;
    }
    
    .nav-logo .logo-img {
        height: 50px;
    }
}

@media (max-width: 480px) {
    .nav {
        padding: 0.75rem 0;
    }
    
    .nav-container {
        padding: 0 1.25rem;
        height: calc(var(--nav-height) - 2.5rem);
    }
    
    .nav-logo {
        font-size: 1.125rem;
    }
    
    .nav-logo .logo-img {
        height: 45px;
    }
    
    .nav-toggle {
        width: 40px;
        height: 40px;
    }
    
    .mobile-link {
        font-size: 1.5rem;
    }
}

/* ============================================
   Marquee - Mobile
   ============================================ */

@media (max-width: 768px) {
    .marquee-content span {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .marquee-section {
        padding: var(--space-md) 0;
    }
    
    .marquee {
        overflow: hidden;
        width: 100%;
    }
    
    .marquee-content {
        gap: var(--space-md);
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .marquee-content span {
        font-size: 0.875rem;
        display: inline-block;
        white-space: nowrap;
    }
}

/* ============================================
   Sub Hero - Mobile
   ============================================ */

@media (max-width: 768px) {
    .sub-hero {
        padding: var(--space-2xl) 0;
    }
    
    .sub-hero-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .sub-hero-points {
        gap: var(--space-sm) var(--space-md);
    }
    
    .point {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .sub-hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .point {
        font-size: 0.9375rem;
    }
}

/* ============================================
   Illustrations - Mobile Scaling
   ============================================ */

@media (max-width: 768px) {
    .illustration-container {
        padding: var(--space-lg);
    }
    
    .illustration-container svg {
        max-width: 100%;
        height: auto;
    }
    
    .cta-dots-decoration {
        width: 120px;
        height: 120px;
        opacity: 0.2;
    }
}

@media (max-width: 480px) {
    .illustration-container {
        padding: var(--space-md);
    }
    
    .cta-dots-decoration {
        display: none;
    }
    
    .cta-illustration {
        width: 80px;
        height: 80px;
    }
}

/* ============================================
   Utility - Hide on Mobile
   ============================================ */

@media (max-width: 640px) {
    .hide-mobile {
        display: none !important;
    }
}

/* ============================================
   Text Overflow - Mobile
   ============================================ */

@media (max-width: 480px) {
    h1, h2, h3, h4, h5, h6 {
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    p {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
}

/* ============================================
   Spacing Adjustments - Small Screens
   ============================================ */

@media (max-width: 375px) {
    :root {
        --container-padding: 0.875rem;
    }
    
    .container {
        padding: 0 0.875rem;
    }
    
    .hero-title {
        font-size: 1.625rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .phone-mockup {
        width: 160px !important;
        height: 340px !important;
    }
}

/* ============================================
   Landscape Mobile - Specific Fixes
   ============================================ */

@media (max-width: 968px) and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: calc(var(--nav-height) + var(--space-md)) 0 var(--space-md);
    }
    
    .hero-visual {
        min-height: 300px !important;
        height: 300px !important;
    }
    
    .phone-mockup {
        width: 160px !important;
        height: 320px !important;
    }
    
    .hero-visa-card {
        width: 120px !important;
        height: 190px !important;
    }
}

/* ============================================
   Image & Media - Mobile Optimization
   ============================================ */

@media (max-width: 768px) {
    img {
        max-width: 100%;
        height: auto;
    }
    
    svg {
        max-width: 100%;
        height: auto;
    }
}

/* ============================================
   Form Elements - Mobile
   ============================================ */

@media (max-width: 480px) {
    input,
    textarea,
    select,
    button {
        font-size: 16px; /* Prevents iOS zoom on focus */
    }
}

/* ============================================
   Touch Targets - Mobile Accessibility
   ============================================ */

@media (max-width: 768px) {
    a, button, .btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ============================================
   Prevent Horizontal Scroll
   ============================================ */

@media (max-width: 968px) {
    * {
        max-width: 100%;
    }
    
    .container,
    .nav-container,
    .footer {
        overflow-x: visible;
        max-width: 100%;
    }
}

