/* 
CoworkTrack - Remote Coworking Accountability Software Template
Responsive CSS File
Mobile-First Responsive Design
*/

/* Mobile First Approach - Base styles are mobile */

/* Extra Small Devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1, .hero-title {
        font-size: 2rem;
    padding-top: 225px;
}
    
    h2, .section-title {
        font-size: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    /* Hero section mobile */
    .hero-section {
        min-height: 70vh;
        padding-top: 80px;
        text-align: center;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0 0 1rem 0;
    }
    
    /* Disable animations on mobile */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    /* Remove hover effects on mobile */
    .feature-card:hover,
    .service-card:hover {
        transform: none;
    }
    
    /* Mobile navigation */
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid #e9ecef;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        text-align: center;
    }
    
    /* Mobile sections padding */
    .py-5 {
        padding: 2rem 0;
    }
    
    /* Mobile cards */
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card {
        margin-bottom: 1.5rem;
    }
    
    /* Timeline mobile */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        padding-left: 50px;
    }
    
    .timeline-item:nth-child(odd) {
        flex-direction: column;
    }
    
    .timeline-date {
        margin-bottom: 1rem;
        width: auto;
    }
    
    .timeline-content {
        margin: 0;
        width: 100%;
    }
    
    /* Mobile team grid */
    .team-member {
        margin-bottom: 2rem;
    }
    
    .team-photo {
        width: 120px;
        height: 120px;
    }
    
    /* Mobile process steps */
    .process-step {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Mobile gallery */
    .gallery-image {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    /* Mobile contact form */
    .contact-form,
    .contact-info {
        margin-bottom: 2rem;
    }
    
    /* Mobile footer */
    .footer-section .row > div {
        margin-bottom: 2rem;
    }
    
    /* Mobile stats */
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Mobile pricing featured card */
    .pricing-card.featured {
        transform: none;
        border: 2px solid var(--primary-teal);
    }
    
    /* Mobile blog cards */
    .blog-image {
        height: 150px;
    }
    
    /* Mobile breadcrumb */
    .breadcrumb-nav {
        padding: 0.5rem 0;
        margin-top: 70px;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    h1, .hero-title {
        font-size: 2.2rem;
    padding-top: 225px;
}
    
    h2, .section-title {
        font-size: 1.7rem;
    }
    
    .hero-section {
        min-height: 80vh;
    }
    
    /* Disable animations on small devices */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .feature-card:hover,
    .service-card:hover {
        transform: none;
    }
    
    .team-photo {
        width: 140px;
        height: 140px;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
    
    .gallery-image {
        height: 220px;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    h1, .hero-title {
        font-size: 2.3rem;
    padding-top: 225px;
}
    
    .hero-section {
        min-height: 90vh;
    }
    
    /* Enable light animations on tablets */
    .feature-card,
    .service-card {
        transition: transform 0.2s ease;
    }
    
    .feature-card:hover,
    .service-card:hover {
        transform: translateY(-2px);
    }
    
    .navbar-brand {
        font-size: 1.2rem !important;
    }
    
    .team-photo {
        width: 150px;
        height: 150px;
    }
    
    .gallery-image {
        height: 230px;
    }
    
    /* Tablet timeline adjustments */
    .timeline-content {
        margin: 0 1rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Full animations enabled on desktop */
    .feature-card,
    .service-card,
    .pricing-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .feature-card:hover,
    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }
    
    .gallery-image:hover {
        transform: scale(1.05);
    }
    
    /* Desktop hero section */
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-buttons .btn {
        display: inline-block;
        width: auto;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    padding-top: 225px;
}
    
    .section-title {
        font-size: 2.2rem;
    }
    
    /* Enhanced hover effects for large screens */
    .service-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    }
}

/* Extra Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-title {
        font-size: 3rem;
    padding-top: 225px;
}
}

/* Portrait Orientation Adjustments */
@media (orientation: portrait) and (max-width: 768px) {
    .hero-section {
        padding-top: 70px;
        min-height: 80vh;
    }
    
    .timeline::before {
        left: 15px;
    }
    
    .timeline-item {
        padding-left: 40px;
    }
}

/* Landscape Orientation Adjustments for Mobile */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
        padding-top: 70px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .py-5 {
        padding: 1.5rem 0;
    }
}

/* High DPI / Retina Display Adjustments */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-image,
    .team-photo,
    .gallery-image,
    .blog-image,
    .case-study-image {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print Styles */
@media print {
    * {
        animation: none !important;
        transition: none !important;
    }
    
    .navbar,
    .hero-buttons,
    .footer-section {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    overflow-x: hidden;
}
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .feature-card,
    .service-card,
    .review-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid currentColor;
    }
    
    .feature-card,
    .service-card,
    .pricing-card {
        border: 1px solid #333;
    }
}

/* Focus States for Keyboard Navigation */
@media (any-hover: none) {
    .btn:focus,
    .nav-link:focus,
    .form-control:focus {
        outline: 3px solid var(--primary-blue);
        outline-offset: 2px;
    }
}

/* Dark Mode Support (if needed) */

/* Container Adjustments for Different Screen Sizes */
@media (min-width: 576px) {
    .container-sm {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container-md {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container-lg {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container-xl {
        max-width: 1140px;
    }
}

/* Custom Grid Adjustments */
@media (max-width: 991.98px) {
    .row.align-items-center {
        text-align: center;
    }
    
    .row.align-items-center .col-lg-6:first-child {
        margin-bottom: 2rem;
    }
}

/* Mobile Menu Improvements */
@media (max-width: 991.98px) {
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
    }
    
    .navbar-collapse {
        background: var(--white);
        border-radius: var(--border-radius);
        padding: 1rem;
        margin-top: 0.5rem;
        box-shadow: var(--box-shadow);
    }
}

/* Form Improvements for Mobile */
@media (max-width: 767.98px) {
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn {
        min-height: 48px; /* Better touch target */
    }
}

/* Loading and Performance Optimizations */
@media (max-width: 768px) {
    .hero-image img,
    .service-image,
    .gallery-image {
        loading: lazy;
    }
}

/* Utility Classes for Responsive Design */
.d-mobile-none {
    display: none;
}

@media (min-width: 768px) {
    .d-mobile-none {
        display: block;
    }
}

.d-desktop-none {
    display: block;
}

@media (min-width: 768px) {
    .d-desktop-none {
        display: none;
    }
}

/* Text Size Adjustments */
@media (max-width: 575.98px) {
    .section-description,
    .hero-description {
        font-size: 0.9rem;
    }
    
    .feature-desc,
    .service-desc,
    .review-text {
        font-size: 0.85rem;
    }
}

/* Spacing Adjustments for Mobile */
@media (max-width: 767.98px) {
    .mb-4 {
        margin-bottom: 1rem;
    }
    
    .mt-5 {
        margin-top: 2rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
