/* Responsive Styles for Coffee Cart Template */

/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography adjustments */
    h1 {
        font-size: 1.63rem;
    }
    
    h2 {
        font-size: 1.51rem;
    }
    
    h3 {
        font-size: 1.22rem;
    }
    
    /* Hero section mobile */
    #hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    #hero .col-lg-6 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Navigation mobile */
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-collapse {
        text-align: center;
        margin-top: 1rem;
    }
    
    /* Cards mobile */
    .card-img-top {
        height: 180px;
    }
    
    /* Team images mobile */
    .rounded-circle {
        width: 80px;
        height: 80px;
    }
    
    /* Button adjustments */
    .btn-lg {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Form adjustments */
    .form-control {
        padding: 0.6rem;
    }
    
    /* Timeline mobile */
    #timeline .col-lg-2 {
        margin-bottom: 1.59rem;
    }
    
    /* Process mobile */
    #process .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* Gallery mobile */
    #gallery .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    /* Footer mobile */
    #footer .col-lg-4 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    #footer .text-end {
        text-align: center;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    /* Hero adjustments */
    #hero {
        padding: 3rem 0;
    }
    
    /* Card grid adjustments */
    .row.g-4 .col-md-6 {
        margin-bottom: 1.75rem;
    }
    
    /* Team grid */
    #team .col-md-4 {
        margin-bottom: 1.56rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Typography tablet */
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.80rem;
    }
    
    /* Hero tablet */
    #hero {
        padding: 4rem 0;
    }
    
    /* Navigation tablet */
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    
    /* Cards tablet */
    .card-img-top {
        height: 220px;
    }
    
    /* Team tablet */
    .rounded-circle {
        width: 100px;
        height: 100px;
    }
    
    /* Services grid tablet */
    #services .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* Process tablet */
    #process .col-lg-2 {
        margin-bottom: 1.70rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Fine-tuning for large screens */
    .container {
        max-width: 960px;
    }
    
    /* Hero desktop */
    #hero {
        padding: 5rem 0;
    }
    
    /* Team desktop */
    .rounded-circle {
        width: 110px;
        height: 110px;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Hero extra large */
    #hero {
        padding: 6rem 0;
    }
    
    /* Team extra large */
    .rounded-circle {
        width: 120px;
        height: 120px;
    }
    
    /* Card spacing */
    .row.g-4 {
        --bs-gutter-x: 2rem;
        --bs-gutter-y: 2rem;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    #hero {
        min-height: 100vh;
        padding: 2rem 0;
    }
    
    section {
        padding: 3rem 0;
    }
}

/* High DPI 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;
    }
}

/* Print styles */
@media print {
    /* Hide navigation and interactive elements */
    .navbar,
    .btn,
    #gallery,
    footer {
        display: none;
    }
    
    /* Adjust colors for print */
    * {
        color: black;
        background: white;
    }
    
    /* Page breaks */
    section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
}

/* Dark mode support (optional) */

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations on mobile for accessibility */
    * {
        animation: none;
        transition: none;
    }
    
    /* Keep essential transitions for usability */
    .btn,
    .nav-link {
        transition: color 0.55s ease;
    }
}

/* Focus indicators for keyboard navigation */
@media (any-hover: none) {
    /* Touch devices */
    .card:hover {
        transform: none;
        box-shadow: 0 9px 6px rgba(0, 0, 0, 0.1);
    }
    
    #gallery img:hover {
        transform: none;
    }
}

/* Container max-widths override for better mobile experience */
@media (max-width: 575.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Navbar mobile optimizations */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--neutral-light);
        padding: 1rem;
        border-radius: 8px;
        margin-top: 0.62rem;
        box-shadow: 0 7px 6px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav .nav-item {
        margin-bottom: 0.58rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 6px;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: var(--secondary-light);
    }
} 

body {
    overflow-x: hidden;
}