/**
 * Encodx ISP CRM Pro - Responsive CSS
 *
 * @package Encodx_ISP_CRM_Pro
 */

/* ============================================
   LARGE DEVICES (Desktops, 1200px and up)
============================================ */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* ============================================
   MEDIUM DEVICES (Tablets, 992px and up)
============================================ */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content {
        gap: 3rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ============================================
   SMALL DEVICES (Landscape phones, 768px and up)
============================================ */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    /* Header */
    .main-navigation {
        display: none;
    }
    
    .header-cta {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hero */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-image {
        order: 0;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-floating-card {
        display: none;
    }
    
    /* Features */
    .features-content {
        grid-template-columns: 1fr;
    }
    
    .features-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .section-header {
        text-align: center !important;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

/* ============================================
   EXTRA SMALL DEVICES (Portrait phones, less than 768px)
============================================ */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 1rem;
    }
    
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    /* Section */
    .section {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    /* Header */
    .header-inner {
        padding: 0.75rem 0;
    }
    
    .site-logo img {
        height: 35px;
    }
    
    .site-logo .logo-text {
        font-size: 1.25rem;
    }
    
    /* Hero */
    .hero-section {
        padding-top: 80px;
        min-height: auto;
        padding-bottom: 3rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    
    .stat-item {
        flex: 1 0 30%;
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card {
        padding: 2rem;
    }
    
    .pricing-price {
        font-size: 2.5rem;
    }
    
    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        padding: 2rem;
    }
    
    /* CTA */
    .cta-section {
        padding: 3rem 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-brand {
        grid-column: span 1;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Page Header */
    .page-header {
        padding: 6rem 0 2rem;
    }
    
    /* Page Hero */
    .page-hero {
        padding: 6rem 0 3rem !important;
    }
    
    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    /* Process Steps */
    .process-steps {
        grid-template-columns: 1fr !important;
    }
    
    /* Screenshots */
    .screenshots-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Tech Grid */
    .tech-grid {
        gap: 1rem !important;
    }
    
    .tech-item {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.875rem;
    }
}

/* ============================================
   EXTRA EXTRA SMALL (Less than 480px)
============================================ */
@media (max-width: 479px) {
    .container {
        padding: 0 0.75rem;
    }
    
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    /* Button */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Service Card */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    /* Pricing */
    .pricing-card {
        padding: 1.5rem;
    }
    
    .pricing-price {
        font-size: 2rem;
    }
    
    /* Feature Item */
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto;
    }
    
    /* Contact Info */
    .contact-info li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    /* Form */
    .form-control {
        padding: 0.75rem;
    }
}

/* ============================================
   PRINT STYLES
============================================ */
@media print {
    .site-header,
    .site-footer,
    .hero-section,
    .cta-section,
    .mobile-menu-toggle,
    .social-share,
    .comments-area,
    .pagination {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
}

/* ============================================
   HIGH DPI / RETINA DISPLAYS
============================================ */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .site-logo img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ============================================
   REDUCED MOTION
============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   DARK MODE SUPPORT
============================================ */
@media (prefers-color-scheme: dark) {
    /* Uncomment to enable dark mode
    :root {
        --dark-color: #f8fafc;
        --light-color: #1e293b;
        --white: #0f172a;
        --gray-color: #94a3b8;
    }
    
    body {
        background-color: #0f172a;
        color: #f8fafc;
    }
    */
}
