/* ===== COMPREHENSIVE RESPONSIVE FIXES ===== */

/* Enhanced Mobile-First Approach */
* {
    box-sizing: border-box;
}

/* Container Improvements */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== HEADER RESPONSIVE FIXES ===== */
.header-top {
    display: none;
}

@media (min-width: 768px) {
    .header-top {
        display: block;
    }
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.header-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
}

.header-info span {
    white-space: nowrap;
}

@media (max-width: 576px) {
    .header-info {
        flex-direction: column;
        gap: 8px;
    }
    
    .header-info span {
        font-size: 0.8rem;
    }
}

/* ===== NAVIGATION RESPONSIVE FIXES ===== */
.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.navbar-brand .logo {
    font-size: 1.5rem;
    font-weight: 700;
}

@media (max-width: 576px) {
    .navbar-brand .logo {
        font-size: 1.3rem;
    }
}

/* Mobile Menu Improvements */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary, #ff6b35);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar-nav {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        padding: 20px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .navbar-nav.active {
        transform: translateX(0);
    }
    
    .navbar-nav .nav-item {
        margin: 0;
        border-bottom: 1px solid #eee;
    }
    
    .navbar-nav .nav-link {
        display: block;
        padding: 15px 0;
        font-size: 1.1rem;
        color: var(--text-dark, #333);
    }
    
    .navbar-actions .btn {
        display: none;
    }
}

/* ===== HERO SECTION RESPONSIVE FIXES ===== */
.hero-banner {
    padding: 80px 0 60px;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-banner-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-banner {
        padding: 60px 0 40px;
        min-height: auto;
        text-align: center;
    }
    
    .hero-banner-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-banner-left {
        order: 2;
    }
    
    .hero-banner-right {
        order: 1;
    }
    
    .hero-banner-title {
        font-size: 2.5rem !important;
        line-height: 1.2;
    }
    
    .hero-banner-actions {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .hero-banner-features {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .hero-banner-title {
        font-size: 2rem !important;
    }
    
    .hero-banner-description {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* ===== SLIDER RESPONSIVE FIXES ===== */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .slider-container {
        height: 300px;
        max-width: 400px;
    }
}

@media (max-width: 576px) {
    .slider-container {
        height: 250px;
        max-width: 300px;
    }
}

.main-food-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

@media (max-width: 576px) {
    .slider-dots {
        bottom: 15px;
        gap: 8px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* ===== FLOATING CARDS RESPONSIVE FIXES ===== */
.floating-card {
    position: absolute;
    background: white;
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: float 3s ease-in-out infinite;
}

@media (max-width: 768px) {
    .floating-card {
        position: static;
        display: inline-block;
        margin: 10px;
        animation: none;
        transform: none;
    }
    
    .hero-banner-image {
        position: relative;
    }
    
    .hero-banner-image::after {
        content: '';
        display: block;
        margin-top: 20px;
    }
}

/* ===== MENU SECTION RESPONSIVE FIXES ===== */
.menu-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.menu-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

@media (max-width: 768px) {
    .menu-controls {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .menu-categories {
        width: 100%;
        justify-content: center;
    }
    
    .category-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .menu-categories {
        flex-direction: column;
        align-items: center;
    }
    
    .category-btn {
        width: 200px;
        text-align: center;
    }
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ===== SECTION SPACING RESPONSIVE FIXES ===== */
section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 0;
    }
}

/* ===== TEXT RESPONSIVE FIXES ===== */
.section-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 576px) {
    .section-description {
        font-size: 1rem;
    }
}

/* ===== GRID SYSTEM RESPONSIVE FIXES ===== */
.features-grid,
.specialties-grid,
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

@media (max-width: 768px) {
    .features-grid,
    .specialties-grid,
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .features-grid,
    .specialties-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ===== FORM RESPONSIVE FIXES ===== */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

@media (max-width: 576px) {
    .form-control {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
}

/* ===== FOOTER RESPONSIVE FIXES ===== */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center-mobile {
    text-align: left;
}

@media (max-width: 768px) {
    .text-center-mobile {
        text-align: center;
    }
}

.hide-mobile {
    display: block;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none;
    }
}

.show-mobile {
    display: none;
}

@media (max-width: 768px) {
    .show-mobile {
        display: block;
    }
}

/* ===== IMPROVED TOUCH TARGETS ===== */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-link,
    .category-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ===== LANDSCAPE ORIENTATION FIXES ===== */
@media (orientation: landscape) and (max-height: 600px) {
    .hero-banner {
        min-height: 90vh;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .navbar-nav {
        position: static;
        transform: none;
        flex-direction: row;
        height: auto;
        background: none;
        padding: 0;
    }
}

/* ===== HIGH DPI DISPLAY FIXES ===== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .main-food-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-card {
        animation: none;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header-top,
    .mobile-menu-toggle,
    .floating-card,
    .btn {
        display: none !important;
    }
    
    .hero-banner-content {
        grid-template-columns: 1fr;
    }
    
    * {
        color: black !important;
        background: white !important;
    }
}