/* Global Variables */
:root {
  --primary-dark: #2c3e50;
  --primary-medium: #4f6f52;
  --accent-warm: #d65f5f;
  --accent-gold: #e0b442;
  --light-background: #f8f8f8;
  --text-dark: #333;
  --text-light: #fff;
  --text-muted: #777;
  --border-color: #eee;
  --font-heading: 'Cairo', sans-serif; /* Changed to Cairo for Arabic */
  --font-body: 'Cairo', sans-serif;   /* Changed to Cairo for Arabic */
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  direction: rtl;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--light-background);
  line-height: 1.6;
  overflow-x: hidden;
  direction: rtl;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--primary-dark);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }

/* Button Styles */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--accent-warm);
  color: var(--text-light);
  box-shadow: 0 5px 15px rgba(214, 95, 95, 0.3);
}

.btn-primary:hover {
  background-color: #c05050;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(214, 95, 95, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-dark);
  border: 2px solid var(--primary-dark);
}

.btn-secondary:hover {
  background-color: var(--primary-dark);
  color: var(--text-light);
  transform: translateY(-3px);
}

/* Header */
header {
  background-color: white;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row-reverse;
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.logo span {
  color: var(--accent-warm);
}

.language-selector {
  display: flex;
  gap: 8px;
  margin: 0 20px;
}

.lang-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.lang-btn.active {
  background-color: var(--accent-warm);
  color: var(--text-light);
  border-color: var(--accent-warm);
}

.nav-links {
  display: flex;
  gap: 25px;
  flex-direction: row-reverse;
}

.nav-links a {
  color: var(--primary-dark);
  font-weight: 500;
  text-decoration: none;
  padding-bottom: 5px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-warm);
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: var(--primary-dark);
  cursor: pointer;
}

/* Hero Section */
.hero {
  background-color: var(--light-background);
  padding: 120px 0 100px;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 25px;
  line-height: 1.2;
  color: var(--primary-dark);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image-placeholder {
  background: linear-gradient(135deg, #87ceeb, #4682b4);
  height: 400px;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  padding: 20px;
  max-width: 500px;
  margin: 0 auto;
}

/* Section Styles */
.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  margin-bottom: 20px;
}

.section-title h2 span {
  color: var(--accent-warm);
}

.section-title p {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
}

/* About Section */
.about {
  background-color: var(--primary-medium);
  color: var(--text-light);
}

.about .section-title h2,
.about .section-title p {
  color: var(--text-light);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 60px;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  color: var(--text-light);
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-text p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
}

.about-features-list {
  display: grid;
  gap: 15px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
}

.feature-item i {
  color: var(--accent-gold);
  font-size: 1.5rem;
  width: 30px;
  text-align: center;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image-placeholder {
  background: linear-gradient(45deg, #8b4513, #daa520);
  height: 300px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  padding: 20px;
}

/* Features Section */
.features {
  background-color: white;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 60px;
}

.feature-card {
  background-color: var(--light-background);
  border-radius: 12px;
  padding: 30px 25px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 15px;
  background-color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-size: 1.8rem;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background-color: var(--accent-warm);
  color: var(--text-light);
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.clickable-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-preview-card {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-preview-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.blog-preview-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.blog-preview-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.blog-preview-content h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

.blog-preview-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-preview-card .btn-secondary {
  margin-top: auto;
  align-self: flex-start;
}

.app-details {
  background-color: var(--light-background);
}

.app-details-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.app-preview {
  flex: 1;
  text-align: center;
}

.app-mockup {
  background: linear-gradient(135deg, #333, #666);
  height: 500px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  max-width: 300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  padding: 40px 20px;
}

.app-info {
  flex: 1;
}

.app-info h2 {
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.app-info p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.app-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 30px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.stat-item i {
  color: var(--accent-warm);
  font-size: 1.5rem;
}

.stat-item p {
  margin: 0;
  font-size: 1rem;
  color: var(--text-dark);
}

.app-store-button {
  background: #000;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-align: center;
  display: inline-block;
  font-size: 0.9rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.app-store-button:hover {
  background: #333;
}

/* Download Section */
.download-section {
  background: linear-gradient(135deg, var(--primary-medium) 0%, var(--accent-gold) 100%);
  color: var(--text-light);
  text-align: center;
}

.download-section .section-title h2,
.download-section .section-title p {
  color: var(--text-light);
}

.newsletter-form {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px 0 20px;
}

.newsletter-form input[type="email"] {
  padding: 15px 20px;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  min-width: 300px;
  font-family: var(--font-body);
}

.newsletter-form input[type="email"]:focus {
  outline: none;
  box-shadow: 0 0 15px rgba(255,255,255,0.3);
}

.privacy-note {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Footer */
footer {
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding: 60px 0 30px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h3 {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-col p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding-right: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-warm);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  font-size: 1.5rem;
  color: var(--accent-gold);
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-warm);
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

/* SEO Section Styles */
.seo-section {
  padding: 80px 0;
  background-color: var(--light-background);
  color: var(--text-dark);
}

.seo-section .container {
  max-width: 900px;
}

.seo-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.2rem;
}

.seo-section h3 {
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-dark);
  font-size: 1.6rem;
}

.seo-section p {
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 1rem;
}

.seo-section ul {
  list-style: disc;
  padding-right: 25px;
  margin-bottom: 20px;
}

.seo-section li {
  margin-bottom: 10px;
}

.seo-section .faq-item {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.seo-section .faq-question {
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.seo-section .faq-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.seo-section .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.seo-section .faq-item.open .faq-answer {
  max-height: 200px;
}

.seo-section .faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* RTL Adjustments for Arabic */
.restaurant-details li i {
  margin-right: 15px;
  margin-left: 0;
}

.highlight-box {
  border-right: 5px solid var(--accent-gold);
  border-left: none;
}

/* Responsive Design */
@media (max-width: 992px) {
  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
  }

  .about-content {
    flex-direction: column;
  }

  .app-details-container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .app-stats {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
    align-items: center;
  }

  .newsletter-form input[type="email"] {
    width: 90%;
    min-width: unset;
  }

  .seo-section {
    padding: 50px 0;
  }

  .seo-section h2 {
    font-size: 1.8rem;
  }

  .seo-section h3 {
    font-size: 1.4rem;
  }
}
