/* ==========================================================================
   SABOR DO SERTÃO — RESPONSIVIDADE & MOBILE DESIGN (320px a 1920px)
   ========================================================================== */

/* Telas Grandes & Desktops (min-width: 1441px) */
@media (min-width: 1441px) {
  .container {
    max-width: 1260px;
  }
}

/* Laptops & Tablets Horizontais (max-width: 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 36px;
  }

  .hero-plate-frame {
    max-width: 400px;
  }

  .kitchen-grid {
    gap: 40px;
  }

  .menu-items-grid {
    gap: 20px;
  }

  .lambe-mural-grid {
    gap: 24px;
  }

  .footer-top-row {
    gap: 40px;
  }
}

/* Tablets Verticais & Telas Médias (max-width: 868px) */
@media (max-width: 868px) {
  /* Menu Mobile */
  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--color-brown-deep);
    border-left: 3px solid var(--color-yellow-solar);
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: 36px;
    box-shadow: -8px 0 28px rgba(0, 0, 0, 0.6);
    transform: translateX(105%);
    transition: transform var(--trans-normal);
    z-index: 100;
  }

  .nav-links.nav-open {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.2rem;
    color: #FFF8E9;
  }

  .site-header .header-action {
    display: none;
  }

  .nav-mobile-cta {
    display: block !important;
    margin-top: 10px;
    width: 100%;
  }

  /* Seção 1: Hero Mobile Stack */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 36px;
    gap: 38px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
    margin-bottom: 12px;
  }

  .hero-visual-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }

  .hero-plate-frame {
    max-width: 360px;
  }

  .hero-sun-spiral {
    width: 110px;
    height: 110px;
    top: -25px;
    right: -15px;
  }

  .hero-cactus-motif {
    width: 90px;
    bottom: -20px;
    left: -20px;
  }

  /* Seção 2: Cozinha / História Stack */
  .kitchen-grid {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 36px;
  }

  .kitchen-visual-col {
    order: 2;
  }

  .woodcut-ornate-frame {
    max-width: 360px;
  }

  .kitchen-content-col {
    order: 1;
  }

  /* Seção 3: Cardápio Stack */
  .menu-items-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin: 0 auto;
    gap: 26px;
  }

  .food-card-photo-box {
    height: 240px;
  }

  /* Seção 4: Ambiente & Cultura Stack */
  .lambe-mural-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto 36px;
    gap: 32px;
  }

  /* Seção 5: Rodapé & Contato Stack */
  .footer-top-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-intro-lead {
    max-width: 100%;
    margin-bottom: 24px;
  }

  .form-row-duo {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .footer-social-stamps {
    flex-direction: column;
    gap: 8px;
  }
}

/* Smartphones & Telas Médias-Pequenas (max-width: 540px) */
@media (max-width: 540px) {
  .container {
    padding: 0 16px;
  }

  /* Transições com altura adaptada */
  .torn-paper-divider {
    margin-top: -28px;
  }

  .torn-paper-divider img {
    height: 38px;
  }

  /* Seções com espaçamento respirável sem clipping */
  .hero-section {
    padding-bottom: 50px;
  }

  .kitchen-section,
  .menu-section,
  .hospitality-section,
  .site-footer {
    padding: 55px 0 65px;
  }

  .hero-headline {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn,
  .hero-cta-group .btn-outline-rustic {
    width: 100%;
  }

  .hero-plate-frame {
    max-width: 290px;
  }

  .hero-sun-spiral {
    width: 90px;
    height: 90px;
    top: -20px;
    right: -10px;
  }

  .hero-cactus-motif {
    width: 75px;
    bottom: -15px;
    left: -15px;
  }

  .hero-pepper-motif {
    width: 36px;
    top: 5px;
    left: -8px;
  }

  .section-title,
  .menu-main-title,
  .hospitality-title,
  .footer-main-title {
    font-size: 2rem;
  }

  /* Badges em 1 coluna no mobile */
  .kitchen-badges-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Abas do cardápio com rolagem fluida */
  .menu-category-nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .category-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 18px;
    font-size: 0.92rem;
  }

  /* Lambe-card rotação adaptada no mobile para respiro perfeito */
  .card-salao,
  .card-forro {
    transform: none;
  }

  .card-salao:hover,
  .card-forro:hover {
    transform: translateY(-3px);
  }

  .card-salao .lambe-caption,
  .card-forro .lambe-caption {
    padding-left: 0;
    padding-right: 0;
  }

  /* Carimbos contidos no card para evitar scroll horizontal */
  .stamp-xique {
    right: 4px;
    bottom: -10px;
    width: 95px;
  }

  .stamp-forro {
    right: 4px;
    top: -12px;
    width: 100px;
  }

  .stamp-eita {
    left: 4px;
    bottom: -10px;
    width: 80px;
  }

  .footer-info-col {
    padding: 22px 18px 20px;
  }

  .btn-submit-rustic {
    width: 100%;
    text-align: center;
  }
}

/* Smartphones Ultra-compactos (max-width: 375px) */
@media (max-width: 375px) {
  .hero-headline {
    font-size: 1.95rem;
  }

  .brand-title {
    font-size: 1.45rem;
  }

  .brand-logo-img {
    width: 44px;
    height: 44px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.95rem;
  }

  .hero-plate-frame {
    max-width: 250px;
  }

  .footer-info-col {
    padding: 18px 14px 16px;
  }

  .rustic-form-wrapper {
    padding: 20px 14px;
  }
}
