/* ═══════════════════════════════════════════════
   RETRO IN — Digital Menu Styles
   Warm neo-retro palette · Minimal white
   ═══════════════════════════════════════════════ */

/* ──── 1. CSS Custom Properties ──── */
:root {
  --bg:            #FFF5D6;
  --bg-warm:       #FFEED0;
  --bg-card:       #FFFAED;
  --bg-purple:     #F3EEFF;
  --bg-yellow:     #FFF8D6;
  --bg-dark:       #2D1B69;

  --ink:           #1A1025;
  --ink-mid:       #6B5C8A;
  --ink-light:     #A899C0;
  --divider:       #EAE0FF;

  --purple:        #7B3FE4;
  --purple-mid:    #9B6FD4;
  --purple-soft:   #EDE0FF;
  --yellow:        #F5C518;
  --yellow-mid:    #F7D44C;
  --yellow-soft:   #FFF3C4;
  --yellow-dark:   #C49A00;

  --cream:         #F5EDD6;
  --retro-red:     #E8453C;
  --retro-teal:    #2A9D8F;
  --teal-soft:     #D4F0EC;
  --red-soft:      #FFE0DE;

  --font-display:  'Righteous', 'Bebas Neue', Impact, sans-serif;
  --font-price:    'Bebas Neue', Impact, sans-serif;
  --font-serif:    'Playfair Display', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;

  --page-pad:      clamp(24px, 6vw, 40px);
  --section-gap:   56px;
}


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

html {
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  background-image: radial-gradient(circle, #f0e4be 1px, transparent 1px);
  background-size: 20px 20px;
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}


/* ──── 3. Page Layout ──── */
.page-wrap {
  max-width: 660px;
  margin: 0 auto;
}


/* ──── 4. Hero Header ──── */
.hero {
  background: var(--bg-dark);
  border-radius: 0 0 36px 36px;
  padding: 40px var(--page-pad) 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-vinyl {
  position: absolute;
  top: -24px;
  right: -24px;
  width: 130px;
  height: 130px;
  animation: vinylSpin 12s linear infinite;
  transform-origin: center;
  opacity: 0.08;
  pointer-events: none;
}

.hero-stars {
  position: absolute;
  top: 14px;
  left: 16px;
  width: 90px;
  height: 65px;
  pointer-events: none;
}

.hero-stars .star { animation: starPop 400ms ease backwards; }
.hero-stars .star:nth-child(1) { animation-delay: 0ms; }
.hero-stars .star:nth-child(2) { animation-delay: 150ms; }
.hero-stars .star:nth-child(3) { animation-delay: 280ms; }
.hero-stars .star:nth-child(4) { animation-delay: 200ms; }

.hero-logo {
  display: block;
  width: clamp(180px, 50vw, 260px);
  height: auto;
  margin: 0 auto 12px;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.hero-tagline {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
  position: relative;
  z-index: 1;
}

.hero-lines {
  display: block;
  margin: 16px auto 0;
  width: 80px;
  position: relative;
  z-index: 1;
}

.hero-hours {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 14px;
  position: relative;
  z-index: 1;
}


/* ──── 5. Sticky Navigation ──── */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 245, 214, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 3px solid var(--yellow);
  box-shadow: 0 2px 12px rgba(196, 154, 0, 0.08);
}

.tab-bar {
  display: flex;
  height: 54px;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding: 0 clamp(12px, 3vw, 24px);
  gap: 2px;
}

.tab-bar::-webkit-scrollbar { display: none; }

.tab-btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0 14px;
  white-space: nowrap;
  color: var(--ink-light);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 48px;
  touch-action: manipulation;
  transition: color 200ms ease,
              border-color 200ms ease,
              background 200ms ease;
}

.tab-btn:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: -2px;
  border-radius: 4px;
}

.tab-btn.active-purple { color: var(--purple);     border-bottom-color: var(--purple);     background: var(--purple-soft); }
.tab-btn.active-yellow { color: var(--yellow-dark); border-bottom-color: var(--yellow-dark); background: var(--yellow-soft); }
.tab-btn.active-teal   { color: var(--retro-teal);  border-bottom-color: var(--retro-teal);  background: var(--teal-soft); }
.tab-btn.active-red    { color: var(--retro-red);   border-bottom-color: var(--retro-red);   background: var(--red-soft); }


/* ──── 6. Menu Sections ──── */
.menu-content {
  padding: 0 var(--page-pad) 24px;
}

.menu-section {
  padding-top: var(--section-gap);
}


/* ──── 7. Category Headers ──── */
.cat-header {
  position: relative;
  padding-left: 18px;
  margin-bottom: 12px;
}

.cat-accent-bar {
  position: absolute;
  left: 0; top: 0;
  width: 5px; height: 100%;
  border-radius: 3px;
}

