/* ============================================
   Custora CRM - Responsive Styles
   Mobile-First Approach
   ============================================ */

/* ============================================
   Mobile Devices (< 576px)
   ============================================ */

@media (max-width: 575.98px) {
    :root {
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
        --font-size-3xl: 1.5rem;
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }

    .hero-section {
        padding: 4rem 0 3rem;
        margin-top: 60px;
    }

    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn-custora,
    .hero-cta .btn-custora-outline {
        width: 100%;
        text-align: center;
    }

    .feature-box {
        padding: var(--spacing-md) var(--spacing-sm);
        margin-bottom: var(--spacing-md);
    }

    .icon-circle {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .module-section {
        padding: var(--spacing-lg) 0;
    }

    .stats-section {
        padding: var(--spacing-lg) 0;
    }

    .stat-number {
        font-size: var(--font-size-3xl);
    }

    .navbar-brand img {
        height: 40px;
    }

    .navbar-nav {
        text-align: center;
        padding: var(--spacing-sm) 0;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }

    footer {
        padding-top: var(--spacing-lg);
        text-align: center;
    }

    .footer-section {
        margin-bottom: var(--spacing-md);
    }

    .social-icons {
        justify-content: center;
    }
}

/* ============================================
   Tablet Devices (576px - 992px)
   ============================================ */

@media (min-width: 576px) and (max-width: 991.98px) {
    .hero-title {
        font-size: var(--font-size-4xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
    }

    .feature-box {
        margin-bottom: var(--spacing-md);
    }

    .module-section {
        padding: var(--spacing-lg) 0;
    }

    .stats-section {
        padding: var(--spacing-lg) 0;
    }
}

/* ============================================
   Desktop Devices (992px - 1199px)
   ============================================ */

@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-title {
        font-size: var(--font-size-5xl);
    }

    .container {
        max-width: 960px;
    }
}

/* ============================================
   Large Desktop Devices (≥ 1200px)
   ============================================ */

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .hero-section {
        padding: 10rem 0 8rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .navbar,
    .hero-cta,
    footer,
    .btn-custora,
    .btn-custora-outline {
        display: none;
    }

    .hero-section {
        padding: 2rem 0;
        margin-top: 0;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* ============================================
   High DPI Displays
   ============================================ */

@media (-webkit-min-device-pixel-ratio: 2),
       (min-resolution: 192dpi) {
    .hero-image img,
    .module-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ============================================
   Landscape Orientation (Mobile)
   ============================================ */

@media (max-width: 991.98px) and (orientation: landscape) {
    .hero-section {
        padding: 3rem 0 2rem;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }
}

/* ============================================
   Touch Device Optimizations
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    .btn-custora,
    .btn-custora-outline,
    .nav-link {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .feature-box:hover {
        transform: none;
    }

    .hover-lift:hover {
        transform: none;
    }
}

/* ============================================
   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;
    }
}



