/* Mobile First Responsive Design */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 60px 0;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 1.93rem;
        margin-bottom: 0.62rem;
    padding-top: 250px;
}
    
    .hero-section h2 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .navbar-brand {
        font-size: 1.38rem;
    }
    
    .service-card,
    .feature-card,
    .price-card,
    .blog-card,
    .case-card {
        margin-bottom: 1.72rem;
    }
    
    .contact-form,
    .contact-info {
        margin-bottom: 2rem;
    }
    
    .team-photo {
        width: 100px;
        height: 100px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.31rem;
    }
    
    .gallery-item img {
        height: 200px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.74rem; }
    h3 { font-size: 1.50rem; }
    h4 { font-size: 1.32rem; }
    
    .feature-icon,
    .info-icon {
        font-size: 2rem;
    }
    
    .price {
        font-size: 1.39rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .breadcrumb-nav {
        padding: 100px 0 15px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.27rem;
    padding-top: 250px;
}
    
    .hero-section h2 {
        font-size: 1.33rem;
    }
    
    .section-padding {
        padding: 50px 0;
    }
    
    .service-content,
    .blog-content {
        padding: 1.2rem;
    }
    
    .gallery-item img {
        height: 220px;
    }
    
    .timeline-item {
        padding-left: 3rem !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.60rem;
    padding-top: 250px;
}
    
    .hero-section h2 {
        font-size: 1.51rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .gallery-item img {
        height: 250px;
    }
    
    .timeline-item {
        width: 48%;
    }
    
    .timeline-item:nth-child(odd) {
        padding-right: 1.5rem;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 1.5rem;
    }
    
    .contact-form {
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 2.90rem;
    padding-top: 250px;
}
    
    .section-padding {
        padding: 70px 0;
    }
    
    .gallery-item img {
        height: 280px;
    }
}

/* Extra Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 250px;
}
    
    .section-padding {
        padding: 80px 0;
    }
    
    .gallery-item img {
        height: 300px;
    }
    
    .container {
        max-width: 1200px;
    }
}

/* Ultra-wide screens */
@media (min-width: 1400px) {
    .hero-section h1 {
        font-size: 3.28rem;
    padding-top: 250px;
}
    
    .container {
        max-width: 1320px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: 100vh;
        padding: 40px 0;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::before {
        background-image: url('POS_assets/POS_images/hero-pattern@2x.webp');
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .breadcrumb-nav {
        display: none !important;
    }
    
    .section-padding {
        padding: 20px 0;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
        min-height: auto !important;
    }
    
    .hero-section h1,
    .hero-section h2,
    .hero-section p {
        color: black !important;
    }
    
    .btn {
        display: none !important;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
    
    .card,
    .service-card,
    .feature-card,
    .price-card {
        box-shadow: none !important;
        border: 1px solid #f1f1f1 !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before {
        animation: none;
    }
    
    .gallery-item:hover img {
        transform: none;
    }
    
    .service-card:hover,
    .feature-card:hover,
    .price-card:hover,
    .blog-card:hover,
    .case-card:hover {
        transform: none;
    }
    
    .nav-link::after {
        transition: none;
    }
    
    .team-member:hover .team-photo {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-blue: #1a19ff;
        --secondary-purple: #730871;
        --accent-gold: #fc7000;
        --text-primary: #000000;
        --text-secondary: #212020;
    }
    
    .btn-primary {
        border: 2px solid #000000;
    }
    
    .form-control:focus {
        border-color: #000000;
        outline: 2px solid #000000;
    }
    
    .nav-link:hover {
        background-color: #f0f0f0;
    }
}

/* Focus visible for keyboard navigation */
.btn:focus-visible,
.form-control:focus-visible,
.nav-link:focus-visible,
.accordion-button:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-blue);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Reduced transparency for better readability */
@media (prefers-reduced-transparency: reduce) {
    .navbar {
        backdrop-filter: none;
        background-color: rgba(255, 255, 255, 1) !important;
    }
    
    .hero-section::before {
        opacity: 0.3;
    }
}

/* Dark mode support (if implemented) */

/* Responsive font scaling */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 769px) {
    html {
        font-size: 16px;
    }
}

/* Responsive grid adjustments for smaller screens */
@media (max-width: 576px) {
    .row.g-4 {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
    
    [class*="col-lg-2"] {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    [class*="col-lg-3"] {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    [class*="col-lg-4"] {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    [class*="col-lg-2"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    [class*="col-lg-3"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Ensure images don't overflow on small screens */
@media (max-width: 768px) {
    .hero-section img,
    .service-image,
    .blog-image,
    .case-image,
    .gallery-item img {
        max-width: 100%;
        height: auto;
    }
    
    .hero-section .col-lg-6:last-child {
        margin-top: 2rem;
    }
}

/* Improve touch targets for mobile */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
    
    .accordion-button {
        min-height: 44px;
    }
    
    .gallery-item {
        min-height: 44px;
    }
}

/* Container max-width adjustments */
@media (min-width: 1400px) {
    .container-fluid .container {
        max-width: 1320px;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
} 