/* ==========================================================================
   CCW Food Court (Chillar Chai Wala) - Café de Flora Inspired Styling
   Palette: Soft Champagne/Cream, Deep Burgundy/Rose, Botanical Sage, Antique Gold
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-champagne: #FAF7F2;
  --bg-cream: #F5EFEB;
  --bg-parchment: #EDE4D8;
  --burgundy-deep: #4A101C;
  --burgundy: #6B1D2F;
  --burgundy-light: #8E2B42;
  --rose-accent: #C96B7B;
  --rose-subtle: #F3E5E8;
  --sage-dark: #2A4433;
  --sage: #44654F;
  --sage-light: #7E9E88;
  --sage-soft: #E9F0EC;
  --gold-antique: #C5A059;
  --gold-light: #E4C88A;
  --gold-shimmer: #F3E0B5;
  --text-primary: #251B1E;
  --text-muted: #6B5C60;
  --text-light: #8F7D82;
  --card-bg: rgba(255, 255, 255, 0.88);
  --card-border: rgba(197, 160, 89, 0.22);
  --card-shadow: 0 10px 30px -8px rgba(74, 16, 28, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 20px 40px -10px rgba(74, 16, 28, 0.16), 0 8px 16px -4px rgba(197, 160, 89, 0.15);
}

html {
  scroll-behavior: smooth;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-champagne);
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-champagne);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(197, 160, 89, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(107, 29, 47, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(68, 101, 79, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Typography styles */
.font-serif-title {
  font-family: 'Playfair Display', serif;
}

.font-serif-sub {
  font-family: 'Cormorant Garamond', serif;
}

.font-script {
  font-family: 'Alex Brush', cursive;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--bg-cream);
}
::-webkit-scrollbar-thumb {
  background: var(--gold-antique);
  border-radius: 6px;
  border: 2px solid var(--bg-cream);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--burgundy);
}

/* Ambient glow & particles canvas */
#botanical-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

/* Floral Filigree Borders and Ornaments */
.floral-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem auto;
}

.floral-divider::before,
.floral-divider::after {
  content: "";
  height: 1px;
  width: 80px;
  background: linear-gradient(90deg, transparent, var(--gold-antique), transparent);
}

.botanical-frame {
  position: relative;
  border: 1px solid rgba(197, 160, 89, 0.35);
  box-shadow: 0 0 0 4px rgba(245, 239, 235, 0.8), 0 0 0 5px rgba(197, 160, 89, 0.2);
}

.botanical-frame::before {
  content: "✤";
  position: absolute;
  top: -8px;
  left: -8px;
  color: var(--gold-antique);
  font-size: 14px;
  background: var(--bg-champagne);
  padding: 0 4px;
  line-height: 1;
}

.botanical-frame::after {
  content: "✤";
  position: absolute;
  bottom: -8px;
  right: -8px;
  color: var(--gold-antique);
  font-size: 14px;
  background: var(--bg-champagne);
  padding: 0 4px;
  line-height: 1;
}

/* Smooth Navigation Styles */
.nav-glass {
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(197, 160, 89, 0.2);
  transition: all 0.35s ease;
}

.nav-glass.scrolled {
  background: rgba(250, 247, 242, 0.96);
  box-shadow: 0 8px 24px -6px rgba(74, 16, 28, 0.1);
  padding-top: 0.6rem !important;
  padding-bottom: 0.6rem !important;
}

/* Menu Tab Active Pill */
.tab-btn {
  position: relative;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tab-btn.active {
  background-color: var(--burgundy);
  color: #FFFFFF !important;
  border-color: var(--burgundy);
  box-shadow: 0 6px 18px -4px rgba(107, 29, 47, 0.4);
}

.tab-btn.active .tab-icon {
  color: var(--gold-light) !important;
}

/* Food & Special Cards */
.food-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: 1.25rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.food-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(197, 160, 89, 0.45);
}

.food-card .card-img-wrap {
  overflow: hidden;
  position: relative;
}

