/* Blood Bao Menu — mobile-first, ringan */
:root {
  --bg: #100609;
  --bg2: #1a0b10;
  --wine: #3a101c;
  --red: #9b1c31;
  --gold: #c9a568;
  --gold2: #e0c080;
  --cream: #f3e7cf;
  --muted: #b8a48f;
  --card: rgba(26, 11, 16, 0.92);
  --line: rgba(201, 165, 104, 0.28);
  --radius: 16px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--cream);
  line-height: 1.55;
  min-height: 100dvh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* Fonts loaded via HTML preconnect — keep CSS free of @import for speed */

.container {
  width: min(1100px, 100% - 2rem);
  margin-inline: auto;
}

/* ===== NAV ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 1rem;
  background: rgba(16, 6, 9, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  background: #1f0c12;
  border: 1px solid var(--line);
}
.logo span {
  font-family: "Cinzel", serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  white-space: nowrap;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.nav-links a.active,
.nav-links a:hover {
  color: var(--cream);
  background: rgba(155, 28, 49, 0.35);
}
.nav-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--gold);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 3px 0;
  border-radius: 2px;
}
.nav-drawer {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  background: rgba(16, 6, 9, 0.98);
  border-bottom: 1px solid var(--line);
  padding: 12px 1rem 16px;
  z-index: 49;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s;
}
.nav-drawer.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.nav-toggle span { transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.nav-drawer a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}
.nav-drawer a.active,
.nav-drawer a:hover {
  background: rgba(155, 28, 49, 0.3);
  color: var(--cream);
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-toggle, .nav-drawer { display: none !important; }
  .logo span { font-size: 1.05rem; }
}

/* ===== HERO / ABOUT ===== */
.hero {
  position: relative;
  padding: 2.5rem 0 3rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background: radial-gradient(ellipse at 50% 0%, rgba(155, 28, 49, 0.35), transparent 65%);
  pointer-events: none;
  animation: heroGlow 7s ease-in-out infinite alternate;
  will-change: opacity, transform;
}
@keyframes heroGlow {
  from { opacity: 0.75; transform: scale(1); }
  to   { opacity: 1; transform: scale(1.06); }
}
.logo img { animation: logoPop 0.5s ease both; }
@keyframes logoPop {
  from { opacity: 0; transform: scale(0.7); }
  to   { opacity: 1; transform: scale(1); }
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 700;
}
.hero h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 14px;
  font-weight: 700;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold2);
}
.hero p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 22px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, border-color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--red), #6e1424);
  color: var(--cream);
  border-color: rgba(201, 165, 104, 0.4);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--gold);
}
.btn-outline:hover { background: rgba(201, 165, 104, 0.08); }
.btn-block { width: 100%; }

/* ===== SECTIONS ===== */
.section {
  padding: 2rem 0 2.5rem;
}
.section-head {
  text-align: center;
  margin-bottom: 1.4rem;
}
.section-head h2 {
  font-family: "Cinzel", serif;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  margin-bottom: 6px;
}
.section-head p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* ===== CARDS / MENU GRID ===== */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 560px) {
  .menu-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .menu-grid { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 16px; }
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover,
.card:focus-within {
  transform: translateY(-4px);
  border-color: var(--gold);
}
.card-img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  background: var(--wine);
  transition: transform 0.4s ease;
}
.card:hover .card-img { transform: scale(1.04); }
.card-body { padding: 14px 14px 16px; }
.card-body h3 {
  font-family: "Cinzel", serif;
  font-size: 1.02rem;
  margin-bottom: 6px;
  color: var(--gold2);
}
.card-body p {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== DETAIL ===== */
.detail-wrap {
  display: grid;
  gap: 18px;
  padding: 1.25rem 0 2rem;
}
@media (min-width: 768px) {
  .detail-wrap { grid-template-columns: 1fr 1.1fr; align-items: start; }
}
.detail-img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--wine);
}
.detail-img img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.detail-info h1 {
  font-family: "Cinzel", serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--gold2);
  margin: 8px 0 12px;
}
.detail-info p { color: var(--muted); margin-bottom: 16px; }

