/* ─────────────────────────────────────────────
   NISS MANTI & MAKARNA — style.css
   ───────────────────────────────────────────── */

/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark:    #0a0806;
  --bg-dark-grad: radial-gradient(circle at top right, #1a1510 0%, #0a0806 60%);
  --bg-card:    rgba(30, 26, 22, 0.45);
  --bg-card2:   rgba(45, 38, 30, 0.65);
  --accent:     #c9893a;
  --accent-lt:  #f3b768;
  --accent-dk:  #9a6520;
  --accent-glow: rgba(201,137,58,0.3);
  --gold:       #d4af5a;
  --text-primary:   #f7f4ed;
  --text-secondary: #c2baad;
  --text-muted:     #8a8278;
  --border:     rgba(201,137,58,.15);
  --border-focus: rgba(201,137,58,.45);
  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 12px 40px rgba(0,0,0,.6);
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --nav-h:      72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg-dark-grad);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--accent-dk); border-radius: 99px; }

/* ═══════════════════════
   NAV
═══════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 999;
  background: transparent;
  transition: background .35s, backdrop-filter .35s, box-shadow .35s;
}
#navbar.scrolled {
  background: rgba(10, 8, 6, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,.6);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: .02em;
}
.nav-logo span { color: var(--accent-lt); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .25s;
}
.nav-links a:hover { color: var(--accent-lt); }
.nav-links a:hover::after { width: 100%; }

/* burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1000;
}
.burger span {
  width: 28px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
  transform-origin: center;
}
.burger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* mobile menu */
.mobile-menu {
  display: none;
  list-style: none;
  flex-direction: column;
  background: rgba(15,13,10,.97);
  padding: 16px 24px 24px;
  gap: 4px;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--accent-lt); }

/* ═══════════════════════
   HERO
═══════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('images/hero-bg.jpg') center center / cover no-repeat;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,8,5,.85) 0%,
    rgba(15,13,10,.65) 50%,
    rgba(10,8,5,.85) 100%
  );
}

/* subtle vignette */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0,0,0,.6) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 860px;
  animation: fadeUp .9s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700;
  line-height: 1.05;
  background: linear-gradient(to right, #f7f4ed 0%, #d4af5a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 24px;
  text-shadow: 0 12px 48px rgba(0,0,0,.8);
}
.hero-content h1 em {
  font-style: italic;
  background: linear-gradient(to right, var(--accent-lt), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: 52px;
}

/* info cards */
.hero-info {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  backdrop-filter: blur(12px);
  transition: background .25s, transform .25s;
  text-align: left;
}
.info-card:hover {
  background: rgba(201,137,58,.12);
  transform: translateY(-3px);
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
.info-icon {
  font-size: 1.5rem;
  line-height: 1;
  animation: float 3s ease-in-out infinite;
}
.info-card:nth-child(2) .info-icon { animation-delay: 0.5s; }
.info-card:nth-child(3) .info-icon { animation-delay: 1s; }

.info-label {
  display: block;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3px;
}
.info-value {
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-primary);
}
a.info-value:hover { color: var(--accent-lt); }

@keyframes pulseGlow {
  0% { box-shadow: 0 8px 32px rgba(201,137,58,.4); }
  50% { box-shadow: 0 8px 32px rgba(201,137,58,.8), 0 0 20px rgba(201,137,58,.3); }
  100% { box-shadow: 0 8px 32px rgba(201,137,58,.4); }
}
.btn-primary {
  display: inline-block;
  padding: 18px 48px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dk) 100%);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .08em;
  border-radius: 99px;
  box-shadow: 0 8px 32px rgba(201,137,58,.4);
  transition: transform .3s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow .3s ease, background .3s ease;
  animation: pulseGlow 3s infinite alternate;
}
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(201,137,58,.6), inset 0 0 12px rgba(255,255,255,0.2);
  background: linear-gradient(135deg, var(--accent-lt), var(--accent));
  animation: none;
}

/* scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-indicator span {
  display: block;
  width: 2px;
  height: 52px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .2; transform: scaleY(.6); transform-origin: top; }
  50%       { opacity: 1;  transform: scaleY(1);  }
}

/* ═══════════════════════
   MENU SECTION
═══════════════════════ */
#menu {
  padding: 110px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-eyebrow {
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
}
.section-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto;
}