.food-card .card-img {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.food-card:hover .card-img {
  transform: scale(1.08);
}

/* Gold Gradient Accents */
.gold-gradient-text {
  background: linear-gradient(135deg, #8C6D3B 0%, #C5A059 40%, #E8D3A0 70%, #9F7B39 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.burgundy-gradient {
  background: linear-gradient(135deg, #4A101C 0%, #6B1D2F 50%, #8E2B42 100%);
}

.sage-gradient {
  background: linear-gradient(135deg, #264634 0%, #3D5A45 50%, #5E8067 100%);
}

/* Button Stylings */
.btn-primary {
  background: linear-gradient(135deg, #6B1D2F 0%, #801D38 100%);
  color: #FFFFFF;
  border: 1px solid rgba(228, 200, 138, 0.4);
  box-shadow: 0 4px 14px rgba(107, 29, 47, 0.28);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4A101C 0%, #6B1D2F 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(107, 29, 47, 0.38);
  border-color: var(--gold-antique);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.7);
  color: var(--burgundy);
  border: 1.5px solid var(--gold-antique);
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--gold-antique);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(197, 160, 89, 0.3);
}

/* Masonry & Gallery */
.gallery-grid {
  columns: 1;
  column-gap: 1.25rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    columns: 2;
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    columns: 3;
  }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(197, 160, 89, 0.25);
  box-shadow: var(--card-shadow);
  cursor: pointer;
  background: #000;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.07);
  filter: brightness(0.9);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(37, 27, 30, 0.85) 0%, rgba(37, 27, 30, 0.3) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

.gallery-item:hover .overlay {
  opacity: 1;
}

/* Keyframe Animations */
@keyframes floatSway {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}

.animate-float {
  animation: floatSway 6s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

.ambient-glow {
  animation: pulseGlow 8s ease-in-out infinite;
}

/* Scroll reveal helper classes */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay helpers */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Chai Tray Floating Button & Drawer */
.tray-badge {
  background: linear-gradient(135deg, #C5A059, #8C6D3B);
  color: white;
  border-radius: 9999px;
  font-weight: 700;
}

/* Toast */
#toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 9999;
  pointer-events: none;
}

#toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Theatrical Gold Silk Curtain Reveal Overlay (Cinematic Outro Edition)
   ========================================================================== */
#curtain-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: #FAF7F2;
  overflow: hidden;
  transition: background-color 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, background-color;
}

#curtain-canvas {
  transform-origin: center center;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.9s ease;
  will-change: transform, opacity, filter;
}

#curtain-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(243, 224, 181, 0.8) 0%, rgba(197, 160, 89, 0.35) 45%, transparent 75%);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.7);
  transition: opacity 0.8s ease, transform 1.3s cubic-bezier(0.16, 1, 0.3, 1);
  mix-blend-mode: screen;
}

/* Outro state: cinematic push-in past golden drapes with light bloom */
#curtain-overlay.outro {
  background-color: transparent !important;
  opacity: 0;
  pointer-events: none;
}

#curtain-overlay.outro #curtain-canvas {
  transform: scale(1.25);
  opacity: 0;
  filter: brightness(1.22) blur(8px);
}

#curtain-overlay.outro #curtain-glow {
  opacity: 0.85;
  transform: scale(1.6);
}

#curtain-badge {
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.65s ease;
  will-change: transform, opacity, filter;
}

#curtain-badge.fade-out {
  opacity: 0;
  transform: scale(0.85) translateY(-20px);
  filter: blur(8px);
}

/* Synchronized Hero Content Stage Reveal */
.hero-stage-sync {
  transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.1s ease;
  will-change: transform, opacity, filter;
}

body.curtain-active .hero-stage-sync {
  transform: scale(0.95) translateY(24px);
  opacity: 0.35;
  filter: blur(4px);
}

body.curtain-revealed .hero-stage-sync {
  transform: scale(1) translateY(0);
  opacity: 1;
  filter: blur(0px);
}


