/* =====================================================================
   vDesign brand + RTL override layer for the Antra template
   Loaded AFTER main.css so it wins the cascade.
   - Brand: Tajawal font + vDesign gold (#B4946E)
   - RTL fixes for the components used across the marketing pages
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* ---------- Brand tokens ---------- */
:root{
  --tl-ff-body: 'Tajawal', sans-serif;
  --tl-ff-heading: 'Tajawal', sans-serif;
  --tl-ff-p: 'Tajawal', sans-serif;
  --tl-color-theme-primary: #B4946E;   /* vDesign warm gold */
  --vd-gold: #B4946E;
  --vd-gold-soft: #C9AD8B;
  --vd-dark: #15110d;                   /* deep warm dark */
  --vd-dark-2: #1d1813;
}

body{ font-family: var(--tl-ff-body); }
h1,h2,h3,h4,h5,h6{ font-family: var(--tl-ff-heading); font-weight: 700; }
.section-title{ font-weight: 800; }
.sub-heading{ font-weight: 700; }

/* Arabic: kill letter-spacing / uppercase that break Arabic shaping */
[dir="rtl"] .sub-heading,
[dir="rtl"] .section-title,
[dir="rtl"] .tl-primary-btn,
[dir="rtl"] .header-btn,
[dir="rtl"] .mobile-menu-items ul li a{
  letter-spacing: 0 !important;
  text-transform: none !important;
}
[dir="rtl"] body{ line-height: 1.7; }

/* ---------- Header: solid dark, white nav, gold CTA ---------- */
.header{ background-color: var(--vd-dark); position: fixed; }
.header.sticky-active{
  background-color: var(--vd-dark);
  box-shadow: 0 10px 34px rgba(0,0,0,.32);
}
.primary-header-inner{ padding: 16px 0; }