/* ===== AUTH ===== */
.auth-page {
  min-height: calc(100dvh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: 1.5rem 1rem calc(1.5rem + var(--safe-b));
}
.auth-card {
  width: min(420px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.5rem 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}
.auth-card .brand {
  text-align: center;
  margin-bottom: 1rem;
}
.auth-card .brand img {
  width: 64px;
  height: 64px;
  margin: 0 auto 10px;
  border-radius: 50%;
  border: 1px solid var(--line);
  object-fit: contain;
  background: #1f0c12;
}
.auth-card h1 {
  font-family: "Cinzel", serif;
  font-size: 1.35rem;
  text-align: center;
  margin-bottom: 4px;
}
.auth-card .sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.1rem;
}
.form-group { margin-bottom: 12px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--gold);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(16, 6, 9, 0.7);
  outline: none;
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 165, 104, 0.15);
}
.alert {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  margin-bottom: 12px;
}
.alert-error {
  background: rgba(155, 28, 49, 0.2);
  border: 1px solid rgba(155, 28, 49, 0.5);
  color: #f3c1c8;
}
.alert-success {
  background: rgba(40, 100, 60, 0.25);
  border: 1px solid rgba(80, 160, 100, 0.4);
  color: #c8efd4;
}
.alert-info {
  background: rgba(201, 165, 104, 0.12);
  border: 1px solid var(--line);
  color: var(--cream);
}
.otp-box {
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed var(--line);
  margin-bottom: 14px;
  background: rgba(201, 165, 104, 0.06);
}
.otp-box strong {
  display: block;
  font-size: 1.6rem;
  letter-spacing: 0.25em;
  color: var(--gold2);
  margin: 6px 0;
  font-family: "Cinzel", serif;
}
.auth-foot {
  text-align: center;
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}
.auth-foot a { color: var(--gold); font-weight: 700; }
.field-hint {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  min-height: 1em;
  transition: color 0.15s ease;
}
.field-hint.ok { color: #8fd6a4; }
.field-hint.warn { color: #f0a3ab; }

/* ===== MEDIA PROMOSI: KARTU POSTER TUMPUK (ketuk untuk ganti) ===== */
.poster-stack {
  margin: 1.6rem auto 0.5rem;
  max-width: 320px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.poster-stack:focus-visible .poster-slide.is-active {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.poster-deck {
  position: relative;
  aspect-ratio: 3 / 4;
}
.poster-back {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}
.poster-back-1 { transform: translateY(10px) rotate(-3deg); z-index: 1; }
.poster-back-2 { transform: translateY(18px) rotate(4deg); z-index: 0; opacity: 0.8; }
.poster-slide {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--wine);
  opacity: 0;
  transform: scale(0.94) rotate(-1.5deg);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.poster-slide.is-active {
  opacity: 1;
  transform: none;
  z-index: 3;
  pointer-events: auto;
}
.poster-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.poster-slide figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 12px calc(10px + var(--safe-b));
  font-family: "Cinzel", serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cream);
  background: linear-gradient(to top, rgba(16,6,9,0.92), transparent);
}
.poster-cover {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: radial-gradient(circle at 50% 30%, rgba(155,28,49,0.4), var(--wine) 70%);
  text-align: center;
  padding: 1rem;
}
.poster-cover img { width: 56px; height: 56px; border-radius: 50%; background: #1f0c12; border: 1px solid var(--line); object-fit: contain; }
.poster-cover strong { font-family: "Cinzel", serif; font-size: 1.2rem; color: var(--gold2); }
.poster-cover span { font-size: 0.82rem; color: var(--muted); }
/* Kilau yang lewat sekali tiap poster ditampilkan — transform saja, ringan */
.poster-slide.shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 40%, rgba(224, 192, 128, 0.28) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: posterShine 0.9s ease-out;
  pointer-events: none;
}
@keyframes posterShine {
  from { transform: translateX(-120%); }
  to   { transform: translateX(120%); }
}
.poster-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 12px;
}
.poster-dots .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.2s ease, transform 0.2s ease;
}
.poster-dots .dot.is-active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ===== STAR RATING (klik bintang, ringan, tanpa JS) ===== */
fieldset { border: none; padding: 0; }
fieldset legend {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--gold);
  padding: 0;
}
.star-field { margin-bottom: 14px; }
.star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 6px;
}
.star-rating input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-rating label {
  font-size: 1.9rem;
  line-height: 1;
  color: var(--line);
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label {
  color: var(--gold2);
}
.star-rating input:checked + label { transform: scale(1.12); }
.star-rating input:focus-visible + label {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ===== DEKORASI: PILIHAN PIL ===== */
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-group input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.pill:active { transform: scale(0.97); }
.pill-group input:checked + .pill {
  background: linear-gradient(135deg, var(--red), #6e1424);
  border-color: rgba(201, 165, 104, 0.4);
  color: var(--cream);
}
.pill-group input:focus-visible + .pill {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ===== TESTIMONI (publik, di beranda) ===== */
.testimoni-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.testimoni-meta span {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(201, 165, 104, 0.12);
  border: 1px solid var(--line);
  color: var(--gold2);
  white-space: nowrap;
}
.testimoni-card .card-body p {
  color: var(--cream);
  font-style: italic;
  -webkit-line-clamp: 4;
}

/* ===== RATING ===== */
.rating-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ===== FOOTER ===== */
.site-footer {
  margin-top: auto;
  padding: 1.5rem 1rem calc(1.25rem + var(--safe-b));
  text-align: center;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}
.site-footer strong {
  display: block;
  color: var(--gold);
  font-family: "Cinzel", serif;
  margin-bottom: 4px;
}

/* ===== UTIL ===== */
.hidden { display: none !important; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.text-center { text-align: center; }
.muted { color: var(--muted); }

/* ===== SCROLL REVEAL (ringan: opacity + transform saja) ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Reduce motion: matikan semua animasi/transition tambahan */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn,
  .card,
  .card-img,
  .nav-drawer,
  .nav-toggle span,
  .reveal,
  .field-hint,
  .poster-slide,
  .poster-dots .dot,
  .star-rating label,
  .star-rating input:checked + label,
  .pill { transition: none !important; }
  .hero::before,
  .logo img,
  .poster-slide.shine::after { animation: none !important; }
  .poster-slide.shine::after { display: none; }
  .reveal { opacity: 1; transform: none; }
}
