/* Golden Tulip Bistro - Main Stylesheet */

:root {
  --teal: #0D7377;
  --teal-600: #0A5D61;
  --teal-light: #14A085;
  --teal-dark: #0A1F20;        /* Dark teal for sections */
  --teal-darker: #0D1A1B;      /* Darker teal alternative */
  --charcoal: #0D1A1B;          /* Updated: Dark teal instead of pure black */
  --ink: #0F1F20;               /* Updated: Dark teal instead of pure black */
  --ivory: #FBFAF8;
  /* Legacy support - map gold to teal */
  --gold: #0D7377;
  --gold-600: #0A5D61;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--ivory);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.2px;
}

/* Glass morphism effect */
.glass {
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Color utilities */
.gold-text {
  color: var(--teal);
}
.teal-text {
  color: var(--teal);
}

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg, var(--teal), var(--teal-600));
  color: #fff;
  border-radius: 9999px;
  padding: 0.95rem 1.6rem;
  font-weight: 600;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 10px 22px rgba(13, 115, 119, 0.25);
  display: inline-block;
  text-decoration: none;
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(13, 115, 119, 0.35);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  border-radius: 9999px;
  padding: 0.9rem 1.3rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  transition: all 0.25s;
  display: inline-block;
  text-decoration: none;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-outline {
  border: 2px solid #fff;
  color: #fff;
  background: transparent;
  border-radius: 9999px;
  padding: 0.875rem 1.5rem;
  font-weight: 600;
  transition: all 0.25s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-1px);
}

/* Cards */
.card {
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), 
              box-shadow 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.12);
}

/* Divider */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
}

/* Hero slider essentials */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  will-change: transform;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25) 40%, rgba(0, 0, 0, 0.55));
}

.hero-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--teal-600));
  box-shadow: 0 0 10px rgba(13, 115, 119, 0.4);
}

.hero-bullets button {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.7);
  opacity: 0.6;
  transition: transform 0.2s, opacity 0.2s, background 0.2s;
}

.hero-bullets button[aria-current="true"] {
  opacity: 1;
  transform: scale(1.15);
  background: #fff;
}

.hero-ctrl {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}

.hero-ctrl:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(-50%) scale(1.03);
}

.hero-ctrl--prev {
  left: 1rem;
}

.hero-ctrl--next {
  right: 1rem;
}

/* Amsterdam section (3 segments) */
.double-frame {
  position: relative;
  border: 1px solid rgba(13, 115, 119, 0.55);
  border-radius: 1rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.02);
}

.double-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 1px solid rgba(13, 115, 119, 0.35);
  border-radius: 0.8rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.4rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
}

.stat {
  letter-spacing: 0.35em;
  font-size: 0.7rem;
  color: #bfbfbf;
}

/* ============================================
   STICKY HEADER STYLES
   ============================================ */
.header-sticky {
  transition: all 0.3s ease;
  will-change: transform, box-shadow;
}

.header-sticky.header-scrolled {
  margin-top: 0;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-sticky.header-scrolled .max-w-7xl {
  margin-top: 0;
  padding-bottom: 0.25rem;
}

.header-sticky.header-scrolled nav {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Logo switching for sticky header */
.header-sticky .logo-normal {
  opacity: 1;
}

.header-sticky .logo-sticky {
  opacity: 0;
}

.header-sticky.header-scrolled .logo-normal {
  opacity: 0;
}

.header-sticky.header-scrolled .logo-sticky {
  opacity: 1;
}

/* Enhanced cards for dark sections */
.dark-section .card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(13, 115, 119, 0.2);
  backdrop-filter: blur(10px);
}

.dark-section .card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(13, 115, 119, 0.4);
  box-shadow: 0 0 30px rgba(13, 115, 119, 0.2);
}

/* ============================================
   MOBILE MENU OVERLAY & ANIMATIONS
   ============================================
   NOTE: Mobile menu styles have been moved to mobile-drawer.css
   These styles are kept for backward compatibility but are overridden by mobile-drawer.css
   ============================================ */

/* ============================================
   FOOTER RESPONSIVE GRID
   ============================================ */
