/* ═══════════════════════════════════════════════════════════
   Al Arz Company - Main Stylesheet
   Colors: Green (#16a34a), Orange (#ea580c), Black (#000)
   ═══════════════════════════════════════════════════════════ */

:root {
  --green: #16a34a;
  --green-dark: #15803d;
  --green-light: #22c55e;
  --orange: #ea580c;
  --orange-dark: #c2410c;
  --orange-light: #f97316;
  --black: #000000;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --white: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4);
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Noto Kufi Arabic', sans-serif;
  background: var(--gray-950);
  color: var(--gray-300);
  line-height: 1.6;
  overflow-x: hidden;
}
body.rtl { font-family: 'Noto Kufi Arabic', 'Inter', sans-serif; direction: rtl; text-align: right; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius); font-weight: 600;
  font-size: 0.95rem; cursor: pointer; transition: all 0.3s; border: 2px solid transparent;
  text-align: center; justify-content: center;
}
.btn-primary { background: var(--green); color: #fff; border-color: var(--green); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(22,163,74,0.3); }
.btn-outline { background: transparent; color: var(--orange); border-color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; transform: translateY(-2px); }
.btn-outline-green { background: transparent; color: var(--green); border-color: var(--green); font-size: 0.85rem; }
.btn-outline-green:hover { background: var(--green); color: #fff; }
.btn-ghost-orange { background: transparent; color: var(--orange); border: none; font-size: 0.85rem; padding: 8px 16px; }
.btn-ghost-orange:hover { background: rgba(234,88,12,0.1); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* ─── Section ───────────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; font-weight: 500;
  background: rgba(22,163,74,0.15); color: var(--green-light); border: 1px solid rgba(22,163,74,0.3);
  margin-bottom: 1rem;
}
.section-badge.orange { background: rgba(234,88,12,0.15); color: var(--orange-light); border-color: rgba(234,88,12,0.3); }
.section-title { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 1rem; }
@media (min-width: 768px) { .section-title { font-size: 2.5rem; } }
.section-desc { color: var(--gray-400); max-width: 700px; margin: 0 auto; font-size: 1.05rem; }

/* ─── Header ────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(22,163,74,0.15);
  transition: all 0.3s;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 1rem;
}
.logo-wrap { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--orange); }
.logo-title { font-size: 1.15rem; font-weight: 700; color: #fff; }
.logo-subtitle { font-size: 0.7rem; color: var(--orange-light); margin-top: -2px; }

.main-nav { display: none; gap: 4px; }
@media (min-width: 1024px) { .main-nav { display: flex; } }
.nav-link {
  padding: 8px 14px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500;
  color: var(--gray-300); transition: all 0.3s;
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(22,163,74,0.2); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; }
.lang-switch a { color: var(--gray-400); font-weight: 500; transition: color 0.3s; }
.lang-switch a.active { color: var(--green-light); }
.lang-switch a:hover { color: #fff; }
.lang-switch span { color: var(--gray-600); }

.mobile-toggle {
  display: flex; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px;
}
.mobile-toggle span { width: 24px; height: 2px; background: var(--gray-300); transition: all 0.3s; border-radius: 2px; }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
@media (min-width: 1024px) { .mobile-toggle { display: none; } }

/* Mobile menu */
.main-nav.mobile-open {
  display: flex; flex-direction: column; position: absolute;
  top: 70px; left: 0; right: 0; background: rgba(0,0,0,0.97);
  padding: 1rem; border-bottom: 1px solid rgba(22,163,74,0.15);
  backdrop-filter: blur(12px);
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding-top: 70px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.5), rgba(0,0,0,0.85));
}
.hero-content { position: relative; z-index: 2; padding: 3rem 0; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 50px; font-size: 0.9rem;
  background: rgba(22,163,74,0.2); border: 1px solid rgba(22,163,74,0.3);
  color: var(--green-light); margin-bottom: 1.5rem;
}
.hero-title {
  font-size: 3rem; font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 1rem;
}
@media (min-width: 768px) { .hero-title { font-size: 4.5rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 5.5rem; } }
.hero-desc { font-size: 1.1rem; color: var(--gray-300); max-width: 600px; margin-bottom: 2rem; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; max-width: 500px; }
@media (min-width: 640px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.stat-item { display: flex; align-items: center; gap: 6px; color: #fff; font-size: 0.85rem; font-weight: 600; }
.stat-item svg { color: var(--orange-light); flex-shrink: 0; }

.scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: var(--gray-400); cursor: pointer; animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(10px); } }

