/* ===== VARIABLES ===== */
:root {
  --brown-dark: #3D1F0A;
  --brown-mid: #6B3A1F;
  --brown-light: #A0522D;
  --orange: #E8621A;
  --orange-light: #F5894A;
  --green: #2D5A27;
  --green-light: #4A7C44;
  --beige: #F5E6C8;
  --beige-light: #FDF6E8;
  --cream: #FFFBF0;
  --text-dark: #1A0A00;
  --text-mid: #3D1F0A;
  --text-light: #7A5C3A;
  --white: #FFFFFF;
  --shadow: 0 8px 32px rgba(61,31,10,0.18);
  --shadow-sm: 0 2px 12px rgba(61,31,10,0.12);
  --radius: 16px;
  --radius-sm: 10px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
  direction: rtl;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--beige); }
::-webkit-scrollbar-thumb { background: var(--brown-light); border-radius: 3px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; right: 0; left: 0; z-index: 100;
  background: rgba(253,246,232,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(232,98,26,0.15);
  padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 20px rgba(61,31,10,0.1);
}
.nav-logo {
  font-family: 'Tajawal', sans-serif;
  font-weight: 800; font-size: 22px;
  color: var(--brown-dark);
  display: flex; align-items: center; gap: 8px;
}
.nav-logo .logo-icon { font-size: 26px; }
.nav-cta {
  background: var(--orange);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700; font-size: 14px;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(232,98,26,0.35);
}
.nav-cta:hover { background: var(--brown-light); transform: translateY(-1px); }

/* ===== DELIVERY BANNER ===== */
.delivery-banner {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: var(--white);
  text-align: center;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  margin-top: 72px;
  position: relative;
  overflow: hidden;
}
.delivery-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(255,255,255,0.04) 10px, rgba(255,255,255,0.04) 20px);
}
.delivery-banner span { position: relative; }

/* ===== HERO ===== */
.hero {
  min-height: 100svh;
  background: linear-gradient(160deg, var(--brown-dark) 0%, var(--brown-mid) 40%, #8B4513 100%);
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px 20px 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; max-width: 600px; margin: 0 auto; text-align: center; }
.hero-badge {
  display: inline-block;
  background: rgba(232,98,26,0.25);
  border: 1px solid rgba(232,98,26,0.5);
  color: var(--orange-light);
  padding: 6px 18px; border-radius: 50px;
  font-size: 13px; font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.hero-image-wrap {
  width: 260px; height: 260px;
  margin: 0 auto 30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,98,26,0.3) 0%, transparent 70%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  animation: float 4s ease-in-out infinite;
}
.hero-image-wrap::before {
  content: '';
  position: absolute; inset: -10px;
  border-radius: 50%;
  border: 2px dashed rgba(232,98,26,0.4);
  animation: spin 20s linear infinite;
}
.hero-emoji { font-size: 120px; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4)); }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
@keyframes spin { to{transform:rotate(360deg)} }
.hero h1 {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(36px, 8vw, 56px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.hero h1 .accent { color: var(--orange-light); }
.hero-desc {
  color: rgba(255,255,255,0.8);
  font-size: 17px; line-height: 1.8;
  margin-bottom: 30px;
}
.hero-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 36px;
}
.hero-tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  padding: 8px 16px; border-radius: 50px;
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 6px;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--orange) 0%, #FF7A2F 100%);
  color: var(--white);
  padding: 18px 44px;
  border-radius: 60px;
  font-size: 20px; font-weight: 800;
  box-shadow: 0 8px 30px rgba(232,98,26,0.5);
  transition: all 0.3s;
  border: 2px solid rgba(255,255,255,0.2);
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.hero-cta:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 14px 40px rgba(232,98,26,0.6); }
.hero-cta:active { transform: scale(0.98); }

/* ===== SECTION COMMON ===== */
.section { padding: 70px 20px; }
.section-title {
  font-family: 'Tajawal', sans-serif;
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 800;
  color: var(--brown-dark);
  text-align: center;
  margin-bottom: 10px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 50px;
  line-height: 1.8;
}
.divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  border-radius: 2px;
  margin: 12px auto 20px;
}

