/**
 * Responsive CSS for PaylessWatts v2
 * Mobile-first responsive design utilities
 */

/* Extra Small Devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-actions .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero-stats .col-4 {
        margin-bottom: 1rem;
    }
    
    .estimator-preview-card {
        padding: 1rem;
    }
    
    .input-group-lg .form-control {
        font-size: 1rem;
    }
    
    .navbar-brand span {
        display: none;
    }
    
    .d-flex.align-items-center a {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}

/* Small Devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-actions .btn {
        margin-right: 0.5rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
}

/* Medium Devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-visual {
        text-align: center;
    }
    
    .feature-card {
        padding: 2rem;
    }
}

/* Large Devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero .row {
        min-height: 80vh;
    }
    
    .floating-card {
        position: absolute;
        top: 20px;
        right: 20px;
        background: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        max-width: 200px;
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .btn,
    .modal {
        display: none !important;
    }
    
    .hero {
        page-break-after: always;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-image-wrapper 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;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Future dark mode styles can be added here */
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
    .hero .row {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
}

/* Focus Styles for Accessibility */
@media (prefers-reduced-motion: no-preference) {
    .btn:focus,
    .form-control:focus,
    .nav-link:focus {
        outline: 2px solid #ff6b35;
        outline-offset: 2px;
    }
}