/* SpiceVault - Responsive CSS */

/* Mobile First Approach */

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 575.98px) {
    /* Remove all animations on mobile */
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
    
    /* Typography adjustments */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.77rem;
    }
    
    h3 {
        font-size: 1.30rem;
    }
    
    .navbar-brand {
        font-size: 1.28rem !important;
    }
    
    /* Hero section mobile */
    #hero {
        padding-top: 100px;
        text-align: center;
    }
    
    #hero .lead {
        font-size: 1rem;
    }
    
    /* Card adjustments */
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Button adjustments */
    .btn-primary {
        padding: 0.5rem 1rem;
        font-size: 1.05rem;
    }
    
    /* Services cards stack */
    #services .card-img-top {
        height: 150px;
    }
    
    /* Team images smaller */
    #team img {
        width: 80px;
        height: 80px;
    }
    
    /* Contact form adjustments */
    .form-control {
        padding: 0.5rem;
    }
    
    /* Footer adjustments */
    footer .container .row > div {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Spacing adjustments */
    .py-5 {
        padding: 2rem 0;
    }
    
    /* Process steps mobile layout */
    .rounded-circle {
        width: 50px !important;
        height: 50px !important;
        font-size: 1rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    h1 {
        font-size: 2.32rem;
    }
    
    h2 {
        font-size: 2.02rem;
    }
    
    #hero {
        padding-top: 90px;
    }
    
    #services .card-img-top {
        height: 180px;
    }
    
    #team img {
        width: 100px;
        height: 100px;
    }
    
    .py-5 {
        padding: 3rem 0;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    #hero {
        padding-top: 80px;
    }
    
    .py-5 {
        padding: 3.5rem 0;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    h1 {
        font-size: 2.88rem;
    }
    
    h2 {
        font-size: 2.29rem;
    }
    
    .py-5 {
        padding: 5rem 0;
    }
}

/* High-resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Ensure crisp images on retina displays */
    img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 568px) {
    #hero {
        min-height: 100vh;
        padding-top: 60px;
    }
    
    .py-5 {
        padding: 2rem 0;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #e1cccc;
    }
}

/* Focus and accessibility improvements */
@media (prefers-reduced-motion: no-preference) {
    /* Only apply hover effects when motion is allowed */
    .card:hover {
        transform: translateY(-5px);
    }
    
    .btn-primary:hover {
        transform: translateY(-2px);
    }
    
    #gallery img:hover {
        transform: scale(1.05);
    }
}

/* Dark mode support (if user prefers) */

/* High contrast mode support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--text-dark);
    }
    
    .btn-primary {
        border: 2px solid white;
    }
}

/* Specific mobile navbar adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        border-top: 1px solid #d9d9d9;
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
}

/* Container responsiveness */
@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Gallery responsive adjustments */
@media (max-width: 767.98px) {
    #gallery .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Blog grid responsive */
@media (max-width: 991.98px) {
    #blog_grid .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Services grid responsive */
@media (max-width: 767.98px) {
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Team responsive layout */
@media (max-width: 991.98px) {
    #team .col-lg-2 {
        margin-bottom: 2rem;
    }
}

/* Contact form responsive */
@media (max-width: 767.98px) {
    #contact .col-lg-8,
    #contact .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Additional page sections responsive */
@media (max-width: 767.98px) {
    .breadcrumb {
        margin-bottom: 1rem;
    }
    
    .breadcrumb-item img {
        height: 16px;
    }
}

/* Process steps responsive */
@media (max-width: 767.98px) {
    #process .col-md-2 {
        margin-bottom: 2rem;
        text-align: center;
    }
} 