/* Responsive Design for Bicycle Repair Template */

/* Mobile First Approach */
@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    #hero-title-1 {
        font-size: var(--font-size-2xl);
    }
    
    #hero-subtitle-1 {
        font-size: var(--font-size-lg);
    }
    
    .hero-section {
        min-height: 80vh;
        padding: 2rem 0;
    }
    
    .navbar-brand {
        font-size: var(--font-size-lg) !important;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .service-card img {
        height: 150px;
    }
    
    .feature-item {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-item i {
        font-size: 2rem !important;
    }
    
    .contact-info {
        margin-top: 2rem;
        padding: 1.5rem;
    }
}

/* Tablet Styles */
@media (min-width: 577px) and (max-width: 768px) {
    .hero-section {
        min-height: 90vh;
    }
    
    #hero-title-1 {
        font-size: var(--font-size-3xl);
    }
    
    .service-card img {
        height: 180px;
    }
    
    .feature-item {
        padding: 1.75rem;
    }
}

/* Desktop Styles */
@media (min-width: 769px) and (max-width: 992px) {
    .container {
        max-width: 750px;
    }
    
    .service-card img {
        height: 200px;
    }
}

/* Large Desktop */
@media (min-width: 993px) and (max-width: 1200px) {
    .container {
        max-width: 970px;
    }
}

/* Extra Large Desktop */
@media (min-width: 1201px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section .row {
        align-items: center;
        min-height: 100vh;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: 70vh;
    }
    
    .navbar-collapse {
        background: rgba(29, 97, 213, 0.95);
        border-radius: 10px;
        margin-top: 1rem;
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar, footer, .hero-section {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black !important;
        background: white !important;
    }
    
    .service-card, .feature-item, .contact-info {
        box-shadow: none !important;
        border: 1px solid #dcd8d8;
        page-break-inside: avoid;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-card img,
    .img-fluid {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}


/* Focus Styles for Accessibility */
@media (min-width: 768px) {
    .nav-link:focus,
    .btn:focus,
    .form-control:focus {
        outline: 3px solid var(--primary-orange);
        outline-offset: 2px;
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .service-card:hover,
    .feature-item:hover,
    .about-feature:hover,
    .btn-primary:hover {
        transform: none !important;
    }
    
    .hero-section::before {
        animation: none !important;
    }
}

/* Utility Classes for Responsive Behavior */
.d-mobile-none {
    display: none;
}

@media (min-width: 768px) {
    .d-mobile-none {
        display: block;
    }
    
    .d-desktop-none {
        display: none;
    }
}

/* Grid Adjustments */
@media (max-width: 576px) {
    .row > * {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .col-lg-4,
    .col-md-6,
    .col-md-3 {
        margin-bottom: 2rem;
    }
}

/* Font Size Adjustments */
@media (max-width: 576px) {
    h2 {
        font-size: var(--font-size-xl);
    }
    
    h3 {
        font-size: var(--font-size-lg);
    }
    
    h4 {
        font-size: var(--font-size-base);
    }
}

/* Button Adjustments */
@media (max-width: 576px) {
    .btn-primary {
        width: 100%;
        padding: 1rem;
        font-size: var(--font-size-lg);
    }
}

/* Navigation Adjustments */
@media (max-width: 991px) {
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
} 