/* ========================================
   WARUNG KL — Multi-page with Curve Transition
   Pinterest Design + Product Hero Motion
   ======================================== */

/* --- Design Tokens --- */
:root {
  --color-bg-dark: #0a120d;
  --color-bg-light: #faf8f5;
  --color-bg-sand: #f0ece6;
  --color-accent: #e60023;
  --color-accent-hover: #c4001d;
  --color-text-primary: #211922;
  --color-text-secondary: #62625b;
  --color-text-muted: #91918c;
  --color-text-light: #e8e2db;
  --color-text-light-muted: rgba(232, 226, 219, 0.45);
  --color-surface-sand: #e5e5e0;
  --color-border: #d8d3cb;
  --color-dark-surface: #141210;
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; touch-action: pan-x pan-y; }
body {
  font-family: var(--font-body);
  color: var(--color-text-light);
  background: var(--color-bg-dark);
  line-height: 1.6;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
*:focus { outline: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* --- Animation Classes --- */
.anim { opacity: 0; transform: translateY(30px); }
.anim-scale { opacity: 0; transform: scale(0.92); }

/* ========================================
   PAGE SYSTEM
   ======================================== */
.page {
  display: none;
  position: absolute;
  inset: 0;
}
.page.active { display: block; }
.page--home { z-index: 1; }
.page--story { z-index: 1; overflow-y: auto; background: var(--color-bg-dark); }
.page--reserve { z-index: 1; }

/* ========================================
   SITE LOGO + NAV (fixed, shared)
   ======================================== */
.site-logo {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1;
  font-weight: 400;
  pointer-events: none;
}
.site-logo__name {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-style: italic;
  color: var(--color-text-light);
  letter-spacing: 0.04em;
}
.site-logo__sep {
  display: block;
  width: 36px;
  height: 1px;
  background: rgba(232, 226, 219, 0.25);
  margin: 6px 0 8px;
}
.site-logo__sub {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  text-transform: uppercase;
  color: rgba(232, 226, 219, 0.6);
}

.site-nav {
  position: fixed;
  top: 100px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: fit-content;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: none;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.site-nav a {
  font-size: 0.75rem;
  color: rgba(232, 226, 219, 0.55);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 10px 18px;
  white-space: nowrap;
  transition: color 0.3s, background 0.3s;
}
.site-nav a:hover { color: var(--color-text-light); }
.site-nav a.active {
  color: var(--color-bg-dark);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

@media (min-width: 768px) {
  .site-logo { top: 24px; }
  .site-logo__name { font-size: 2.75rem; }
  .site-nav { top: 110px; }
  .site-nav a { padding: 14px 32px; }
}

/* ========================================
   CURVE TRANSITION OVERLAY
   ======================================== */
.curve-svg {
  position: fixed;
  left: 0; top: 0;
  width: 100%; height: 150vh;
  z-index: 9999;
  pointer-events: none;
  transform: translateY(100vh);
}
.curve-title {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  pointer-events: none;
  opacity: 0;
}
.curve-title__dot {
  font-size: 0.875rem;
  opacity: 0.5;
  margin-right: 12px;
}
.curve-title__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 400;
  font-style: italic;
}

/* ========================================
   HERO SECTION (HOME)
   ======================================== */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(180deg, #1a1208 0%, #14100a 50%, #0e0a06 100%);
  transition: background 0.8s ease;
}

.hero-bg-title {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-body);
  font-size: clamp(4rem, 18vw, 13rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.15);
  white-space: nowrap;
  top: 56%;
  left: 50%;
  transform: translate(-50%, -50%);
  user-select: none;
  z-index: 1;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  width: clamp(380px, 70vw, 700px);
  height: clamp(380px, 70vw, 700px);
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(200, 110, 40, 0.12) 0%, rgba(200, 110, 40, 0.04) 40%, transparent 65%);
  z-index: 1;
  pointer-events: none;
}

.hero-dish {
  position: relative;
  z-index: 2;
  width: clamp(300px, 55vw, 540px);
  margin-bottom: 40px;
}
.hero-dish img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
}

.float-item {
  position: absolute;
  z-index: 3;
  will-change: transform;
}
.float-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.float-item--spices { width: 130px; height: 130px; top: 22%; left: 2%; }
.float-item--cucumber { width: 110px; height: 110px; top: 20%; right: 3%; left: auto; }
.float-item--peanuts { width: 110px; height: 110px; bottom: 22%; right: 3%; left: auto; }

.hero-info {
  position: absolute;
  left: 20px; right: 20px;
  bottom: clamp(64px, 12vh, 110px);
  z-index: 5;
  text-align: center;
}
.hero-info__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: 8px;
}
.hero-info__sub {
  font-size: clamp(0.8125rem, 1.2vw, 0.9375rem);
  color: var(--color-text-light-muted);
  letter-spacing: 0.04em;
  font-weight: 400;
  line-height: 1.6;
}

