/* ============================================
   CARDAPIO.CSS — Brasa Burguer | Cardápio
============================================ */

/* ── PAGE HEADER ── */
#cardapio-header {
  background: var(--charcoal);
  padding: 8.125rem 0 4.375rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

#cardapio-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0.25rem;
  background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light), var(--gold), transparent);
}

#cardapio-header::before {
  content: 'MENU';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-title);
  font-size: 18vw;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.025);
  pointer-events: none;
  white-space: nowrap;
}

#cardapio-header h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 0.875rem;
}

#cardapio-header h1 em {
  color: var(--gold-light);
  font-style: italic;
}

#cardapio-header p {
  color: rgba(255, 255, 255, 0.6);
  max-width: 31.25rem;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* ── FILTROS ── */
#cardapio-filtros {
  background: var(--cream-2);
  padding: 1rem 0;
  position: sticky;
  top: var(--navbar-height, 4.125rem);
  z-index: 100;
  border-bottom: 0.0625rem solid rgba(201, 147, 58, 0.15);
}

.filtro-scroll {
  display: flex;
  justify-content: center;
  gap: 0.625rem;
  overflow-x: auto;
  padding-bottom: 0;
  scrollbar-width: none;
}

.filtro-scroll::-webkit-scrollbar {
  display: none;
}

.filtro-btn {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.625rem 1.5rem;
  border-radius: 3.125rem;
  border: 0.125rem solid rgba(148, 0, 0, 0.25);
  background: transparent;
  color: rgba(44, 44, 44, 0.65);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filtro-btn i {
  font-size: 0.9rem;
  color: #940000;
}

/* ALTERADO: botões do filtro ativos/hover em #940000 */
.filtro-btn:hover,
.filtro-btn.active {
  background: #940000;
  border-color: #940000;
  color: var(--white);
  box-shadow: 0 0.25rem 0.9375rem rgba(148, 0, 0, 0.35);
}

.filtro-btn.active i,
.filtro-btn:hover i {
  color: var(--white);
}

/* ── DROPDOWN (mobile) ── */
.filtro-dropdown-wrapper {
  display: none;
  position: relative;
}

/* ALTERADO: dropdown button em #940000 */
.filtro-dropdown-btn {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.8125rem 1.25rem;
  border-radius: 3.125rem;
  border: 0.125rem solid #940000;
  background: #940000;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.625rem;
  box-shadow: 0 0.25rem 0.9375rem rgba(148, 0, 0, 0.35);
  transition: var(--transition);
}

.filtro-dropdown-btn .dropdown-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filtro-dropdown-btn .dropdown-arrow {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.filtro-dropdown-btn.open .dropdown-arrow {
  transform: rotate(180deg);
}

.filtro-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: 1rem;
  border: 0.0625rem solid rgba(201, 147, 58, 0.2);
  box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.12);
  overflow: hidden;
  z-index: 200;
}

.filtro-dropdown-menu.open {
  display: block;
  animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-0.375rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filtro-dropdown-item {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: none;
  border-bottom: 0.0625rem solid rgba(201, 147, 58, 0.08);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(44, 44, 44, 0.75);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

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

/* ALTERADO: ícones dos itens do dropdown em #940000 */
.filtro-dropdown-item i {
  color: #940000;
  font-size: 1rem;
  width: 1.25rem;
  text-align: center;
}

.filtro-dropdown-item:hover {
  background: rgba(148, 0, 0, 0.06);
  color: var(--charcoal);
}

/* ALTERADO: item ativo do dropdown em #940000 */
.filtro-dropdown-item.active {
  background: rgba(148, 0, 0, 0.06);
  font-weight: 700;
  color: #940000;
}

.filtro-dropdown-item.active i {
  color: #940000;
}

/* ── SEÇÕES ── */
.cardapio-secao {
  padding: 5rem 0 2.5rem;
}

.cardapio-secao:nth-child(odd) {
  background: var(--cream);
}

.cardapio-secao:nth-child(even) {
  background: var(--cream-2);
}

.secao-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3.125rem;
}

/* NOTA: fundo do ícone de seção mantido com gradiente original (dourado) */
.secao-icon-bg {
  width: 4rem;
  height: 4rem;
  border-radius: 1.125rem;
  background: linear-gradient(135deg, #C9933A, #E8B86D);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.8rem;
  flex-shrink: 0;
  box-shadow: 0 0.5rem 1.25rem rgba(201, 147, 58, 0.3);
}

.secao-titulo {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--charcoal);
  margin: 0;
}

.secao-divider {
  flex: 1;
  height: 0.0625rem;
  background: linear-gradient(90deg, rgba(201, 147, 58, 0.3), transparent);
}

/* ── CARDS ── */
.menu-item-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0.0625rem solid rgba(201, 147, 58, 0.08);
  transition: var(--transition);
  height: 100%;
}

.menu-item-card:hover {
  transform: translateY(-0.3125rem);
  border-color: rgba(201, 147, 58, 0.3);
  box-shadow: 0 0.9375rem 2.5rem rgba(0, 0, 0, 0.1);
}

.menu-item-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/2;
}

.menu-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-item-card:hover .menu-item-img {
  transform: scale(1.06);
}

.menu-item-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--cream-2), var(--cream));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

.menu-item-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 3.125rem;
  z-index: 2;
}

.tag-novo {
  background: var(--gold);
  color: var(--white);
}

.tag-popular {
  background: var(--gold);
  color: var(--white);
}

.tag-vegano {
  background: #4CAF50;
  color: var(--white);
}

.tag-picante {
  background: #E53935;
  color: var(--white);
}

.menu-item-body {
  padding: 1.25rem 1.375rem 1.375rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.menu-item-name {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.menu-item-desc {
  font-size: 0.82rem;
  color: rgba(44, 44, 44, 0.65);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.125rem;
}

.menu-item-footer {
  display: flex;
  align-items: center;
  margin-top: auto;
}

/* ALTERADO: preços em #940000 (via --gold-dark que agora é #940000) */
.menu-item-price {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gold-dark);
}

.menu-item-price sup {
  font-size: 0.7rem;
  font-weight: 500;
  vertical-align: super;
}

/* ── ITENS SIMPLES ── */
.menu-simple-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 0.0625rem solid rgba(201, 147, 58, 0.08);
  transition: var(--transition);
  margin-bottom: 0.625rem;
}

.menu-simple-item .menu-item-price {
  margin-left: auto;
  flex-shrink: 0;
}

.menu-simple-item:hover {
  border-color: rgba(201, 147, 58, 0.3);
  transform: translateX(0.25rem);
  box-shadow: 0 0.25rem 0.9375rem rgba(0, 0, 0, 0.06);
}

.menu-simple-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--cream-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.menu-simple-name {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--charcoal);
  margin-bottom: 0.125rem;
}

.menu-simple-desc {
  font-size: 0.78rem;
  color: rgba(44, 44, 44, 0.55);
  margin: 0;
}

/* ── RODAPÉ ── */
.cardapio-footer-note {
  background: var(--charcoal);
  padding: 2.5rem 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
}

.cardapio-footer-note span {
  color: var(--gold);
}

.cardapio-header-container {
  position: relative;
  z-index: 5;
}

/* ── RESPONSIVE ── */
@media (max-width: 767px) {

  /* Esconde scroll no mobile, mostra dropdown */
  .filtro-scroll {
    display: none;
  }

  .filtro-dropdown-wrapper {
    display: block;
  }

  .cardapio-secao {
    padding: 3.125rem 0 1.25rem;
  }

  .secao-header {
    flex-wrap: wrap;
  }

  .secao-divider {
    display: none;
  }
}