/* ==========================================================================
   NORA GARDEN FIRIN CAFE & BISTRO — LUXURY ARTISAN STYLESHEET
   Pure CSS for Direct Upload (Cloudflare Pages, Netlify, Vercel)
   ========================================================================== */

/* --- CSS Variables & Color Palette --- */
:root {
  --color-primary: #10261C;
  --color-primary-light: #1B382B;
  --color-primary-dark: #0A1912;
  --color-gold: #C5A880;
  --color-gold-light: #E7D7C1;
  --color-gold-dark: #9A7B54;
  --color-cream: #FAF7F2;
  --color-cream-dark: #F5EFEB;
  --color-cream-accent: #ECE3DB;
  --color-text-dark: #2C1810;
  --color-text-muted: #52382B;
  --color-text-light: #8D6E63;
  --color-border: #EAE1D7;
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #20ba5a;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  --shadow-sm: 0 2px 8px rgba(16, 38, 28, 0.04);
  --shadow-md: 0 6px 20px rgba(16, 38, 28, 0.08);
  --shadow-lg: 0 12px 30px rgba(16, 38, 28, 0.12);
  --shadow-2xl: 0 25px 50px -12px rgba(16, 38, 28, 0.25);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  --radius-full: 9999px;
}

/* --- Global Reset & Box Sizing --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-cream);
  color: var(--color-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Selection Highlight */
::selection {
  background-color: rgba(197, 168, 128, 0.35);
  color: var(--color-primary);
}

/* Responsive Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Typography Utility Classes */
.font-serif {
  font-family: var(--font-serif);
}

.font-sans {
  font-family: var(--font-sans);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-cream-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-dark);
}

/* --- Scroll Progress Bar --- */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #C5A880, #FAF7F2, #C5A880);
  z-index: 1000;
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.7);
  transition: width 0.1s ease-out;
  pointer-events: none;
}

/* --- Desktop Custom Cursor --- */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--color-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s ease;
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.8);
}

.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid rgba(197, 168, 128, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.15s ease-out;
}

.custom-cursor-ring.cursor-hover {
  width: 54px;
  height: 54px;
  background-color: rgba(197, 168, 128, 0.15);
  border-color: var(--color-gold);
}

.custom-cursor-ring.cursor-view {
  width: 70px;
  height: 70px;
  background-color: rgba(16, 38, 28, 0.85);
  border-color: var(--color-gold);
}

@media (pointer: coarse), (max-width: 1024px) {
  .custom-cursor-dot,
  .custom-cursor-ring {
    display: none !important;
  }
}

/* --- Luxury Sheen & Button Styles --- */
.btn-luxury-shine {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-luxury-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  width: 60%;
  height: 200%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(25deg);
  pointer-events: none;
  transition: left 0.8s ease-in-out;
  z-index: 2;
}

.btn-luxury-shine:hover::after {
  left: 200%;
}

/* --- 5-Second Luxury Cinematic Loading Screen --- */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: #10261C;
  color: #FAF7F2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

#loading-screen.hidden-loader {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

.loader-emblem {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 2rem;
}

.loader-glow-circle {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(197, 168, 128, 0.35) 0%, rgba(197, 168, 128, 0) 70%);
  animation: pulseGlow 2.5s infinite ease-in-out;
}

.loader-icon-box {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(135deg, #1B382B 0%, #10261C 100%);
  border: 1px solid rgba(197, 168, 128, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  animation: emblemFloat 3s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(0.9); opacity: 0.5; }
  50% { transform: scale(1.15); opacity: 0.9; }
}

@keyframes emblemFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.loader-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  letter-spacing: 0.25em;
  font-weight: 700;
  color: #FAF7F2;
  text-align: center;
  margin-bottom: 0.5rem;
}

.loader-subtitle {
  font-size: 0.75rem;
  letter-spacing: 0.35em;
  color: var(--color-gold);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2.5rem;
  text-align: center;
}

.loader-progress-container {
  width: 260px;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
}

.loader-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #9A7B54, #C5A880, #FAF7F2);
  border-radius: 9999px;
  transition: width 0.05s linear;
}

.loader-status-text {
  font-size: 0.75rem;
  color: var(--color-gold-light);
  letter-spacing: 0.1em;
  min-height: 1.25rem;
  text-align: center;
  transition: opacity 0.3s ease;
}

/* --- Scroll Reveal Animations --- */
.reveal-init {
  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);
  will-change: opacity, transform;
}

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

.reveal-delay-1 { transition-delay: 150ms; }
.reveal-delay-2 { transition-delay: 300ms; }
.reveal-delay-3 { transition-delay: 450ms; }
.reveal-delay-4 { transition-delay: 600ms; }
.reveal-delay-5 { transition-delay: 750ms; }

/* --- Header / Sticky Navbar --- */
#site-navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 990;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
  background-color: rgba(16, 38, 28, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(197, 168, 128, 0.2);
}

#site-navbar.nav-scrolled {
  background-color: rgba(16, 38, 28, 0.98);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  border-bottom-color: rgba(197, 168, 128, 0.35);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: #E7D7C1;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover {
  color: #FAF7F2;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--color-gold);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Mobile Drawer */
#mobile-menu-drawer {
  position: fixed;
  inset: 0;
  background-color: rgba(16, 38, 28, 0.98);
  z-index: 995;
  display: flex;
  flex-direction: column;
  padding: 6rem 2rem 2rem 2rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu-drawer.drawer-open {
  transform: translateX(0);
}

/* --- Hero Section --- */
.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 38, 28, 0.75) 0%,
    rgba(16, 38, 28, 0.88) 50%,
    #10261C 100%
  );
  z-index: 1;
}

/* --- Lightbox Modal --- */
#gallery-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#gallery-lightbox-modal.modal-active {
  display: flex;
  opacity: 1;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Mobile Bottom Action Bar --- */
#mobile-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background-color: rgba(16, 38, 28, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(197, 168, 128, 0.3);
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px)) 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

@media (min-width: 1024px) {
  #mobile-action-bar {
    display: none !important;
  }
}

.mobile-bar-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #E7D7C1;
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  min-width: 60px;
}

.mobile-bar-btn:active {
  transform: scale(0.94);
}

.mobile-bar-btn.btn-highlight {
  background-color: var(--color-gold);
  color: var(--color-primary);
  font-weight: 700;
}

.mobile-bar-btn.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: #FFFFFF;
}

/* Utility Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

/* Print Styles */
@media print {
  #loading-screen,
  #scroll-progress-bar,
  .custom-cursor-dot,
  .custom-cursor-ring,
  #mobile-action-bar {
    display: none !important;
  }
}
