/* ===========================
   SeniorTech Support - Responsive CSS
   Mobile and Tablet Optimizations
   =========================== */

/* Mobile First Approach */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    
    /* Typography adjustments for mobile */
    h1 {
        font-size: 1.875rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    p {
        font-size: 0.9rem;
    }
    
    /* Hero section mobile adjustments */
    #hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.875rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
    }
    
    /* Navigation mobile */
    .navbar-brand {
        font-size: 1.125rem;
    }
    
    /* Cards mobile spacing */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-img-top {
        height: 150px;
    }
    
    /* Gallery mobile */
    .gallery-item img {
        height: 200px;
    }
    
    /* Team section mobile */
    #team-section .card-img-top {
        height: 200px;
    }
    
    /* Services mobile */
    .price {
        font-size: 1.25rem;
    }
    
    /* Contact form mobile */
    .form-label {
        font-size: 0.9rem;
    }
    
    /* Footer mobile */
    #footer-section {
        text-align: center;
    }
    
    #footer-section .col-lg-2,
    #footer-section .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Hide decorative blobs on mobile */
    .hero-decoration {
        display: none;
    }
    
    /* NO ANIMATIONS ON MOBILE (as per requirements) */
    * {
        animation: none;
        transition: none;
    }
    
    .card:hover {
        transform: none;
        box-shadow: var(--shadow-light);
    }
    
    .gallery-item:hover {
        transform: none;
    }
    
    .gallery-item img {
        transition: none;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    
    /* Hero adjustments */
    #hero-section {
        min-height: 85vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.063rem;
    }
    
    /* Card adjustments */
    .card-img-top {
        height: 175px;
    }
    
    .gallery-item img {
        height: 225px;
    }
    
    #team-section .card-img-top {
        height: 225px;
    }
    
    /* Reduce animations on small screens */
    @media (prefers-reduced-motion: no-preference) {
        .card:hover {
            transform: translateY(-2px);
        }
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    
    /* Hero section tablet */
    #hero-section {
        min-height: 90vh;
    }
    
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .hero-content p {
        font-size: 1.125rem;
    }
    
    /* Navigation tablet */
    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    /* Cards tablet */
    .card-img-top {
        height: 185px;
    }
    
    .gallery-item img {
        height: 240px;
    }
    
    #team-section .card-img-top {
        height: 240px;
    }
    
    /* Services tablet */
    .price {
        font-size: 1.375rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    
    /* Standard desktop adjustments */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    .gallery-item img {
        height: 250px;
    }
    
    #team-section .card-img-top {
        height: 250px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    
    /* Enhanced spacing for large screens */
    .container {
        max-width: 1140px;
    }
    
    .hero-content h1 {
        font-size: 2.75rem;
    }
    
    .hero-content p {
        font-size: 1.25rem;
    }
    
    /* Enhanced cards for large screens */
    .card-img-top {
        height: 220px;
    }
    
    .gallery-item img {
        height: 280px;
    }
    
    #team-section .card-img-top {
        height: 280px;
    }
}

/* Landscape Orientation Adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    
    /* Reduce hero height in landscape */
    #hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }
}

/* Print Styles */
@media print {
    
    /* Hide navigation and decorative elements */
    .navbar,
    .hero-decoration,
    .btn,
    #footer-section {
        display: none;
    }
    
    /* Optimize text for print */
    body {
        color: black;
        background: white;
        font-size: 12pt;
        line-height: 1.4;
    overflow-x: hidden;
}
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
        page-break-after: avoid;
    }
    
    /* Ensure cards don't break across pages */
    .card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
    
    /* Hide gallery and complex elements */
    #gallery-section,
    #video-section {
        display: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    
    /* Enhanced contrast for mobile */
    @media (max-width: 575.98px) {
        .card {
            border: 2px solid black;
        }
        
        .btn {
            border-width: 2px;
        }
        
        .form-control,
        .form-select {
            border: 2px solid black;
        }
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    
    /* Disable all animations */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms;
        animation-iteration-count: 1;
        transition-duration: 0.01ms;
        scroll-behavior: auto;
    }
    
    /* Remove hover effects */
    .card:hover,
    .gallery-item:hover {
        transform: none;
    }
}

/* Focus Management for Mobile */
@media (max-width: 767.98px) {
    
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    /* Form elements mobile */
    .form-control,
    .form-select {
        min-height: 44px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Better spacing for mobile forms */
    .form-label {
        margin-bottom: 0.5rem;
    }
    
    .mb-3 {
        margin-bottom: 1.5rem;
    }
}

/* Tablet-specific adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    
    /* Better spacing for tablet */
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    /* Navbar adjustments for tablet */
    .navbar-nav {
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }
}

/* Accessibility improvements for all screen sizes */
@media (max-width: 991.98px) {
    
    /* Better focus indicators on smaller screens */
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    /* Skip links */
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    
    .sr-only:focus {
        position: static;
        width: auto;
        height: auto;
        padding: 0.5rem;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: normal;
    }
} 