/* ==============================
   SmartDrive Insurance - Responsive CSS
   ============================== */

/* Large Desktop and above (1400px+) */
@media (min-width: 1400px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1320px;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .hero-section h1 {
        font-size: 4rem;
    }
    
    .hero-image {
        max-width: 500px;
    }
}

/* Desktop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .section-title {
        font-size: 2.75rem;
    }
    
    .hero-section h1 {
        font-size: 3.75rem;
    }
    
    .service-card, .pricing-card {
        margin-bottom: var(--space-lg);
    }
}

/* Tablet Landscape (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-section h1 {
        font-size: 3.25rem;
    }
    
    .hero-image {
        max-width: 350px;
    }
    
    .feature-icon, .info-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .feature-icon-lg {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
    
    .team-image {
        width: 100px;
        height: 100px;
    }
    
    /* 5-column team layout adjustments */
    .col-lg-2-4 {
        width: 20%;
        margin-bottom: var(--space-lg);
    }
}

/* Tablet Portrait (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .section-title {
        font-size: 2.25rem;
    }
    
    .section-subtitle {
        font-size: 1.15rem;
    }
    
    .hero-section {
        min-height: 90vh;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2.75rem;
        margin-bottom: var(--space-md);
    }
    
    .hero-section h2 {
        font-size: 1.5rem;
    }
    
    .hero-image {
        max-width: 300px;
        margin-top: var(--space-lg);
    }
    
    .hero-cta {
        margin-top: var(--space-xl);
    }
    
    .feature-card, .service-card, .pricing-card, .team-card, .info-card, .blog-card {
        margin-bottom: var(--space-lg);
    }
    
    .feature-icon, .info-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
    
    .feature-icon-lg {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .team-image {
        width: 90px;
        height: 90px;
    }
    
    /* Team layout becomes 2 columns */
    .col-lg-2-4 {
        width: 50%;
        margin-bottom: var(--space-lg);
    }
    
    .service-image, .blog-image {
        height: 180px;
    }
    
    .gallery-image {
        height: 200px;
    }
    
    /* Disable floating animations on tablets */
    .hero-image, .shape {
        animation-duration: 8s;
    }
}

/* Mobile Landscape (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .hero-section {
        min-height: 80vh;
        text-align: center;
        padding: var(--space-xl) 0;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
        margin-bottom: var(--space-sm);
    }
    
    .hero-section h2 {
        font-size: 1.25rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .hero-image {
        max-width: 250px;
        margin-top: var(--space-lg);
    }
    
    .hero-cta .btn {
        display: block;
        width: 100%;
        margin: var(--space-sm) 0;
    }
    
    .feature-card, .service-card, .pricing-card, .team-card, .info-card, .blog-card {
        margin-bottom: var(--space-md);
        padding: var(--space-md);
    }
    
    .feature-icon, .info-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    
    .feature-icon-lg {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .team-image {
        width: 80px;
        height: 80px;
    }
    
    /* Team layout becomes single column */
    .col-lg-2-4 {
        width: 100%;
        margin-bottom: var(--space-md);
    }
    
    .service-image, .blog-image {
        height: 150px;
    }
    
    .gallery-image {
        height: 150px;
    }
    
    .pricing-price {
        font-size: 2rem;
    }
    
    .contact-form {
        padding: var(--space-lg);
    }
    
    /* Disable animations on mobile landscape */
    .hero-image, .shape {
        animation: none !important;
    }
    
    .swiper-button-next, .swiper-button-prev {
        display: none;
    }
}

