/* ===================================
   Old Sanaa Restaurant & Cafe
   English LTR Stylesheet
   =================================== */

/* === CSS Variables === */
:root {
  /* Colors - Aldar Heritage Identity */
  --color-primary: #CCA43B;
  /* Gold */
  --color-primary-dark: #B08D2F;
  --color-primary-light: #E5C568;

  --color-secondary: #2C1810;
  /* Dark Coffee Brown */
  --color-accent: #E25822;
  /* Terracotta/Spice (Pop color) */

  --color-dark: #1A0F0A;
  /* Deep Warm Black */
  --color-light: #F9F5F0;
  /* Warm Beige/Cream */
  --color-white: #FFFFFF;

  --color-text: #4A3B32;
  /* Dark Brownish Grey */
  --color-text-light: #8D7F75;
  /* Warm Grey */
  --color-border: #E6DCCD;
  /* Beige Border */

  --color-success: #2E7D32;
  --color-error: #C62828;

  /* Typography */
  --font-primary: 'Outfit', 'Segoe UI', sans-serif;
  /* Body Text */
  --font-secondary: 'Cairo', sans-serif;
  /* Arabic */
  --font-display: 'Playfair Display', serif;
  /* Headings */

  /* Font Sizes */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3.5rem;
  /* Larger for Hero */

  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 5rem;

  /* Border Radius - Soft but distinct */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Shadows - Warm shadows */
  --shadow-sm: 0 1px 2px rgba(44, 24, 16, 0.05);
  --shadow-md: 0 4px 6px rgba(44, 24, 16, 0.08);
  --shadow-lg: 0 10px 15px rgba(44, 24, 16, 0.12);
  --shadow-xl: 0 20px 25px rgba(44, 24, 16, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;

  /* Container */
  --container-max: 1140px;
  /* Tighter container for better focus */
  --container-padding: var(--spacing-lg);

  /* Patterns */
  --pattern-heritage: repeating-linear-gradient(45deg, rgba(204, 164, 59, 0.03) 0px, rgba(204, 164, 59, 0.03) 1px, transparent 1px, transparent 10px);
}

/* === RTL Support === */
[dir="rtl"] {
  --font-primary: 'Cairo', sans-serif;
  --font-secondary: 'Outfit', sans-serif;
  --font-display: 'Cairo', sans-serif;
  text-align: right;
}

[dir="rtl"] .nav-right {
  margin-left: 0;
  margin-right: 20px;
}

[dir="rtl"] .header-cta.small-cta {
  margin-left: 0;
  margin-right: 20px;
}

/* Flip Icons/Arrows in RTL */
[dir="rtl"] .fa-chevron-right::before { content: "\f053"; } /* Left Chevron */
[dir="rtl"] .fa-arrow-right::before { content: "\f060"; }   /* Left Arrow */

/* Language Switcher Button */
.lang-switch-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: 'Cairo', sans-serif;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.lang-switch-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* === Reset & Base Styles === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-light);
  direction: ltr;
  text-align: left;
}

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--color-secondary);
  /* Headings are now Dark Brown */
}

h1 {
  font-size: var(--fs-5xl);
}

h2 {
  font-size: var(--fs-4xl);
}

h3 {
  font-size: var(--fs-3xl);
}

h4 {
  font-size: var(--fs-2xl);
}

h5 {
  font-size: var(--fs-xl);
}

h6 {
  font-size: var(--fs-lg);
}

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-light);
}

a:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === Container === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* === Header & Navigation === */
/* === LEGENDARY HEADER === */
/* === Header (Logo Left Layout Redesign) === */
.legendary-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 15px 0;
  transition: all 0.4s ease;
  background: rgba(44, 24, 16, 0.85);
  /* Dark Brown Translucent */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(204, 164, 59, 0.2);
  /* Faint Gold Border */
}

.legendary-header.scrolled {
  background: rgba(26, 15, 10, 0.98);
  /* Deep Black/Brown */
  padding: 10px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(204, 164, 59, 0.5);
  /* Stronger Gold Border */
}

.navbar-container.centered-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Push items to edges */
  position: relative;
  height: 80px;
}

/* Logo Left (Redesigned from Center) */
.logo-link.center-logo {
  position: relative;
  /* Remove absolute centering */
  left: auto;
  top: auto;
  transform: none;
  z-index: 2;
  order: 0;
  /* First item */
  margin-right: auto;
  /* Push everything else to the right */
}

