/* ==========================================
   1. VARIABLES & GLOBAL STYLES
   ========================================== */
:root {
  --primary-green: #00261F;
  --accent-gold: #CF9220;
}

* {
  font-family: 'Urbanist', sans-serif !important;
}

body {
  font-family: 'Urbanist', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html, body {
  overflow-x: hidden;
}

/* ==========================================
   3. HERO SECTION & FLOATING ANIMATION
   ========================================== */
.hero-section {
  background-image: url('assets/ruwwad back.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* يملأ الشاشة كلها */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;

  /* مسافة للـ navbar الثابت */
  padding-top: 110px !important;
  padding-bottom: 60px !important;
}

/* اللوغو الأبيض مع الأنيميشن المدمجة */
.hero-white-logo {
  max-width: 280px;
  height: auto;
  opacity: 0.95;
  filter: drop-shadow(0px 10px 20px rgba(0, 0, 0, 0.15));
  animation: floating 3.5s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.hero-white-logo:hover {
  transform: scale(1.03);
}

@keyframes floating {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

/* ==========================================
   4. BUTTONS & UTILITIES
   ========================================== */
.text-green { color: var(--primary-green) !important; }
.text-gold { color: var(--accent-gold) !important; }

.bg-gold-subtle {
  background-color: rgba(207, 146, 32, 0.15);
  border: 1px solid var(--accent-gold);
}

.btn-green {
  background-color: var(--primary-green);
  color: #fff;
  border: none;
  font-weight: 700;
}

.btn-green:hover {
  background-color: #001a15;
  color: #fff;
}

.btn-gold {
  background-color: var(--accent-gold);
  color: #00261F;
  border: none;
  font-weight: 700;
}

.btn-gold:hover {
  background-color: #b8831f;
  color: #fff;
}

/* ==========================================
   5. CARDS
   ========================================== */
.card-icon {
  color: var(--accent-gold);
}

.custom-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.custom-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 38, 31, 0.12) !important;
}

@media (max-width: 991px) {
  /* تصغير الأزرار وتضبيط مسافاتها على التلفون */
  .hero-section .btn {
    padding: 10px 16px !important; /* تقليل الـ Padding */
    font-size: 0.88rem !important; /* تصغير الخط ليكون متناسق */
    white-space: nowrap; /* منع انقسام النص لسطرين بقلب الزر */
  }

  /* تصغير اللوغو وإلغاء المساحة الزائدة تحته */
  .hero-white-logo {
    max-width: 110px !important;
    margin-top: 25px;
    display: none !important;
  }

  /* تضبيط المسافات العامة */
  .hero-section {
    padding-top: 85px !important;
    padding-bottom: 25px !important;
  }
}
/* Right Place Section Styling */
.right-place-section {
  background-color: #f8f9fa;
}

.bg-green-subtle {
  background-color: rgba(0, 38, 31, 0.05);
}

.border-gold {
  border-color: var(--accent-gold) !important;
}
/* ==========================================
   GROWTH SECTION ACCENTS & STYLES
   ========================================== */

.growth-section {
  background-color: #00261F; /* الأخضر الغامق الخاص برواد */
}

/* تنسيق الـ Corner Accent بالبداية */
.corner-accent-img {
  width: 28px;
  height: auto;
  display: block;
}

/* تنسيق الـ Double Arrow بالأوسط */
.double-arrow-accent {
  width: 32px;
  height: auto;
  opacity: 0.85;
}

/* كرت الزجاج الشفاف للملاحظة المهمة */
.growth-card {
  background: rgba(148, 214, 201, 0.1);
  border: 1px solid rgba(148, 214, 201, 0.25);
  backdrop-filter: blur(10px);
}

.text-mint-accent {
  color: #94D6C9 !important;
}

/* زر Discover How We Work */
.btn-gold-growth {
  background-color: #CF9220;
  color: #00261F !important;
  border: none;
  transition: all 0.3s ease;
}

.btn-gold-growth:hover {
  background-color: #E0A22E;
  color: #00261F !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(207, 146, 32, 0.3);
}
/* ==========================================
   ECOSYSTEM SECTION STYLES (LIGHT & MINT THEME)
   ========================================== */

/* الخلفية الفاتحة مع لمسة هادئة من المينت */
.ecosystem-section {
  background-color: #F3F9F8; 
}

/* خلفية شبكة الـ Grid Pattern */
.grid-pattern-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  pointer-events: none;
}

/* صورة الـ Corner الزخرفية */
.corner-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* صورة الـ Double Arrow */
.double-arrow-img {
  width: 28px;
  height: auto;
  display: block;
}

/* نصوص الأخضر الغامق */
.text-dark-emerald {
  color: #00261F !important;
}

.text-emerald-dark {
  color: #0B4A3E;
}

/* كروت الخدمات */
.service-card {
  background-color: #FFFFFF;
  border: 1px solid rgba(148, 214, 201, 0.4);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: #94D6C9;
  box-shadow: 0 10px 25px rgba(148, 214, 201, 0.25) !important;
}

/* كرت المميز (AI & Software) بخلفية mint ناعمة وصورة cube pattern mint */
.service-card-featured {
  background-color: rgba(148, 214, 201, 0.18);
  border: 1.5px solid #94D6C9;
  overflow: hidden;
}

.cube-mint-bg {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 320px;
  height: auto;
  opacity: 0.35;
  pointer-events: none;
}

/* أزرار Explore بلون المينت التركوازي */
.btn-mint {
  background-color: #94D6C9;
  color: #00261F !important;
  border: none;
  transition: all 0.3s ease;
}

.btn-mint:hover {
  background-color: #7BC4B6;
  color: #00261F !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(148, 214, 201, 0.4);
}
/* ==========================================
   JOURNEY SECTION STYLES (ENHANCED CUBE UI)
   ========================================== */

.journey-section {
  background-color: #FAFCFC; /* خلفية ناعمة جداً */
  min-height: 520px;
}

.text-dark-emerald {
  color: #00261F !important;
}

.text-gold-accent {
  color: #C59B27;
}

.step-num {
  color: #C59B27;
  font-weight: 700;
}

/* التموضع الحر والمكّبر لنمط المكعبات بجهة اليمين بدون حواف أو مربعات محبوسة */
.journey-cube-wrapper {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-40%);
  width: 48%;
  max-width: 650px;
  pointer-events: none;
  z-index: 1;
}

