/* SpiceBox - Responsive CSS */

/* Mobile First Approach - No animations on mobile as per requirements */

/* Extra Small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    /* Disable all animations on mobile */
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    /* Typography adjustments */
    .hero-section h1 {
        font-size: 1.75rem;
        line-height: 1.2;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.1rem;
    }
    
    .hero-section p {
        font-size: 0.95rem;
    }
    
    section h2 {
        font-size: 1.5rem;
    }
    
    section h3 {
        font-size: 1.1rem;
    }
    
    /* Navbar adjustments */
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-nav .nav-link {
        font-size: 0.95rem;
        padding: 0.5rem 1rem;
    }
    
    /* Button adjustments */
    .btn-primary {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Card spacing */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Section padding reduction */
    section {
        padding: 2rem 0;
    }
    
    /* Hero section adjustments */
    .hero-section {
        padding-top: 100px;
        min-height: auto;
    }
    
    /* Contact form adjustments */
    .form-control {
        font-size: 1rem; /* Prevent zoom on iOS */
    }
    
    /* Gallery adjustments */
    .gallery img {
        margin-bottom: 0.5rem;
    }
    
    /* Process steps mobile layout */
    .process-step {
        margin-bottom: 1rem;
    }
    
    /* Team member spacing */
    .team img {
        width: 80px;
        height: 80px;
        margin-bottom: 0.5rem;
    }
    
    /* Footer adjustments */
    footer {
        padding: 2rem 0 !important;
    }
    
    footer .col-lg-4 {
        margin-bottom: 1.5rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.25rem;
    }
    
    section h2 {
        font-size: 1.75rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .team img {
        width: 100px;
        height: 100px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.25rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.4rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    /* Tablet-specific grid adjustments */
    .col-md-6.mb-4:nth-child(2n+1) {
        clear: left;
    }
    
    /* Services grid on tablet */
    .services .col-lg-4:nth-child(2n+1) {
        clear: left;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    padding-top: 200px;
}
    
    section h2 {
        font-size: 2.25rem;
    }
    
    /* Better spacing for larger screens */
    .container {
        max-width: 960px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero-section h1 {
        font-size: 2.75rem;
    padding-top: 200px;
}
    
    section h2 {
        font-size: 2.5rem;
    }
    
    /* Enhanced spacing for very large screens */
    section {
        padding: 5rem 0;
    }
    
    .hero-section {
        padding-top: 100px;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-section {
        min-height: auto;
        padding: 80px 0 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    padding-top: 200px;
}
    
    .hero-section h2 {
        font-size: 1.1rem;
    }
    
    section {
        padding: 1.5rem 0;
    }
}

/* High DPI / Retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure images and icons are crisp */
    .card img,
    .gallery img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode support */

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-section,
    .card,
    .btn,
    .gallery img {
        transition: none !important;
        animation: none !important;
    }
    
    .card:hover {
        transform: none !important;
    }
    
    .btn-primary:hover {
        transform: none !important;
    }
    
    .gallery img:hover {
        transform: none !important;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    footer,
    .breadcrumb {
        display: none !important;
    }
    
    .hero-section {
        background: white !important;
        color: black !important;
    }
    
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    .card {
        border: 1px solid #d8d8d8;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    a {
        text-decoration: underline;
    }
    
    .text-primary,
    .text-success {
        color: black !important;
    }
}

/* Focus management for accessibility */
@media (max-width: 767.98px) {
    .navbar-toggler:focus {
        outline: 2px solid var(--spice-amber);
        outline-offset: 2px;
    }
    
    .nav-link:focus {
        outline: 2px solid var(--spice-amber);
        outline-offset: 2px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .card:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    .btn-primary:hover {
        transform: none;
        background-color: var(--spice-amber);
    }
    
    .gallery img:hover {
        transform: none;
    }
    
    /* Larger touch targets */
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .navbar-toggler {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Ultra-wide screen adjustments */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 200px;
}
    
    section h2 {
        font-size: 2.75rem;
    }
    
    section {
        padding: 6rem 0;
    }
}

/* Specific mobile menu handling as per requirements */
@media (max-width: 991.98px) {
    /* Use only standard Bootstrap 5 hamburger menu */
    .navbar-collapse {
        border-top: 1px solid rgba(0,0,0,0.1);
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }
    
    .navbar-nav {
        padding: 0.5rem 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* Accessibility improvements for mobile */
@media (max-width: 767.98px) {
    /* Ensure text is readable */
    body {
        font-size: 16px;
        line-height: 1.5;
    }
    
    /* Improve form usability */
    .form-control {
        min-height: 44px;
    }
    
    /* Better button spacing */
    .btn {
        margin-bottom: 0.5rem;
    }
    
    /* Improved card readability */
    .card-body {
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .card-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }
} 