:root {
  --primary: #c05621;
  --secondary: #e53e3e;
  --text: #333;
  --bg: #fff;
  --light-bg: #f8f9fa;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Language Selector */
.language-selector {
  position: fixed;
  top: 20px;
  left: 0px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  padding: 5px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  gap: 10px;
}

.language-selector select {
  padding: 6px 10px;
  border: 2px solid var(--primary);
  border-radius: 6px;
  background: white;
  color: var(--primary);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  outline: none;
}

.language-selector select:focus {
  box-shadow: 0 0 0 3px rgba(192, 86, 33, 0.2);
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  padding: 15px 0;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-left: 50px;
}

.logo-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

/* Navigation */
.nav {
  display: flex;
  list-style: none;
  gap: 25px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* Menu Toggle Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  gap: 4px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, rgba(192, 86, 33, 0.9), rgba(229, 62, 62, 0.9)),
              url('images/downlogo.png') center/cover; 
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  color: white;
  text-align: center;
  margin-top: 80px;
}

.hero .overlay {
  width: 100%;
  padding: 60px 0;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  line-height: 1.2;
}

.hero-text {
  font-size: 20px;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(192, 86, 33, 0.3);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #a74a1b;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(192, 86, 33, 0.4);
}

/* Hero Slider */
.hero-slider {
  margin-top: 50px;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.slider-track {
  display: flex;
  animation: slide 20s infinite linear;
  gap: 20px;
}

.slider-track img {
  width: 250px;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

@keyframes slide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Sections */
.menu-section,
.about-section,
.offers-section,
.contact-section {
  padding: 80px 0;
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: var(--primary);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

/* Menu Grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.menu-item {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.menu-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.menu-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.menu-item-content {
  padding: 20px;
}

.menu-item h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.menu-item p {
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.menu-item-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--secondary);
}

/* About Section */
.about-section {
  background: var(--light-bg);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

.restaurant-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0,0,0,0.1);
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  display: block;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: #666;
  font-weight: 600;
}

.about-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Offers Section */
.offers-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.offer-card {
  background: linear-gradient(135deg, #f8f9fa, #e9ecef);
  color: #333;
  padding: 30px;
  border-radius: 15px;
  text-align: right;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  border-left: 5px solid var(--primary);
}

.offer-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.offer-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--primary);
}

.offer-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

.offer-validity {
  font-style: italic;
  color: var(--secondary);
  margin-top: 10px;
  font-weight: 600;
}

.offer-price {
  margin-top: 20px;
  font-weight: bold;
}

.current-price {
  font-size: 1.5rem;
  color: var(--primary);
}

.old-price {
  text-decoration: line-through;
  color: #999;
  margin-right: 15px;
  font-size: 1.1rem;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-icon {
  font-size: 24px;
  margin-top: 5px;
}

.contact-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 5px;
}

.contact-item p {
  color: #666;
  line-height: 1.5;
}

/* Contact Form */
.contact-form {
  background: var(--light-bg);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.contact-form h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 25px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.site-footer {
  background: #2c3e50;
  color: white;
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h4 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.footer-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-link {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid #34495e;
  padding-top: 20px;
  text-align: center;
  color: #bdc3c7;
}

.view-all-container {
  text-align: center;
  margin-top: 40px;
}

.view-all-btn {
  background: var(--secondary);
  padding: 12px 25px;
  font-size: 16px;
  margin: 0 10px;
}

.view-all-btn:hover {
  background: #c53030;
}
/* تنسيق معاينة الصور */
.image-preview {
  margin-top: 15px;
  padding: 10px;
  border: 1px dashed #ddd;
  border-radius: 5px;
  text-align: center;
  background: #f9f9f9;
}

.image-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 5px;
}

.image-preview button {
  margin-top: 10px;
  padding: 5px 10px;
  background: var(--danger);
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
  .language-selector {
    top: 40px;
    left: 0px;
    padding: 5px;
    flex-direction: column;
  }
  
  .language-selector select {
    padding: 5px 8px;
    font-size: 10px;
  }

  .site-header {
    padding: 10px 0;
  }
  
  .site-header .container {
    gap: 15px;
  }

  .logo-text {
    font-size: 16px;
  }

  .logo-img {
    width: 40px;
    height: 40px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    gap: 15px;
  }

  .nav.active {
    display: flex;
  }

  .nav-link {
    padding: 10px 15px;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #eee;
  }

  .hero {
    margin-top: 70px;
    min-height: 80vh;
    padding: 40px 0;
  }

  .hero-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .hero-text {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .hero-slider {
    margin-top: 30px;
  }

  .slider-track img {
    width: 200px;
    height: 130px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .restaurant-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .menu-section,
  .about-section,
  .offers-section,
  .contact-section {
    padding: 50px 0;
  }
  
  .view-all-btn {
    display: block;
    margin: 10px auto;
    width: 80%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-text {
    font-size: 14px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .section-title {
    font-size: 24px;
  }

  .menu-item-content {
    padding: 15px;
  }

  .contact-form {
    padding: 20px;
  }

  .stat-number {
    font-size: 24px;
  }

  .offers-carousel {
    grid-template-columns: 1fr;
  }
}

/* RTL Support */
html[dir="rtl"] .language-selector {
  left: auto;
  right: 20px;
}

html[dir="rtl"] .nav {
  gap: 20px;
}

html[dir="rtl"] .logo {
  flex-direction: row-reverse;
}

html[dir="rtl"] .contact-item {
  flex-direction: row-reverse;
  text-align: right;
}

html[dir="rtl"] .footer-logo {
  flex-direction: row-reverse;
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Animation Classes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}
.menu-item img,
.item-image img,
.menu-item img {
  width: 100%;           
  height: 100%;        
  max-height: 1000px;   
  object-fit: cover; 
  display: block;
  margin: 0 auto;
  background: #f9f9f9;
  border-radius: 8px;
}

