/**
 * Arquivo CSS para a página do cardápio (cardapio.html)
 * Define estilos específicos para layout e apresentação do cardápio
 */

/* ========== VARIÁVEIS CSS ========== */
:root {
  /* Cores principais - compartilhadas com restaurante.css */
  --bg: #fff8ee;
  --panel: #fffdf8;
  --text: #1f1a17;
  --muted: #665f59;
  --brand: #db4f17;
  --brand-dark: #a63c12;
  --line: #f0ddc9;
  --shadow: 0 14px 34px rgba(100, 47, 18, 0.14);
  --radius: 18px;
}

/* ========== RESET E BASE ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  /* Fundo com gradientes sutis - igual ao restaurante.css */
  background:
    radial-gradient(circle at 15% 10%, #ffe2c4 0, transparent 36%),
    radial-gradient(circle at 90% 30%, #ffd5a6 0, transparent 34%),
    var(--bg);
  line-height: 1.6;
}

/* ========== LAYOUT ========== */
.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* ========== CABEÇALHO ========== */
.cabecalho-site {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(255, 248, 238, 0.86);
  border-bottom: 1px solid rgba(226, 175, 137, 0.35);
}

.navegacao {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}

.logo-marca {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: 0.05em;
  color: var(--brand-dark);
  text-decoration: none;
}

.navegacao ul {
  list-style: none;
  display: flex;
  gap: 22px;
  font-weight: 700;
  align-items: center;
}

.navegacao a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.navegacao a:hover,
.navegacao a.ativo {
  color: var(--brand);
}

.botao {
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.botao-primario {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 22px rgba(174, 64, 19, 0.28);
}

/* ========== SEÇÃO HERO DO CARDÁPIO ========== */
.hero-cardapio {
  padding: 62px 0 24px;
}

.hero-cardapio h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.hero-cardapio p {
  color: var(--muted);
  max-width: 70ch;
}

/* ========== SEÇÃO DO CARDÁPIO ========== */
.secao {
  padding: 26px 0;
}

.grade {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr; /* Duas colunas em telas maiores */
}

/* ========== CARDS DAS CATEGORIAS ========== */
.card-categoria {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.card-categoria h2 {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.02em;
  font-size: 2rem;
  margin-bottom: 10px;
}

/* ========== ITENS DO CARDÁPIO ========== */
.item-menu {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px dashed #e8ccb3;
  padding: 12px 0;
  gap: 14px;
}

.item-menu:last-child {
  border-bottom: none;
}

.item-menu span {
  color: var(--muted);
  font-size: 0.9rem;
  display: block;
}

.item-menu strong {
  color: var(--brand-dark);
  white-space: nowrap;
  font-size: 1.05rem;
}

/* ========== RODAPÉ ========== */
.rodape {
  padding: 10px 0 14px;
  color: #5e544d;
  font-size: 0.92rem;
  text-align: center;
}

/* ========== RESPONSIVIDADE ========== */

/* Tablets e telas menores */
@media (max-width: 930px) {
  .grade {
    grid-template-columns: 1fr; /* Uma coluna em telas menores */
  }

  .hero-cardapio {
    padding: 36px 0 18px;
  }

  .navegacao {
    flex-wrap: wrap;
  }

  .navegacao ul {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 18px;
    padding-top: 8px;
  }
}

/* Celulares */
@media (max-width: 640px) {
  .navegacao {
    padding: 10px 0;
  }

  .logo-marca {
    font-size: 1.6rem;
  }

      .navegacao ul {
        justify-content: center;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 2px;
        scrollbar-width: thin;
      }

      .navegacao ul li {
        flex: 0 0 auto;
      }

      .navegacao .botao {
        padding: 10px 16px;
      }

      .card-categoria {
        padding: 16px;
      }

      .card-categoria h2 {
        font-size: 1.8rem;
      }
    }