@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
  /* الألوان */
  --primary-color: #006c75;
  --primary-dark: #00555c;
  --primary-light: rgba(0, 108, 117, 0.08);
  --accent-color: #c9a227; /* لون ذهبي للمسات الفخمة */
  --dark-color: #1a1a1a;
  --text-gray: #555;
  --bg-body: #fdfdfd;
  --bg-cards: #ffffff;
  
  /* المسافات والحدود */
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-xl: 100px;
  
  /* الظلال الناعمة (Modern Shadows) */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.1);
  --shadow-hover: 0 12px 32px rgba(0, 108, 117, 0.15);

  /* الحركة */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  direction: ltr;
  background-color: var(--bg-body);
  color: var(--dark-color);
  line-height: 1.7;
  overflow-x: hidden;
}

*, *::before, *::after { box-sizing: border-box; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; padding: 0; margin: 0; }
button, input, select, textarea { font-family: inherit; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
/* --- التعديل النهائي والمنظم للهيدر --- */

/* =========================
   Header (Makeen-like) فقط
========================= */
.je3-header{
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: 90px;

  /* شفاف فوق الهيرو */
  background: transparent;
  border: 0;

  display: flex;
  align-items: center;
}
.je3-header__inner{
  width: 100%;
  margin: 0;
  padding: 0 18px;           /* مسافة بسيطة من الطرف */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
}


/* يسار */
.je3-left{
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-end;
}

.je3-icon{
  width: 36px;
  height: 36px;
  display: grid;
  color: #fff;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  opacity: .92;
}
.je3-icon svg{ width: 22px; height: 22px; }
.je3-icon:hover{ opacity: 1; }

.je3-lang{
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: .6px;
  opacity: .92;
}
.je3-lang:hover{ 
    opacity: 1; 
    height: 20px;
}

/* روابط الدخول/الحساب */
.je3-auth{ display:flex; align-items:center; gap:10px; }
.je3-auth__link{
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  opacity: .95;
}
.je3-auth__link:hover{ opacity: 1; }
.je3-auth__link--outline{ background: rgba(255,255,255,.08); }

/* عند النزول: الهيدر يصبح أبيض والألوان غامقة */
.je3-header._scrolled{ background:#fff; border-bottom:1px solid #eaeaea; }
.je3-header._scrolled .je3-icon{ color: var(--dark-color); }
.je3-header._scrolled .je3-lang{ color: var(--dark-color); }
.je3-header._scrolled .main-nav ul li a{ color: var(--dark-color); }
.je3-header._scrolled .je3-auth__link{ color: var(--dark-color); border-color: rgba(0,0,0,.15); }
.je3-header._scrolled .je3-auth__link--outline{ background: rgba(0,0,0,.04); }

/* الوسط */
.main-nav{
  display: flex;
  justify-content: center;
  align-items: center;
}
.main-nav ul{
  display: flex;
  list-style: none;
  gap: 38px;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}
.main-nav ul li a{
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  opacity: .92;
}
.main-nav ul li a:hover{ opacity: 1; }

/* اليمين: الشعار */
.logo{
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  white-space: nowrap;
  margin-right: 0 !important;
  padding-right: 0 !important;
}
.je3-header .site-logo{
  height: 66px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,.25));
}

/* في مكين غالباً ما يظهر نص جنب الشعار */
.brand-name{
  display: none;
}

/* موبايل */
@media (max-width: 980px){
  .je3-header{ height: 76px; }
  .je3-header__inner{ grid-template-columns: 1fr 1fr; }
  .main-nav{ display: none; }
  .je3-header .site-logo{ height: 48px; }
}

/* =========================
   2. قسم الهيرو (Cinematic Hero)
   ========================= */
.hero-banner {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px; /* لضمان توسط المحتوى بصرياً */
}

/* الخلفيات المتحركة */
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.15);
  transition: opacity 1.2s ease, transform 8s ease; /* زووم بطيء جداً وفخم */
}
.hero-slide.active { opacity: 1; transform: scale(1); }

.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  /* تدرج لوني سينمائي */
  background: linear-gradient(
    90deg, 
    rgba(0,0,0,0.85) 0%, 
    rgba(0,0,0,0.6) 50%, 
    rgba(0,0,0,0.1) 100%
  );
}

.hero-content {
  max-width: 750px;
  padding-right: 30px;
  color: #fff;
}

