/* ═══════════════════════════════════════════════════════
   ADDITIONS — Bilingual + Cosmetics + Pet Paradise
   ═══════════════════════════════════════════════════════ */

/* ─── LANGUAGE SYSTEM ─── */
.lang-en .ar { display: none !important; }
.lang-ar .en { display: none !important; }
body { /* default Arabic */ }

/* Lang toggle button */
.lang-btn {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 4px;
  border: 1.5px solid rgba(201,162,39,.4);
  color: var(--gold2); font-size: .76rem; font-weight: 800;
  letter-spacing: .08em; cursor: pointer;
  transition: .3s; font-family: 'Playfair Display', Georgia, serif;
  background: rgba(201,162,39,.06);
}
.lang-btn:hover { background: rgba(201,162,39,.15); border-color: var(--gold); color: var(--gold); }
.lang-btn svg { width: 15px; height: 15px; }

/* ─── LTR adjustments when English ─── */
.lang-en { direction: rtl; }
.lang-en .hdr .nav { direction: ltr; }
.lang-en .nav-ul { flex-direction: row; }
.lang-en .about-grid { direction: ltr; }
.lang-en .hero-content { direction: ltr; }
.lang-en .trust-inner { direction: ltr; }
.lang-en .con-grid { direction: ltr; }
.lang-en .footer .cont { direction: ltr; }

/* ─── SECTION DIVIDER ─── */
.sec-divider {
  display: flex; align-items: center; gap: 20px;
  max-width: 1280px; margin: 0 auto;
  padding: 0 clamp(18px,4vw,40px);
}
.sec-divider-line { flex: 1; height: 1px; background: var(--mid); }
.sec-divider-badge {
  font-size: .62rem; font-weight: 800; letter-spacing: .2em;
  color: var(--gtxt); text-transform: uppercase;
  font-family: 'Playfair Display', Georgia, serif;
  white-space: nowrap;
}

/* ─── RESPONSIVE additions ─── */
@media (max-width: 1024px) {
  .pet-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .pet-grid { grid-template-columns: 1fr; }
  .cosm-accent { display: none; }
}

/* ══════════════════════════════════════════════
   HERO BG SLIDESHOW
══════════════════════════════════════════════ */
.hero-bg-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
/* كل slide صورة كاملة */
.hbg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: none;
  transition: opacity 1.2s ease;
  will-change: opacity;
}

/* الصورة النشطة */
.hbg-slide.active {
  opacity: 1;
  transform: none;
}

/* الصورة اللي بتروح */
.hbg-slide.prev {
  opacity: 0;
  transform: none;
  transition: opacity 1s ease;
}

/* overlay داكن فوق الصور عشان الكلام يبان */
.hbg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      135deg,
      rgba(20, 21, 21, 0.82) 0%,
      rgba(11,40,46,0.65) 50%,
      rgba(11,40,46,0.78) 100%
    );
  z-index: 2;
}

/* dots مؤشر أسفل الهيرو */
.hbg-dots {
  /* الـ dots دلوقتي جوه hero-content تحت الأزرار — مش absolute */
  display: flex;
  gap: 7px;
  margin-top: 22px;
  z-index: 6;
  /* محاذاة حسب اتجاه اللغة */
  justify-content: flex-end;
}
.hbg-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transition: all .35s;
  cursor: pointer;
}
.hbg-dot.active {
  width: 22px;
  border-radius: 3px;
  background: var(--gold);
}

/* ══════════════════════════════════════════════
   MOBILE FIXES — شاملة للموبايل
══════════════════════════════════════════════ */

/* منع الـ overflow الأفقي نهائياً */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}
* { box-sizing: border-box; }

/* ── Hero — تصغير الخط على موبايل ── */
@media (max-width: 600px) {
  .hero-title {
    font-size: clamp(1.6rem, 8.5vw, 2.6rem) !important;
    max-width: 100% !important;
    word-break: break-word;
  }
  .hero-content {
    padding: 0 18px !important;
    padding-top: 70px !important;
  }
  .hero-sub {
    font-size: .88rem !important;
    margin-bottom: 28px !important;
  }
  .hero-badge {
    font-size: .6rem !important;
    padding: 7px 12px !important;
    max-width: calc(100vw - 36px) !important;
    white-space: normal !important;
    text-overflow: unset !important;
  }
  .hero-btns {
    flex-direction: column !important;
    gap: 10px !important;
  }
  .hero-btns .btn-gold,
  .hero-btns .btn-ghost {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px 20px !important;
  }
  .h-stat-wrap, .hero-stats { display: none !important; }
  .scroll-ind { display: none !important; }
}