.vd-logo-text{
  font-family: var(--tl-ff-heading);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  color: #fff;
  letter-spacing: .5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.vd-logo-text .dot{ color: var(--vd-gold); }
.vd-logo-text .vd-badge{
  height: 40px; width: 40px; border-radius: 11px; object-fit: cover;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

.header .mobile-menu-items > ul > li > a{ color: #ffffff; font-size: 16px; }
.header .mobile-menu-items > ul > li > a:hover,
.header .mobile-menu-items > ul > li.active > a{ color: var(--vd-gold); }
.header .mobile-menu-items ul ul li a{ color: #222; }

.header-btn,
.header-btn:hover{
  background-color: var(--vd-gold);
  color: #fff;
  border-radius: 100px;
  padding: 14px 26px;
  display: inline-flex !important;
}
@media (max-width: 991px){ .header-btn{ display: none !important; } }

/* keep the hero clear of the now-fixed header */
.hero-section-2{ padding-top: 150px; }

/* ---------- Buttons ---------- */
.tl-primary-btn{ font-weight: 600; }

/* ---------- RTL component fixes ---------- */
/* sub-heading pill: dot sits on the start side */
[dir="rtl"] .sub-heading{ padding: 7px 28px 7px 19px; }
[dir="rtl"] .sub-heading:before{ left: auto; right: 15px; }

/* primary button: icon after text on the start side */
[dir="rtl"] .tl-primary-btn{ padding: 10px 25px 10px 15px; }
[dir="rtl"] .tl-primary-btn .icon{ margin-left: 0; margin-right: 10px; }
[dir="rtl"] .tl-primary-btn i{ transform: rotate(45deg); }

/* feature list pulled to the start edge */
[dir="rtl"] .feature-item-list.feature-item-list-1{ margin-left: 0; margin-right: auto; }

/* header contact icon spacing already uses column-gap (RTL-safe) */

/* ---------- vDesign helper sections (how-it-works / roles / app CTA) ---------- */
.vd-section{ padding: 110px 0; }
.vd-dark-section{ background: var(--vd-dark); color: #d8d2c8; }
.vd-dark-section .section-title{ color: #fff; }
.vd-dark-section .section-title span{ color: var(--vd-gold); }

.vd-step{
  background: #fff; border: 1px solid var(--tl-color-border-1);
  border-radius: 18px; padding: 34px 28px; height: 100%;
  transition: all .3s ease;
}
.vd-step:hover{ transform: translateY(-6px); box-shadow: 0 24px 50px rgba(0,0,0,.10); border-color: var(--vd-gold); }
.vd-step .num{
  height: 54px; width: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: rgba(180,148,110,.12); color: var(--vd-gold); font-size: 22px; font-weight: 800; margin-bottom: 20px;
}
.vd-step h3{ font-size: 22px; margin-bottom: 10px; }
.vd-step p{ margin-bottom: 0; }

.vd-role-card{
  background: var(--vd-dark-2); border: 1px solid rgba(255,255,255,.08); border-radius: 18px;
  padding: 34px 28px; height: 100%; color: #cfc8bc; transition: all .3s ease;
}
.vd-role-card:hover{ border-color: var(--vd-gold); transform: translateY(-6px); }
.vd-role-card .ic{ font-size: 30px; color: var(--vd-gold); margin-bottom: 18px; }
.vd-role-card h3{ color: #fff; font-size: 22px; margin-bottom: 10px; }

.vd-app-cta{
  background: linear-gradient(120deg, var(--vd-dark), #2a221a);
  border-radius: 26px; padding: 70px 50px; color: #fff; overflow: hidden; position: relative;
}
.vd-app-cta .section-title{ color: #fff; }
.vd-app-cta .section-title span{ color: var(--vd-gold); }
.vd-store-btn{
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: #15110d; border-radius: 14px; padding: 12px 22px; font-weight: 700;
  transition: all .3s ease;
}
.vd-store-btn:hover{ background: var(--vd-gold); color: #fff; }
.vd-store-btn i{ font-size: 26px; }

/* Legal pages */
.vd-legal{ background: #f6f6f6; padding: 60px 0 100px; }
.vd-legal .legal-card{
  background: #fff; border: 1px solid var(--tl-color-border-1); border-radius: 20px;
  padding: 50px; max-width: 920px; margin: 0 auto; box-shadow: 0 20px 50px rgba(0,0,0,.04);
}
.vd-legal h1{ font-size: 40px; margin-bottom: 8px; }
.vd-legal .updated{ color: var(--vd-gold); font-weight: 700; margin-bottom: 30px; display: block; }
.vd-legal h2{ font-size: 24px; margin: 34px 0 12px; padding-top: 18px; border-top: 1px solid var(--tl-color-border-1); }
.vd-legal h2:first-of-type{ border-top: none; padding-top: 0; }
.vd-legal p, .vd-legal li{ color: #4D4D52; font-size: 16.5px; line-height: 1.9; }
.vd-legal ul{ padding-right: 22px; padding-left: 0; list-style: disc; }
[dir="rtl"] .vd-legal ul{ padding-right: 22px; padding-left: 0; }
.vd-legal .note-box{
  background: rgba(180,148,110,.08); border: 1px solid rgba(180,148,110,.3);
  border-radius: 14px; padding: 20px 24px; margin: 24px 0;
}

/* Simple page-hero (breadcrumb) used by inner pages */
.vd-page-hero{
  background: var(--vd-dark); color: #fff; padding: 170px 0 80px; text-align: center; position: relative;
}
.vd-page-hero h1{ color: #fff; font-size: 56px; margin-bottom: 10px; }
.vd-page-hero .crumb{ color: var(--vd-gold-soft); }
.vd-page-hero .crumb a{ color: #cfc8bc; }

/* Footer brand text */
.footer-text span, .counter-text span, .skill-text, .preloader .site-name span{ text-transform: none; }

/* ---------- Horizontal-overflow guards + mobile typography ---------- */
html, body{ overflow-x: hidden; max-width: 100%; }
#antra-smooth-wrapper, #antra-smooth-content{ overflow-x: clip; max-width: 100%; }
.counter-text, .footer-text, .skill-text{ overflow: hidden; max-width: 100vw; pointer-events: none; }
img{ height: auto; }

@media (max-width: 991px){
  .section-title{ font-size: 44px !important; line-height: 1.25; }
  .hero-section-2 .section-title{ font-size: 46px !important; }
  .vd-page-hero h1{ font-size: 44px !important; }
}
@media (max-width: 767px){
  .section-title{ font-size: 32px !important; line-height: 1.3; }
  .hero-section-2 .section-title{ font-size: 34px !important; }
  .vd-page-hero{ padding: 140px 0 56px; }
  .vd-page-hero h1{ font-size: 32px !important; }
  h1{ font-size: 32px !important; }
  h2{ font-size: 28px !important; }
  .vd-section{ padding: 64px 0; }
  /* desktop-tuned hard breaks hurt on small screens */
  .hero-content-left p br,
  .section-heading p br,
  .section-title br,
  .feature-item-content p br,
  .vd-app-cta p br{ display: none; }
  .vd-app-cta{ padding: 40px 22px; }
  .vd-legal .legal-card{ padding: 28px 20px; }
  .counter-text span, .footer-text span{ font-size: 90px; }
}

/* ============ أزرار تحميل التطبيق الأنيقة (App Store / Google Play) ============ */
.vd-store-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.vd-dl-badge{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  padding: 10px 20px;
  background: var(--vd-dark);
  color: #fff;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 16px;
  transition: transform .3s ease, background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.vd-dl-badge:hover{
  background: var(--vd-gold);
  border-color: var(--vd-gold);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,.32);
}
.vd-dl-badge i{ font-size: 30px; line-height: 1; }
.vd-dl-badge .vd-dl-text{
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: right;
}
.vd-dl-badge .vd-dl-text small{ font-size: 11px; opacity: .85; font-weight: 500; }
.vd-dl-badge .vd-dl-text b{ font-size: 17px; font-weight: 700; letter-spacing: .3px; }
@media (max-width: 575px){
  .vd-dl-badge{ min-width: 0; flex: 1 1 46%; justify-content: center; padding: 10px 14px; }
}

/* ============ تحسينات الرسبونسيف للجوال ============ */
@media (max-width: 991px){
  /* لا تمرير أفقي مهما طفح عنصر */
  html, body{ overflow-x: hidden; }
  img, video, table{ max-width: 100%; height: auto; }
}
@media (max-width: 767px){
  /* الهيرو: مسافات أنسب وارتفاع صورة أقل */
  .hero-wrap-2{ padding-top: 120px !important; }
  .hero-wrap-2 .hero-content-2{ margin-bottom: 44px !important; }
  .hero-wrap-2 .hero-bottom-img{ height: 320px !important; }
  /* الزر الأساسي بعرض كامل = هدف لمس مريح */
  .hero-content-left .hero-btn .tl-primary-btn{ width: 100%; justify-content: center; }
  .hero-content-left .hero-btn{ width: 100%; }
  .vd-store-badges{ width: 100%; }
  /* قسم تحميل التطبيق: توسيط المحتوى والأزرار على الجوال */
  .vd-app-cta{ text-align: center; }
  .vd-app-cta .vd-store-badges,
  .vd-app-cta .d-flex{ justify-content: center; }
  .vd-app-cta .col-lg-4 img{ max-width: 140px !important; }
  /* عناصر قابلة للنقر (44px على الأقل) */
  .vd-dl-badge{ min-height: 48px; }
  .tl-primary-btn{ padding: 13px 22px; }
}
@media (max-width: 480px){
  .vd-dl-badge{ flex: 1 1 100%; }                 /* بادج لكل سطر على الجوالات الصغيرة */
  .hero-wrap-2{ padding-top: 104px !important; }
  .hero-wrap-2 .hero-bottom-img{ height: 240px !important; }
  .section-title{ font-size: 27px !important; line-height: 1.3; }
  .vd-app-cta{ padding: 32px 16px !important; }
}

/* ============ wordmark VDESIGN (لمسة أنيقة) ============ */
.vd-logo-text span{ letter-spacing: 1.5px; font-weight: 800; }
.vd-logo-text .dot{ color: var(--vd-gold); }

/* ============ روابط قانونية بارزة في الفوتر ============ */
.vd-legal-links{
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.vd-legal-links a{
  color: var(--vd-gold-soft);
  font-size: 14px;
  font-weight: 500;
  transition: color .25s ease;
}
.vd-legal-links a:hover{ color: var(--vd-gold); text-decoration: underline; }
.vd-legal-links .sep{ color: rgba(255,255,255,.3); }

/* ============ أيقونات المتاجر (SVG) ============ */
.vd-dl-ic{ width: 30px; height: 30px; flex-shrink: 0; display: block; }

/* ============ لوقو الهيدر — بطاقة بيضاء واضحة على الخلفية الداكنة ============ */
.vd-logo-text .vd-badge{
  background: #fff;
  padding: 3px;
  object-fit: contain;
  box-shadow: 0 4px 14px rgba(0,0,0,.4);
  border: 1px solid rgba(255,255,255,.25);
}

/* ============ إصلاح التجاوز الأفقي على الجوال ============ */
@media (max-width: 991px){
  html, body{ overflow-x: hidden !important; max-width: 100% !important; }
  .container, .container-fluid{ overflow-x: hidden; }
  /* لوقو الهيدر لا يتجاوز */
  .vd-logo-text{ font-size: 20px !important; gap: 8px; letter-spacing: 1px !important; }
  .vd-logo-text .vd-badge{ height: 36px !important; width: 36px !important; }
}
@media (max-width: 767px){
  /* الهيرو: المحتوى لا يتعدّى عرض الشاشة */
  .hero-wrap-2 .hero-content-2,
  .hero-wrap-2 .hero-content-2 .hero-content-left{
    max-width: 100% !important;
    width: 100% !important;
  }
  .hero-wrap-2 .hero-content-2 .hero-content-left{ padding-inline: 4px; }
  .hero-wrap-2 .hero-content-2 .section-heading .section-title{
    font-size: 34px !important;
    word-break: break-word;
  }
  .hero-wrap-2 .hero-content-2 .hero-content-left p{ margin-bottom: 22px !important; }
  /* صورة الهيرو: أظهر كامل النص (VDESIGN) بدل القص */
  .hero-wrap-2 .hero-bottom-img{ background: #2B2218; }
  .hero-wrap-2 .hero-bottom-img img{ object-fit: contain !important; }
  /* أزرار التحميل: بادج لكل سطر يملأ العرض */
  .vd-store-badges{ width: 100%; }
  .vd-dl-badge{ flex: 1 1 100% !important; min-width: 0 !important; justify-content: center; }
}
