/* ==========================================================================
   Moe's PureBite — Core Design System & Tokens
   100% Gluten-Free Restaurant Platform
   ========================================================================== */

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

:root {
  /* Brand Colors */
  --c-forest: #063B29;
  --c-forest-dark: #032217;
  --c-forest-light: #0D523B;
  --c-forest-muted: #1A4D3B;
  --c-forest-rgb: 6, 59, 41;
  
  --c-cream: #F7F3EA;
  --c-cream-alt: #F0EADF;
  --c-cream-card: #FFFFFF;
  --c-cream-border: #E8E0D2;
  --c-cream-soft: #FAF7F0;
  
  --c-orange: #E99A16;
  --c-orange-hover: #D4880B;
  --c-orange-light: #FFF5E6;
  --c-orange-rgb: 233, 154, 22;
  
  --c-sage: #4E6857;
  --c-sage-light: #E7EFE8;
  --c-sage-badge: #EBF3EC;
  
  --c-text-main: #14241C;
  --c-text-muted: #627267;
  --c-text-light: #8E9C93;
  --c-text-on-dark: #F7F3EA;
  
  --c-danger: #C83220;
  --c-danger-light: #FDEEED;
  --c-success: #1E7E34;
  --c-success-light: #E8F5E9;
  
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-arabic: 'Tajawal', system-ui, -apple-system, sans-serif;
  
  /* Layout & Radii */
  --max-w-mobile: 440px;
  --max-w-desktop: 1180px;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  /* Elevation Shadows */
  --shadow-subtle: 0 2px 10px rgba(6, 59, 41, 0.04);
  --shadow-card: 0 6px 20px rgba(6, 59, 41, 0.06);
  --shadow-float: 0 12px 32px rgba(6, 59, 41, 0.12);
  --shadow-modal: 0 20px 50px rgba(6, 59, 41, 0.22);
  --shadow-sticky: 0 -8px 24px rgba(6, 59, 41, 0.12);

  /* Transitions */
  --t-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --t-medium: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --t-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   CSS Resets & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--c-cream);
  color: var(--c-text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--c-cream);
  color: var(--c-text-main);
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

/* Clean background - STRICTLY NO BOTANICAL LEAF WALLPAPER */
body::before {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  touch-action: manipulation;
}

input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* Minimum 44px touch targets */
button, input, select, a {
  min-height: 44px;
}

/* Focus States */
:focus-visible {
  outline: 2px solid var(--c-orange);
  outline-offset: 3px;
}

/* ==========================================================================
   Logo Motion Effect (Slow, Elegant Shimmer)
   ========================================================================== */
.logo-container {
  position: relative;
  display: inline-block;
  overflow: hidden;
}

.logo-shimmer-effect {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border-radius: var(--radius-full);
}

.logo-shimmer-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 50%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(233, 154, 22, 0.15) 30%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(233, 154, 22, 0.15) 70%,
    transparent 100%
  );
  transform: rotate(25deg);
  animation: logoLightSweep 6.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes logoLightSweep {
  0% { left: -60%; }
  30% { left: 160%; }
  100% { left: 160%; }
}

@media (prefers-reduced-motion: reduce) {
  .logo-shimmer-effect::after {
    animation: none;
    display: none;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   UI Components & Utilities
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  transition: all var(--t-fast);
  text-align: center;
  border: 1.5px solid transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--c-forest);
  color: var(--c-cream);
}

.btn-primary:hover {
  background-color: var(--c-forest-light);
  box-shadow: 0 6px 18px rgba(6, 59, 41, 0.22);
}

.btn-accent {
  background-color: var(--c-orange);
  color: #FFFFFF;
}

.btn-accent:hover {
  background-color: var(--c-orange-hover);
  box-shadow: 0 6px 18px rgba(233, 154, 22, 0.28);
}

.btn-whatsapp {
  background-color: var(--c-forest);
  color: var(--c-cream);
  border: 1px solid rgba(233, 154, 22, 0.25);
}

.btn-whatsapp:hover {
  background-color: var(--c-forest-light);
  border-color: var(--c-orange);
}

.btn-outline {
  background-color: transparent;
  border: 1.5px solid var(--c-forest);
  color: var(--c-forest);
}

.btn-outline:hover {
  background-color: rgba(6, 59, 41, 0.05);
}

.btn-pill-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  min-height: 38px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge-gf {
  background-color: var(--c-sage-badge);
  color: var(--c-forest);
  border: 1px solid rgba(6, 59, 41, 0.12);
}

.badge-bestseller {
  background-color: var(--c-orange);
  color: #FFFFFF;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.5px;
}

.badge-preorder {
  background-color: #FFF3E0;
  color: #D84315;
  border: 1px solid #FFCC80;
  font-weight: 700;
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  width: 90%;
  max-width: 400px;
}

.toast {
  background: var(--c-forest);
  color: var(--c-cream);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  border-left: 4px solid var(--c-orange);
  pointer-events: auto;
  animation: toastSlideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast.toast-leave {
  animation: toastSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastSlideDown {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastSlideUp {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-20px) scale(0.95); }
}

/* Modal Backdrops */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(3, 34, 23, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-medium);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Hide / Show Utility Classes */
.hidden { display: none !important; }
.text-center { text-align: center; }

/* ==========================================================================
   RTL Global Overrides
   ========================================================================== */
[dir="rtl"] {
  font-family: var(--font-arabic);
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6,
[dir="rtl"] .header-page-title {
  font-family: var(--font-arabic);
}

/* RTL Marquee Fix */
[dir="rtl"] .trust-strip-track {
  animation: marquee-scroll-rtl 35s linear infinite;
}

@keyframes marquee-scroll-rtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(50% + 8px)); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==========================================================================
   Footer Contact Block Styles
   ========================================================================== */
.contact-inquiry-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
}

.contact-inquiry-title {
  color: var(--c-forest);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
  line-height: 1.4;
  letter-spacing: -0.1px;
}

[dir="rtl"] .contact-inquiry-title {
  font-family: 'Cairo', var(--font-arabic), sans-serif;
  letter-spacing: normal;
}

.contact-phone-block-clean {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--c-forest);
  padding: 12px 28px;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(6, 59, 41, 0.15);
  margin-top: 0;
  text-decoration: none;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  cursor: pointer;
  max-width: 320px;
  width: 100%;
  box-sizing: border-box;
}

.contact-phone-block-clean:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(6, 59, 41, 0.25);
  background-color: #0a4f38;
}

.contact-phone-block-clean svg {
  color: #fff;
  flex-shrink: 0;
}

.contact-phone-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  font-weight: 600;
}

.contact-phone-number {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  direction: ltr;
}