/* ===== FEATURES ===== */
.features { background: var(--beige-light); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  max-width: 700px; margin: 0 auto;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(160,82,45,0.1);
  transition: all 0.3s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; right: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-icon { font-size: 42px; margin-bottom: 12px; }
.feature-title { font-weight: 700; font-size: 15px; color: var(--brown-dark); line-height: 1.4; }

/* ===== HOW TO ===== */
.howto { background: var(--brown-dark); }
.howto .section-title { color: var(--white); }
.howto .section-subtitle { color: rgba(255,255,255,0.7); }
.howto .divider { background: linear-gradient(90deg, var(--orange), #FFB347); }
.steps {
  display: flex; flex-direction: column; gap: 20px;
  max-width: 500px; margin: 0 auto;
}
.step {
  display: flex; align-items: center; gap: 20px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 24px 22px;
  position: relative;
  transition: all 0.3s;
}
.step:hover { background: rgba(255,255,255,0.1); transform: translateX(-4px); }
.step-num {
  width: 52px; height: 52px; min-width: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), #FF7A2F);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Tajawal', sans-serif;
  font-size: 22px; font-weight: 800; color: var(--white);
  box-shadow: 0 4px 16px rgba(232,98,26,0.4);
}
.step-content h3 { color: var(--white); font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.step-content p { color: rgba(255,255,255,0.65); font-size: 14px; line-height: 1.6; }
.step-emoji { font-size: 36px; margin-right: auto; }

/* ===== ORDER ===== */
.order { background: var(--beige); }
.order-box {
  background: var(--white);
  border-radius: 24px;
  padding: 32px 24px;
  max-width: 520px; margin: 0 auto;
  box-shadow: 0 12px 50px rgba(61,31,10,0.15);
  border: 1px solid rgba(160,82,45,0.12);
}
.order-product {
  display: flex; align-items: center; gap: 16px;
  background: var(--beige-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
  border: 1px solid rgba(160,82,45,0.15);
}
.order-product-img { font-size: 52px; }
.order-product-name { font-family: 'Tajawal', sans-serif; font-size: 20px; font-weight: 800; color: var(--brown-dark); }
.order-product-sub { font-size: 13px; color: var(--text-light); margin-top: 3px; }
.qty-section { margin-bottom: 24px; }
.qty-label { font-weight: 700; font-size: 15px; color: var(--brown-dark); margin-bottom: 12px; }
.qty-control {
  display: flex; align-items: center; justify-content: center; gap: 20px;
}
.qty-btn {
  width: 46px; height: 46px; border-radius: 50%;
  font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.qty-btn.minus { background: var(--beige); color: var(--brown-mid); border: 2px solid rgba(160,82,45,0.2); }
.qty-btn.plus { background: var(--orange); color: var(--white); box-shadow: 0 4px 14px rgba(232,98,26,0.35); }
.qty-btn:hover { transform: scale(1.1); }
.qty-num {
  font-family: 'Tajawal', sans-serif;
  font-size: 36px; font-weight: 800;
  color: var(--brown-dark); min-width: 48px; text-align: center;
}
.offer-badge {
  display: none;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 14px; font-weight: 700;
  text-align: center; margin: 12px 0;
}
.offer-badge.show { display: block; animation: popIn 0.4s ease; }
@keyframes popIn { 0%{transform:scale(0.8);opacity:0} 100%{transform:scale(1);opacity:1} }
.price-breakdown {
  background: var(--beige-light);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
  border: 1px solid rgba(160,82,45,0.12);
}
.price-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 0;
  font-size: 15px; color: var(--text-light);
}
.price-row.total {
  border-top: 2px solid rgba(160,82,45,0.15);
  margin-top: 8px; padding-top: 12px;
  font-size: 18px; font-weight: 800; color: var(--brown-dark);
}
.price-row .val { font-weight: 600; color: var(--text-dark); }
.price-row.total .val { color: var(--orange); }
/* Form */
.form-title { font-weight: 700; font-size: 16px; color: var(--brown-dark); margin-bottom: 16px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--text-mid); margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 13px 16px;
  border: 2px solid rgba(160,82,45,0.15);
  border-radius: var(--radius-sm);
  font-family: 'Cairo', sans-serif;
  font-size: 15px; color: var(--text-dark);
  background: var(--white);
  transition: border-color 0.2s;
  direction: rtl;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,98,26,0.1);
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A0522D' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 14px center;
  padding-left: 36px;
}
.outside-area-note {
  display: none;
  background: linear-gradient(135deg, #FFF3CD, #FFE8A1);
  border: 1px solid #F0C040;
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 14px; color: #856404;
  margin-top: 8px;
}
.outside-area-note.show { display: block; }
.register-zone-btn {
  background: var(--green);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px; font-weight: 700;
  margin-top: 10px;
  width: 100%;
  transition: background 0.2s;
}
.register-zone-btn:hover { background: var(--green-light); }
.error-msg { font-size: 12px; color: #D32F2F; margin-top: 4px; display: none; }
.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: var(--white);
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 6px 24px rgba(37,211,102,0.35);
  transition: all 0.3s;
  margin-top: 20px;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(37,211,102,0.45); }

/* ===== REVIEWS ===== */
.reviews { background: var(--cream); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 860px; margin: 0 auto;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(160,82,45,0.08);
  position: relative;
  transition: all 0.3s;
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review-card::before { content: '"'; position: absolute; top: 16px; left: 20px; font-size: 60px; color: rgba(232,98,26,0.1); font-family: serif; line-height: 1; }
.stars { color: #FFB800; font-size: 18px; margin-bottom: 10px; }
.review-text { color: var(--text-mid); font-size: 15px; line-height: 1.8; margin-bottom: 16px; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brown-light), var(--orange));
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--white); font-weight: 700;
}
.reviewer-name { font-weight: 700; font-size: 14px; color: var(--brown-dark); }
.reviewer-loc { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* ===== FAQ ===== */
.faq { background: var(--beige-light); }
.faq-list { max-width: 620px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border-radius: 12px;
  margin-bottom: 15px;
  border: 1px solid rgba(160,82,45,0.1);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(61,31,10,0.05);
  transition: all 0.3s ease;
}
.faq-item.open {
  border-color: var(--orange);
  box-shadow: 0 8px 25px rgba(232,98,26,0.12);
}
.faq-q {
  padding: 20px 24px;
  font-weight: 700; font-size: 17px; color: var(--brown-dark);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  user-select: none;
  transition: all 0.3s;
}
.faq-item.open .faq-q {
  color: var(--orange); /* تغيير لون السؤال لما يتفتح */
}
.faq-icon { 
  font-size: 28px; 
  line-height: 1;
  transition: transform 0.4s ease; 
  color: var(--orange); 
  font-family: monospace; /* عشان الـ + والـ x يبقوا مظبوطين */
}
.faq-item.open .faq-icon { 
  transform: rotate(45deg); /* الـ + لما يلف 45 درجة بيبقى x */
  color: var(--orange);
}
.faq-a {
  max-height: 0; overflow: hidden;
  transition: all 0.4s ease;
  padding: 0 24px;
  color: #666; font-size: 15px; line-height: 1.8;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 24px 25px; }

/* ===== FOOTER ===== */
footer {
  background: var(--brown-dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 40px 20px;
  font-size: 14px; line-height: 2;
}
footer .footer-logo {
  font-family: 'Tajawal', sans-serif;
  font-size: 26px; font-weight: 800;
  color: var(--white); margin-bottom: 12px;
}
footer .footer-note { margin-top: 16px; font-size: 12px; color: rgba(255,255,255,0.4); }
footer a { color: var(--orange-light); }

/* ===== FLOATING ORDER BTN (mobile) ===== */
.float-order {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%);
  z-index: 99;
  background: linear-gradient(135deg, var(--orange) 0%, #FF7A2F 100%);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 60px;
  font-size: 17px; font-weight: 800;
  box-shadow: 0 8px 30px rgba(232,98,26,0.5);
  white-space: nowrap;
  transition: all 0.3s;
  display: flex; align-items: center; gap: 8px;
  border: 2px solid rgba(255,255,255,0.25);
}
.float-order:hover { transform: translateX(-50%) translateY(-3px); }
.float-order.hidden { opacity: 0; pointer-events: none; bottom: 0; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white); border-radius: 24px;
  padding: 36px 28px; max-width: 400px; width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform 0.3s;
  text-align: center;
}
.modal-overlay.show .modal { transform: translateY(0); }
.modal-icon { font-size: 64px; margin-bottom: 12px; }
.modal-title { font-family: 'Tajawal', sans-serif; font-size: 24px; font-weight: 800; color: var(--brown-dark); margin-bottom: 10px; }
.modal-text { font-size: 15px; color: var(--text-light); line-height: 1.8; margin-bottom: 24px; }
.modal-btn {
  background: var(--orange); color: var(--white);
  padding: 13px 30px; border-radius: 50px;
  font-size: 16px; font-weight: 700;
  transition: all 0.2s;
}
.modal-btn:hover { background: var(--brown-light); }

/* Zone registration modal */
.zone-modal-form .form-group input {
  margin-bottom: 0;
}

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: all 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
  .steps { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .step { flex: 1; min-width: 200px; max-width: 260px; flex-direction: column; text-align: center; }
  .step-emoji { margin: 10px auto 0; }
  .hero { padding: 80px 40px; }
  .hero-image-wrap { width: 320px; height: 320px; }
  .hero-emoji { font-size: 150px; }
}
