/* ========================================================
   HABIT COFFEE SUKABUMI - FULL-IMAGE EDITORIAL CAROUSEL
   Visual-First, Right-Aligned Subject, Left Dark Overlay
   ======================================================== */

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

:root {
  --color-bg: #0C0806;
  --color-surface: #150E0A;
  --color-surface-elevated: #1F150F;
  --color-border: rgba(222, 155, 82, 0.14);
  --color-border-hover: rgba(222, 155, 82, 0.45);
  
  --color-amber: #DE9B52;
  --color-amber-light: #F4BF77;
  --color-cream: #FAF5EE;
  --color-cream-muted: #BFAFA0;

  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-display: 'Syne', sans-serif;
}

html {
  scroll-behavior: smooth;
  background-color: var(--color-bg);
  color: var(--color-cream);
  font-family: var(--font-sans);
  overflow-x: clip;
}

body {
  background-color: var(--color-bg);
  overflow-x: clip;
  background-image: radial-gradient(circle at 50% 0%, rgba(222, 155, 82, 0.06) 0%, transparent 60%);
  width: 100%;
}

/* Custom Smooth Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: #2E1F15;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-amber);
}

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

/* Typography Utilities */
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }
.font-display { font-family: var(--font-display); }

/* Giant Subtle Watermark */
.bg-watermark {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(222, 155, 82, 0.06);
  user-select: none;
  pointer-events: none;
  line-height: 1;
  z-index: 0;
  overflow: hidden;
}

/* Minimal Luxury Glass Panels */
.glass-panel {
  background: rgba(21, 14, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-nav {
  background: rgba(12, 8, 6, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(222, 155, 82, 0.12);
}

.glass-dock {
  background: rgba(18, 12, 8, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(222, 155, 82, 0.25);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(222, 155, 82, 0.15);
}

/* Visual Card Zoom & Mobile Balance */
.visual-card {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 640px) {
  .visual-card {
    border-radius: 2rem;
  }
}

.visual-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-border-hover);
  box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px -10px rgba(222, 155, 82, 0.2);
}

.visual-card .img-zoom {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.visual-card:hover .img-zoom {
  transform: scale(1.06);
}

/* Badges */
.badge-luxury {
  background: rgba(12, 8, 6, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(222, 155, 82, 0.35);
  color: var(--color-amber-light);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

@media (min-width: 640px) {
  .badge-luxury {
    font-size: 0.75rem;
    padding: 0.4rem 0.9rem;
  }
}

.badge-gold {
  background: linear-gradient(135deg, #DE9B52 0%, #A86422 100%);
  color: #FFFDF9;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(222, 155, 82, 0.35);
}

@media (min-width: 640px) {
  .badge-gold {
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
  }
}

/* Category Filter Chips */
.filter-chip {
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.25s ease;
  border: 1px solid rgba(222, 155, 82, 0.2);
  color: var(--color-cream-muted);
  background: rgba(21, 14, 10, 0.75);
  white-space: nowrap;
}

@media (min-width: 640px) {
  .filter-chip {
    padding: 0.6rem 1.4rem;
    font-size: 0.8125rem;
  }
}

.filter-chip:hover {
  border-color: var(--color-amber);
  color: #FFF;
  background: rgba(222, 155, 82, 0.15);
}

.filter-chip.active {
  background: var(--color-amber);
  color: #0C0806;
  border-color: var(--color-amber);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(222, 155, 82, 0.4);
}

/* Sticky Category Filter Bar for Mobile & Desktop (Frozen on Scroll) */
.sticky-category-bar {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 4rem !important; /* 64px = matches fixed header height on mobile */
  z-index: 40 !important;
  background: rgba(12, 8, 6, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-top: 1px solid rgba(222, 155, 82, 0.14) !important;
  border-bottom: 1px solid rgba(222, 155, 82, 0.14) !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
}

@media (min-width: 640px) {
  .sticky-category-bar {
    top: 5rem !important; /* 80px on tablet/desktop */
  }
}

/* Live Status Pulse */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}

.live-pulse {
  animation: pulseGlow 2.5s infinite;
}

/* Mobile Slide-in Drawer */
.mobile-nav-drawer {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Marquee Animation */
@keyframes marqueeScroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.marquee-content {
  display: flex;
  width: max-content;
  animation: marqueeScroll 24s linear infinite;
}

.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

/* ========================================================
   FULL-IMAGE CAROUSEL: RIGHT-ALIGNED SUBJECT + LEFT DARK OVERLAY
   ======================================================== */
.full-image-carousel {
  position: relative;
  width: 100%;
  min-height: 520px;
  border-radius: 2rem;
  overflow: hidden;
  background-color: var(--color-bg);
}

@media (min-width: 640px) {
  .full-image-carousel {
    min-height: 580px;
    border-radius: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .full-image-carousel {
    min-height: 640px;
  }
}

.carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* 
 * The Hero Image:
 * On desktop, it spans the right 62% of the slide and centers its subject,
 * guaranteeing the coffee glass/cup/plate is 100% visible and beautifully proportional!
 */
.slide-bg-img {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1.02);
}

@media (min-width: 1024px) {
  .slide-bg-img {
    width: 62%;
    object-position: center;
  }
}

.carousel-slide.active .slide-bg-img {
  transform: scale(1);
}

/* 
 * Left Dark Overlay (~30% on Desktop): 
 * Solid dark on the left ~30% for crisp text contrast,
 * smoothly dissolving towards the right so the coffee and food are 100% clear & bright!
 */
.slide-left-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    #0C0806 0%,
    #0C0806 42%,
    rgba(12, 8, 6, 0.9) 56%,
    rgba(12, 8, 6, 0.3) 72%,
    transparent 88%
  );
}

@media (min-width: 1024px) {
  .slide-left-overlay {
    background: linear-gradient(
      to right,
      #0C0806 0%,
      #0C0806 28%,
      rgba(12, 8, 6, 0.92) 36%,
      rgba(12, 8, 6, 0.5) 46%,
      rgba(12, 8, 6, 0.08) 56%,
      transparent 64%
    );
  }
}

@media (max-width: 1023px) {
  .slide-bg-img {
    width: 100% !important;
    height: 58% !important;
    top: 0 !important;
    bottom: auto !important;
    object-position: center 35% !important;
  }
}

/* Online Delivery Brand Buttons */
.btn-gofood {
  background: linear-gradient(135deg, #00880C 0%, #006609 100%);
  color: #FFF;
  box-shadow: 0 8px 24px -4px rgba(0, 136, 12, 0.45);
}
.btn-gofood:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.btn-grabfood {
  background: linear-gradient(135deg, #00B14F 0%, #00873C 100%);
  color: #FFF;
  box-shadow: 0 8px 24px -4px rgba(0, 177, 79, 0.45);
}
.btn-grabfood:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.btn-shopeefood {
  background: linear-gradient(135deg, #EE4D2D 0%, #D03212 100%);
  color: #FFF;
  box-shadow: 0 8px 24px -4px rgba(238, 77, 45, 0.45);
}
.btn-shopeefood:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

/* Print Friendly */
@media print {
  body {
    background: #FFF !important;
    color: #000 !important;
  }
  .no-print, header, footer, #deliveryModal, .mobile-dock, .filter-chip {
    display: none !important;
  }
}
