/* ============================================
   MIX & ME CAFE AND RESTAURANT (บ้านพระครูติ)
   Premium Luxury Spiritual Lifestyle
   ============================================ */

:root {
  --ink: #111111;
  --ink-2: #1a1410;
  --brown: #2B1D16;
  --brown-2: #3a2a20;
  --gold: #C8A96B;
  --gold-2: #d9bd83;
  --gold-3: #8a6f3f;
  --cream: #F5EBDD;
  --smoke: #F8F8F8;
  --red: #d33b3b;
  --green: #06C755;
}

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Prompt', 'Poppins', sans-serif;
  background: var(--ink);
  color: var(--cream);
  overflow-x: hidden;
}

.font-display { font-family: 'Cinzel', serif; letter-spacing: 0.08em; }
.font-thai { font-family: 'Prompt', sans-serif; }

/* ---------- Cinematic background grain ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(200,169,107,0.08), transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(200,169,107,0.05), transparent 50%);
}

/* ---------- Gold gradient text ---------- */
.gold-text {
  background: linear-gradient(135deg, #f3dca6 0%, #C8A96B 40%, #8a6f3f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Glass card ---------- */
.glass {
  background: linear-gradient(180deg, rgba(43,29,22,0.6) 0%, rgba(17,17,17,0.75) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(200,169,107,0.18);
}

.glass-soft {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
}

/* ---------- Gold border with glow ---------- */
.gold-border {
  position: relative;
  border: 1px solid rgba(200,169,107,0.35);
  transition: all 0.45s cubic-bezier(.2,.7,.2,1);
}
.gold-border:hover {
  border-color: rgba(200,169,107,0.85);
  box-shadow:
    0 10px 40px -10px rgba(200,169,107,0.35),
    0 0 0 1px rgba(200,169,107,0.4);
  transform: translateY(-4px);
}

/* ---------- Premium button ---------- */
.btn-gold {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-weight: 500;
  font-size: 0.95rem;
  white-space: nowrap;
  color: var(--ink);
  background: linear-gradient(135deg, #e7c987 0%, #C8A96B 50%, #a98549 100%);
  border-radius: 999px;
  border: 1px solid rgba(200,169,107,0.6);
  transition: all 0.35s ease;
  cursor: pointer;
  box-shadow: 0 6px 24px -8px rgba(200,169,107,0.5);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -10px rgba(200,169,107,0.7);
  filter: brightness(1.08);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-weight: 400;
  font-size: 0.95rem;
  white-space: nowrap;
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(200,169,107,0.4);
  border-radius: 999px;
  transition: all 0.35s ease;
  cursor: pointer;
}
.btn-outline:hover {
  background: rgba(200,169,107,0.08);
  border-color: var(--gold);
  color: var(--gold);
}

.btn-line {
  background: linear-gradient(135deg, #06C755 0%, #04a847 100%);
  color: white;
  border: none;
  box-shadow: 0 6px 20px -6px rgba(6,199,85,0.5);
}

.btn-live {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: white;
  border: none;
  box-shadow: 0 6px 20px -6px rgba(239,68,68,0.5);
  position: relative;
}
.btn-live::before {
  content: '';
  width: 8px; height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse-dot 1.6s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all 0.4s ease;
}
.navbar.scrolled {
  background: rgba(17,17,17,0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(200,169,107,0.15);
  padding: 0.65rem 0;
}
.nav-link {
  position: relative;
  color: rgba(245,235,221,0.85);
  font-size: 0.9rem;
  font-weight: 400;
  padding: 0.4rem 0;
  white-space: nowrap;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.35s ease;
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--gold); }
.nav-link.active::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(17,17,17,0.5) 0%, rgba(17,17,17,0.8) 50%, var(--ink) 100%),
    radial-gradient(circle at 70% 50%, rgba(200,169,107,0.15), transparent 60%);
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(1.1);
}

/* ---------- Floating particles ---------- */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0.4;
  box-shadow: 0 0 8px var(--gold);
  animation: float 12s infinite ease-in-out;
}
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
  10%, 90% { opacity: 0.5; }
  50% { transform: translateY(-100px) translateX(20px); opacity: 0.8; }
}

/* ---------- Floating LIVE button ---------- */
.float-live {
  position: fixed;
  right: 1.5rem; bottom: 1.5rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: white;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 0 0 0 rgba(239,68,68,0.7);
  animation: live-pulse 2.4s infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(239,68,68,0.6); }
  70% { box-shadow: 0 0 0 18px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

.float-live .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: white;
  animation: pulse-dot 1.6s infinite;
}

/* ---------- Card image hover ---------- */
.card-img {
  overflow: hidden;
  position: relative;
}
.card-img img {
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
}
.card-img:hover img {
  transform: scale(1.08);
}

/* ---------- Section title ---------- */
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: 999px;
  text-transform: uppercase;
}
.badge-new { background: linear-gradient(135deg, #ef4444, #b91c1c); color: white; }
.badge-hot { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; }
.badge-reserved { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.2); }

/* ---------- Mobile bottom nav ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 95;
  background: rgba(17,17,17,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(200,169,107,0.18);
  padding: 0.5rem 0 calc(0.5rem + env(safe-area-inset-bottom));
}
.mobile-nav-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.5rem;
  color: rgba(245,235,221,0.65);
  font-size: 0.7rem;
  transition: color 0.3s;
}
.mobile-nav-item:hover, .mobile-nav-item.active { color: var(--gold); }
.mobile-nav-item svg { width: 22px; height: 22px; }

@media (max-width: 768px) {
  .mobile-nav { display: block; }
  body { padding-bottom: 70px; }
  .float-live { bottom: 80px; }
}

/* ---------- Mobile menu drawer ---------- */
.menu-drawer {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(17,17,17,0.97);
  backdrop-filter: blur(20px);
  transform: translateX(100%);
  transition: transform 0.4s ease;
  padding: 5rem 2rem;
}
.menu-drawer.open { transform: translateX(0); }
.menu-drawer a {
  display: block;
  padding: 1rem 0;
  font-size: 1.4rem;
  color: var(--cream);
  border-bottom: 1px solid rgba(200,169,107,0.12);
}

/* ---------- Live tag ---------- */
.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #d33b3b;
  color: white;
  font-size: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  font-weight: 500;
}
.live-tag .dot {
  width: 8px; height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse-dot 1.6s infinite;
}