.journey-cube-img {
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0.85; /* فيكِ تجربي واستبدال الملف بـ cube pattern mint.png إذا بدك ياها تطلع باللون المينت البارز */
  filter: drop-shadow(0px 10px 20px rgba(0, 38, 31, 0.05));
}

/* تجاوب الشاشات الصغيرة (الموبايل) */
@media (max-width: 991px) {
  .journey-cube-wrapper {
    position: relative;
    top: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin-top: 30px;
    opacity: 0.6;
  }
}
/* ==========================================
   WHO WE WORK WITH SECTION STYLES
   ========================================== */

.who-section {
  background-color: #F8FCFB; /* خلفية ناعمة مائلة للمينت الخفيف جداً */
  min-height: 600px;
}

.text-dark-emerald {
  color: #00261F !important;
}

/* خلفية المكعبات الممتدة على اليمين */
.who-cube-bg-wrapper {
  position: absolute;
  top: 0;
  right: -5%;
  width: 55%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.who-cube-bg {
  width: 100%;
  height: auto;
  object-fit: contain;
  opacity: 0.45;
  transform: translateY(10%);
}

/* بطاقات النقاط مع إطار شفاف ناعم */
.target-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  border-left: 3px solid #94D6C9;
  box-shadow: 0 4px 15px rgba(0, 38, 31, 0.03);
  transition: all 0.3s ease;
}

.target-card:hover {
  background: #FFFFFF;
  border-left-color: #00261F;
  transform: translateX(6px);
  box-shadow: 0 6px 20px rgba(0, 38, 31, 0.08);
}

.target-card h3 {
  letter-spacing: 0.5px;
}

/* شعار رواد الملون بالأسفل */
.ruwwad-bottom-logo {
  max-width: 160px;
  height: auto;
  opacity: 0.9;
}

/* التجاوب للشاشات الصغيرة */
@media (max-width: 991px) {
  .who-cube-bg-wrapper {
    width: 100%;
    right: 0;
    opacity: 0.2;
  }

  .ruwwad-bottom-logo {
    max-width: 120px;
  }
}
/* ==========================================
   IDEAS & FINAL CTA SECTIONS (DARK EMERALD THEME)
   ========================================== */

/* 1. IDEAS SECTION STYLES */
.ideas-cta-section {
  background-color: #00261F; /* الأخضر الغامق لرواد */
  border-bottom: 1px solid rgba(148, 214, 201, 0.15);
}

