/* Responsive Styles for Car Detailing Template */

/* Mobile First Approach */

/* Mobile devices (up to 767px) */
@media (max-width: 767px) {
    .hero-section h1 { font-size: 1.75rem; }
    .hero-section h2 { font-size: 1.25rem; }
    .section-padding { padding: 60px 0; }
    .feature-card { padding: 1.5rem; margin-bottom: 1rem; }
    .service-card img { height: 180px; }
    .team-member img { width: 120px; height: 120px; }
    .contact-form { padding: 1.5rem; }
    .pricing-card { padding: 1.5rem; margin-bottom: 1rem; }
    .gallery-img { height: 200px; }
    .timeline::before { left: 20px; }
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 50px; margin-right: 0; text-align: left;
    }
    .pricing-card.featured { transform: none; }
}

/* Tablet devices (768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-section h1 { font-size: 2.25rem; }
    .hero-section h2 { font-size: 1.5rem; }
    .gallery-img { height: 240px; }
    .pricing-card.featured { transform: scale(1.02); }
}

/* Desktop devices (992px and up) */
@media (min-width: 992px) {
    .hero-section h1 { font-size: 2.75rem; }
    .hero-section h2 { font-size: 1.75rem; }
    .gallery-img { height: 280px; }
    .pricing-card.featured { transform: scale(1.05); }
}

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section h2 {
        font-size: 1.25rem;
    }
    
    .hero-section p {
        font-size: 0.875rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-card i {
        font-size: 2.5rem;
    }
    
    .service-card img {
        height: 180px;
    }
    
    .team-member img {
        width: 120px;
        height: 120px;
    }
    
    .review-card {
        margin: 0.5rem;
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem 0;
    }
    
    .process-step {
        padding: 1rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .gallery-img {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    .timeline-content {
        padding: 1rem;
    }
    
    .blog-card img {
        height: 180px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.375rem;
    }
    
    .feature-card {
        padding: 1.75rem;
    }
    
    .service-card img {
        height: 190px;
    }
    
    .team-member img {
        width: 130px;
        height: 130px;
    }
    
    .gallery-img {
        height: 220px;
    }
    
    .contact-form {
        padding: 1.75rem;
    }
    
    .pricing-card {
        padding: 1.75rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .feature-card {
        padding: 2rem;
    }
    
    .service-card img {
        height: 200px;
    }
    
    .team-member img {
        width: 140px;
        height: 140px;
    }
    
    .gallery-img {
        height: 240px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 60px;
        margin-right: 0;
        text-align: left;
    }
    
    .navbar-nav .nav-link {
  font-size: 10px !important;
        margin: 0 5px;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .pricing-card.featured {
        transform: scale(1.02);
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.625rem;
    }
    
    .service-card img {
        height: 200px;
    }
    
    .team-member img {
        width: 150px;
        height: 150px;
    }
    
    .gallery-img {
        height: 250px;
    }
    
    .navbar-nav .nav-link {
  font-size: 10px !important;
        margin: 0 8px;
    }
    
    .pricing-card.featured {
        transform: scale(1.03);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 2.75rem;
    }
    
    .hero-section h2 {
        font-size: 1.75rem;
    }
    
    .container {
        max-width: 1140px;
    }
    
    .service-card img {
        height: 220px;
    }
    
    .gallery-img {
        height: 280px;
    }
    
    .navbar-nav .nav-link {
  font-size: 10px !important;
        margin: 0 10px;
    }
    
    .pricing-card.featured {
        transform: scale(1.05);
    }
}

/* Extra extra large devices (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section h2 {
        font-size: 1.875rem;
    }
    
    .section-padding {
        padding: 100px 0;
    }
    
    .service-card img {
        height: 240px;
    }
    
    .gallery-img {
        height: 300px;
    }
}

/* Landscape orientation adjustments */
@media screen and (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section h2 {
        font-size: 1.25rem;
    }
    
    .section-padding {
        padding: 40px 0;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .service-card img,
    .blog-card img,
    .gallery-img,
    .team-member img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .contact-form,
    .gallery,
    .breadcrumbs-section {
        display: none !important;
    }
    
    body {
  overflow-x: hidden;
        padding-top: 0;
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    .section-padding {
        padding: 20px 0;
    }
    
    .hero-section {
        background: none !important;
        color: #000 !important;
    }
    
    .bg-light {
        background: #f8f9fa !important;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000 !important;
        page-break-after: avoid;
    }
    
    .service-card,
    .feature-card,
    .pricing-card {
        border: 1px solid #ddd;
        box-shadow: none;
        break-inside: avoid;
    }
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --secondary-color: #0000ff;
        --accent-color: #ff6600;
        --gray-600: #333;
        --gray-700: #222;
        --gray-800: #111;
    }
    
    .feature-card,
    .service-card,
    .pricing-card,
    .review-card,
    .blog-card {
        border: 2px solid #000;
    }
    
    .btn-primary {
        border: 2px solid #000 !important;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-section::before {
        animation: none;
    }
    
    .feature-card:hover,
    .service-card:hover,
    .blog-card:hover {
        transform: none;
    }
    
    .gallery-img:hover {
        transform: none;
    }
    
    .swiper {
        scroll-behavior: auto;
    }
}

/* Focus improvements for keyboard navigation */
@media (any-hover: none) {
    .feature-card:hover,
    .service-card:hover,
    .pricing-card:hover,
    .blog-card:hover {
        transform: none;
        box-shadow: var(--box-shadow);
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .nav-link {
  font-size: 10px !important;
        padding: 0.75rem 1rem;
    }
    
    .btn {
        min-height: 44px;
        padding: 0.75rem 1.5rem;
    }
    
    .form-control {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .contact-item {
        margin-bottom: 2rem;
    }
    
    .accordion-button {
        min-height: 44px;
        padding: 1rem;
    }
}