/* ---------- Schedule row ---------- */
.schedule-row {
  display: grid;
  grid-template-columns: 80px 100px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  transition: all 0.3s;
  border: 1px solid transparent;
}
.schedule-row:hover {
  background: rgba(200,169,107,0.06);
  border-color: rgba(200,169,107,0.18);
}
.schedule-row.active {
  background: rgba(200,169,107,0.08);
  border-color: rgba(200,169,107,0.3);
}

/* ---------- Tabs ---------- */
.tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.3rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,169,107,0.15);
  border-radius: 999px;
}
.tab {
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: rgba(245,235,221,0.7);
  cursor: pointer;
  transition: all 0.3s;
}
.tab:hover { color: var(--gold); }
.tab.active {
  background: linear-gradient(135deg, #e7c987, #C8A96B);
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(200,169,107,0.15);
  border-bottom: 1px solid rgba(200,169,107,0.15);
  padding: 1rem 0;
}
.marquee-track {
  display: inline-flex;
  gap: 4rem;
  animation: marquee 32s linear infinite;
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: rgba(200,169,107,0.6);
  font-family: 'Cinzel', serif;
  letter-spacing: 0.2em;
  font-size: 1rem;
}
.marquee-item::after {
  content: '✦';
  color: var(--gold);
  margin-left: 4rem;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Form ---------- */
.input-field {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(200,169,107,0.2);
  color: var(--cream);
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: all 0.3s;
}
.input-field:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 0 3px rgba(200,169,107,0.15);
}
.input-field::placeholder { color: rgba(245,235,221,0.4); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Footer ---------- */
.footer {
  background: linear-gradient(180deg, var(--ink) 0%, #0a0a0a 100%);
  border-top: 1px solid rgba(200,169,107,0.15);
}

/* ---------- Utility ---------- */
.divider-gold {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.4;
}
.glow-gold { box-shadow: 0 0 40px -8px rgba(200,169,107,0.4); }

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}
.loader.hide { opacity: 0; visibility: hidden; }
.loader-logo {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.3em;
  font-size: 1.4rem;
  color: var(--gold);
  animation: loader-pulse 1.8s infinite;
}
@keyframes loader-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