.text-mint-light {
  color: #D2F2EC;
}

/* التوهج الخلفي المينت الساحر (Mesh Radial Glow) */
.mesh-glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 350px;
  background: radial-gradient(circle, rgba(148, 214, 201, 0.25) 0%, rgba(0, 38, 31, 0) 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 1;
}

.badge-gold-pill {
  background-color: #CF9220; /* اللون الذهبي الخاص بالبادج */
  color: #00261F !important;
  letter-spacing: 0.5px;
}


/* 2. FINAL CTA SECTION STYLES */
.final-cta-section {
  background: linear-gradient(180deg, #00261F 0%, #001A15 100%);
  min-height: 320px;
}

.text-mint-accent {
  color: #94D6C9;
}

/* شبكة الـ Grid Pattern بالخلفية */
.cta-grid-bg {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: auto;
  opacity: 0.18;
  pointer-events: none;
  z-index: 1;
}

/* زر التحويل الذهبي الفخم */
.btn-cta-gold {
  background-color: #CF9220;
  color: #00261F !important;
  border: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-cta-gold:hover {
  background-color: #E0A22E;
  color: #00261F !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(207, 146, 32, 0.4) !important;
}
/* 1. إصلاح كروت الخدمات والباترن الداخلي */
.expertise-card, 
.service-card, 
[class*="card"] {
  position: relative !important;
  overflow: hidden !important; /* هذا السطر يمنع الباترن من الخروج خارج حواف الكرت الدائرية */
}

/* تحويل صورة الباترن بقلب الكرت لتصير خلفية محبوسة ومتموضعة بالزاوية */
.expertise-card img[src*="cube"], 
.service-card img[src*="cube"] {
  position: absolute !important;
  right: -25px !important;
  bottom: -25px !important;
  width: 170px !important;
  height: auto !important;
  opacity: 0.12 !important; /* تخفيف الشفافية كي لا تؤثر على قراءة النص */
  pointer-events: none !important;
  z-index: 1 !important;
}

/* جعل النصوص والأزرار تظهر بشكل واضح فوق الباترن */
.expertise-card *, 
.service-card * {
  position: relative;
  z-index: 2;
}
/* 2. إصلاح نمط المكعبات بسكشن Our Journey على التلفون */
@media (max-width: 991px) {
  #our-journey, 
  .journey-section {
    position: relative !important;
    overflow: hidden !important;
  }

  /* تحويل المكعبات لطبقة خلفية ناعمة جداً */
  .journey-cube-wrapper,
  #our-journey img[src*="cube"] {
    position: absolute !important;
    top: 50% !important;
    right: -20% !important;
    transform: translateY(-50%) !important;
    width: 110% !important;
    max-width: 380px !important;
    opacity: 0.08 !important; /* خلفية شفافة هادئة تماماً */
    z-index: 1 !important;
    pointer-events: none !important;
  }

  /* رفع الكلام والأزرار فوق الخلفية */
  #our-journey .container {
    position: relative !important;
    z-index: 2 !important;
  }
}
section[id] { scroll-margin-top: 80px; }
/* =========================================================
   FOOTER — site-wide (copied from Your Terms page)
   ========================================================= */
.rw-tfooter {
  position: relative;
  background: var(--rw-ink);
  padding: 4rem 0 2.5rem;
  text-align: center;
  font-family: var(--rw-font);
}
.rw-tfooter .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.rw-tfooter__logo {
  display: inline-block;
  height: 34px;
  width: auto;
  margin-bottom: 1.1rem;
  opacity: .95;
}
.rw-tfooter__tagline {
  color: var(--rw-mint);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .03em;
  margin: 0 0 2rem;
}
.rw-tfooter__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.4rem 2.4rem;
  margin: 0 0 2.4rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.rw-tfooter__item {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: rgba(255, 255, 255, .78);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  transition: color .3s var(--rw-ease);
}
a.rw-tfooter__item:hover {
  color: var(--rw-gold);
}
.rw-tfooter__item svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.rw-tfooter__item--static {
  color: rgba(255, 255, 255, .6);
}
.rw-tfooter__copy {
  color: rgba(255, 255, 255, .45);
  font-weight: 500;
  font-size: .82rem;
  margin: 0;
}
@media (max-width: 575.98px) {
  .rw-tfooter__contact {
    flex-direction: column;
    gap: 1rem;
  }
}
