/* Mobile Fix CSS - Specific fixes for mobile devices */

/* Google Pixel 7 Pro and similar devices (412px width) */
@media (max-width: 480px) {
    /* Force header-top to be visible and not cut off */
    .header-top {
        padding: 0.5rem 0 !important;
        min-height: auto !important;
        overflow: visible !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        flex-wrap: wrap !important;
    }

    /* Ensure container inside header-top wraps content properly */
    .header-top .container {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        padding: 0 1rem !important;
        align-items: stretch !important;
    }

    /* Make promo text full width and wrap */
    .header-promo {
        width: 100% !important;
        margin: 0 !important;
        font-size: 0.7rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        line-height: 1.2 !important;
    }

    /* Make button full width and properly sized */
    .header-top .btn {
        width: 100% !important;
        padding: 0.4rem 0.8rem !important;
        font-size: 0.7rem !important;
        min-height: 28px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

    /* Ensure navbar is properly positioned */
    .navbar {
        position: relative !important;
        padding: 1rem 0 !important;
    }

    /* Ensure header is sticky */
    .header {
        position: sticky !important;
        top: 0 !important;
        z-index: 1020 !important;
    }

    /* Carousel section adjustments */
    .carousel-section {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Ensure smooth scroll padding works */
    html {
        scroll-padding-top: 150px !important;
        scroll-behavior: smooth !important;
    }
}

/* Extra small devices (320px) */
@media (max-width: 320px) {
    .header-top {
        padding: 0.75rem 0 !important;
    }

    .header-top .container {
        gap: 0.75rem !important;
        padding: 0 0.5rem !important;
    }

    .header-promo {
        font-size: 0.65rem !important;
    }

    .header-top .btn {
        padding: 0.75rem 1rem !important;
        font-size: 0.75rem !important;
    }

    html {
        scroll-padding-top: 120px !important;
    }
}