/* Mobile Portrait (up to 575px) */
@media (max-width: 575px) {
    /* Typography adjustments */
    .section-title {
        font-size: 1.75rem;
        text-align: center;
    }
    
    .section-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    .section-description {
        font-size: 0.95rem;
        text-align: center;
    }
    
    /* Header adjustments */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        text-align: center;
        margin: var(--space-xs) 0;
    }
    
    /* Hero section mobile */
    .hero-section {
        min-height: 100vh;
        text-align: center;
        padding: var(--space-lg) 0;
    }
    
    .hero-section h1 {
        font-size: 1.95rem;
        line-height: 1.1;
        margin-bottom: var(--space-sm);
    }
    
    .hero-section h2 {
        font-size: 1.1rem;
    }
    
    .hero-section p {
        font-size: 0.95rem;
        margin-bottom: var(--space-lg);
    }
    
    .hero-image {
        max-width: 200px;
        margin-top: var(--space-md);
    }
    
    .hero-cta .btn {
        display: block;
        width: 100%;
        margin: var(--space-sm) 0;
        padding: var(--space-md) var(--space-lg);
        font-size: 0.9rem;
    }
    
    /* Cards and sections */
    section {
        padding: var(--space-lg) 0;
    }
    
    .feature-card, .service-card, .pricing-card, .team-card, .info-card, .blog-card {
        margin-bottom: var(--space-md);
        padding: var(--space-md);
        text-align: center;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: var(--space-md);
    }
    
    .feature-item .feature-icon-lg {
        margin: 0 auto var(--space-md);
    }
    
    .feature-icon, .info-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .feature-icon-lg {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .team-image {
        width: 70px;
        height: 70px;
    }
    
    .service-image, .blog-image {
        height: 120px;
    }
    
    .gallery-image {
        height: 120px;
    }
    
    .pricing-price {
        font-size: 1.8rem;
    }
    
    .pricing-card.featured {
        transform: none;
        margin: var(--space-md) 0;
    }
    
    /* Contact form mobile */
    .contact-form {
        padding: var(--space-md);
        margin: 0 var(--space-sm);
    }
    
    .form-control, .form-select {
        padding: var(--space-md);
        font-size: 1rem;
    }
    
    /* Reviews slider mobile */
    .reviewsSwiper {
        padding: var(--space-md) 0;
    }
    
    .review-card {
        padding: var(--space-md);
        margin: 0 var(--space-xs);
    }
    
    .swiper-button-next, .swiper-button-prev {
        display: none;
    }
    
    .swiper-pagination {
        bottom: 0;
    }
    
    /* FAQ adjustments */
    .accordion-button {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.95rem;
    }
    
    .accordion-body {
overflow-x: hidden;
        padding: var(--space-md);
        font-size: 0.9rem;
    }
    
    /* Footer mobile */
    .footer {
        text-align: center;
        padding: var(--space-lg) 0;
    }
    
    .footer .col-lg-4 {
        margin-bottom: var(--space-lg);
    }
    
    /* Disable all animations on mobile */
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.1s !important;
    }
    
    .hero-image, .shape, .feature-card:hover, .service-card:hover, 
    .pricing-card:hover, .team-card:hover, .info-card:hover, 
    .blog-card:hover, .feature-item:hover {
        animation: none !important;
        transform: none !important;
    }
    
    /* Button hover states disabled on mobile */
    .btn-primary:hover, .btn-outline-light:hover {
        transform: none;
    }
}

/* Extra Small Mobile (up to 350px) */
@media (max-width: 350px) {
    .hero-section h1 {
        font-size: 1.7rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero-image {
        max-width: 180px;
    }
    
    .feature-card, .service-card, .pricing-card, .team-card, .info-card, .blog-card {
        padding: var(--space-sm);
        margin-bottom: var(--space-sm);
    }
    
    .contact-form {
        padding: var(--space-sm);
        margin: 0;
    }
    
    .feature-icon, .info-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .team-image {
        width: 60px;
        height: 60px;
    }
    
    .pricing-price {
        font-size: 1.6rem;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding: var(--space-lg) 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-image {
        max-width: 200px;
    }
    
    section {
        padding: var(--space-md) 0;
    }
}

/* Print styles */
@media print {
    .hero-section {
        min-height: auto;
        background: none !important;
        color: var(--black) !important;
    }
    
    .hero-section h1, .hero-section h2, .hero-section p {
        color: var(--black) !important;
    }
    
    .btn, .swiper-pagination, .swiper-button-next, .swiper-button-prev {
        display: none !important;
    }
    
    .feature-card, .service-card, .pricing-card, .team-card, .info-card, .blog-card {
        border: 1px solid var(--medium-gray) !important;
        box-shadow: none !important;
        break-inside: avoid;
        margin-bottom: var(--space-md);
    }
    
    .section-title, .section-subtitle {
        color: var(--black) !important;
    }
    
    .footer {
        background: none !important;
        color: var(--black) !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #4527A0;
        --secondary-color: #006064;
        --accent-color: #D84315;
        --primary-light: #9575CD;
        --secondary-light: #4DD0E1;
        --accent-light: #FF8A65;
    }
    
    .feature-card, .service-card, .pricing-card, .team-card, .info-card, .blog-card {
        border: 2px solid var(--primary-color);
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-image, .shape {
        animation: none !important;
    }
    
    .swiper {
        --swiper-navigation-size: 0;
    }
    
    .feature-card:hover, .service-card:hover, .pricing-card:hover, 
    .team-card:hover, .info-card:hover, .blog-card:hover, 
    .feature-item:hover {
        transform: none !important;
    }
    
    .btn-primary:hover, .btn-outline-light:hover {
        transform: none !important;
    }
}

/* Focus improvements for accessibility */
@media (any-hover: hover) {
    .feature-card:hover, .service-card:hover, .pricing-card:hover, 
    .team-card:hover, .info-card:hover, .blog-card:hover {
        transform: translateY(-5px);
    }
    
    .feature-item:hover {
        transform: translateY(-3px);
    }
    
    .btn:hover {
        transform: translateY(-2px);
    }
}

/* Touch device optimizations */
@media (any-pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .accordion-button {
        min-height: 44px;
    }
    
    .swiper-pagination-bullet {
        width: 12px;
        height: 12px;
    }
} 