.logo {
  height: 90px;
  /* Slightly larger for visibility */
  width: auto;
  transition: height 0.3s;
  /* Filter removed as logo is now colored or has correct background */
}

.legendary-header.scrolled .logo {
  height: 50px;
}

/* Nav Left & Right - Combined to Right side */
.nav-left,
.nav-right {
  display: flex;
  align-items: center;
}

.nav-left {
  order: 1;
}

.nav-right {
  order: 2;
  margin-left: 20px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: #fff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}

/* CTA in Header */
.header-cta.small-cta {
  padding: 8px 20px;
  font-size: 0.85rem;
  margin-left: 20px;
}

.nav-link.auth-link-profile {
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.nav-link.auth-link-profile:hover {
  background: var(--color-accent);
  color: var(--color-dark);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  /* Above mobile menu */
}

.mobile-toggle span {
  display: block;
  width: 30px;
  height: 3px;
  margin: 5px 0;
  background: var(--color-white);
  transition: 0.3s;
}

/* Mobile Nav Wrapper */
/* Legacy Fallback for Cached HTML */
.mobile-only-nav {
  display: none !important;
}

/* Mobile Nav Wrapper - Default Hidden (Desktop First Safety) */
.legendary-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100vh;
  background: rgba(20, 10, 5, 0.98);
  backdrop-filter: blur(15px);
  z-index: 999;
  padding-top: 100px;
  transition: 0.4s ease;
  box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
}

.legendary-mobile-menu.active {
  left: 0;
  display: block !important;
  z-index: 9999;
}

.nav-menu-mobile {
  list-style: none;
  padding: 0 40px;
}

.nav-menu-mobile li {
  margin-bottom: 25px;
}

.nav-menu-mobile .nav-link {
  font-size: 1.2rem;
  display: block;
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-toggle {
    display: block;
  }

  .navbar-container.centered-layout {
    justify-content: space-between;
  }

  /* Show Mobile Menu on Mobile Only */
  .legendary-mobile-menu {
    display: block;
  }
}


/* === Hero Section === */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-image:
    linear-gradient(rgba(44, 24, 16, 0.85), rgba(74, 44, 31, 0.75)),
    url('assets/images/hero-splash.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--color-white);
  padding: var(--spacing-3xl) var(--spacing-md);
  overflow: hidden;
}

/* Yemeni Architecture Pattern Overlay */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    repeating-linear-gradient(90deg,
      transparent,
      transparent 50px,
      rgba(232, 213, 183, 0.03) 50px,
      rgba(232, 213, 183, 0.03) 51px),
    repeating-linear-gradient(0deg,
      transparent,
      transparent 50px,
      rgba(232, 213, 183, 0.03) 50px,
      rgba(232, 213, 183, 0.03) 51px);
  pointer-events: none;
  z-index: 1;
}

/* Decorative Yemeni Building Silhouette */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 120px;
  background: linear-gradient(to top, rgba(74, 44, 31, 0.4) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: var(--fs-5xl);
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
  font-size: var(--fs-2xl);
  color: var(--color-accent);
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-display);
  /* Changed to Playfair */
}

.hero-tagline {
  font-size: var(--fs-xl);
  margin-bottom: var(--spacing-2xl);
  color: rgba(255, 255, 255, 0.9);
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--fs-lg);
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-secondary);
  /* Dark Brown */
  color: var(--color-primary);
  /* Gold Text */
  border: 1px solid var(--color-primary);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background-color: var(--color-primary);
  color: var(--color-secondary);
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(204, 164, 59, 0.4);
}

.btn-secondary {
  background-color: var(--color-primary);
  color: var(--color-secondary);
  font-weight: 700;
}

.btn-secondary:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* === Sections === */
.section {
  padding: var(--spacing-3xl) 0;
  position: relative;
}

.section:nth-child(even) {
  background-color: rgba(232, 213, 183, 0.15);
  /* Very subtle warm offset */
}

/* Subtle Texture Class */
.bg-texture {
  background-image: var(--pattern-heritage);
}

.section-title {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
  /* More breathing room */
  position: relative;
  padding-bottom: var(--spacing-lg);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: linear-gradient(to right, var(--color-primary), var(--color-accent), var(--color-primary));
  border-radius: var(--radius-full);
}

/* Yemeni Arch Decoration */
.section-title::before {
  content: '◆';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-accent);
  font-size: var(--fs-sm);
  z-index: 1;
}

