/* ==========================================================================
   Beirut Xpress — Official Brand Design System, Creative Photo Backdrops
   & Smooth Choreographed Animations
   ========================================================================== */

:root {
  --bx-teal-900: #003d37;
  --bx-teal-800: #00544c;
  --bx-teal-700: #006c62;
  --bx-teal-600: #007c6c;
  --bx-teal-500: #008b85;
  --bx-teal-400: #1aa39c;
  --bx-teal-100: #e3f5f3;
  --bx-teal-50: #f1faf9;

  --bx-navy-950: #021620;
  --bx-navy-900: #042130;
  --bx-navy-800: #052f43;
  --bx-navy-700: #0a425c;
  --bx-navy-600: #125878;

  --bx-gold-600: #b8892e;
  --bx-gold-500: #d4a853;
  --bx-gold-400: #e3be74;
  --bx-gold-100: #fbf3e2;

  --bx-cream-50: #fcfaf7;
  --bx-cream-100: #faf6ef;
  --bx-cream-200: #f2eadc;
  --bx-cream-300: #e4d6bf;

  --bx-sumac: #b9382c;

  --font-display: 'Marcellus', Georgia, serif;
  --font-sans: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Alex Brush', 'Great Vibes', cursive;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bx-cream-50);
  color: var(--bx-navy-900);
}

body {
  margin: 0;
  background-color: var(--bx-cream-50);
  color: var(--bx-navy-900);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

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

/* ==========================================================================
   CREATIVE ARCHITECTURAL & LOW-OPACITY PHOTO BACKGROUNDS (No Flat Gradients)
   ========================================================================== */

/* Light Cream Page Surface with Subtle Levantine Geometric Tile Lattice */
.bg-levant-pattern {
  background-color: #faf7f2;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23008b85' stroke-width='0.6' stroke-opacity='0.09'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z'/%3E%3Cpath d='M40 12L68 40L40 68L12 40Z'/%3E%3Ccircle cx='40' cy='40' r='6' stroke='%23052f43' stroke-opacity='0.07'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
}

/* Reusable Layered Photo Backdrop Container */
.bx-photo-section {
  position: relative;
  overflow: hidden;
  background-color: #042130;
  color: #faf6ef;
}

.bx-photo-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-photo, url('https://images.unsplash.com/photo-1544025162-d76694265947?auto=format&fit=crop&w=1800&q=80'));
  background-size: cover;
  background-position: center;
  opacity: var(--bg-opacity, 0.22);
  transform: scale(1.03);
  animation: kenBurnsSlow 26s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

/* Intricate Levantine Mashrabiya Geometric Overlay on Dark Photo Sections */
.bx-photo-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23d4a853' stroke-width='0.65' stroke-opacity='0.12'%3E%3Cpolygon points='60,6 114,60 60,114 6,60'/%3E%3Cpolygon points='60,22 98,60 60,98 22,60'/%3E%3Ccircle cx='60' cy='60' r='10' stroke='%231aa39c' stroke-opacity='0.14'/%3E%3Cpath d='M60 0v22M60 98v22M0 60h22M98 60h22'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  pointer-events: none;
  z-index: 1;
}

.bx-photo-content {
  position: relative;
  z-index: 2;
}

/* Page Specific Photo Themes */
.bx-hero-backdrop {
  --bg-photo: url('https://images.unsplash.com/photo-1555939594-58d7cb561ad1?auto=format&fit=crop&w=1920&q=85');
  --bg-opacity: 0.20;
}

.bx-menu-backdrop {
  --bg-photo: url('https://images.unsplash.com/photo-1529006557810-274b9b2fc783?auto=format&fit=crop&w=1920&q=85');
  --bg-opacity: 0.25;
}

.bx-reservations-backdrop {
  --bg-photo: url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1920&q=85');
  --bg-opacity: 0.26;
}

.bx-locations-backdrop {
  --bg-photo: url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?auto=format&fit=crop&w=1920&q=85');
  --bg-opacity: 0.25;
}

.bx-contact-backdrop {
  --bg-photo: url('https://images.unsplash.com/photo-1544025162-d76694265947?auto=format&fit=crop&w=1920&q=85');
  --bg-opacity: 0.25;
}

.bx-feast-backdrop {
  --bg-photo: url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?auto=format&fit=crop&w=1920&q=85');
  --bg-opacity: 0.19;
}

.bx-cta-backdrop {
  --bg-photo: url('https://images.unsplash.com/photo-1577906096429-f73c2c312435?auto=format&fit=crop&w=1800&q=80');
  --bg-opacity: 0.24;
  background-color: #032636;
}

.bx-footer-backdrop {
  --bg-photo: url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1800&q=80');
  --bg-opacity: 0.12;
  background-color: #031a26;
}

/* Diamond Motif from the 'i' in Beirut Xpress logo */
.bx-diamond {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--bx-teal-500);
  transform: rotate(45deg);
}

.bx-diamond-gold {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--bx-gold-500);
  transform: rotate(45deg);
}

.bx-diamond-navy {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: var(--bx-navy-800);
  transform: rotate(45deg);
}

/* ==========================================================================
   SMOOTH CHOREOGRAPHED ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================== */

@keyframes kenBurnsSlow {
  0% {
    transform: scale(1.02) translate(0, 0);
  }
  100% {
    transform: scale(1.11) translate(-1.2%, -1%);
  }
}

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

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

@keyframes modalPop {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes drawerSlideLeft {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes whatsappPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.65);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.animate-float {
  animation: floatSlow 4.5s ease-in-out infinite;
}

.animate-fade-up {
  animation: fadeUpIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-modal-pop {
  animation: modalPop 0.32s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animate-drawer-slide {
  animation: drawerSlideLeft 0.34s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Scroll Reveal Classes (Triggered via IntersectionObserver in app.js) */
.bx-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.68s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.68s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

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

/* Dish & Feature Cards Smooth Lift + Golden/Teal Rim */
.bx-card {
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.32s ease;
}

.bx-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 48px -14px rgba(5, 47, 67, 0.16),
              0 0 0 1.5px rgba(0, 139, 133, 0.35);
}

.bx-card-img {
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Button Shimmer Effect */
.bx-btn-shimmer {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease,
              background-color 0.25s ease;
}

.bx-btn-shimmer:hover {
  transform: translateY(-2px);
}

.bx-btn-shimmer::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  transform: rotate(25deg);
  transition: left 0.65s ease;
  pointer-events: none;
}

.bx-btn-shimmer:hover::after {
  left: 130%;
}

/* Floating WhatsApp Widget */
.bx-whatsapp-float {
  animation: whatsappPulse 2.4s infinite;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s ease;
}

.bx-whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
}

/* Glassmorphism Navigation */
.bx-header-glass {
  background: rgba(252, 250, 247, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(5, 47, 67, 0.08);
}

/* Modal & Drawer Backdrop */
.bx-backdrop {
  background: rgba(3, 24, 36, 0.68);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Subtle Pulse for Live Branch Badge */
@keyframes pulseRing {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 139, 133, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 139, 133, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 139, 133, 0); }
}

.pulse-dot {
  animation: pulseRing 2s infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bx-cream-100);
}
::-webkit-scrollbar-thumb {
  background: #9abdb9;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--bx-teal-600);
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--bx-teal-500);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
