/* ============================================================
   HABABAM DUMANALTI — Cafe & Hookah & Breakfast
   ============================================================ */

:root {
  --black: #060504;
  --black-soft: #0d0b09;
  --panel: #120f0c;
  --panel-light: #1a1512;
  --gold: #c9a24b;
  --gold-light: #f3dd9a;
  --gold-pale: #e9cd8a;
  --gold-dark: #8a6a26;
  --gold-line: rgba(201, 162, 75, 0.35);
  --cream: #efe3c8;
  --cream-dim: #b8a988;
  --shadow: rgba(0, 0, 0, 0.6);

  --font-display: 'Cinzel Decorative', serif;
  --font-heading: 'Marcellus', serif;
  --font-body: 'Cormorant Garamond', serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

::selection { background: var(--gold-dark); color: var(--black); }

/* subtle overall texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(circle at 20% 30%, #fff 0, transparent 1px),
    radial-gradient(circle at 70% 60%, #fff 0, transparent 1px),
    radial-gradient(circle at 40% 80%, #fff 0, transparent 1px);
  background-size: 140px 140px;
}

/* ============================================================
   SPLASH
   ============================================================ */

.splash {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
  cursor: pointer;
  transition: opacity 0.9s ease, filter 0.9s ease, visibility 0.9s;
}

.splash-bg {
  position: absolute;
  inset: 0;
  background-position: center 20%;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.03);
  animation: splashDrift 14s ease-in-out infinite alternate;
}

@keyframes splashDrift {
  from { transform: scale(1.03) translateY(0); }
  to   { transform: scale(1.08) translateY(-1.5%); }
}

.splash-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.15) 32%, rgba(0,0,0,0.05) 55%, rgba(0,0,0,0.35) 100%),
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%);
}

.smoke-wisp {
  position: absolute;
  bottom: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(ellipse at bottom, rgba(230,220,200,0.10), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
  animation: wispFloat 10s ease-in-out infinite;
}
.wisp-left { left: -10%; animation-delay: 0s; }
.wisp-right { right: -10%; animation-delay: 2.5s; }

@keyframes wispFloat {
  0%, 100% { opacity: 0.5; transform: translateY(0) translateX(0); }
  50% { opacity: 0.9; transform: translateY(-4%) translateX(2%); }
}

.tap-enter {
  position: relative;
  z-index: 5;
  margin-bottom: 9%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  color: var(--gold-light);
  font-family: var(--font-heading);
}

.tap-hand {
  overflow: visible;
  color: var(--gold-light);
}

.hc-hand {
  animation: handPress 2.4s ease-in-out infinite;
  transform-origin: 50% 100%;
}

@keyframes handPress {
  0%, 55%, 100% { transform: translateY(0); }
  15%           { transform: translateY(3px) scale(0.95); }
  30%           { transform: translateY(0); }
}

.hc-ticks {
  opacity: 0;
  animation: tickFlash 2.4s ease-out infinite;
}

@keyframes tickFlash {
  0%, 10%   { opacity: 0; }
  15%       { opacity: 1; }
  30%, 100% { opacity: 0; }
}

.tap-label {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold-pale);
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

/* splash exit state */
.splash.closing {
  opacity: 0;
  filter: blur(18px);
  pointer-events: none;
}
.splash.hidden {
  visibility: hidden;
}

/* ============================================================
   MENU APP SHELL
   ============================================================ */

.menu-app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 18px 40px;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(10px);
  transition: opacity 0.9s ease, filter 0.9s ease, transform 0.9s ease;
  background:
    radial-gradient(ellipse at top, rgba(60,45,20,0.25), transparent 55%),
    var(--black);
}

.menu-app.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.menu-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px 4px 13px;
  background: rgba(6,5,4,0.97);
  backdrop-filter: blur(4px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.mh-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}

.mh-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1.5px;
  color: var(--gold);
}
.mh-title em { font-style: normal; }

.mh-sub {
  margin-top: 3px;
  font-family: var(--font-heading);
  font-size: 10.5px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--cream-dim);
}

.mh-products-bar {
  position: relative;
  display: none;
  align-items: center;
  min-height: 28px;
  padding: 0 4px;
}

.mh-products-bar.active {
  display: flex;
}

.mh-products-bar .products-title {
  width: 100%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.5px;
  margin: 0;
  padding: 0 58px;
  text-align: center;
  color: var(--gold-pale);
}

/* ============================================================
   VIEWS
   ============================================================ */

.view {
  display: none;
}
.view.active {
  display: block;
  animation: viewIn 0.5s ease;
}

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

/* ============================================================
   CATEGORY GRID
   ============================================================ */

.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}

.category-card.featured {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

.category-card.featured .cc-name {
  font-size: 17px;
  padding: 14px 14px 15px;
}

.category-card {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: var(--panel);
  border: 1px solid var(--gold-line);
  opacity: 0;
  transform: translateY(10px);
  animation: cardIn 0.5s ease forwards;
}

@keyframes cardIn {
  to { opacity: 1; transform: translateY(0); }
}

.cc-media {
  position: absolute;
  inset: 0;
  background-color: #1c1712;
}

.cc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cc-media.fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel-light);
}
.cc-initials {
  display: none;
  font-family: var(--font-heading);
  font-size: 24px;
  letter-spacing: 2px;
  color: var(--gold-dark);
}
.cc-media.fallback .cc-initials {
  display: block;
}

.cc-shade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(6,5,4,0.92) 0%, rgba(6,5,4,0.45) 50%, rgba(6,5,4,0) 100%);
  pointer-events: none;
}

.cc-name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 10px 10px 11px;
  font-family: var(--font-heading);
  font-size: 13.5px;
  letter-spacing: 0.5px;
  color: var(--gold-pale);
  text-align: center;
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.cc-price-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border: 1px solid var(--gold);
  border-radius: 20px;
  background: rgba(6,5,4,0.65);
  backdrop-filter: blur(2px);
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--gold-light);
}

.category-card:active {
  opacity: 0.88;
}

/* ============================================================
   PRODUCTS VIEW
   ============================================================ */

.back-btn {
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  background: none;
  border: none;
  color: var(--gold-pale);
  font-family: var(--font-heading);
  font-size: 13px;
  letter-spacing: 1px;
  cursor: pointer;
}
.back-btn:active { opacity: 0.6; }

.products-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  border-top: 1px solid var(--gold-line);
}

.products-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 13px 2px;
  border-bottom: 1px solid rgba(201,162,75,0.16);
  opacity: 0;
  animation: rowIn 0.35s ease forwards;
}

@keyframes rowIn {
  to { opacity: 1; }
}

.products-empty {
  display: flex;
  justify-content: center;
  padding: 28px 2px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-style: italic;
  color: var(--cream-dim);
  border-bottom: none;
  opacity: 1;
  animation: none;
}

.pl-name {
  font-family: var(--font-heading);
  font-size: 16.5px;
  color: var(--cream);
  white-space: nowrap;
}

.pl-dots {
  flex: 1;
  border-bottom: 1.5px dotted var(--gold-dark);
  height: 0;
  margin-bottom: 5px;
  min-width: 12px;
}

.pl-price {
  font-family: var(--font-heading);
  font-size: 16.5px;
  color: var(--gold-light);
  white-space: nowrap;
  letter-spacing: 0.5px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.menu-footer {
  margin-top: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.mf-diamond {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: var(--gold-dark);
  transform: rotate(45deg);
}

.mf-orn {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dark), transparent);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (min-width: 720px) {
  .menu-app { max-width: 760px; }
}