/* === Grid System === */
.grid {
  display: grid;
  gap: var(--spacing-xl);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Form Grid - smaller gap */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .grid-2,
  .form-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* === Cards === */
/* === Cards (Redesigned for Premium Square Look) === */
.card-grid {
  display: grid;
  /* Desktop: ~3-4 cards per row, standardizing width */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
}

.card {
  background-color: var(--color-light);
  border-radius: 16px;
  /* Smoother radius */
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid rgba(230, 220, 205, 0.5);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--color-accent);
}

.card-image {
  width: 100%;
  height: 220px;
  /* Reduced from 250px for better aspect ratio */
  object-fit: cover;
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.35rem;
  /* Slightly smaller than XL for balance */
  margin-bottom: 5px;
  color: var(--color-secondary);
  /* Dark Brown title */
  font-weight: 700;
  line-height: 1.3;
}

.card-subtitle {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 15px;
  font-family: var(--font-secondary);
  font-style: italic;
}

.card-description {
  color: var(--color-text);
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
  /* Push footer down */
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 15px;
}

.card-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-accent);
  /* Orange/Red Price */
  margin-bottom: 0;
}

/* Premium "Add+" Button Style */
.card .btn-primary {
  background: #0ea5e9;
  /* Sky Blue like reference */
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: auto;
  min-width: 100px;
}

.card .btn-primary:hover {
  background: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(14, 165, 233, 0.4);
}

/* === Mobile App Optimization (Talabat Style) === */
@media (max-width: 600px) {

  /* 2-Column Grid Force */
  .card-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 10px !important;
  }

  /* Compact Card Restyling */
  .card {
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    border: 1px solid #f0f0f0 !important;
    transform: none !important;
    height: auto !important;
    /* Allow auto height on mobile */
  }

  .card:hover {
    transform: none !important;
  }

  /* Image */
  .card-image {
    height: 120px !important;
    border-bottom: 1px solid #f9f9f9;
  }

  /* Content */
  .card-content {
    padding: 10px !important;
  }

  /* Typography */
  .card-title {
    font-size: 0.95rem !important;
    margin-bottom: 2px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card-subtitle {
    display: none;
  }

  /* Hide Description on Mobile */
  .card-description {
    display: none !important;
  }

  /* Footer Re-layout */
  .card-footer {
    padding-top: 5px !important;
    border: none !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  /* Price & Action Row */
  .card-price {
    font-size: 1rem !important;
    width: 100%;
    order: 1;
  }

  /* Compact Button */
  .card .btn-primary {
    padding: 4px 0 !important;
    font-size: 0.8rem !important;
    border-radius: 6px !important;
    width: 100% !important;
    height: 30px;
    min-width: unset !important;
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Container Breathing Room */
  .container {
    padding: 0 10px !important;
  }
}

/* .card-price::before removed to allow dynamic currency */

/* === Menu Filters === */
.menu-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
}

.filter-btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  background-color: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-text);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.search-box {
  max-width: 500px;
  margin: 0 auto var(--spacing-2xl);
  position: relative;
}

.search-input {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--fs-base);
  font-family: var(--font-primary);
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
}

/* === Forms === */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--color-text);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--spacing-md);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-base);
  font-family: var(--font-primary);
  transition: border-color var(--transition-fast);
  background-color: var(--color-white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: var(--color-error);
  font-size: var(--fs-sm);
  margin-top: var(--spacing-xs);
  display: none;
}

.form-group.error .form-error {
  display: block;
}

.form-group.error .form-input,
.form-group.error .form-select,
.form-group.error .form-textarea {
  border-color: var(--color-error);
}

/* === Alert Messages === */
.alert {
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-lg);
  display: none;
}

.alert.show {
  display: block;
}

.alert-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

/* === LEGENDARY FOOTER STYLES === */
.legendary-footer {
  position: relative;
  background: url('assets/images/hero-bg.jpg') center/cover fixed no-repeat;
  color: #fff;
  padding-top: 100px;
  /* Space for floating box */
  padding-bottom: 30px;
  margin-top: 80px;
}

.footer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(15, 12, 10, 0.95) 0%, #0f0c0a 100%);
  z-index: 1;
}