/* ─── About ─────────────────────────────────────────────── */
.about { padding: 5rem 0; background: linear-gradient(to bottom, var(--black), var(--gray-950)); }
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-card {
  background: rgba(17,24,39,0.5); border: 1px solid var(--gray-800); border-radius: var(--radius);
  padding: 1.5rem; text-align: center; transition: all 0.3s;
}
.feature-card:hover { border-color: rgba(22,163,74,0.5); transform: translateY(-4px); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center;
  justify-content: center; margin: 0 auto 1rem; transition: all 0.3s;
}
.feature-icon.green { background: rgba(22,163,74,0.2); color: var(--green-light); }
.feature-icon.orange { background: rgba(234,88,12,0.2); color: var(--orange-light); }
.feature-card:hover .feature-icon.green { background: rgba(22,163,74,0.3); }
.feature-card:hover .feature-icon.orange { background: rgba(234,88,12,0.3); }
.feature-text { color: #fff; font-weight: 600; font-size: 0.95rem; }

/* ─── Products ──────────────────────────────────────────── */
.products-section { padding: 5rem 0; }
.products-section:nth-of-type(odd) { background: var(--gray-950); }
.products-section:nth-of-type(even) { background: linear-gradient(to bottom, var(--gray-950), var(--black)); }

.products-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .products-grid.grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .products-grid.grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .products-grid.grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .products-grid.grid-5 { grid-template-columns: repeat(5, 1fr); } }

.product-card {
  background: rgba(17,24,39,0.8); border: 1px solid var(--gray-800); border-radius: var(--radius);
  overflow: hidden; transition: all 0.3s; display: flex; flex-direction: column;
}
.product-card:hover { border-color: rgba(22,163,74,0.5); transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.product-img-wrap { position: relative; overflow: hidden; }
.product-img-wrap img { width: 100%; height: 200px; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-img-wrap img { transform: scale(1.1); }
.product-img-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.6), transparent); }
.product-badge {
  position: absolute; top: 12px; right: 12px; padding: 4px 10px; border-radius: 6px;
  font-size: 0.75rem; font-weight: 600; color: #fff;
}
body.rtl .product-badge { right: auto; left: 12px; }
.bg-orange { background: var(--orange); }
.bg-green { background: var(--green); }

.product-info { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.product-name { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.product-meta { margin-bottom: 0.75rem; flex: 1; }
.meta-row { display: flex; gap: 6px; margin-bottom: 4px; font-size: 0.85rem; }
.meta-label { font-weight: 600; white-space: nowrap; }
.meta-label.orange { color: var(--orange-light); }
.meta-label.green { color: var(--green-light); }
.meta-value { color: var(--gray-300); }

.product-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── Quote Section ─────────────────────────────────────── */
.quote-section { padding: 5rem 0; background: var(--black); position: relative; overflow: hidden; }
.quote-form-wrap { max-width: 800px; margin: 0 auto; }
.quote-form {
  background: rgba(17,24,39,0.5); border: 1px solid var(--gray-800); border-radius: var(--radius);
  padding: 2rem;
}
@media (min-width: 768px) { .quote-form { padding: 2.5rem; } }

.form-grid { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }

.form-group { margin-bottom: 1.25rem; }
.form-grid .form-group { margin-bottom: 0; }
.form-group label { display: block; color: var(--gray-300); font-size: 0.9rem; font-weight: 500; margin-bottom: 6px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 10px 14px; background: rgba(31,41,55,0.5); border: 1px solid var(--gray-700);
  border-radius: var(--radius-sm); color: #fff; font-size: 0.95rem;
  font-family: inherit; transition: all 0.3s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,163,74,0.2);
}
.form-group textarea { resize: vertical; }

.form-success {
  margin-top: 1rem; padding: 1rem; background: rgba(22,163,74,0.2);
  border: 1px solid rgba(22,163,74,0.3); border-radius: var(--radius);
  color: var(--green-light); text-align: center; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}

/* ─── Footer ────────────────────────────────────────────── */
.site-footer {
  background: var(--gray-950); border-top: 1px solid var(--gray-800); padding: 3rem 0 0;
}
.footer-grid { display: grid; gap: 2rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }

.footer-logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.footer-logo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--orange); }
.footer-logo-wrap h3 { font-size: 1.1rem; font-weight: 700; color: #fff; }
.footer-subtitle { font-size: 0.75rem; color: var(--orange-light); }
.footer-desc { color: var(--gray-400); font-size: 0.9rem; line-height: 1.7; }
.footer-links h4, .footer-contact h4 { color: #fff; font-weight: 600; margin-bottom: 1rem; }
.footer-links ul li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--gray-400); font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover { color: var(--green-light); }
.footer-contact ul li { margin-bottom: 0.75rem; }
.footer-contact a { display: flex; align-items: center; gap: 8px; color: var(--gray-400); font-size: 0.9rem; transition: color 0.3s; }
.footer-contact a:hover { color: var(--green-light); }
.footer-contact li { display: flex; align-items: center; gap: 8px; color: var(--gray-400); font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid var(--gray-800); padding: 1.5rem 0; text-align: center;
  color: var(--gray-600); font-size: 0.85rem;
}

/* ─── WhatsApp Float ────────────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 99;
  display: flex; align-items: center; gap: 8px;
  background: var(--green); color: #fff; padding: 12px 20px; border-radius: 50px;
  box-shadow: 0 8px 25px rgba(22,163,74,0.3); transition: all 0.3s;
  font-weight: 500; font-size: 0.9rem;
}
body.rtl .whatsapp-float { right: auto; left: 24px; }
.whatsapp-float:hover { background: var(--green-dark); transform: scale(1.05); box-shadow: 0 12px 35px rgba(22,163,74,0.4); }
.whatsapp-text { display: none; }
@media (min-width: 640px) { .whatsapp-text { display: inline; } }

/* ─── Product Detail ────────────────────────────────────── */
.product-detail { padding: 100px 0 4rem; }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 2rem; font-size: 0.9rem; color: var(--gray-400); flex-wrap: wrap; }
.breadcrumb a { color: var(--green-light); transition: color 0.3s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .current { color: var(--gray-300); }

.product-detail-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) { .product-detail-grid { grid-template-columns: 1fr 1fr; } }

