/* Mobile Enhancements for Levr Website */
/* This file provides comprehensive mobile improvements without affecting desktop */

/* Mobile-specific touch improvements */
@media (max-width: 768px) {
    /* Enhanced touch targets */
    .nav-toggle {
        min-width: 48px;
        min-height: 48px;
        background: rgba(59, 130, 246, 0.1);
        border: 1px solid rgba(59, 130, 246, 0.2);
        border-radius: var(--radius-md);
        transition: all 0.3s ease;
    }
    
    .nav-toggle:hover {
        background: rgba(59, 130, 246, 0.15);
        border-color: rgba(59, 130, 246, 0.3);
        transform: scale(1.05);
    }
    
    .nav-toggle:active {
        transform: scale(0.95);
        background: rgba(59, 130, 246, 0.2);
    }
    
    /* Enhanced mobile navigation */
    .nav-menu {
        padding: 2rem 1rem;
    }
    
    .nav-list {
        gap: 2rem;
        max-width: 320px;
    }
    
    .nav-link {
        padding: 1.25rem;
        min-height: 56px;
        min-width: 56px;
        background: rgba(59, 130, 246, 0.05);
        border: 1px solid transparent;
        border-radius: var(--radius-lg);
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: rgba(59, 130, 246, 0.1);
        border-color: rgba(59, 130, 246, 0.2);
        transform: translateY(-2px);
    }
    
    .nav-link.active {
        background: rgba(59, 130, 246, 0.15);
        border-color: var(--primary-400);
    }
    
    /* Enhanced mobile buttons */
    .btn-primary, .btn-secondary {
        padding: 1rem 1.75rem;
        font-size: 1rem;
        min-height: 56px;
        min-width: 56px;
        font-weight: 600;
        border-radius: var(--radius-lg);
        transition: all 0.3s ease;
    }
    
    .btn-primary {
        box-shadow: var(--shadow-md);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }
    
    /* Enhanced mobile brand logo */
    .brand-logo {
        min-height: 56px;
        min-width: 56px;
        border-radius: var(--radius-md);
        transition: all 0.3s ease;
    }
    
    .brand-logo:hover {
        background: rgba(59, 130, 246, 0.05);
        transform: scale(1.05);
    }
    
    /* Mobile navigation container */
    .nav-container {
        height: 70px;
    }
    
    /* Mobile brand image */
    .brand-image {
        height: 120px;
        max-width: 360px;
    }
    
    /* Mobile form improvements */
    input, textarea, select {
        font-size: 16px !important;
        min-height: 48px;
        padding: 0.875rem 1rem;
        border-radius: var(--radius-md);
        border: 1px solid var(--gray-300);
        transition: all 0.2s ease;
    }
    
    input:focus, textarea:focus, select:focus {
        outline: none;
        border-color: var(--primary-500);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }
    
    /* Mobile button improvements */
    button, .btn {
        min-height: 48px;
        min-width: 48px;
        font-size: 16px;
        border-radius: var(--radius-md);
        transition: all 0.2s ease;
    }
    
    /* Mobile spacing improvements */
    .container, .section {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Mobile card improvements */
    .card, .feature-card, .service-card {
        margin: 0.75rem 0;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-md);
        padding: 1.5rem;
    }
    
    /* Mobile grid improvements */
    .grid, .features-grid, .services-grid {
        gap: 1rem;
    }
    
    /* Mobile image optimizations */
    img {
        max-width: 100%;
        height: auto;
        border-radius: var(--radius-md);
    }
    
    /* Mobile table improvements */
    table {
        font-size: 14px;
        overflow-x: auto;
        display: block;
        border-radius: var(--radius-md);
    }
    
    /* Mobile modal improvements */
    .modal {
        padding: 1rem;
        border-radius: var(--radius-lg);
    }
    
    /* Mobile tooltip improvements */
    .tooltip {
        font-size: 14px;
        max-width: 250px;
    }
    
    /* Enhanced mobile typography */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* Mobile content improvements */
    .main {
        padding: 0 1rem;
    }
    
    /* Mobile section improvements */
    section {
        padding: 2rem 0;
    }
    
    /* Mobile heading improvements */
    h1 {
        font-size: clamp(2rem, 6vw, 3rem);
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: clamp(1.5rem, 5vw, 2.25rem);
        line-height: 1.3;
        margin-bottom: 0.875rem;
    }
    
    h3 {
        font-size: clamp(1.25rem, 4vw, 1.875rem);
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }
    
    h4 {
        font-size: clamp(1.125rem, 3.5vw, 1.5rem);
        line-height: 1.4;
        margin-bottom: 0.625rem;
    }
    
    /* Mobile paragraph improvements */
    p {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    /* Mobile list improvements */
    ul, ol {
        padding-left: 1.5rem;
        margin-bottom: 1rem;
    }
    
    li {
        margin-bottom: 0.5rem;
        line-height: 1.5;
    }
    
    /* Mobile blockquote improvements */
    blockquote {
        padding: 1rem;
        margin: 1rem 0;
        border-left: 4px solid var(--primary-500);
        background: rgba(59, 130, 246, 0.05);
        border-radius: var(--radius-md);
    }
    
    /* Mobile code improvements */
    code {
        font-size: 0.875rem;
        padding: 0.25rem 0.5rem;
        background: var(--gray-100);
        border-radius: var(--radius-sm);
    }
    
    pre {
        padding: 1rem;
        overflow-x: auto;
        background: var(--gray-100);
        border-radius: var(--radius-md);
        margin: 1rem 0;
    }
    
    /* Mobile link improvements */
    a {
        color: var(--primary-600);
        text-decoration: none;
        border-bottom: 1px solid transparent;
        transition: all 0.2s ease;
    }
    
    a:hover {
        border-bottom-color: var(--primary-600);
    }
    
    /* Mobile button group improvements */
    .btn-group {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .btn-group .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Mobile form group improvements */
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 600;
        color: var(--gray-700);
    }
    
    /* Mobile alert improvements */
    .alert {
        padding: 1rem;
        margin: 1rem 0;
        border-radius: var(--radius-md);
        border-left: 4px solid;
    }
    
    .alert-success {
        background: var(--success-50);
        border-left-color: var(--success-500);
        color: var(--success-600);
    }
    
    .alert-warning {
        background: var(--warning-50);
        border-left-color: var(--warning-500);
        color: var(--warning-600);
    }
    
    .alert-error {
        background: var(--error-50);
        border-left-color: var(--error-500);
        color: var(--error-600);
    }
    
    /* Mobile badge improvements */
    .badge {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
        border-radius: var(--radius-full);
        font-weight: 600;
        display: inline-block;
    }
    
    /* Mobile progress improvements */
    .progress {
        height: 0.75rem;
        background: var(--gray-200);
        border-radius: var(--radius-full);
        overflow: hidden;
        margin: 1rem 0;
    }
    
    .progress-bar {
        height: 100%;
        background: var(--primary-500);
        transition: width 0.3s ease;
    }
    
    /* Mobile divider improvements */
    .divider {
        height: 1px;
        background: var(--gray-200);
        margin: 2rem 0;
    }
    
    /* Mobile spacing utilities */
    .mt-mobile-1 { margin-top: 0.5rem; }
    .mt-mobile-2 { margin-top: 1rem; }
    .mt-mobile-3 { margin-top: 1.5rem; }
    .mt-mobile-4 { margin-top: 2rem; }
    
    .mb-mobile-1 { margin-bottom: 0.5rem; }
    .mb-mobile-2 { margin-bottom: 1rem; }
    .mb-mobile-3 { margin-bottom: 1.5rem; }
    .mb-mobile-4 { margin-bottom: 2rem; }
    
    .pt-mobile-1 { padding-top: 0.5rem; }
    .pt-mobile-2 { padding-top: 1rem; }
    .pt-mobile-3 { padding-top: 1.5rem; }
    .pt-mobile-4 { padding-top: 2rem; }
    
    .pb-mobile-1 { padding-bottom: 0.5rem; }
    .pb-mobile-2 { padding-bottom: 1rem; }
    .pb-mobile-3 { padding-bottom: 1.5rem; }
    .pb-mobile-4 { padding-bottom: 2rem; }
}

/* Extra small screen improvements */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
        height: 75px;
    }
    
    .brand-image {
        height: 100px;
        max-width: 300px;
    }
    
    .nav-link {
        font-size: 1.375rem;
        padding: 1rem;
        min-height: 52px;
        min-width: 52px;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        min-height: 52px;
        min-width: 52px;
    }
    
    .nav-toggle {
        padding: 0.625rem;
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-toggle span {
        width: 22px;
        height: 2.5px;
    }
    
    /* Extra small screen improvements */
    .nav-list {
        gap: 1.5rem;
    }
    
    .nav-menu {
        padding: 1.5rem 0.75rem;
    }
    
    /* Mobile form improvements for small screens */
    input, textarea, select {
        padding: 0.75rem 0.875rem;
        font-size: 16px !important;
    }
    
    /* Mobile button improvements for small screens */
    button, .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }
    
    /* Mobile spacing for small screens */
    .container, .section {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Extra small screen content improvements */
    .main {
        margin-top: 90px;
        padding: 0 0.75rem;
    }
    
    section {
        padding: 1.5rem 0;
    }
    
    h1 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }
    
    h2 {
        font-size: clamp(1.375rem, 6vw, 2rem);
    }
    
    h3 {
        font-size: clamp(1.125rem, 5vw, 1.625rem);
    }
    
    h4 {
        font-size: clamp(1rem, 4.5vw, 1.375rem);
    }
    
    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    /* Extra small screen card improvements */
    .card, .feature-card, .service-card {
        padding: 1.25rem;
        margin: 0.5rem 0;
    }
}

