/* ==========================================================================
   PriceBundle Pro - Responsive CSS
   Mobile and Tablet Specific Styles
   ========================================================================== */

/* Mobile First - Base Mobile Styles (up to 576px) */
@media (max-width: 575.98px) {
    /* Typography */
    .navbar-brand {
        font-size: 1.20rem !important;
    }
    
    h1, .h1 {
        font-size: 1.58rem;
        margin-bottom: 1rem;
    }
    
    h2, .h2 {
        font-size: 1.36rem;
        margin-bottom: 0.83rem;
    }
    
    .lead {
        font-size: 1rem;
        margin-bottom: 1.68rem;
    }
    
    /* Hero Section */
    #hero {
        padding: 2rem 0;
        min-height: 80vh;
    }
    
    #hero .btn {
        width: 100%;
        margin-top: 1rem;
    }
    
    /* Navigation - NO Custom Mobile Menu Modifications */
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        margin: 0;
    }
    
    /* Sections */
    section {
        padding: 2rem 0;
    }
    
    .py-5 {
        padding: 2rem 0 !important;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.68rem;
    }
    
    .card-img-top {
        height: 180px;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 0.63rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }
    
    /* Forms */
    .form-control {
        font-size: 1rem;
        padding: 0.75rem;
    }
    
    /* Timeline */
    .timeline-item {
        padding-left: 2rem;
    }
    
    .timeline-item::before {
        left: 15px;
    }
    
    /* Grid Adjustments */
    .col-md-6.col-lg-3,
    .col-md-6.col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Footer */
    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-lg-3 {
        margin-bottom: 2rem;
        text-align: center;
    }
    
    /* Gallery */
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Contact Form */
    .col-lg-8 .row .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* NO ANIMATIONS ON MOBILE - Respect Rules */
    .card:hover,
    .btn:hover,
    #gallery img:hover {
        transform: none !important;
    }
    
    /* Disable Sal.js animations on mobile */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Small Tablets - Portrait (576px to 767.98px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Typography */
    .navbar-brand {
        font-size: 1.29rem !important;
    }
    
    h1, .h1 {
        font-size: 1.82rem;
    }
    
    h2, .h2 {
        font-size: 1.64rem;
    }
    
    /* Hero */
    #hero {
        min-height: 85vh;
        padding: 3rem 0;
    }
    
    /* Cards */
    .card-img-top {
        height: 200px;
    }
    
    /* Sections */
    section {
        padding: 3rem 0;
    }
    
    /* Buttons */
    .btn {
        width: auto;
        min-width: 150px;
    }
    
    /* Timeline */
    .timeline-item {
        padding-left: 2.5rem;
    }
    
    /* NO ANIMATIONS ON MOBILE */
    .card:hover,
    .btn:hover,
    #gallery img:hover {
        transform: none !important;
    }
    
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Tablets - Landscape (768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography */
    .navbar-brand {
        font-size: 1.30rem !important;
    }
    
    h1, .h1 {
        font-size: 2rem;
    }
    
    h2, .h2 {
        font-size: 1.86rem;
    }
    
    /* Hero */
    #hero {
        min-height: 90vh;
        padding: 3.5rem 0;
    }
    
    /* Cards */
    .card-img-top {
        height: 220px;
    }
    
    /* Sections */
    section {
        padding: 3.5rem 0;
    }
    
    /* Grid */
    .col-md-6.col-lg-3 {
        margin-bottom: 2rem;
    }
    
    /* Footer */
    footer .col-lg-4,
    footer .col-lg-2,
    footer .col-lg-3 {
        margin-bottom: 1.74rem;
    }
    
    /* Enable hover effects on tablet */
    .card:hover {
        transform: translateY(-3px);
    }
    
    .btn:hover {
        transform: translateY(-1px);
    }
}

/* Small Desktops (992px to 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Typography */
    h1, .h1 {
        font-size: 2.27rem;
    }
    
    h2, .h2 {
        font-size: 2rem;
    }
    
    /* Hero */
    #hero {
        min-height: 95vh;
    }
    
    /* Cards */
    .card-img-top {
        height: 240px;
    }
    
    /* Sections */
    section {
        padding: 4rem 0;
    }
}

/* Large Desktops (1200px and up) */
@media (min-width: 1200px) {
    /* Typography */
    h1, .h1 {
        font-size: 2.55rem;
    }
    
    h2, .h2 {
        font-size: 2.31rem;
    }
    
    /* Hero */
    #hero {
        min-height: 100vh;
    }
    
    /* Cards */
    .card-img-top {
        height: 260px;
    }
    
    /* Container max-width for very large screens */
    .container {
        max-width: 1200px;
    }
}

/* Ultra-wide Screens (1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    /* Prevent content from stretching too wide */
    #hero .col-lg-6,
    section .col-lg-8 {
        max-width: 90%;
    }
}

/* Print Styles */
@media print {
    /* Hide navigation and footer */
    .navbar,
    footer,
    .btn,
    .breadcrumb {
        display: none !important;
    }
    
    /* Adjust colors for print */
    .text-primary,
    .text-success,
    .text-warning {
        color: #000 !important;
    }
    
    .bg-light {
        background-color: #fff !important;
    }
    
    /* Ensure content is readable */
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        page-break-after: avoid;
    }
    
    /* Card adjustments */
    .card {
        border: 1px solid #000;
        box-shadow: none;
        page-break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background-color: #000;
        border-color: #000;
        color: #fff;
    }
    
    .btn-outline-primary {
        border-color: #000;
        color: #000;
    }
    
    .text-primary {
        color: #000 !important;
    }
    
    .card {
        border: 2px solid #000;
    }
}

/* Reduced Motion - Already handled in main.css but reinforced here */
@media (prefers-reduced-motion: reduce) {
    /* NO ANIMATIONS when reduced motion is preferred */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Disable all hover transforms */
    .card:hover,
    .btn:hover,
    #gallery img:hover {
        transform: none !important;
    }
    
    /* Disable Sal.js animations */
    [data-sal] {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Dark Mode Support (if user prefers dark color scheme) */
/* Disable horizontal scroll on desktop resolutions */
@media (min-width: 992px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
    }
}