footer .grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  footer .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  footer .grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Footer column stacking on mobile */
@media (max-width: 767px) {
  footer .grid > div {
    margin-bottom: 2rem;
  }
  
  footer .grid > div:last-child {
    margin-bottom: 0;
  }
}

/* ============================================
   ERROR MESSAGE STYLES (for partials loader)
   ============================================ */
.partials-error-message {
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ============================================
   MEGA MENU - Prevent Text Wrapping
   ============================================ */
/* Target mega menu item text spans to keep on one line */
/* Using attribute selector to target spans with text-sm class in mega menu */
div[class*="grid-cols-3"] a span.text-sm {
  white-space: nowrap;
  display: inline-block;
  max-width: 100%;
}

/* More specific: Target spans inside mega menu links */
.absolute.top-full .grid a span:last-child {
  white-space: nowrap;
  display: inline-block;
}

/* ============================================
   DESKTOP NAVBAR - Prevent Wrapping & Improve Layout
   ============================================ */
/* Ensure navbar items don't wrap */
#navLinks {
  flex-wrap: nowrap;
}

/* Ensure navbar items stay on one line */
#navLinks li {
  flex-shrink: 0;
}

/* Improve dropdown positioning */
#navLinks .group:hover .absolute {
  display: block !important;
}

/* Ensure dropdown stays visible on hover */
#navLinks .group:hover > div {
  display: block !important;
}

/* Better spacing for nav items - increased spacing */
@media (min-width: 768px) {
  #navLinks {
    gap: 1rem !important; /* Increased from 0.5rem */
  }
}

@media (min-width: 1024px) {
  #navLinks {
    gap: 1.25rem !important; /* Increased from 0.75rem */
  }
}

/* Compact navbar styling */
header nav {
  min-width: auto !important;
  width: fit-content !important;
  max-width: fit-content !important;
  flex: 0 0 auto !important;
}

@media (min-width: 768px) {
  header nav {
    padding: 0.5rem 1rem !important;
    width: fit-content !important;
    max-width: fit-content !important;
    flex: 0 0 auto !important;
  }
  
  /* Make nav container fit content */
  header nav > div {
    width: auto !important;
    display: flex;
    justify-content: center;
  }
  
  /* Ensure nav links don't stretch */
  #navLinks {
    width: auto !important;
    max-width: none !important;
    flex: 0 0 auto !important;
  }
  
  /* Prevent parent from stretching nav */
  header .max-w-7xl {
    display: flex !important;
    align-items: center;
    flex-wrap: nowrap !important;
  }
  
  header .max-w-7xl > nav {
    flex: 0 0 auto !important;
    margin-left: auto;
    width: auto !important;
    max-width: fit-content !important;
  }
  
  /* Force nav links with increased spacing */
  #navLinks {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 1rem !important; /* Increased from 0.5rem */
  }
  
  #navLinks li {
    flex: 0 0 auto !important;
  }
}

/* ============================================
   SMOOTH TRANSITIONS
   ============================================ */
header nav a,
footer a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .hero-img {
    transform: none !important;
  }
  
  /* DO NOT override mobile menu panel transform - it's needed for hiding/showing */
  /* .mobile-menu-panel transform is handled by mobile-drawer.css */
  
  .mobile-menu-overlay {
    transition: opacity 0.1s ease, visibility 0.1s ease;
  }
}

/* New Year Popup Animations */
@keyframes scale-in {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

.animate-scale-in {
  animation: scale-in 0.3s ease-out;
}

/* ============================================
   HERO SECTION - Mobile Spacing Fix
   ============================================ */
/* Ensure hero content has enough space below fixed header on mobile */
@media (max-width: 767px) {
  #hero .max-w-3xl {
    padding-top: 1.5rem; /* Additional padding on mobile */
  }
  
  /* Extra spacing for the first text element on very small screens */
  #hero .max-w-3xl > p:first-child {
    margin-top: 5rem !important; /* 80px - ensures no overlap with logo */
  }
}

/* ============================================
   QUICK MENU SWITCHER
   ============================================ */
.quick-menu-switcher {
  position: sticky !important;
  top: 80px !important; /* Below the fixed header */
  left: 0 !important;
  right: 0 !important;
  z-index: 40 !important; /* Below header (50) but above content */
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(13, 115, 119, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 1rem 0;
  margin-bottom: 0;
  width: 100%;
}

.quick-menu-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  flex-wrap: wrap;
}

