/* ============================================
   MOBILE RESPONSIVE FIXES
   Correções de overflow e responsividade
   ============================================ */

/* Prevenir scroll horizontal */
html {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
}

body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
}

/* Garantir que todos os elementos respeitem o viewport */
* {
    max-width: 100%;
}

/* Container responsivo */
.container {
    width: 100% !important;
    max-width: var(--container-max-width, 1280px);
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

/* Hero responsivo */
.hero {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

.hero-content {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    padding-left: 1rem;
    padding-right: 1rem;
}

.hero-text {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.hero-title,
.hero-subtitle {
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Botões responsivos */
.hero-cta {
    width: 100%;
    max-width: 100%;
}

.btn {
    max-width: 100%;
    box-sizing: border-box;
}

/* Navbar responsiva */
.navbar {
    width: 100% !important;
    max-width: 100vw !important;
    left: 0;
    right: 0;
}

.nav-wrapper {
    width: 100%;
    max-width: var(--container-max-width, 1280px);
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

/* Seções responsivas */
section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Grid responsivo */
.about-grid,
.features-grid,
.menu-grid,
.experience-grid {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Menu Items Responsivos */
.menu-item {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.menu-item-header {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.menu-item h3,
.menu-item p {
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.menu-item p {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

/* Imagens responsivas */
img {
    max-width: 100%;
    height: auto;
}

picture {
    max-width: 100%;
    display: block;
}

/* Media Query Mobile First */
@media (max-width: 767px) {
    /* Forçar largura total em mobile */
    html,
    body {
        width: 100vw !important;
        overflow-x: hidden !important;
        position: relative;
    }
    
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .hero {
        padding: 0 !important;
    }
    
    .hero-content {
        padding: 2rem 1rem !important;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2rem) !important;
        padding: 0 0.5rem;
    }
    
    .hero-subtitle {
        font-size: clamp(0.875rem, 4vw, 1rem) !important;
        padding: 0 0.5rem;
    }
    
    .hero-cta {
        padding: 0 0.5rem;
        width: 100%;
    }
    
       .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
          /* Menu mobile fixes */
    .menu-grid {
        padding: 0;
        gap: 2rem;
    }
    
    .menu-item {
        padding: 2.5rem 2rem 2rem;
        margin: 0;
        width: 100%;
    }
    
    .menu-item.featured {
        padding: 3rem 2rem 2rem;
    }
    
    .menu-item-header {
        flex-wrap: nowrap;
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .menu-item h3 {
        font-size: 1.125rem;
        flex: 1;
        min-width: 0;
        line-height: 1.3;
    }
    
    .menu-price {
        font-size: 1.125rem;
        flex-shrink: 0;
    }
    
    .menu-item p {
        font-size: 0.875rem;
        line-height: 1.6;
        margin-top: 0.75rem;
        padding: 0;
    }
    
    .menu-badge {
        font-size: 0.7rem;
        padding: 0.5rem 1rem;
        top: -10px;
        white-space: nowrap;
        max-width: 90%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .menu-tabs {
        gap: 0.75rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .menu-tab {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

/* Tablet */

@media (min-width: 768px) and (max-width: 1023px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}