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

/* Prevent zoom on input focus (iOS) */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="url"],
    input[type="search"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Better touch targets */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .menu-toggle {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .floating-phone {
        width: 56px;
        height: 56px;
        bottom: 20px;
        right: 20px;
    }

    .floating-phone svg {
        width: 28px;
        height: 28px;
    }

    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden;
    }

    /* Better form spacing */
    .form-group {
        margin-bottom: var(--spacing-md);
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        box-sizing: border-box;
    }
}

/* 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;
    }
}
