/* MOBILE RESPONSIVENESS FIX - Add this to your CSS or include it separately */

/* Prevent horizontal overflow but preserve nav positioning */
html {
    overflow-x: clip !important;
    width: 100%;
    max-width: 100vw;
}

body {
    overflow-x: clip !important;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Allow nav to position correctly */
.nav {
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 2rem) !important;
    max-width: var(--container-width) !important;
    top: 1rem !important;
    z-index: 1000 !important;
}

/* Ensure nav is visible */
.nav-container {
    width: 100%;
    box-sizing: border-box;
}

* {
    max-width: 100%;
    box-sizing: border-box;
}

/* Fix container on mobile */
@media (max-width: 768px) {
    .nav {
        width: calc(100% - 1rem) !important;
        top: 0.5rem !important;
    }

    .container {
        padding: 0 1rem !important;
        max-width: 100% !important;
    }

    /* Fix hero section */
    .hero {
        overflow: hidden !important;
        padding: 5rem 0 2.5rem !important;
    }

    .hero::before,
    .hero::after {
        display: none !important;
    }

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

    .hero-visual {
        order: -1;
        max-width: 100%;
    }

    .mockup-container {
        transform: none !important;
        border-width: 4px;
        max-width: 100%;
    }

    .mockup-img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    /* Fix all images */
    img {
        max-width: 100% !important;
        height: auto !important;
    }

    .rounded-image,
    .split-image-container img {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Fix navigation */
    .nav {
        width: calc(100% - 1rem) !important;
    }

    /* Fix buttons */
    .hero-cta {
        flex-direction: column !important;
        width: 100%;
    }

    .hero-cta .btn-primary,
    .hero-cta .btn-ghost {
        width: 100% !important;
    }

    /* Fix stats banner */
    .stats-glass-banner {
        flex-direction: column !important;
        width: 100% !important;
    }

    /* Fix split sections */
    .split-content {
        flex-direction: column !important;
        gap: 2rem !important;
    }

    .split-image-container,
    .split-text-container {
        max-width: 100% !important;
        width: 100% !important;
    }
}

/* Extra small mobile fixes */
@media (max-width: 480px) {
    .nav {
        width: calc(100% - 1rem) !important;
        top: 0.5rem !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        border-radius: 1.25rem !important;
    }

    .nav-container {
        padding: 0.5rem 0.75rem !important;
    }

    .container {
        padding: 0 0.75rem !important;
    }

    .hero {
        padding: 4.5rem 0 2rem !important;
    }

    .hero-headline-card,
    .hero-subheadline-card {
        padding: 1rem !important;
    }

    .headline-hero {
        font-size: 1.65rem !important;
        line-height: 1.1 !important;
    }

    .hero-subheadline {
        font-size: 0.875rem !important;
    }

    .nav {
        width: calc(100% - 0.5rem) !important;
        left: 0.25rem;
        right: 0.25rem;
    }

    /* Reduce all section padding */
    section {
        padding: 2rem 0 !important;
    }

    .pricing,
    .faq,
    .footer {
        padding: 2rem 0.5rem !important;
    }

    .glass-footer {
        padding: 1.25rem 0.875rem !important;
    }
}
