/* ==========================================
   SnackWorld - Responsive CSS
   Mobile-First Responsive Design
   ========================================== */

/* Mobile First - Base Styles (320px+) */
@media (min-width: 320px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-section {
        min-height: 80vh;
        padding-top: 5rem;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    padding-top: 125px;
}
    
    .hero-section .lead {
        font-size: 0.95rem;
    }
    
    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    /* Sections */
    section {
        padding: 2.5rem 0;
    }
    
    /* Cards */
    .card {
        margin-bottom: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    overflow-x: hidden;
}
    
    /* Buttons */
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    /* Forms */
    .form-control {
        margin-bottom: 1rem;
    }
    
    /* Team section */
    #team .col-lg-2 {
        margin-bottom: 2rem;
    }
    
    /* Gallery */
    #gallery [class*="col-"] {
        margin-bottom: 1rem;
    }
}

/* Small Devices (576px+) */
@media (min-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    padding-top: 125px;
}
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .btn {
        width: auto;
        display: inline-block;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    /* Services grid adjustment */
    .services .col-md-6 {
        margin-bottom: 1.5rem;
    }
}

/* Medium Devices (768px+) */
@media (min-width: 768px) {
    .hero-section {
        min-height: 90vh;
        padding-top: 6rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    padding-top: 125px;
}
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    /* Navigation */
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
        text-align: left;
    }
    
    /* Sections */
    section {
        padding: 3.5rem 0;
    }
    
    /* About features */
    #about .col-lg-3 {
        margin-bottom: 2rem;
    }
    
    /* Features section */
    #features .col-lg-6 {
        margin-bottom: 2rem;
    }
    
    /* Team section adjustments */
    #team .col-lg-2 {
        margin-bottom: 1.5rem;
    }
    
    /* Reviews responsive layout */
    #reviews .col-lg-6 {
        margin-bottom: 1.5rem;
    }
    
    #reviews .col-lg-4 {
        margin-bottom: 1.5rem;
    }
    
    /* FAQ responsive layout */
    #faq .col-lg-6 {
        margin-bottom: 1.5rem;
    }
}

/* Large Devices (992px+) */
@media (min-width: 992px) {
    .hero-section {
        min-height: 100vh;
    }
    
    .hero-section h1 {
        font-size: 3rem;
    padding-top: 125px;
}
    
    /* Sections */
    section {
        padding: 4rem 0;
    }
    
    /* Grid adjustments */
    #about .col-lg-3 {
        margin-bottom: 0;
    }
    
    #features .col-lg-6 {
        margin-bottom: 0;
    }
    
    #team .col-lg-2 {
        margin-bottom: 0;
    }
    
    #reviews .col-lg-4,
    #reviews .col-lg-6 {
        margin-bottom: 0;
    }
    
    #faq .col-lg-6 {
        margin-bottom: 0;
    }
    
    /* Services grid - 3 columns */
    #services .row {
        display: flex;
        align-items: stretch;
    }
    
    #services .col-lg-4 {
        display: flex;
    }
    
    #services .card {
        width: 100%;
    }
}

/* Extra Large Devices (1200px+) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-section h1 {
        font-size: 3.5rem;
    padding-top: 125px;
}
    
    /* Enhanced spacing */
    section {
        padding: 5rem 0;
    }
    
    /* Card enhancements */
    .card-body {
        padding: 2rem;
    }
}

/* Extra Extra Large Devices (1400px+) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section h1 {
        font-size: 4rem;
    padding-top: 125px;
}
}

/* Tablet Portrait Orientation */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .hero-section {
        padding-top: 4rem;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    padding-top: 125px;
}
    
    /* Services adjustment for tablet */
    #services .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
    
    /* Team layout for tablet */
    #team .col-lg-2 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

/* Tablet Landscape and Small Desktop */
@media (min-width: 1024px) and (max-width: 1199px) {
    .hero-section h1 {
        font-size: 2.75rem;
    padding-top: 125px;
}
    
    /* Optimize card spacing */
    .card-body {
        padding: 1.5rem;
    }
}

/* Mobile Landscape */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        min-height: 70vh;
        padding-top: 3rem;
    }
    
    .hero-section h1 {
        font-size: 1.5rem;
    padding-top: 125px;
}
    
    section {
        padding: 2rem 0;
    }
}

/* High Resolution Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for high DPI displays */
    .card {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .btn {
        border-width: 1px;
    }
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    .navbar,
    footer,
    .btn,
    [data-sal] {
        display: none !important;
    }
    
    .hero-section,
    section {
        padding: 1rem 0;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* Accessibility - Large Text */
@media (min-width: 320px) {
    .large-text h1 { font-size: 2.5rem; }
    .large-text h2 { font-size: 2rem; }
    .large-text h3 { font-size: 1.75rem; }
    .large-text p, .large-text .lead { font-size: 1.25rem; }
}

/* Dark Mode Support */

/* Container Breakpoint Adjustments */
@media (max-width: 575.98px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
}

/* Additional Mobile Optimizations */
@media (max-width: 767px) {
    /* Hide decorative elements on mobile */
    .hero-shapes {
        display: none;
    }
    
    /* Optimize touch targets */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
    }
    
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Stack form elements */
    .form-row .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Mobile-friendly gallery */
    #gallery [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    /* Simplify team layout for mobile */
    #team .col-lg-2 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 2rem;
    }
} 