.cat-header-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.cat-emoji  { font-size: 24px; line-height: 1; }

.cat-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 38px);
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1.1;
}

.cat-count {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.06em;
  line-height: 1;
}

.wavy-divider {
  width: 100%;
  height: 14px;
  margin: 12px 0 8px;
  display: block;
}


/* ──── 8. Menu Items ──── */
.menu-item {
  display: flex;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--divider);
  min-height: 64px;
  position: relative;
  gap: 14px;
  transition: background 180ms ease,
              padding 180ms ease,
              margin 180ms ease,
              border-radius 180ms ease;
}

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

.item-info { flex: 1; min-width: 0; }

.item-name-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.item-name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.3;
}

.item-desc {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  color: var(--ink-mid);
  line-height: 1.6;
  margin-top: 3px;
}

.item-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.item-price {
  font-family: var(--font-price);
  font-size: 20px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  line-height: 1;
}


/* ──── 9. Product Images ──── */
.item-img {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  border: 3px solid var(--yellow);
  box-shadow: 2px 2px 0 var(--yellow-dark);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  background: var(--bg-warm);
}

.item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.item-img .img-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1;
  background: linear-gradient(135deg, var(--yellow-soft), var(--bg-warm));
}

.item-img.img-error img         { display: none; }
.item-img.img-error .img-fallback { display: flex; }


/* ──── 10. Badges ──── */
.badge {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-hit {
  color: var(--purple);
  background: var(--yellow);
  border: 1.5px solid var(--yellow-dark);
  box-shadow: 1px 1px 0 var(--yellow-dark);
}

.badge-novo {
  color: #fff;
  background: var(--retro-red);
  border: 1.5px solid #c93a32;
  box-shadow: 1px 1px 0 #c93a32;
}


/* ──── 11. Desktop Hover ──── */
@media (hover: hover) {
  .menu-item:hover {
    margin: 0 -16px;
    padding: 16px;
    border-radius: 12px;
    border-bottom-color: transparent;
  }

  .menu-item.hover-purple:hover { background: var(--purple-soft); }
  .menu-item.hover-yellow:hover { background: var(--yellow-soft); }
  .menu-item.hover-teal:hover   { background: var(--teal-soft); }
  .menu-item.hover-red:hover    { background: var(--red-soft); }
}


/* ──── 12. Section Stars ──── */
.section-stars {
  display: flex;
  justify-content: center;
  width: 80px;
  margin: 8px auto;
  height: 24px;
}

.section-stars .star { animation: starPop 400ms ease backwards; }
.section-stars .star:nth-child(1) { animation-delay: 0ms; }
.section-stars .star:nth-child(2) { animation-delay: 150ms; }
.section-stars .star:nth-child(3) { animation-delay: 280ms; }


/* ──── 13. Footer ──── */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 44px var(--page-pad) 60px;
  text-align: center;
  border-radius: 28px 28px 0 0;
  margin-top: 56px;
}

.footer-logo {
  display: block;
  width: 140px;
  height: auto;
  margin: 0 auto 16px;
  opacity: 0.85;
}

.footer-info {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 13px;
  margin: 6px 0;
}

.footer-lines {
  margin: 18px auto;
  width: 60px;
  display: block;
}

.footer-credit {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 22px;
}


/* ──── 14. Keyframe Animations ──── */
@keyframes fadeRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes starPop {
  0%   { transform: scale(0) rotate(-30deg); opacity: 0; }
  70%  { transform: scale(1.2) rotate(5deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.anim-hero    { animation: fadeRise 700ms cubic-bezier(.22,.68,0,1.2) 0ms both; }
.anim-nav     { animation: fadeRise 500ms ease 180ms both; }
.anim-section { animation: fadeRise 500ms ease both; }

.anim-section:nth-of-type(1) { animation-delay: 260ms; }
.anim-section:nth-of-type(2) { animation-delay: 330ms; }
.anim-section:nth-of-type(3) { animation-delay: 400ms; }
.anim-section:nth-of-type(4) { animation-delay: 470ms; }
.anim-section:nth-of-type(5) { animation-delay: 540ms; }
.anim-section:nth-of-type(6) { animation-delay: 610ms; }

.reveal-item {
  opacity: 0;
  transform: translateY(12px);
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 350ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 350ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* ──── 15. Responsive ──── */
@media (max-width: 480px) {
  .item-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    border-width: 2px;
  }
  .item-img .img-fallback { font-size: 26px; }
  .item-price  { font-size: 18px; }
  .item-right  { gap: 10px; }
  .menu-item   { gap: 10px; }
}

@media (max-width: 360px) {
  .item-img { width: 56px; height: 56px; }
}
