/* =====================================================
   PAGE.CSS - DABYHA Front Page (Refactored)
   نظام تصميم حديث مع استجابة كاملة
   ===================================================== */

/* ------------------------------------------------ */
/* المتغيرات الخاصة بالصفحة الرئيسية فقط */
/* ------------------------------------------------ */
:root {
  --d-primary: #1a3b2f;
  --d-primary-dark: #0f2a21;
  --d-gold: #b8860b;
  --d-gold-dark: #9a6e08;
  --d-bg-soft: #faf9f7;
  --d-text: #1a1a1a;
  --d-text-light: #4a4a4a;
  --d-border: #e5e5e5;
  --d-radius-sm: 12px;
  --d-radius-md: 20px;
  --d-radius-lg: 28px;
  --d-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

/* ------------------------------------------------ */
/* الحاوية العامة والمسافات */
/* ------------------------------------------------ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}
.section-soft {
  background-color: var(--d-bg-soft);
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 48px 0; }
}

/* ------------------------------------------------ */
/* الطباعة */
/* ------------------------------------------------ */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--d-gold);
  background: rgba(184,134,11,0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 40px;
  margin-bottom: 1rem;
}
.section-title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--d-text);
}
.section-intro {
  font-size: 1rem;
  color: var(--d-text-light);
  max-width: 680px;
  margin: 0 auto;
}
.text-center { text-align: center; }

/* ------------------------------------------------ */
/* الأزرار */
/* ------------------------------------------------ */
.btn-primary-lg, .btn-outline-white, .btn-gold, .btn-outline, .btn-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary-lg {
  background: var(--d-primary);
  color: white;
}
.btn-primary-lg:hover {
  background: var(--d-primary-dark);
  transform: translateY(-2px);
}
.btn-outline-white {
  border: 1px solid white;
  color: white;
  background: transparent;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
}
.btn-gold {
  background: var(--d-gold);
  color: white;
}
.btn-gold:hover {
  background: var(--d-gold-dark);
}
.btn-outline {
  border: 1px solid var(--d-primary);
  color: var(--d-primary);
}
.btn-cart {
  background: #f0ede8;
  color: var(--d-primary);
  padding: 0.4rem 1.2rem;
  font-size: 0.85rem;
}

