/* ChurnIQ - Responsive CSS */

/* Mobile First Approach */

/* Extra Small Devices (xs) - phones */
@media (max-width: 575.98px) {
    .hero-section {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.77rem;
    padding-top: 150px;
}
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .card {
        margin-bottom: 1.55rem;
    }
    
    .navbar-brand {
        font-size: 1.38rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    h2 {
        font-size: 1.56rem;
    }
    
    .col-lg-3.col-md-6.mx-auto {
        margin-top: 2rem;
    }
    
    /* Disable animations on mobile for better performance */
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Stack pricing cards vertically */
    .border-primary::before {
        top: -10px;
        font-size: 0.77rem;
        padding: 0.25rem 0.75rem;
    }
    
    /* Team member spacing */
    #team .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    /* Process steps full width */
    #process .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* FAQ cards full width */
    #faq .col-lg-6 {
        margin-bottom: 1rem;
    }
    
    /* Contact form adjustments */
    #contact .col-lg-8,
    #contact .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Gallery images stacked */
    #gallery .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Core info stats */
    #coreinfo .col-lg-2 {
        margin-bottom: 1.64rem;
    }
    
    #coreinfo h3 {
        font-size: 2rem;
    }
}

/* Small Devices (sm) - tablets */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section {
        min-height: 70vh;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 150px;
}
    
    .btn {
        width: auto;
    }
    
    section {
        padding: 3rem 0;
    }
    
    /* Services grid 2 columns */
    #services .col-lg-4:nth-child(odd) {
        margin-bottom: 2rem;
    }
    
    /* Team 2 columns */
    #team .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    /* Process steps 2 columns */
    #process .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* Disable complex animations for performance */
    [data-sal*="slide"] {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Medium Devices (md) - small laptops */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .hero-section h1 {
        font-size: 2.27rem;
    padding-top: 150px;
}
    
    section {
        padding: 4rem 0;
    }
    
    /* Services 2 columns */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Features 1 column */
    #ffeea7tures .col-lg-6 {
        margin-bottom: 1.59rem;
    }
    
    /* Team 2 columns, 5th centered */
    #team .col-lg-3:nth-child(5) {
        margin: 2rem auto 0;
        max-width: 50%;
    }
    
    /* Process steps layout */
    #process .col-lg-2 {
        margin-bottom: 2rem;
    }
}

/* Large Devices (lg) - desktops */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 2.56rem;
    padding-top: 150px;
}
    
    /* Team 5th member centered */
    #team .col-lg-3:nth-child(5) {
        margin-top: 2rem;
    }
    
    /* Services 3 columns */
    #services .row .col-lg-4:nth-child(4),
    #services .row .col-lg-4:nth-child(5),
    #services .row .col-lg-4:nth-child(6) {
        margin-top: 2rem;
    }
}

/* Extra Large Devices (xl) - large desktops */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 150px;
}
    
    section {
        padding: 6rem 0;
    }
}

/* Navigation Specific Responsive */
@media (max-width: 991.98px) {
    .navbar-collapse {
        text-align: center;
        margin-top: 1rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-item {
        margin: 0.5rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 6px;
        transition: background-color 1.16s ease;
    }
    
    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link.active {
        background-color: var(--primary-color);
        color: white !important;
    }
}

/* Footer Responsive */
@media (max-width: 767.98px) {
    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-lg-3 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    footer ul {
        text-align: center;
        padding: 0;
    }
}

/* Form Responsive */
@media (max-width: 575.98px) {
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Card Hover Effects - Reduced on Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    }
    
    .rounded-circle:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::before {
        background-size: cover;
    }
}

/* Landscape Phone Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 100vh;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    footer,
    [data-sal] {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        page-break-after: always;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ebdadc;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* Accessibility Improvements */
@media (max-width: 991.98px) {
    /* Larger touch targets for mobile */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn {
        min-height: 44px;
    }
    
    .form-control {
        min-height: 44px;
    }
}

/* Focus States for Accessibility */
@media (min-width: 992px) {
    .nav-link:focus,
    .btn:focus,
    .form-control:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Reduced Motion for Better Accessibility */
@media (prefers-reduced-motion: reduce) {
    .card:hover {
        transform: none;
    }
    
    .btn:hover {
        transform: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
    
    [data-sal] {
        opacity: 1 !important;
        transform: none !important;
    }
} 
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
