/* ================= المتغيرات والإعدادات العامة ================= */
:root {
  --primary: #e63946;       /* أحمر شهي للبيتزا */
  --primary-dark: #c1121f;
  --secondary: #f4a261;     /* برتقالي دافئ */
  --dark: #1d1e22;
  --gray: #6c757d;
  --light: #f8f9fa;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--light);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-title {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.section-title span {
  color: var(--primary);
}

/* ================= الأزرار ================= */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--white);
  color: var(--dark);
}

.btn-block {
  width: 100%;
  text-align: center;
}

/* ================= شريط التنقل (Navbar) ================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
  background: rgba(29, 30, 34, 0.85);
  backdrop-filter: blur(8px);
}

.navbar.scrolled {
  background: var(--dark);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--secondary);
}

.cart-btn {
  background: var(--secondary);
  color: var(--dark);
  border: none;
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.cart-btn:hover {
  transform: scale(1.05);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
}

/* ================= القسم الرئيسي (Hero) ================= */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: url('https://images.unsplash.com/photo-1513104890138-7c749659a591?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.badge {
  display: inline-block;
  background: rgba(244, 162, 97, 0.2);
  border: 1px solid var(--secondary);
  color: var(--secondary);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.hero h1 {
  font-size: 3.2rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--secondary);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================= من نحن (About) ================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-features {
  list-style: none;
  margin-top: 20px;
}

.about-features li {
  margin-bottom: 12px;
  font-weight: 500;
}

/* ================= المنيو الإلكتروني (Menu) ================= */
.menu-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 10px 22px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.menu-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.menu-card:hover {
  transform: translateY(-8px);
}

.menu-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.menu-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.menu-card-title {
  font-size: 1.2rem;
  font-weight: bold;
}

.menu-card-price {
  background: #fff0f1;
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 800;
}

.menu-card-desc {
  color: var(--gray);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.add-to-cart-btn {
  width: 100%;
  padding: 10px;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: var(--transition);
}

.add-to-cart-btn:hover {
  background: var(--primary);
}

/* ================= معرض الصور (Gallery) ================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius);
  height: 250px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* ================= آراء العملاء (Reviews) ================= */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.review-card {
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.review-card .stars {
  margin-bottom: 10px;
}

.review-card p {
  color: var(--gray);
  margin-bottom: 15px;
  font-style: italic;
}

/* ================= تواصل معنا (Contact) ================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.info-item {
  margin-top: 18px;
  font-size: 1.05rem;
}

.contact-form {
  background: var(--light);
  padding: 30px;
  border-radius: var(--radius);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
}

.error-msg {
  color: var(--primary);
  font-size: 0.85rem;
}

.form-success {
  margin-top: 15px;
  color: #2a9d8f;
  font-weight: bold;
  text-align: center;
}

/* ================= نافذة السلة (Cart Modal) ================= */
.cart-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: flex-end;
  z-index: 2000;
}

.cart-modal.open {
  display: flex;
}

.cart-content {
  background: var(--white);
  width: 100%;
  max-width: 400px;
  height: 100%;
  padding: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.close-cart {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 15px 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.cart-total {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 15px;
}

/* ================= التذييل (Footer) ================= */
.footer {
  background: var(--dark);
  color: var(--white);
  padding-top: 50px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 30px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--secondary);
}

.footer-bottom {
  text-align: center;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #aaa;
}

/* ================= حركات الظهور عند التمرير ================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ================= التجاوب مع الشاشات الصغيرة ================= */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: var(--dark);
    flex-direction: column;
    padding: 20px;
    display: none;
    text-align: center;
  }

  .nav-links.active {
    display: flex;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}