/* 
  مطعم حرتا - Harta Restaurant Landing Page Style Sheets
  Custom CSS for animations, custom heritage patterns, and typography overrides.
  Designed with Modern Heritage aesthetic.
*/

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Tajawal:wght@300;400;500;700;900&display=swap');

/* --- Root Variables (Color Palette from Logo) --- */
:root {
  --color-heritage-brown-dark: #381e0e; /* Deep rich brown */
  --color-heritage-brown: #4a2c11;      /* Standard brand brown */
  --color-heritage-brown-light: #5c3d2e; /* Warm lighter brown */
  --color-terracotta: #dd6b20;           /* Brand Orange */
  --color-terracotta-hover: #c05621;     /* Darker orange */
  --color-cream-light: #fdfbf7;          /* Premium soft background */
  --color-cream-dark: #ebd8b3;           /* Straw-woven tray wheat color */
  --color-accent-tan: #a7795a;           /* Secondary sandstone color */
  --color-text-dark: #23120a;            /* Soft black-brown for readability */
}

/* --- Base Styles --- */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background-color: var(--color-cream-light);
  color: var(--color-text-dark);
}

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

/* --- Font Override based on language direction --- */
[dir="rtl"] {
  font-family: 'Cairo', 'Tajawal', system-ui, -apple-system, sans-serif;
}
[dir="ltr"] {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
}

[dir="ltr"] .heading-serif {
  font-family: 'Playfair Display', Georgia, serif;
}

/* --- Custom Heritage Design Elements --- */

/* Radial background pattern reminiscent of the straw tray (Ghash) logo */
.bg-heritage-pattern {
  background-color: var(--color-cream-light);
  background-image: 
    radial-gradient(var(--color-cream-dark) 0.5px, transparent 0.5px), 
    radial-gradient(var(--color-cream-dark) 0.5px, var(--color-cream-light) 0.5px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  opacity: 0.25;
}

/* Hero Overlay styling to ensure text readability */
.hero-gradient-overlay {
  background: linear-gradient(to top, rgba(35, 18, 10, 0.95) 0%, rgba(35, 18, 10, 0.5) 50%, rgba(35, 18, 10, 0.7) 100%);
}

/* Glassmorphism Navigation */
.nav-glass {
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74, 44, 17, 0.1);
  transition: all 0.3s ease;
}

.nav-glass.scrolled {
  background: rgba(74, 44, 17, 0.95);
  border-bottom: 1px solid rgba(221, 107, 32, 0.2);
}

/* --- Reveal on Scroll Animations --- */
.reveal-element {
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade {
  transform: translateY(20px);
}

.reveal-left {
  transform: translateX(-30px);
}

.reveal-right {
  transform: translateX(30px);
}

.reveal-scale {
  transform: scale(0.95);
}

/* When the reveal element becomes active */
.reveal-element.active {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* --- Interactive Menu Cards --- */
.menu-card {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(74, 44, 17, 0.15), 0 10px 10px -5px rgba(74, 44, 17, 0.1);
}

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

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

/* Custom badge glow */
.badge-glow {
  box-shadow: 0 0 10px rgba(221, 107, 32, 0.4);
}

/* --- Instagram Video Mockup Frame --- */
.instagram-frame {
  position: relative;
  border: 12px solid #2d2d2d;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  background: #000;
  aspect-ratio: 9/16;
  max-width: 320px;
  margin: 0 auto;
}

.instagram-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 20px;
  background: #2d2d2d;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
  z-index: 10;
}

/* --- Modal Styles --- */
.modal-overlay {
  background-color: rgba(35, 18, 10, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: opacity 0.3s ease;
}

/* --- Quick Call & Map Button Pulse Animations --- */
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 1; }
  50% { opacity: 0.5; }
  100% { transform: scale(1.15); opacity: 0; }
}

.pulse-effect::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid var(--color-terracotta);
  border-radius: inherit;
  animation: pulse-ring 2s cubic-bezier(0.25, 0, 0, 1) infinite;
}

/* Decorative border for Arabic heritage feel */
.heritage-border {
  border-image: linear-gradient(to right, var(--color-cream-dark), var(--color-terracotta), var(--color-heritage-brown)) 1;
}