/* Tabs */
.menu-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}

.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 10px 26px;
  border-radius: 99px;
  cursor: pointer;
  transition: all .25s;
}
.tab-btn:hover {
  border-color: var(--accent);
  color: var(--accent-lt);
}
.tab-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 18px rgba(201,137,58,.35);
}

/* Menu grid */
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.97) translateY(15px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  animation: fadeInScale 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) both;
}
.menu-grid.hidden { display: none; }

/* Menu Card */
.menu-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease, background 0.4s ease;
  position: relative;
  overflow: hidden;
}
.menu-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--accent-dk);
  border-radius: 4px 0 0 4px;
  transition: background .4s, width .4s;
}
.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.8), 0 0 32px var(--accent-glow);
  border-color: var(--border-focus);
  background: var(--bg-card2);
}
.menu-card:hover::before { 
  background: var(--accent); 
  width: 6px; 
}

.menu-card.featured::before { background: var(--accent); }
.menu-card.premium::before  { background: var(--gold); }
.menu-card.drink::before    { background: #4a8cc9; }
.menu-card.extra::before    { background: var(--text-muted); }

.card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.menu-item-img {
  width: 100%;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.menu-item-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,8,6,0.5) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.menu-item-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  /* Smoother and slightly faster transition for scroll sync */
  transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: block;
  /* Make sure transform origin is center */
  transform-origin: center center;
}
.menu-card:hover .menu-item-img img {
  /* Override JS inline style on hover explicitly */
  transform: scale(1.22) !important;
}
.menu-card:hover .menu-item-img::after {
  opacity: 1;
}

.card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 4px;
}
.card-body p {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
}

.price {
  align-self: flex-end;
  margin-top: auto;
  flex-shrink: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-lt);
  white-space: nowrap;
}

/* sold out */
.menu-card.sold-out { opacity: .5; }
.sold-out-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  background: rgba(255,80,80,.18);
  color: #ff6b6b;
  border-radius: 4px;
  padding: 2px 8px;
  margin-top: 4px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ═══════════════════════
   FOOTER / CONTACT
═══════════════════════ */
#contact {
  background: #090805;
  border-top: 1px solid var(--border);
  padding: 80px 24px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: space-between;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}

.footer-brand h2 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 10px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: .9rem;
  max-width: 260px;
}

.footer-cols {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
}
.footer-col h4 {
  font-size: .76rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.footer-col a, .footer-col p {
  font-size: .92rem;
  color: var(--text-secondary);
  display: block;
  line-height: 1.8;
  transition: color .2s;
}
.footer-col a:hover { color: var(--accent-lt); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 0;
  text-align: center;
}
.footer-bottom p {
  font-size: .8rem;
  color: var(--text-muted);
}

/* ═══════════════════════
   RESPONSIVE
═══════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: flex; }

  .hero-info { flex-direction: column; align-items: center; }
  .info-card { width: 100%; max-width: 340px; }

  .menu-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-cols  { gap: 28px; }

  #menu { padding: 80px 16px; }
  #contact { padding: 60px 16px 0; }

  .menu-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 12px;
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    scroll-snap-type: x mandatory;
  }
  .menu-tabs::-webkit-scrollbar { display: none; }
  .tab-btn {
    scroll-snap-align: start;
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 2.6rem; }
  .tab-btn { font-size: .85rem; padding: 10px 20px; }
  .price { font-size: 1.05rem; }
  .menu-card { padding: 16px 16px; gap: 12px; }
  .menu-item-img { margin-bottom: 12px; }
  .card-body h3 { font-size: 1rem; }
}

/* ═══════════════════════
   ANIMATIONS
═══════════════════════ */
.fade-up, .fade-right, .fade-left, .zoom-in {
  opacity: 0 !important;
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1) !important;
  will-change: opacity, transform;
}
.fade-up { transform: translateY(40px) !important; }
.fade-right { transform: translateX(-40px) !important; }
.fade-left { transform: translateX(40px) !important; }
.zoom-in { transform: scale(0.9) !important; }

.fade-up.in-view, .fade-right.in-view, .fade-left.in-view, .zoom-in.in-view {
  opacity: 1 !important;
  transform: translate(0) scale(1) !important;
}