.hero-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 10px;
  align-items: center;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none; padding: 0;
  cursor: pointer;
  transition: all 0.4s;
}
.hero-dot.active {
  width: 28px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
  .hero-bg-title {
    top: 50%;
  }
  .float-item--spices { width: 175px; height: 175px; top: 25%; left: 10%; }
  .float-item--cucumber { display: block; width: 210px; height: 210px; top: 22%; right: 10%; }
  .float-item--peanuts { width: 140px; height: 140px; bottom: 20%; right: 10%; }
  .hero-info {
    text-align: left;
    left: clamp(80px, 12vw, 180px);
    right: auto;
    bottom: clamp(120px, 20vh, 200px);
  }
  .hero-dish { margin-bottom: 0; }
}

/* ========================================
   STORY PAGE (fullscreen slides)
   ======================================== */
.page--story {
  overflow: hidden;
}

.story-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 20px 100px;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
.story-slide--active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.story-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}
.story-slide--active .story-slide__bg {
  transform: scale(1);
}

.story-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.75) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

.story-slide__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.story-slide__year {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
  padding: 4px 12px;
  border: 1px solid rgba(230, 0, 35, 0.4);
  border-radius: 4px;
}

.story-slide__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  font-style: italic;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 16px;
}

.story-slide__text {
  font-size: clamp(0.8125rem, 1.2vw, 0.9375rem);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  max-width: 460px;
}

/* Timeline indicator (right side vertical) */
.story-timeline {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
}

.story-timeline__dot {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}

.story-timeline__dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.4s;
  flex-shrink: 0;
}

.story-timeline__dot span {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0);
  transition: color 0.4s;
  white-space: nowrap;
}

.story-timeline__dot.active::after {
  width: 10px;
  height: 10px;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.story-timeline__dot.active span {
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 768px) {
  .story-slide {
    padding: 0 clamp(60px, 10vw, 140px) clamp(100px, 14vh, 160px);
  }
  .story-timeline {
    right: clamp(32px, 4vw, 56px);
    gap: 32px;
  }
}

/* ========================================
   MENU PAGE (category slides + hover preview)
   ======================================== */
.page--menu {
  overflow: hidden;
  background: var(--color-bg-dark);
}
.page--menu::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/hero-interior.webp') center/cover no-repeat;
  filter: blur(16px) brightness(0.3);
  transform: scale(1.1);
  z-index: 0;
}
.page--menu::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 0;
}

/* Slides */
.menu-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 155px 20px 90px;
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
.menu-slide--active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}
.menu-slide__inner {
  width: 100%;
  max-width: 720px;
  padding: 24px;
}
.menu-slide__cat {
  display: none;
}
.menu-slide__list {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 20px;
}

/* Menu row (list-hover-preview pattern) */
.menu-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  color: #fff;
  text-decoration: none;
  transition: padding-left 0.3s;
}
.menu-row:last-child {
  border-bottom: none;
}
.menu-row:hover {
  padding-left: 8px;
}
.menu-row__name {
  grid-column: 1;
  grid-row: 1;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.3s;
}
.menu-row:hover .menu-row__name {
  color: #fff;
}
.menu-row__price {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
}
.menu-row__desc {
  grid-column: 1 / -1;
  grid-row: 2;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 4px;
  line-height: 1.5;
  transition: color 0.3s;
}
.menu-row:hover .menu-row__desc {
  color: rgba(255, 255, 255, 0.45);
}

/* Floating preview image (desktop only) */
.menu-row__preview {
  position: absolute;
  width: 140px;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.8);
  z-index: 10;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .menu-row__preview {
    width: 180px;
    height: 220px;
  }
}
.menu-row__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Category nav (bottom center) */
.menu-nav {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
}
.menu-nav__item {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 980px;
  cursor: pointer;
  transition: all 0.3s;
}
.menu-nav__item:hover {
  color: rgba(255, 255, 255, 0.6);
}
.menu-nav__item.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .menu-slide__inner {
    max-width: 800px;
    padding: 180px 40px 100px;
  }
  .menu-row {
    padding: 28px 0;
  }
  .menu-row__name {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
  }
  .menu-nav {
    gap: 12px;
    bottom: 40px;
  }
  .menu-nav__item {
    font-size: 0.75rem;
    padding: 10px 20px;
  }
}

/* ========================================
   RESERVE PAGE
   ======================================== */
.page--reserve {
  overflow: hidden;
  background: var(--color-bg-dark);
}

.reserve-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.reserve-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.4) 50%,
    rgba(0, 0, 0, 0.25) 100%
  );
}

.reserve-content {
  position: relative;
  z-index: 2;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 24px 60px;
}

.reserve-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 32px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  max-width: 480px;
  width: 100%;
}

.reserve-heading {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 4rem);
  font-weight: 400;
  font-style: italic;
  color: #fff;
  margin-bottom: 12px;
}

.reserve-sub {
  font-size: clamp(0.8125rem, 1.2vw, 0.9375rem);
  color: rgba(255, 255, 255, 0.5);
  max-width: 400px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.reserve-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.reserve-info__item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.reserve-info__item svg {
  flex-shrink: 0;
  opacity: 0.5;
}

.reserve-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: #25D366;
  color: #fff;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.3s, transform 0.2s;
  cursor: pointer;
}

.reserve-btn:hover {
  background: #1fb855;
  transform: translateY(-2px);
}

.reserve-btn:active {
  transform: translateY(0);
}

.reserve-btn svg {
  flex-shrink: 0;
}
