/* Mobile First Responsive Design */

/* Extra Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
    
    /* Typography adjustments */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Hero section mobile */
    .hero-section {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    .hero-section::before {
        display: none; /* Hide decorative background on mobile */
    }
    
    .hero-content {
        text-align: center;
        padding: 1rem;
    padding-top: 100px;
}
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    /* Navigation mobile */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem;
    }
    
    /* Cards mobile */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    overflow-x: hidden;
}
    
    /* Service cards mobile */
    .service-card .card-img-top {
        height: 180px;
    }
    
    /* Team photos mobile */
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    /* Contact form mobile */
    .contact-form {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    /* Gallery mobile */
    .gallery-image {
        height: 150px;
    }
    
    /* Price display mobile */
    .price-display {
        font-size: 1.5rem;
    }
    
    /* Footer mobile */
    footer .container {
        text-align: center;
    }
    
    /* Animations disabled on mobile per requirements */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
    
    /* Disable hover effects on mobile */
    .card:hover,
    .feature-card:hover,
    .service-card:hover,
    .feature-item:hover,
    .price-card:hover,
    .team-member:hover,
    .review-card:hover,
    .faq-card:hover,
    .contact-info:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-buttons .btn {
        display: inline-block;
        width: auto;
        margin-right: 1rem;
    }
    
    .service-card .card-img-top {
        height: 200px;
    }
    
    .gallery-image {
        height: 180px;
    }
    
    /* Reduce animations on smaller tablets */
    [data-sal] {
        animation-duration: 0.3s !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    
    .hero-section {
        min-height: 90vh;
    }
    
    .hero-content {
        padding: 2rem;
    padding-top: 100px;
}
    
    .service-card .card-img-top {
        height: 220px;
    }
    
    .team-photo {
        width: 110px;
        height: 110px;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    .contact-form {
        padding: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-content {
        padding: 3rem;
    padding-top: 100px;
}
    
    .service-card .card-img-top {
        height: 240px;
    }
    
    .gallery-image {
        height: 220px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    
    .container {
        max-width: 1140px;
    }
    
    .hero-content {
        padding: 4rem;
    padding-top: 100px;
}
    
    .service-card .card-img-top {
        height: 260px;
    }
    
    .gallery-image {
        height: 240px;
    }
    
    /* Enhanced hover effects on large screens */
    .card:hover {
        transform: translateY(-6px);
    }
    
    .service-card:hover {
        transform: translateY(-10px);
    }
}

/* Print styles */
@media print {
    
    /* Hide non-essential elements when printing */
    .navbar,
    .hero-buttons,
    .gallery-image,
    .contact-form,
    footer {
        display: none;
    }
    
    /* Optimize typography for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
        background: #fff;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    /* Ensure cards print properly */
    .card {
        border: 1px solid #ccc;
        box-shadow: none;
        page-break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    /* Remove animations and transforms for print */
    * {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    
    :root {
        --primary-color: #0066cc;
        --primary-dark: #004499;
        --gray-600: #333;
        --gray-800: #000;
        --white: #fff;
    }
    
    .card {
        border: 2px solid var(--gray-800);
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .form-control {
        border: 2px solid var(--gray-800);
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    
    /* Remove all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove transform effects */
    .card:hover,
    .btn:hover,
    .feature-card:hover,
    .service-card:hover,
    .team-member:hover {
        transform: none !important;
    }
    
    /* Disable Sal.js animations */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Custom breakpoint for very small screens */
@media (max-width: 374.98px) {
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .hero-content {
        padding: 0.5rem;
    padding-top: 100px;
}
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 1rem;
        margin: 0.5rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    .team-photo {
        width: 80px;
        height: 80px;
    }
    
    .gallery-image {
        height: 120px;
    }
}

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
    
    .hero-section {
        min-height: 90vh;
    }
    
    .hero-content {
        padding: 1rem;
    padding-top: 100px;
}
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* Dark mode support (future enhancement) */

/* Focus management for keyboard navigation */
@media (pointer: coarse) {
    
    /* Larger touch targets for mobile */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 1rem;
    }
    
    .form-control {
        min-height: 44px;
    }
}

/* Specific adjustments for common device sizes */

/* iPhone SE and similar */
@media only screen and (max-width: 375px) {
    
    .price-display {
        font-size: 1.25rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
    }
}

/* iPad and similar tablets */
@media only screen and (min-width: 768px) and (max-width: 1024px) {
    
    .hero-section {
        min-height: 85vh;
    }
    
    .service-card .card-img-top {
        height: 200px;
    }
    
    /* Ensure proper spacing on tablets */
    .py-5 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 767.98px) {
    
    /* Reduce complexity of gradients on mobile */
    .hero-section {
        background: var(--light-color);
    }
    
    .btn-primary {
        background: var(--primary-color);
    }
    
    footer {
        background: var(--dark-color);
    }
    
    /* Optimize images */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Reduce box shadows for better performance */
    .card {
        box-shadow: var(--shadow-sm);
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 767.98px) {
    
    /* Ensure adequate spacing between interactive elements */
    .btn + .btn {
        margin-top: 0.5rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    /* Improve form usability */
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    /* Better contrast for mobile */
    .text-muted {
        color: var(--gray-600);
    }
} 