/* ColdBrew Express - Responsive Styles */

/* Mobile First Approach */

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 575.98px) {
    /* Typography adjustments for mobile */
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.2rem;
    }
    
    /* Navbar brand even more conservative on mobile */
    .navbar-brand {
        font-size: 1rem !important;
    }
    
    /* Hero section adjustments */
    .hero-section {
        padding: 2rem 0;
        min-height: 60vh;
    }
    
    /* Section padding reduced for mobile */
    section {
        padding: 2.5rem 0;
    }
    
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    /* Card image height adjustment */
    .card-img-top {
        height: 180px;
    }
    
    /* Team member images smaller on mobile */
    .rounded-circle {
        width: 100px;
        height: 100px;
    }
    
    /* Button sizing */
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    /* Form adjustments */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Gallery grid adjustments */
    .gallery .col-lg-3,
    .gallery .col-md-4 {
        padding: 0.25rem;
    }
    
    /* Process steps more vertical spacing */
    .bg-primary.rounded-circle {
        width: 50px !important;
        height: 50px !important;
        font-size: 0.9rem;
    }
    
    /* Footer spacing */
    footer .col-lg-4 {
        margin-bottom: 2rem;
    }
    
    /* NO animations on mobile for better performance */
    .card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(139, 69, 19, 0.08);
    }
    
    .gallery img:hover {
        transform: none;
    }
    
    .bg-primary.rounded-circle:hover {
        transform: none;
        background-color: var(--primary-color) !important;
    }
    
    /* Container padding adjustments */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .hero-section {
        min-height: 70vh;
    }
    
    .card-img-top {
        height: 190px;
    }
    
    .rounded-circle {
        width: 110px;
        height: 110px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section {
        min-height: 80vh;
    }
    
    .card-img-top {
        height: 200px;
    }
    
    /* Team members in rows of 3 */
    .team-member {
        margin-bottom: 2rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    /* Full hero height on desktop */
    .hero-section {
        min-height: 100vh;
    }
    
    /* Better card hover effects on desktop */
    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 20px rgba(125, 67, 18, 0.15);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    /* Container max width */
    .container {
        max-width: 1140px;
    }
    
    /* Larger hero text on very large screens */
    .hero-section h1 {
        font-size: 2.5rem;
    padding-top: 250px;
}
    
    .hero-section h2 {
        font-size: 2rem;
    }
}

/* Landscape orientation adjustments */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-section {
        min-height: 100vh;
        padding: 1rem 0;
    }
    
    section {
        padding: 2rem 0;
    }
}

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

/* Accessibility - Larger text for users who need it */
@media (prefers-reduced-motion: reduce) {
    /* Remove all animations for users who prefer reduced motion */
    * {
        animation: none !important;
        transition: none !important;
    }
    
    html {
        scroll-behavior: auto !important;
    }
}

/* Dark mode support */

/* Print styles */
@media print {
    /* Hide navigation and footer when printing */
    .navbar,
    footer,
    .gallery,
    .btn {
        display: none !important;
    }
    
    /* Adjust colors for print */
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    /* Ensure good page breaks */
    section {
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
    
    /* Font size adjustments for print */
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1 { font-size: 18pt; }
    h2 { font-size: 16pt; }
    h3 { font-size: 14pt; }
}

/* Focus management for keyboard navigation */
@media (hover: none) {
    /* For touch devices, ensure good focus states */
    .btn:focus,
    .nav-link:focus,
    .form-control:focus {
        outline: 3px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* Reduced data mode */
@media (prefers-reduced-data: reduce) {
    /* Disable background images for users on limited data */
    .hero-section::before {
        display: none;
    }
    
    /* Simplify images */
    .card-img-top {
        background-color: var(--bg-cream);
    }
}

/* Container adjustments for different screen sizes */
@media (max-width: 575.98px) {
    .container-fluid {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Grid adjustments for mobile */
@media (max-width: 767.98px) {
    /* Stack columns on mobile */
    .col-lg-2,
    .col-lg-3,
    .col-lg-4,
    .col-lg-6 {
        margin-bottom: 1.5rem;
    }
    
    /* Contact form full width on mobile */
    .col-lg-8,
    .col-lg-4 {
        margin-bottom: 2rem;
    }
}

/* Navigation specific responsive adjustments */
@media (max-width: 991.98px) {
    /* Ensure navbar toggler is visible */
    .navbar-toggler {
        border: 1px solid var(--primary-color);
    }
    
    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.25rem rgba(125, 41, 5, 0.25);
    }
    
    /* Dropdown menu styling */
    .navbar-collapse {
        margin-top: 1rem;
        border-top: 1px solid rgba(135, 80, 19, 0.10);
        padding-top: 1rem;
    }
    
    .nav-link {
        padding: 0.75rem 0 !important;
        border-bottom: 1px solid rgba(139, 69, 19, 0.05);
    }
}

/* Form responsive adjustments */
@media (max-width: 767.98px) {
    .form-control {
        margin-bottom: 1rem;
    }
    
    .btn-lg {
        width: 100%;
        margin-top: 1rem;
    }
}

/* Gallery responsive grid */
@media (max-width: 575.98px) {
    .gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .gallery .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Ensure proper spacing on all devices */
.section-spacing {
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .section-spacing {
        margin-bottom: 3rem;
    }
} 