/* Floating Newsletter */
.newsletter-floating {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1000px;
  background: linear-gradient(135deg, var(--color-primary), #2C1810);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.newsletter-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 30px;
  flex-wrap: wrap;
}

.newsletter-text h3 {
  color: var(--color-accent);
  margin-bottom: 5px;
  font-size: 1.5rem;
}

.newsletter-text p {
  margin: 0;
  color: #ccc;
}

.newsletter-form-inline {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 300px;
}

.newsletter-form-inline input {
  flex: 1;
  padding: 15px;
  border-radius: 50px;
  border: none;
  outline: none;
  font-family: inherit;
}

.newsletter-form-inline button {
  padding: 15px 30px;
  border-radius: 50px;
  border: none;
  background: var(--color-accent);
  color: #000;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
}

.newsletter-form-inline button:hover {
  transform: scale(1.05);
  background: #fff;
}

/* Main Grid */
.footer-main-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
  gap: 40px;
  margin-top: 60px;
  /* Push down below newsletter */
  margin-bottom: 60px;
}

/* Brand Column */
.footer-logo-lg {
  height: 90px;
  margin-bottom: 20px;
}

.brand-bio {
  color: #aaa;
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 25px;
}

.social-icons-lg {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.2rem;
  transition: all 0.3s;
  text-decoration: none;
}

.social-icon:hover {
  background: var(--color-accent);
  transform: translateY(-5px);
  border-color: var(--color-accent);
}

/* Modern Soft Header */
.legendary-header {
  background: rgba(255, 255, 255, 0.95);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.legendary-header.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
  color: var(--color-foreground);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.3s ease;
  padding: 8px 16px;
  border-radius: 20px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background-color: rgba(46, 125, 50, 0.05);
}

/* Column Titles */
.footer-title {
  font-size: 1.3rem;
  color: var(--color-accent);
  margin-bottom: 25px;
  position: relative;
  display: inline-block;
  font-family: var(--font-primary);
}

.footer-title::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--color-accent);
  margin-top: 10px;
}

/* Links */
.footer-links-list {
  list-style: none;
  padding: 0;
}

.footer-links-list li {
  margin-bottom: 12px;
}

.footer-links-list a {
  color: #ccc;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s;
  display: inline-block;
}

.footer-links-list a:hover {
  color: #fff;
  transform: translateX(5px);
}

/* Gallery Grid */
.mini-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gallery-item {
  width: 100%;
  aspect-ratio: 1;
  /* Square */
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-item:hover {
  transform: scale(1.05);
  z-index: 2;
  border-color: var(--color-accent);
}

/* Contact Details */
.contact-details-lg {
  list-style: none;
  padding: 0;
}

.contact-details-lg li {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}

.c-icon {
  font-size: 1.5rem;
}

.contact-details-lg strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.contact-details-lg span {
  color: #aaa;
  font-size: 0.9rem;
}

/* Bottom Bar */
.legendary-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  color: #777;
  font-size: 0.9rem;
}