.detail-img-wrap {
  border-radius: var(--radius); overflow: hidden; border: 2px solid rgba(22,163,74,0.3);
  box-shadow: var(--shadow-lg);
}
.detail-img-wrap img { width: 100%; height: 400px; object-fit: cover; }
@media (min-width: 768px) { .detail-img-wrap img { height: 500px; } }

.detail-badge { display: inline-block; padding: 4px 14px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; color: #fff; margin-bottom: 1rem; }
.detail-title { font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 1.5rem; }
@media (min-width: 768px) { .detail-title { font-size: 2.5rem; } }

.detail-description { margin-bottom: 1.5rem; }
.detail-description h3 { font-size: 1.1rem; font-weight: 600; color: #fff; margin-bottom: 0.5rem; }
.detail-description p { color: var(--gray-400); line-height: 1.7; }

.detail-specs { margin-bottom: 2rem; }
.spec-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--gray-800);
}
.spec-label { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9rem; }
.spec-label.orange { color: var(--orange-light); }
.spec-label.green { color: var(--green-light); }
.spec-value { color: var(--gray-300); font-size: 0.9rem; }

.detail-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.related-products { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--gray-800); }

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-950); }
::-webkit-scrollbar-thumb { background: var(--green); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* ─── Animations ────────────────────────────────────────── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeInUp 0.6s ease forwards; }

/* ─── Product Gallery ─────────────────────────────────────── */
.gallery-main { margin-bottom: 1rem; }

.gallery-thumbs {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 0;
}
.gallery-thumb {
  width: 70px; height: 70px; border-radius: 8px; overflow: hidden;
  border: 2px solid var(--gray-700); cursor: pointer; transition: all 0.3s;
  flex-shrink: 0;
}
.gallery-thumb:hover { border-color: var(--green); }
.gallery-thumb.active { border-color: var(--green); box-shadow: 0 0 0 2px rgba(22,163,74,0.3); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.gallery-count {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(0,0,0,0.7); color: #fff; padding: 3px 8px;
  border-radius: 6px; font-size: 0.75rem; display: flex;
  align-items: center; gap: 4px; backdrop-filter: blur(4px);
}
body.rtl .gallery-count { left: auto; right: 12px; }

/* Admin Gallery Grid */
.gallery-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px; margin-top: 1rem;
}
.gallery-item {
  position: relative; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--gray-700); aspect-ratio: 1;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-delete {
  position: absolute; top: 4px; left: 4px;
  background: rgba(239,68,68,0.9); color: #fff;
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; transition: all 0.3s;
}
.gallery-delete:hover { background: #ef4444; transform: scale(1.1); }
