/* ========================================
   Denim Revival - Responsive CSS
   Mobile and tablet optimizations
======================================== */

/* Mobile First Approach */

/* Extra Small devices (phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Disable all scroll animations on mobile */
    .sal-animate {
        animation: none !important;
        transition: none !important;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    .navbar-brand {
        font-size: 1rem;
    }
    
    /* Hero section mobile optimization */
    #hero {
        min-height: 70vh;
        padding: 2rem 0;
    }
    
    #hero h1 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    #hero h2 {
        font-size: 1.2rem;
        margin-bottom: 0.8rem;
    }
    
    #hero p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    /* Card spacing for mobile */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Button adjustments */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Form optimizations */
    .form-control {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    /* Section padding */
    .py-5 {
        padding: 2rem 0 !important;
    }
    
    /* Team member photos */
    #team img {
        width: 80px;
        height: 80px;
        margin-bottom: 0.5rem;
    }
    
    /* Process circles */
    .rounded-circle {
        width: 50px !important;
        height: 50px !important;
        font-size: 0.9rem;
    }
    
    /* Gallery grid adjustments */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Price display */
    .price {
        font-size: 1.1rem;
    }
    
    #priceplan .price {
        font-size: 1.5rem;
    }
    
    /* Footer adjustments */
    footer {
        padding: 2rem 0 !important;
    }
    
    footer .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* Remove hover effects on mobile */
    .card:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(47, 62, 70, 0.08);
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
        opacity: 1;
    }
    
    /* Contact form mobile optimization */
    #contact .row .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Breadcrumb mobile */
    .breadcrumb {
        padding: 0.5rem 0;
    }
    
    /* Additional pages mobile adjustments */
    .col-lg-2 {
        margin-bottom: 1.5rem;
    }
    
    /* Ensure no horizontal scroll */
    body {
        overflow-x: hidden;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Similar mobile restrictions but slightly larger */
    .sal-animate {
        animation: none !important;
        transition: none !important;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    #hero {
        min-height: 80vh;
    }
    
    .py-5 {
        padding: 2.5rem 0 !important;
    }
    
    /* Remove hover effects */
    .card:hover {
        transform: none;
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Keep some animations but reduced */
    .sal-animate {
        transition: opacity 0.3s ease;
    }
    
    /* Tablet-specific adjustments */
    .card:hover {
        transform: translateY(-1px);
    }
    
    .btn-primary:hover {
        transform: none;
    }
    
    /* Gallery grid for tablets */
    #gallery .col-lg-3 {
        margin-bottom: 1rem;
    }
    
    /* Team layout for tablets */
    #team .col-lg-2 {
        margin-bottom: 1rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Standard desktop behavior */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    /* Ensure proper spacing */
    .col-lg-2 {
        padding: 0 0.5rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Enhanced desktop experience */
    .container {
        max-width: 1140px;
    }
    
    /* Larger hero on big screens */
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero h2 {
        font-size: 1.4rem;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .card {
        box-shadow: 0 1px 5px rgba(47, 62, 70, 0.12);
    }
    
    .navbar {
        box-shadow: 0 1px 5px rgba(47, 62, 70, 0.12);
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    #hero {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    .py-5 {
        padding: 1.5rem 0 !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    footer,
    .breadcrumb,
    .btn,
    #gallery {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: black;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: black;
    }
    
    .card {
        border: 1px solid #ddd;
        box-shadow: none;
    }
    
    .bg-light,
    .bg-dark {
        background: white !important;
        color: black !important;
    }
}

/* Accessibility improvements */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #2E5A68;
        --color-secondary: #4A6B3A;
        --color-accent: #7A6B9D;
        --color-dark: #000000;
        --color-neutral: #FFFFFF;
    }
    
    .card {
        border: 2px solid var(--color-dark);
    }
    
    .btn-primary {
        border: 2px solid var(--color-dark);
    }
}

/* Focus improvements for keyboard navigation */
@media (prefers-reduced-motion: no-preference) {
    .nav-link:focus,
    .btn:focus,
    .form-control:focus {
        outline: 3px solid var(--color-accent);
        outline-offset: 2px;
    }
}

/* Dark mode support (if browser supports) */

/* Reduced motion - critical for accessibility */
@media (prefers-reduced-motion: reduce) {
    .sal-animate,
    .card,
    .btn-primary,
    #gallery img,
    .form-control,
    .nav-link,
    .breadcrumb-item img {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}

/* Custom mobile menu - DO NOT MODIFY (per requirements) */
/* Bootstrap 5 standard mobile menu only */

/* Ensure footer doesn't have gradients (per requirements) */
footer {
    background: var(--color-dark) !important;
    /* No gradients in footer - high contrast colors only */
}

footer * {
    background: transparent !important;
} 