.hero-content h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-content p {
  font-size: 18px;
  font-weight: 300;
  opacity: 0.9;
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.8;
}

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-hero {
  padding: 16px 36px;
  border-radius: var(--radius-xl);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  transition: var(--transition);
  border: 1px solid transparent;
}
.btn-hero.primary {
  background: #fff; color: var(--dark-color);
}
.btn-hero.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(255,255,255,0.2);
}
.btn-hero.outline {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(5px);
}
.btn-hero.outline:hover { background: #fff; color: var(--dark-color); }

/* نقاط التنقل */
.hero-dots {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 12px; z-index: 20;
}
.hero-dots button {
  width: 40px; height: 4px; /* شكل خطوط بدلاً من نقاط */
  background: rgba(255,255,255,0.3);
  border: none; border-radius: 4px;
  cursor: pointer; transition: var(--transition);
}
.hero-dots button.active { background: #fff; width: 60px; }

/* =========================
   3. الكروت والأقسام (Aesthetic Cards)
   ========================= */
.content-section { padding: 100px 0; position: relative; }
.content-section:nth-of-type(even) { background-color: #fafafa; }

.section-header { text-align: center; margin-bottom: 60px; max-width: 800px; margin-left: auto; margin-right: auto; }
.section-title {
  font-size: 32px; font-weight: 700; color: var(--dark-color);
  margin-bottom: 16px; position: relative; display: inline-block;
}
/* خط زخرفي تحت العنوان */
.section-title::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: var(--primary-color); margin: 12px auto 0;
  border-radius: 2px;
}
.section-subtitle { font-size: 16px; color: var(--text-gray); }

.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.modern-card {
  background: var(--bg-cards);
  border-radius: var(--radius-m);
  padding: 32px;
  border: 1px solid rgba(0,0,0,0.03); /* حدود شبه مخفية */
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.modern-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
/* تأثير زخرفي عند الهوفر */
.modern-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 0;
  background: var(--primary-color); transition: 0.4s;
}
.modern-card:hover::before { height: 100%; }

.modern-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 12px; color: var(--primary-color); }
.modern-card p { font-size: 15px; color: var(--text-gray); line-height: 1.8; margin: 0; }

/* =========================
   4. بحث الأراضي ونماذج الاتصال
   ========================= */
.search-container {
  background: #fff;
  padding: 32px;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  border: 1px solid rgba(0,0,0,0.04);
}

.search-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.input-group { position: relative; }
.input-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--dark-color); margin-bottom: 8px;
}
.input-field {
  width: 100%; height: 52px;
  border: 1px solid #e0e0e0;
  border-radius: var(--radius-s);
  padding: 0 16px;
  font-size: 15px;
  transition: var(--transition);
  background: #fcfcfc;
}
.input-field:focus {
  border-color: var(--primary-color);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 4px var(--primary-light);
}

.land-card {
  background: #fff; border-radius: var(--radius-m);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition); border: 1px solid #eee;
  display: flex; flex-direction: column;
}
.land-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: transparent; }
.land-body { padding: 24px; flex: 1; }
.land-footer {
  background: #fcfcfc; padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  display: flex; gap: 10px; align-items: center;
}
.tag {
  display: inline-block; padding: 4px 10px;
  background: var(--primary-light); color: var(--primary-color);
  border-radius: 6px; font-size: 12px; font-weight: 600; margin-bottom: 10px;
}
/* زر الواتساب العائم */
.wa-float {
  position: fixed; right: 24px; bottom: 24px;
 background: linear-gradient(135deg, var(--primary-color), #0a8b96);
color: #fff;
  padding: 14px 28px; border-radius: 50px;
 box-shadow: 0 12px 28px rgba(0, 108, 117, 0.35);
  font-weight: 700; display: flex; align-items: center; gap: 8px;
  z-index: 9999; transition: var(--transition);
}
.wa-float:hover { transform: scale(1.05) translateY(-2px); }

.wa-float { text-decoration: none; }

.wa-float .add-land-icon{
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.18);
  font-size: 18px;
  line-height: 1;
}

/* =========================
   Mobile
   ========================= */
@media (max-width: 900px) {
  .cards-grid, .search-grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .je3-header { padding: 0 20px; height: 70px; }
  .nav-toggle { display: block; color: #fff; font-size: 24px; background: none; border: none; }
  .je3-header._scrolled .nav-toggle { color: var(--dark-color); }
  
  .main-nav {
    position: fixed; top: 0; right: 0; width: 80%; max-width: 300px;
    height: 100vh; background: #fff;
    padding: 80px 24px; box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { color: var(--dark-color); padding: 16px 0; border-bottom: 1px solid #f5f5f5; font-size: 16px; }
  .main-nav a:hover::after { width: 0; }
  
  .user-actions { display: none; }
  .mobile-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 32px; }
  
  .cards-grid, .search-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 36px; }
}


html[dir="ltr"] .hero-content{
  padding-right: 0;
  padding-left: 6%;
}
html[dir="ltr"] .logo{
  justify-self: start;
}
html[dir="ltr"] .je3-left{
  justify-content: flex-end;
}
html[dir="ltr"] .search-grid,
html[dir="ltr"] .cards-grid,
html[dir="ltr"] .contact-grid{
  direction: ltr;
}
html[dir="ltr"] .input-field,
html[dir="ltr"] select,
html[dir="ltr"] textarea{
  text-align: left;
}
html[dir="ltr"] .wa-float{
  left: auto;
  right: 24px;
}
