/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #faf7f4;
  color: #2d2420;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Banner */
.banner {
  position: relative;
  width: 100%;
  height: 260px;
  overflow: hidden;
  background: #1a1210;
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr 1fr;
  height: 100%;
  gap: 2px;
}

.banner-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    to bottom,
    rgba(26, 18, 16, 0.3) 0%,
    rgba(26, 18, 16, 0.65) 50%,
    rgba(26, 18, 16, 0.85) 100%
  );
  text-align: center;
  padding: 0 20px;
}

.banner-overlay h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.tagline {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  margin-top: 6px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* Category Navigation */
.category-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #faf7f4;
  border-bottom: 1px solid #e8e0d8;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.nav-scroll {
  display: flex;
  gap: 6px;
  padding: 10px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.nav-pill {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
  color: #6b5c52;
  background: #f0ebe6;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-pill.active {
  background: #c0392b;
  color: #fff;
}

.nav-pill:active {
  transform: scale(0.96);
}

/* Menu Container */
.menu-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px 40px;
}

/* Category Sections */
.category {
  padding-top: 24px;
}

.category-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: #c0392b;
  padding-bottom: 10px;
  margin-bottom: 4px;
  border-bottom: 2px solid #e8e0d8;
}

/* Menu Items */
.items-grid {
  display: flex;
  flex-direction: column;
}

.menu-item {
  padding: 14px 0;
  border-bottom: 1px solid #ede7e1;
  cursor: pointer;
  transition: background 0.15s ease;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 8px;
}

.menu-item:active {
  background: #f5efe9;
}

.item-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.item-name {
  font-size: 1rem;
  font-weight: 500;
  color: #2d2420;
  flex: 1;
}

.item-price {
  font-size: 1rem;
  font-weight: 600;
  color: #c0392b;
  white-space: nowrap;
}

.item-size-label {
  font-size: 0.78rem;
  color: #9a8b80;
  margin-top: 2px;
}

/* Size Selector */
.size-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e0d8d0;
}

.size-selector[hidden] {
  display: none;
}

.size-btn {
  padding: 6px 14px;
  border: 1.5px solid #d4ccc4;
  border-radius: 20px;
  background: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: #6b5c52;
  cursor: pointer;
  transition: all 0.15s ease;
}

.size-btn.active {
  border-color: #c0392b;
  background: #c0392b;
  color: #fff;
}

.size-btn:not(.active):active {
  background: #f5efe9;
}

/* Expand indicator for items with multiple sizes */
.menu-item:not([data-single]) .item-name::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #6b5c52;
  margin-left: 10px;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.menu-item.expanded .item-name::after {
  transform: rotate(180deg);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 28px 16px;
  border-top: 2px solid #e8e0d8;
  background: #f5efe9;
}

.site-footer p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: #c0392b;
}

/* Desktop styles */
@media (min-width: 768px) {
  .banner {
    height: 300px;
  }

  .banner-overlay h1 {
    font-size: 3.2rem;
  }

  .tagline {
    font-size: 1.1rem;
  }

  .menu-container {
    padding: 0 24px 60px;
  }

  .category-title {
    font-size: 1.5rem;
  }

  .nav-pill {
    padding: 8px 20px;
    font-size: 0.88rem;
  }

  .nav-scroll {
    justify-content: center;
    padding: 12px 24px;
  }

  .menu-item:hover {
    background: #f5efe9;
  }

  .size-btn:not(.active):hover {
    background: #f0ebe6;
    border-color: #b0a298;
  }
}