/* ── Float Social Buttons — صغّرها على موبايل ── */
@media (max-width: 600px) {
  .float-btns {
    bottom: 16px !important;
    left: 10px !important;
    gap: 8px !important;
  }
  .fl-btn {
    max-width: 44px !important;
    border-radius: 50% !important;
  }
  .fl-ico {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
  }
  .fl-ico svg { width: 22px !important; height: 22px !important; }
  .fl-lbl { display: none !important; }
  /* لا تتمدد عند hover على موبايل */
  .fl-btn:hover { max-width: 44px !important; }
}

/* ── About section ── */
@media (max-width: 600px) {
  .about-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .av { height: clamp(240px, 60vw, 320px) !important; }
  .about-badge { bottom: -10px !important; left: -10px !important; }
}

/* ── Products grid ── */
@media (max-width: 600px) {
  .prod-grid { grid-template-columns: 1fr !important; }
  .pcard { margin: 0 !important; }
}

/* ── Partners marquee ── */
@media (max-width: 600px) {
  .plogo-card { width: 130px !important; height: 88px !important; padding: 14px !important; }
  .pmarquee-wrap::before,
  .pmarquee-wrap::after { width: 50px !important; }
}

/* ── Navbar mobile ── */
@media (max-width: 768px) {
  .hdr { padding: 0 16px !important; }
  .brand-name { font-size: .85rem !important; }
  .brand-sub  { font-size: .58rem !important; }
}

/* ── Section padding على موبايل ── */
@media (max-width: 600px) {
  .sec { padding: 52px 0 !important; }
  .cont { padding: 0 16px !important; }
  .sec-h { font-size: clamp(1.45rem, 6.5vw, 2rem) !important; }
}

/* ── Trust bar ── */
@media (max-width: 600px) {
  .trust-inner { overflow-x: auto; flex-wrap: nowrap !important; padding-bottom: 4px; }
  .ti { min-width: 140px; }
}

/* ── Capabilities ── */
@media (max-width: 600px) {
  .caps-grid { grid-template-columns: 1fr !important; }
  .cap { padding: 24px 18px !important; }
}

/* ── Nums/Stats ── */
@media (max-width: 600px) {
  .num-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
}

/* ── Hero BG dots — تحت الأزرار مباشرة ── */
@media (max-width: 600px) {
  .hbg-dots { margin-top: 16px !important; justify-content: center !important; }
}

/* ── Contact form ── */
@media (max-width: 600px) {
  .form-box { padding: 22px 16px !important; }
  .fg4 { grid-template-columns: 1fr !important; }
}

/* ══════════════════════════════════════════════
   HERO MOBILE — إصلاح شامل
══════════════════════════════════════════════ */

