:root {
  --green: #1C4835;
  --green-light: #2a6b50;
  --brown: #A67B5B;
  --brown-light: #c49a7a;
  --white: #ffffff;
  --off-white: #f8f5f0;
  --gray: #6b7280;
  --light-gray: #f3f4f6;
  --border: #e5e7eb;
  --text: #1a1a1a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--white);
  direction: ltr;
}

body.rtl { direction: rtl; }

/* ── Header ── */
.top-bar {
  background: var(--green);
  color: white;
  text-align: center;
  padding: 8px 20px;
  font-size: 13px;
  letter-spacing: 0.5px;
}

header {
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-text {
  font-size: 26px;
  font-weight: 800;
  color: var(--green);
  font-style: italic;
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 10px;
  color: var(--brown);
  letter-spacing: 2px;
  text-transform: uppercase;
  display: block;
  margin-top: -4px;
}

nav { display: flex; gap: 28px; align-items: center; }
nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover, nav a.active { color: var(--green); }

.lang-btn {
  background: none;
  border: 1.5px solid var(--green);
  color: var(--green);
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}
.lang-btn:hover { background: var(--green); color: white; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 60%, #3d8a69 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.hero-inner { max-width: 700px; margin: 0 auto; position: relative; }

.hero-badge {
  display: inline-block;
  background: var(--brown);
  color: white;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero h1 span { color: var(--brown-light); }

.hero p {
  font-size: 18px;
  opacity: 0.88;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--brown);
  color: white;
}
.btn-primary:hover { background: var(--brown-light); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); }

/* ── Section ── */
section { padding: 60px 20px; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--green);
  margin-bottom: 10px;
}
.section-title p { color: var(--gray); font-size: 16px; }

.divider {
  width: 50px;
  height: 3px;
  background: var(--brown);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ── How It Works ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.step-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: 12px;
  background: var(--off-white);
  position: relative;
}

.step-num {
  width: 52px;
  height: 52px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0 auto 18px;
}

.step-card h3 { font-size: 17px; font-weight: 700; color: var(--green); margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--gray); line-height: 1.6; }

/* ── Products Grid ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: white;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.1); transform: translateY(-3px); }

.product-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}

.product-info { padding: 18px; }
.product-info h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.product-info p { font-size: 13px; color: var(--gray); margin-bottom: 14px; line-height: 1.5; }

.product-tag {
  display: inline-block;
  background: var(--off-white);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ── Order Form ── */
.order-section { background: var(--off-white); }

.order-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.2s;
  font-family: inherit;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
}

.upload-area {
  border: 2px dashed var(--border);
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--off-white);
}
.upload-area:hover { border-color: var(--green); background: #f0f8f4; }
.upload-area.dragging { border-color: var(--green); background: #e8f5ee; }

.upload-icon { font-size: 40px; margin-bottom: 10px; }
.upload-area p { color: var(--gray); font-size: 14px; }
.upload-area strong { color: var(--green); }

#preview-img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  margin-top: 14px;
  display: none;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.whatsapp-btn {
  width: 100%;
  background: #25D366;
  color: white;
  padding: 16px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.2s;
  margin-top: 8px;
}
.whatsapp-btn:hover { background: #1db954; }

/* ── Footer ── */
.promo-bar {
  background: var(--brown);
  color: white;
  padding: 16px 20px;
  text-align: center;
}
.promo-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
}
.promo-item { font-size: 14px; font-weight: 600; letter-spacing: 0.3px; }
.promo-item span { display: block; font-size: 11px; font-weight: 400; opacity: 0.85; }

footer {
  background: var(--green);
  color: rgba(255,255,255,0.85);
  padding: 48px 20px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo-text { color: white; font-size: 28px; }
.footer-brand .logo-sub { color: var(--brown-light); margin-bottom: 14px; }
.footer-brand p { font-size: 14px; line-height: 1.7; opacity: 0.8; }

.footer-col h4 { color: white; font-size: 15px; font-weight: 700; margin-bottom: 16px; letter-spacing: 0.3px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; transition: color 0.2s; }
.footer-col ul li a:hover { color: white; }

.footer-contact p { font-size: 14px; margin-bottom: 10px; opacity: 0.8; display: flex; align-items: center; gap: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 13px; opacity: 0.6; }

/* ── Responsive ── */
@media (max-width: 768px) {
  nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .order-form-wrapper { padding: 24px 18px; }
  .hero { padding: 60px 20px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .promo-bar-inner { flex-direction: column; gap: 10px; }
}

/* ── Mobile Menu ── */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: white;
  z-index: 200;
  flex-direction: column;
  padding: 80px 40px 40px;
  gap: 28px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 22px; font-weight: 600; color: var(--green); text-decoration: none; }
.mobile-nav-close {
  position: absolute;
  top: 20px; right: 20px;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--gray);
}

/* ── Products Page ── */
.page-hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
}
.page-hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 10px; }
.page-hero p { font-size: 16px; opacity: 0.85; }

.filter-bar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  position: sticky;
  top: 73px;
  z-index: 50;
}
.filter-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: white;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--gray);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--green);
  color: white;
  padding: 14px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
  z-index: 999;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* RTL overrides */
body.rtl .footer-contact p { flex-direction: row-reverse; }
body.rtl .btn { flex-direction: row-reverse; }
