/* Mobile-First Optimization CSS for Frisquet24h */
/* Applied in addition to existing style.css */

/* ========================================
   GLOBAL MOBILE FIXES
   ======================================== */

/* Prevent horizontal scrolling */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

* {
    box-sizing: border-box !important;
}

/* Better mobile font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ========================================
   CONTAINER MOBILE OPTIMIZATIONS
   ======================================== */

/* Enhanced container padding for mobile */
.container,
.container-fluid,
.container-xl {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* Mobile breakpoint adjustments */
@media (min-width: 576px) {
    .container,
    .container-fluid,
    .container-xl {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}

@media (min-width: 768px) {
    .container,
    .container-fluid, 
    .container-xl {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
}

/* ========================================
   HEADER MOBILE OPTIMIZATION
   ======================================== */

/* Hide desktop header info on mobile */
@media (max-width: 767px) {
    .holder-top-desktop {
        display: none !important;
    }
    
    /* Optimize header layout for mobile */
    .tt-holder {
        padding: 10px 0 !important;
    }
    
    /* Logo optimization */
    .tt-logo img {
        width: 160px !important;
        height: auto !important;
    }
    
    /* Mobile navigation adjustments */
    #tt-nav ul li {
        margin: 0 4px !important;
    }
    
    #tt-nav ul li a {
        font-size: 0.85rem !important;
        padding: 6px 8px !important;
    }
    
    /* Phone button mobile optimization */
    .tt-btn {
        font-size: 0.9rem !important;
        padding: 8px 12px !important;
        white-space: nowrap !important;
    }
}

/* ========================================
   HERO SECTION MOBILE OPTIMIZATION
   ======================================== */

/* Responsive hero typography */
@media (max-width: 575px) {
    .subtitle-wrapper-02__title {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .breadcrumb {
        font-size: 1rem !important;
    }
    
    .breadcrumb a,
    .breadcrumb span {
        font-size: 1rem !important;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .subtitle-wrapper-02__title {
        font-size: 3rem !important;
        line-height: 1.2 !important;
    }
    
    .breadcrumb {
        font-size: 1.1rem !important;
    }
}

/* Hero background optimization */
@media (max-width: 767px) {
    #subtitle-wrapper {
        min-height: 250px !important;
        background-size: cover !important;
        background-position: center center !important;
    }
    
    .tt-description {
        padding: 40px 0 !important;
    }
}

/* ========================================
   FORM MOBILE OPTIMIZATION
   ======================================== */

/* Mobile form improvements */
@media (max-width: 767px) {
    .form-default {
        padding: 0 !important;
    }
    
    /* Full width form fields on mobile */
    .form-group .col-10 {
        -ms-flex: 0 0 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    /* Better form field spacing */
    .form-group {
        margin-bottom: 1.5rem !important;
    }
    
    /* Touch-friendly form inputs */
    .form-control {
        height: 50px !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 12px 16px !important;
        border-radius: 8px !important;
        width: 100% !important;
        border: 2px solid #ddd !important;
    }
    
    .form-control:focus {
        border-color: #007bff !important;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
    }
    
    /* Textarea optimization */
    .form-control[rows] {
        min-height: 120px !important;
        height: auto !important;
        resize: vertical !important;
    }
    
    /* Full width submit button on mobile */
    .tt-btn.tt-btn__wide {
        width: 100% !important;
        height: 50px !important;
        font-size: 1.1rem !important;
        font-weight: 600 !important;
        margin-top: 1rem !important;
    }
    
    .tt-btn.tt-btn__wide .button {
        width: 100% !important;
        height: 50px !important;
        font-size: 1.1rem !important;
        line-height: 50px !important;
    }
    
    .tt-btn.tt-btn__wide .mask {
        height: 50px !important;
        line-height: 50px !important;
    }
}

/* ========================================
   CONTENT GRID MOBILE OPTIMIZATION
   ======================================== */

/* Single column layout on mobile */
@media (max-width: 767px) {
    .col-lg-4,
    .col-lg-8,
    .col-md-4,
    .col-md-8 {
        -ms-flex: 0 0 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 2rem !important;
    }
    
    /* Info cards mobile optimization */
    .info03__wrapper {
        margin: 0 -10px !important;
    }
    
    .info03__wrapper > div {
        padding: 0 10px !important;
        margin-bottom: 1.5rem !important;
    }
    
    .info03 {
        text-align: center !important;
        padding: 20px !important;
        background: #f8f9fa !important;
        border-radius: 8px !important;
        margin-bottom: 1rem !important;
        border: 1px solid #e9ecef !important;
    }
    
    .info03__icon {
        font-size: 2.5rem !important;
        margin-bottom: 1rem !important;
        color: #007bff !important;
    }
    
    .info03__title {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
        font-weight: 600 !important;
    }
}

/* ========================================
   NAVIGATION MOBILE IMPROVEMENTS
   ======================================== */

/* Better mobile menu toggle */
@media (max-width: 1024px) {
    .tt-menu-toggle {
        font-size: 1.5rem !important;
        padding: 8px !important;
        border: 2px solid #007bff !important;
        border-radius: 4px !important;
        background: transparent !important;
        color: #007bff !important;
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    .tt-menu-toggle:hover {
        background: #007bff !important;
        color: white !important;
    }
}

/* ========================================
   TYPOGRAPHY MOBILE IMPROVEMENTS
   ======================================== */

/* Mobile typography optimization */
@media (max-width: 575px) {
    h1 { font-size: 2rem !important; }
    h2 { font-size: 1.75rem !important; }
    h3 { font-size: 1.5rem !important; }
    h4 { font-size: 1.25rem !important; }
    h5 { font-size: 1.1rem !important; }
    h6 { font-size: 1rem !important; }
    
    p {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 1.2rem !important;
    }
    
    .title-block__title {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }
    
    .title-block__label {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
}

/* ========================================
   FOOTER MOBILE OPTIMIZATION
   ======================================== */

/* Mobile footer improvements */
@media (max-width: 767px) {
    .f-col-wrapper {
        text-align: center !important;
    }
    
    .f-col-wrapper .col-md-4,
    .f-col-wrapper .col-md-8 {
        -ms-flex: 0 0 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 2rem !important;
    }
    
    .f-logo img {
        width: 200px !important;
        margin-bottom: 1rem !important;
    }
    
    .f-text {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        margin-bottom: 2rem !important;
    }
    
    .f-list02 {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 0.5rem !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .f-list02 li {
        margin-bottom: 0.5rem !important;
    }
    
    .f-list02 li a {
        font-size: 0.9rem !important;
        display: block !important;
        padding: 8px !important;
        background: rgba(255,255,255,0.1) !important;
        border-radius: 4px !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
    }
    
    .f-list02 li a:hover {
        background: rgba(255,255,255,0.2) !important;
    }
}

/* ========================================
   TOUCH IMPROVEMENTS
   ======================================== */

/* Better touch targets */
@media (max-width: 1024px) {
    a, button, input, select, textarea {
        min-height: 44px !important;
    }
    
    /* Social icons touch targets */
    .h-social li a {
        min-height: 44px !important;
        min-width: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

/* Reduce animations on mobile for better performance */
@media (max-width: 767px) {
    * {
        animation-duration: 0.3s !important;
        transition-duration: 0.3s !important;
    }
    
    /* Lazy loading optimization */
    .lazyload {
        background-size: cover !important;
        background-position: center !important;
    }
}

/* ========================================
   SECTION SPACING MOBILE
   ======================================== */

@media (max-width: 767px) {
    .section-indent {
        padding: 2rem 0 !important;
    }
    
    .section-inner {
        padding: 2rem 0 !important;
    }
    
    .title-block {
        margin-bottom: 1.5rem !important;
    }
    
    .text-center {
        text-align: center !important;
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Better focus states for mobile */
@media (max-width: 1024px) {
    a:focus,
    button:focus,
    input:focus,
    select:focus,
    textarea:focus {
        outline: 3px solid #007bff !important;
        outline-offset: 2px !important;
    }
    
    /* High contrast mode support */
    @media (prefers-contrast: high) {
        .form-control {
            border: 2px solid #000 !important;
        }
        
        .tt-btn {
            border: 2px solid #000 !important;
        }
    }
}