/* الـ hero bg slides — تغطية صح على موبايل */
@media (max-width: 768px) {
  .hero {
    min-height: 100svh !important;
    height: 100svh !important;
    align-items: flex-start !important;
    padding-top: 0 !important;
  }

  /* الصور في الخلفية — ضغّط المقياس */
  .hbg-slide {
    background-size: cover !important;
    background-position: center center !important;
    transform: scale(1) !important; /* إلغاء الـ zoom المبالغ */
  }
  .hbg-slide.active {
    transform: scale(1.03) !important; /* zoom خفيف بس */
  }

  /* محتوى الهيرو */
  .hero-content {
    padding: 0 16px !important;
    padding-top: 80px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* العنوان الرئيسي */
  .hero-title,
  .hero h1 {
    font-size: clamp(1.65rem, 7.5vw, 2.4rem) !important;
    line-height: 1.25 !important;
    max-width: 100% !important;
    word-break: break-word !important;
    letter-spacing: -.01em !important;
  }
  .hero h1 span,
  .hero-title span {
    white-space: normal !important;
    display: block !important;
  }

  /* السطر الذهبي */
  .ht2 {
    font-size: clamp(1.5rem, 7vw, 2.2rem) !important;
  }

  .hero-sub {
    font-size: .85rem !important;
    line-height: 1.75 !important;
    margin-bottom: 24px !important;
    max-width: 100% !important;
  }

  .hero-badge {
    font-size: .58rem !important;
    padding: 6px 10px !important;
    margin-bottom: 20px !important;
    max-width: calc(100vw - 32px) !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    line-height: 1.6 !important;
  }

  .hero-btns {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .btn-gold, .hero-btns .btn-ghost {
    width: 100% !important;
    justify-content: center !important;
    padding: 14px 16px !important;
    font-size: .85rem !important;
  }

  /* إخفاء عناصر مش ضرورية */
  .hero-stats, .h-stat-wrap { display: none !important; }
  .scroll-ind { display: none !important; }
  .since-stamp { display: none !important; }
  .hero-rings { display: none !important; }
  #hcv { display: none !important; }

  /* الـ dots تحت الأزرار */
  .hbg-dots {
    margin-top: 14px !important;
    justify-content: center !important;
    gap: 5px !important;
  }
  .hbg-dot { width: 5px !important; height: 5px !important; }
  .hbg-dot.active { width: 16px !important; }
}

/* ── الصورة الفارغة (image 1) — about section ── */
@media (max-width: 600px) {
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .about-visual, .av {
    width: 100% !important;
    height: clamp(220px, 55vw, 300px) !important;
    border-radius: 8px !important;
  }
  .about-visual img, .av img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
  /* منع الـ overflow من الـ badge */
  .about-badge {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    display: inline-block !important;
    margin-top: 12px !important;
  }
}

/* ── float social أصغر ── */
@media (max-width: 600px) {
  .float-btns {
    bottom: 12px !important;
    left: 8px !important;
    gap: 7px !important;
  }
  .fl-btn {
    max-width: 42px !important;
    height: 42px !important;
    width: 42px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
  }
  .fl-btn:hover { max-width: 42px !important; }
  .fl-ico {
    width: 42px !important; height: 42px !important; min-width: 42px !important;
  }
  .fl-ico svg { width: 20px !important; height: 20px !important; }
  .fl-lbl { display: none !important; }
}

/* ══════════════════════════════════════════════
   BUG FIXES — Header Mobile + About Image
══════════════════════════════════════════════ */

/* ── FIX 1: Header على الموبايل ── */
@media (max-width: 768px) {

  /* تصغير ارتفاع الـ nav بار */
  .nav {
    height: 68px !important;
    padding: 0 14px !important;
  }

  /* تصغير اللوجو */
  .logo-hex,
  .logo-hex img {
    width: 44px !important;
    height: 44px !important;
  }

  /* تقليل المسافة بين اللوجو وعناصر الـ nav */
  .logo {
    gap: 8px !important;
  }

  /* تصغير اسم الشركة */
  .logo-main {
    font-size: .78rem !important;
    letter-spacing: .08em !important;
  }

  /* تصغير tagline */
  .logo-sub {
    font-size: .55rem !important;
    letter-spacing: .12em !important;
    margin-top: 2px !important;
  }

  /* زر اللغة — أصغر وأكمش */
  .lang-btn {
    padding: 6px 10px !important;
    font-size: .65rem !important;
    gap: 4px !important;
    letter-spacing: .04em !important;
  }
  .lang-btn svg {
    width: 12px !important;
    height: 12px !important;
  }

  /* البرغر — حجم مناسب */
  .burger {
    width: 38px !important;
    height: 38px !important;
  }
}

/* ── FIX 2: About image على الموبايل ── */
@media (max-width: 1024px) {

  /* الـ grid يبقى عمود واحد والصورة أولاً */
  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }

  /* الـ visual container — ارتفاع ثابت ومناسب */
  .av {
    width: 100% !important;
    max-width: 100% !important;
    height: clamp(240px, 55vw, 380px) !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 12px !important;
  }

  /* الصورة نفسها — تملأ الـ container بشكل صح */
  .aimg {
    width: 100% !important;
    height: 100% !important;
    position: relative !important;
  }

  .factory-photo,
  .aimg img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }
  

  /* الـ badge — تحت الصورة مش فوقها */
  .about-badge {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 14px !important;
    border-radius: 8px !important;
  }

  /* إخفاء الـ corners الزخرفية على موبايل */
  .acorner, .acorner2 {
    display: none !important;
  }
}

/* على الشاشات الصغيرة جداً */
@media (max-width: 480px) {
  .av {
    height: clamp(200px, 60vw, 280px) !important;
  }

  /* الهيدر أضيق شوية */
  .nav {
    height: 60px !important;
    padding: 0 12px !important;
  }

  .logo-hex,
  .logo-hex img {
    width: 38px !important;
    height: 38px !important;
  }
}