/* Mobile footer enhancements */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-container {
        padding: 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .social-link {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        font-size: 1.125rem;
    }
    
    /* Mobile footer typography */
    .footer-brand .brand-text {
        font-size: 1.75rem;
        text-align: center;
    }
    
    .footer-description {
        text-align: center;
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .footer-title {
        font-size: 1.125rem;
        text-align: center;
        margin-bottom: 1.25rem;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-links li {
        margin-bottom: 0.75rem;
    }
    
    .footer-links a {
        font-size: 1rem;
        padding: 0.5rem 0;
        display: inline-block;
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-md);
        transition: all 0.2s ease;
    }
    
    .footer-links a:hover {
        background: rgba(59, 130, 246, 0.1);
        color: var(--primary-600);
        transform: translateY(-1px);
    }
    
    .footer-bottom {
        text-align: center;
        padding-top: 1.5rem;
    }
    
    .footer-bottom p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-container {
        padding: 0 0.75rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-brand .brand-text {
        font-size: 1.5rem;
    }
    
    .footer-description {
        font-size: 0.95rem;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
        min-height: 40px;
        min-width: 40px;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        font-size: 1rem;
    }
    
    .footer-bottom p {
        font-size: 0.85rem;
    }
}

/* Mobile-specific performance optimizations */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    * {
        animation-duration: 0.2s !important;
        transition-duration: 0.2s !important;
    }
    
    /* Optimize scrolling */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent horizontal scrolling */
    body {
        overflow-x: hidden;
        width: 100%;
    }
    
    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
    
    /* Mobile-specific hover states */
    @media (hover: none) {
        .nav-link:hover,
        .btn:hover,
        .social-link:hover {
            transform: none !important;
            box-shadow: none !important;
        }
    }
}

/* Mobile accessibility improvements */
@media (max-width: 768px) {
    /* Ensure sufficient color contrast */
    .nav-link {
        color: var(--gray-900);
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--primary-600);
    }
    
    /* Improve focus states for mobile */
    .nav-toggle:focus,
    .nav-link:focus,
    .btn:focus {
        outline: 2px solid var(--primary-500);
        outline-offset: 2px;
    }
    
    /* Ensure readable font sizes */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* Improve button contrast */
    .btn-primary {
        background: var(--primary-600);
        color: white;
        border: none;
    }
    
    .btn-secondary {
        background: white;
        color: var(--primary-600);
        border: 2px solid var(--primary-600);
    }
}
