
/* Mobile Enhancement - 2026-05-20 */
/* Loaded after all other CSS files for mobile overrides */

/* ===== Font Display Swap ===== */
@font-face {
    font-display: swap;
}

/* ===== Touch Target Optimization ===== */
@media (max-width: 768px) {
    /* Buttons minimum 44px touch target */
    .btn, 
    .btn--primary, 
    .btn--outline,
    .btn--sm,
    a.btn {
        min-height: 44px;
        padding: 12px 20px;
    }
    
    /* Nav links */
    .main-nav__link,
    .nav-links > li > a {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 12px 16px;
    }
    
    /* FAQ accordion items */
    .faq-item__question,
    .article-faq-question {
        min-height: 44px;
        padding: 16px;
    }
    
    /* Service cards */
    .service-card {
        margin-bottom: 16px;
    }
    
    /* Phone link - extra large for mobile */
    .top-links a[href^="tel:"],
    a[href^="tel:"] {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ===== Mobile Font Size Improvements ===== */
@media (max-width: 480px) {
    /* Ensure minimum readable font size */
    .breadcrumb i,
    .main-nav__link i,
    .nav-links > li > a i {
        font-size: 0.85rem;
    }
    
    body, p, li, td, th {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Service card text */
    .service-card h3 {
        font-size: 1.1rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    /* News cards */
    .news-card__title {
        font-size: 1rem;
    }
    
    /* CTA section */
    .cta-section h2 {
        font-size: 1.5rem;
    }
    
    .cta-section p {
        font-size: 0.95rem;
    }
}

/* ===== Mobile Navigation Improvements ===== */
@media (max-width: 768px) {
    /* Ensure mobile menu is fully accessible */
    .main-nav__menu.mobile-open {
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .main-nav__menu.mobile-open .nav-links {
        flex-direction: column;
    }
    
    .main-nav__menu.mobile-open .nav-links > li {
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
    /* Dropdown menus on mobile */
    .main-nav__dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        background: transparent;
    }
}

/* ===== Image Optimization ===== */
img {
    max-width: 100%;
    height: auto;
}

/* ===== Smooth Scrolling ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Mobile Hero Section ===== */
@media (max-width: 640px) {
    .hero-banner {
        padding: 40px 0;
    }
    
    .hero-banner h1 {
        font-size: 1.8rem;
    }
    
    .hero-banner p {
        font-size: 1rem;
    }
    
    .hero-banner .btn {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 12px;
    }
}

/* ===== Mobile Service Grid ===== */
@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .trust-items {
        flex-direction: column;
        gap: 8px;
    }
    
    .trust-item {
        text-align: center;
    }
}

/* ===== Mobile CTA Buttons ===== */
@media (max-width: 480px) {
    .cta-box .btn {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }
    
    .cta-box .btn:last-child {
        margin-bottom: 0;
    }
}