/* ------------------------------------------------ */
/* Hero Section */
/* ------------------------------------------------ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.6s ease;
}
.hero-slide-1 { background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), url('placeholder1.jpg'); }
.hero-slide-2 { background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)), url('placeholder2.jpg'); }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); }
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 2rem; }
.hero-eyebrow { font-size: 0.8rem; letter-spacing: 2px; background: rgba(255,255,255,0.2); display: inline-block; padding: 0.3rem 1rem; border-radius: 40px; margin-bottom: 1.5rem; }
.hero-title { font-size: clamp(2rem, 6vw, 4rem); margin-bottom: 1rem; }
.hero-subtitle { font-size: clamp(1rem, 2.5vw, 1.2rem); margin-bottom: 2rem; opacity: 0.9; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.hero-bottom { position: absolute; bottom: 2rem; left: 0; right: 0; display: flex; gap: 0.5rem; justify-content: center; z-index: 2; }
.hero-dot { width: 10px; height: 10px; background: rgba(255,255,255,0.5); border: none; border-radius: 50%; cursor: pointer; transition: all 0.2s; }
.hero-dot.active { background: white; transform: scale(1.3); }
@media (max-width: 768px) {
  .hero-ctas { flex-direction: column; align-items: center; gap: 0.75rem; }
  .btn-primary-lg, .btn-outline-white, .btn-gold { width: 100%; max-width: 260px; }
}

/* ------------------------------------------------ */
/* Trust Bar */
/* ------------------------------------------------ */
.trust-bar { background: white; border-bottom: 1px solid #eee; padding: 2rem 0; }
.trust-bar-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.trust-item { flex: 1; min-width: 180px; display: flex; align-items: center; gap: 1rem; }
.trust-icon { font-size: 1.8rem; background: #f5f2ed; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 60px; }
.trust-text h4 { font-size: 1rem; margin-bottom: 0.2rem; }
.trust-text p { font-size: 0.8rem; color: #666; margin: 0; }
@media (max-width: 768px) {
  .trust-bar-inner { flex-direction: column; align-items: center; text-align: center; }
  .trust-item { flex-direction: column; text-align: center; }
}

/* ------------------------------------------------ */
/* Proof & Farm Grid */
/* ------------------------------------------------ */
.proof-grid, .farm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.proof-img, .farm-img {
  background: #e8e2d8;
  min-height: 300px;
  border-radius: var(--d-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 768px) {
  .proof-grid, .farm-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
}
.badge {
  background: #eae7e0;
  padding: 0.25rem 0.75rem;
  border-radius: 40px;
  font-size: 0.75rem;
  display: inline-block;
  margin: 0.25rem;
}

/* ------------------------------------------------ */
/* Bento Grid (Categories) */
/* ------------------------------------------------ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-top: 2rem;
}
.bento-card {
  position: relative;
  border-radius: var(--d-radius-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #ddd;
}
.bento-inner {
  position: relative;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}
.bento-content {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  padding: 1.5rem;
  color: white;
}
.bento-eyebrow { font-size: 0.7rem; text-transform: uppercase; opacity: 0.8; }
.bento-title { font-size: 1.5rem; margin: 0.25rem 0; }
.bento-link { position: absolute; inset: 0; z-index: 2; text-indent: -9999px; }

/* ------------------------------------------------ */
/* Products Grid */
/* ------------------------------------------------ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.product-card {
  background: white;
  border-radius: var(--d-radius-sm);
  overflow: hidden;
  box-shadow: var(--d-shadow);
  transition: transform 0.2s;
}
.product-card:hover { transform: translateY(-5px); }
.product-img { display: block; aspect-ratio: 1/1; background: #f0ede8; }
.product-body { padding: 1.2rem; }
.product-name { font-size: 1.1rem; margin-bottom: 0.5rem; }
.product-micro { font-size: 0.8rem; color: #666; margin-bottom: 1rem; }
.product-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.product-price { font-weight: 700; font-size: 1.1rem; }

/* ------------------------------------------------ */
/* Why Grid & Process */
/* ------------------------------------------------ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.why-card {
  background: white;
  padding: 1.8rem;
  border-radius: var(--d-radius-sm);
  box-shadow: var(--d-shadow);
}
.why-number { font-size: 2.5rem; font-weight: 800; color: var(--d-gold); margin-bottom: 0.5rem; }
.why-title { font-size: 1.2rem; margin-bottom: 0.5rem; }
.why-desc { font-size: 0.9rem; color: var(--d-text-light); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
  margin-top: 2rem;
}
.process-circle { width: 80px; height: 80px; margin: 0 auto 1rem; background: #e6e0d4; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.process-num { font-size: 1.8rem; font-weight: 700; color: var(--d-primary); }
.process-title { font-size: 1rem; margin-bottom: 0.5rem; }
.process-desc { font-size: 0.8rem; color: #666; }
@media (max-width: 768px) { .process-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
@media (max-width: 480px) { .process-grid { grid-template-columns: 1fr; } }

/* ------------------------------------------------ */
/* B2B, Sensory, Final CTA */
/* ------------------------------------------------ */
.b2b, .sensory, .final-cta {
  background: var(--d-bg-soft);
  text-align: center;
  padding: 3rem 0;
}
.b2b-inner, .sensory-content, .final-cta-inner {
  max-width: 700px;
  margin: 0 auto;
}

/* ------------------------------------------------ */
/* ★★★★★ STATS BAR (الحل النهائي للهاتف) ★★★★★ */
/* ------------------------------------------------ */
.dby-stats-safe {
  background: var(--d-primary);
  color: white;
  padding: 3rem 0;
  text-align: center;
}
.dby-stats-safe__head { margin-bottom: 2rem; }
.dby-stats-safe__kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--d-gold);
  display: block;
  margin-bottom: 0.5rem;
}
.dby-stats-safe__title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  max-width: 600px;
  margin: 0 auto;
}

/* الأساس: 4 أعمدة على سطح المكتب */
.dby-stats-safe__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}
.dby-stats-safe__item { text-align: center; }
.dby-stats-safe__num {
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  display: block;
  color: var(--d-gold);
  margin-bottom: 0.5rem;
}
.dby-stats-safe__label {
  font-size: clamp(0.8rem, 3vw, 1rem);
  opacity: 0.9;
  display: block;
}

/* على الأجهزة اللوحية: عمودين */
@media (max-width: 768px) {
  .dby-stats-safe__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}
/* على الهواتف الصغيرة: عمود واحد */
@media (max-width: 480px) {
  .dby-stats-safe__grid {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
}

/* ------------------------------------------------ */
/* Testimonials */
/* ------------------------------------------------ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.t-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--d-radius-sm);
  box-shadow: var(--d-shadow);
}
.t-stars { color: var(--d-gold); margin-bottom: 1rem; letter-spacing: 2px; }
.t-text { font-size: 0.9rem; margin-bottom: 1rem; line-height: 1.6; }
.t-author { display: flex; align-items: center; gap: 0.8rem; }
.t-avatar { width: 40px; height: 40px; background: #f0ede8; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.t-name { font-weight: 700; font-size: 0.9rem; }
.t-location { font-size: 0.75rem; color: #888; }

/* ------------------------------------------------ */
/* Reveal Animation */
/* ------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}