.pay-tag {
  background: rgba(255, 255, 255, 0.05);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #ccc;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Footer */
@media (max-width: 900px) {
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
  }

  .newsletter-content {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form-inline {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .footer-main-grid {
    grid-template-columns: 1fr;
  }

  .legendary-bottom-bar {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-floating {
    width: 95%;
    padding: 25px;
  }
}

/* === Newsletter === */
.newsletter-form {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.newsletter-input {
  flex: 1;
  padding: var(--spacing-md);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
}

.newsletter-btn {
  padding: var(--spacing-md) var(--spacing-lg);
  background-color: var(--color-accent);
  color: var(--color-dark);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.newsletter-btn:hover {
  background-color: #B89850;
}

/* === Branch Cards === */
.branch-card {
  background-color: var(--color-white);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-xl);
}

.branch-card h3 {
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

.branch-info {
  margin-bottom: var(--spacing-md);
}

.branch-info strong {
  color: var(--color-primary);
  display: inline-block;
  min-width: 100px;
}

.map-container {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--spacing-md);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* === Responsive Design === */

/* Tablet (768px) */
/* === Legacy Responsive Code Removed === */
/* New responsive behavior is handled by main header styles above */
@media (max-width: 768px) {

  /* Only keeping typography and grid adjustments if needed, 
     but removing nav-menu manipulation */
  :root {
    --fs-5xl: 2.25rem;
    --fs-4xl: 1.875rem;
    --fs-3xl: 1.5rem;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .hero {
    min-height: 500px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}


/* Mobile (480px) */
/* Mobile (480px) */
@media (max-width: 480px) {
  :root {
    --fs-5xl: 2rem;
    /* Smaller Main Heading */
    --fs-4xl: 1.75rem;
    /* Smaller Section Heading */
    --fs-3xl: 1.5rem;
    --spacing-3xl: 3rem;
    /* Reduce huge vertical gaps */
    --spacing-2xl: 2rem;
    --container-padding: 1.25rem;
    /* Slightly more side padding */
  }

  /* Typography Adjustments */
  h1 {
    margin-bottom: 0.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-tagline {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  /* Section Spacing */
  .section {
    padding: var(--spacing-2xl) 0;
  }

  .section-title {
    margin-bottom: 1.5rem;
  }

  /* Grid Layouts */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Hero Height */
  .hero {
    min-height: 450px;
    /* Adjust height */
    padding: 4rem 1rem;
    background-attachment: scroll;
    /* Fix background attachment on mobile */
  }

  /* Menu Filters - Horizontal Scroll instead of stack */
  .menu-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 0.9rem;
  }

  /* Form Usability */
  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px;
    /* Prevent iOS zoom */
    padding: 12px;
    /* Larger touch target */
  }

  .btn {
    width: 100%;
    /* Full width buttons on mobile */
    padding: 12px;
  }

  /* Footer Alignment */
  .footer-content {
    text-align: center;
    gap: 2rem;
  }

  .social-links {
    justify-content: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .filter-btn {
    width: 100%;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-btn {
    width: 100%;
  }
}

/* Small Mobile (320px) */
@media (max-width: 320px) {
  :root {
    --fs-5xl: 1.5rem;
    --fs-4xl: 1.25rem;
  }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
  :root {
    --container-max: 1400px;
  }
}

/* === Utility Classes === */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-left {
  text-align: left;
}

.mt-sm {
  margin-top: var(--spacing-sm);
}

.mt-md {
  margin-top: var(--spacing-md);
}

.mt-lg {
  margin-top: var(--spacing-lg);
}

.mt-xl {
  margin-top: var(--spacing-xl);
}

.mb-sm {
  margin-bottom: var(--spacing-sm);
}

.mb-md {
  margin-bottom: var(--spacing-md);
}

.mb-lg {
  margin-bottom: var(--spacing-lg);
}

.mb-xl {
  margin-bottom: var(--spacing-xl);
}

.hidden {
  display: none;
}

.visible {
  display: block;
}

/* === Accessibility === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* === Print Styles === */
@media print {

  .header,
  .footer,
  .btn,
  .mobile-menu-toggle {
    display: none;
  }

  body {
    background-color: white;
    color: black;
  }
}

/* ===================================
   RTL SUPPORT (Arabic Mode)
   =================================== */
[dir="rtl"] body {
  direction: rtl;
  text-align: right;
  font-family: 'Cairo', sans-serif;
}

[dir="rtl"] .nav-menu {
  padding: 0;
}

[dir="rtl"] .nav-right {
  margin-left: 0;
  margin-right: 20px;
}

[dir="rtl"] .logo-link.center-logo {
  margin-right: 0;
  margin-left: auto;
}

[dir="rtl"] .header-cta.small-cta {
  margin-left: 0;
  margin-right: 20px;
}

/* Flip margins for icons */
[dir="rtl"] .service-icon,
[dir="rtl"] .c-icon {
  margin-right: 0;
  margin-left: 10px;
}

/* Flip absolute positioning for section titles */
[dir="rtl"] .section-title::after,
[dir="rtl"] .section-title::before {
  left: 50%;
  transform: translateX(50%);
}

/* Footer specific */
[dir="rtl"] .footer-col {
  text-align: right;
}

[dir="rtl"] .contact-details-lg li {
  padding-left: 0;
  padding-right: 0;
}

[dir="rtl"] .contact-details-lg .c-icon {
  margin-right: 0;
  margin-left: 15px;
}

/* Form Styles */
[dir="rtl"] .form-label {
  text-align: right;
}

[dir="rtl"] .form-input,
[dir="rtl"] .form-select,
[dir="rtl"] .form-textarea {
  text-align: right;
}

/* Featured Badge */
[dir="rtl"] .package-card.featured .most-popular-badge {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

/* Card Price */
[dir="rtl"] .card-price {
  direction: ltr;
  /* Keep numbers LTR or allow partial RTL */
  text-align: right;
}

[dir="rtl"] .card-price::before {
  content: '';
  /* Remove English prefix override if handled in JS/Translation */
  display: none;
}

[dir="rtl"] .card-price::after {
  content: ' ر.ي';
}