.quick-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: white;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #374151;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
}

.quick-menu-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 115, 119, 0.2);
}

.quick-menu-btn[data-active="true"] {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
  box-shadow: 0 2px 8px rgba(13, 115, 119, 0.25);
}

.quick-menu-btn svg {
  width: 1rem;
  height: 1rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .quick-menu-switcher {
    top: 70px; /* Adjust for smaller mobile header */
    padding: 0.75rem 0;
  }
  
  .quick-menu-buttons {
    gap: 0.5rem;
    padding: 0 1rem;
  }
  
  .quick-menu-btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    flex: 1 1 auto;
    justify-content: center;
    min-width: fit-content;
  }
  
  .quick-menu-btn span {
    display: none;
  }
  
  .quick-menu-btn svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

@media (min-width: 640px) and (max-width: 768px) {
  .quick-menu-btn span {
    display: inline;
  }
}

/* ============================================
   MENU TAB BUTTONS (Category Navigation)
   ============================================ */
.menu-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  color: #4B5563;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.menu-tab-btn:hover {
  background: #F9FAFB;
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-1px);
}

.menu-tab-btn.active {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

/* Ensure Filter Section doesn't overlap with Quick Menu Switcher */
section.bg-white\/95 {
  position: static !important; /* Changed from relative to static */
  z-index: 1 !important; /* Very low z-index, below everything */
  width: 100%;
  overflow-x: hidden;
  margin-top: 0 !important;
  clear: both;
}

section.bg-white\/95 > div {
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100%;
  max-width: 1280px;
}

.flex.flex-wrap.gap-2.mb-4.justify-center {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  margin-bottom: 1rem !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  position: relative !important;
  z-index: 1 !important;
}

@media (max-width: 768px) {
  .menu-tab-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }
}

/* ============================================
   MENU ITEM STYLING (Indian & Ceylon Menu Pages)
   ============================================ */
/* Section Title with Teal Bar */
.section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-title .bar {
  width: 4px;
  height: 50px;
  background: var(--teal);
  border-radius: 2px;
  flex-shrink: 0;
}

.section-title h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #1F2937;
  margin: 0;
}

.section-title p {
  color: #6B7280;
  font-size: 0.875rem;
  margin: 0.25rem 0 0 0;
}

/* Menu Item Cards */
.menu-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #F3F4F6;
}

.menu-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* Title and Price Layout */
.title-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  position: relative;
  margin-bottom: 0.5rem;
}

.title-price h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
  flex: 0 0 auto;
  padding-right: 0.5rem;
  background: white;
  position: relative;
  z-index: 2;
}

.title-price .price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--teal);
  flex: 0 0 auto;
  background: white;
  padding-left: 0.5rem;
  position: relative;
  z-index: 2;
}

.title-price .dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.5rem;
  height: 1px;
  background-image: linear-gradient(to right, #D1D5DB 40%, transparent 0%);
  background-position: bottom;
  background-size: 6px 1px;
  background-repeat: repeat-x;
  z-index: 1;
}

/* Menu Item Pills/Tags */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
}

.pill-veg {
  background: #D1FAE5;
  color: #065F46;
}

.pill-chicken {
  background: #FED7AA;
  color: #92400E;
}

.pill-lamb {
  background: #FEE2E2;
  color: #991B1B;
}

.pill-fish {
  background: #DBEAFE;
  color: #1E40AF;
}

.pill-spicy {
  background: #FED7AA;
  color: #C2410C;
}

.pill-star {
  background: #FEF3C7;
  color: #92400E;
}

.pill-rice {
  background: #D1FAE5;
  color: #065F46;
}

/* Main Content Background */
main {
  background: #F9FAFB;
  min-height: 100vh;
}

/* Filter Buttons Styling */
.filter-btn {
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: 'Inter', system-ui, sans-serif;
}

.filter-btn:focus {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .section-title .bar {
    height: 40px;
  }
  
  .menu-item {
    padding: 1.25rem;
  }
  
  .title-price h3 {
    font-size: 1rem;
  }
  
  .title-price .price {
    font-size: 1rem;
  }
}


