/* Mobile Responsive Styles for Homepage and General Mobile Optimization */

/* Base Mobile Styles */
@media (max-width: 1199px) {
    .container {
        padding: 0 1rem;
    }
    
    .row {
        margin: 0 -0.5rem;
    }
    
    .col-xl-12,
    .col-lg-12,
    .col-md-12,
    .col-sm-12 {
        padding: 0 0.5rem;
    }
}

/* Tablet Styles */
@media (max-width: 991px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    h4 {
        font-size: 1.25rem;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        padding: 2rem 0;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    /* Button Mobile Styles */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Card Mobile Styles */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Mobile Styles */
@media (max-width: 767px) {
    body {
        font-size: 13px;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    /* Typography Mobile */
    h1 {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    h3 {
        font-size: 1.25rem;
        line-height: 1.3;
    }
    
    h4 {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        padding: 1.5rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    /* Button Mobile */
    .btn {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
        min-height: 40px;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    /* Card Mobile */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .card-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .card-text {
        font-size: 0.85rem;
    }
    
    /* Image Mobile */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Form Mobile */
    .form-control {
        padding: 0.6rem 0.75rem;
        font-size: 0.9rem;
        min-height: 44px;
    }
    
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    /* Navigation Mobile */
    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
    }
    
    /* Footer Mobile */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer .row [class*="col-"] {
        margin-bottom: 1.5rem;
    }
    
    /* Spacing Mobile */
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .my-5 {
        margin-top: 2rem !important;
        margin-bottom: 2rem !important;
    }
    
    .my-4 {
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
    }
}

/* Small Mobile Styles */
@media (max-width: 575px) {
    body {
        font-size: 12px;
    }
    
    .container {
        padding: 0 0.25rem;
    }
    
    /* Typography Small Mobile */
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    h4 {
        font-size: 1rem;
    }
    
    p {
        font-size: 0.85rem;
    }
    
    /* Hero Section Small Mobile */
    .hero-section {
        padding: 1rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    /* Button Small Mobile */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-height: 36px;
    }
    
    .btn-lg {
        padding: 0.6rem 1.25rem;
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    /* Card Small Mobile */
    .card-body {
        padding: 0.5rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-text {
        font-size: 0.8rem;
    }
    
    /* Form Small Mobile */
    .form-control {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
        min-height: 40px;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
}

/* Touch Optimization */
@media (max-width: 767px) {
    /* Increase touch targets */
    a, button, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve touch scrolling */
    .overflow-auto {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent zoom on input focus */
    input, select, textarea {
        font-size: 16px;
    }
}

/* Performance Optimizations */
@media (max-width: 767px) {
    /* Reduce animations on mobile */
    * {
        animation-duration: 0.3s !important;
        transition-duration: 0.3s !important;
    }
    
    /* Optimize images */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    /* Reduce shadows for performance */
    .card, .btn, .navbar {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
}

/* Accessibility Mobile */
@media (max-width: 767px) {
    /* Ensure sufficient contrast */
    .text-muted {
        color: #6c757d !important;
    }
    
    /* Improve focus indicators */
    a:focus, button:focus, input:focus, select:focus, textarea:focus {
        outline: 2px solid #8b7355;
        outline-offset: 2px;
    }
    
    /* Ensure readable text sizes */
    .small, small {
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn, .mobile-menu, .mobile-menu-overlay {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
}

