/* ============================================================
   service-page.css — أنماط مشتركة لصفحات الخدمات

   هذا الملف يُستخدم في كل صفحات الخدمات الخمس:
   residence.html / university.html / business.html
   tourism.html / shipping.html

   المحتويات:
   1. Service Hero — رأس الصفحة
   2. Service Overview — نظرة عامة + أنواع
   3. Service Steps — خطوات الخدمة
   4. Requirements — المتطلبات
   5. FAQ — الأسئلة الشائعة
   6. Other Services — خدمات أخرى
   7. CTA — قسم الحجز
   8. Responsive — الجوال
============================================================ */


/* ============================================================
   1. Service Hero
============================================================ */
#service-hero {
  position:   relative;
  min-height: 85vh;
  margin-top: var(--nav-height);
  background: var(--bg-dark);
  overflow:   hidden;
  display:    flex;
  flex-direction: column;
  justify-content: flex-end;
  padding:    60px 48px 48px;
}

/* شبكة الخلفية */
.service-hero-grid {
  position: absolute;
  inset:    0;
  background-image:
    linear-gradient(rgba(26, 92, 58, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 92, 58, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  animation:  grid-drift 25s linear infinite;
  z-index:    0;
}

/* تدرج سفلي */
#service-hero::after {
  content:  '';
  position: absolute;
  bottom:   0; right: 0; left: 0;
  height:   220px;
  background: linear-gradient(to bottom, transparent, var(--bg-darkest));
  z-index:  1;
  pointer-events: none;
}

/* محتوى الرأس */
.service-hero-content {
  position:  relative;
  z-index:   2;
  max-width: 680px;
}

/* الأيقونة الكبيرة */
.service-hero-icon {
  font-size:     64px;
  line-height:   1;
  margin-bottom: 24px;
  animation:     fade-up 0.6s ease both;
}

/* Eyebrow */
.page-hero-eyebrow {
  display:       flex;
  align-items:   center;
  gap:           10px;
  margin-bottom: 20px;
  animation:     fade-up 0.7s 0.05s ease both;
}

.page-hero-eyebrow span:last-child {
  font-size:      var(--fs-xs);
  letter-spacing: 4px;
  color:          var(--color-gold);
  text-transform: uppercase;
}

/* العنوان */
.page-hero-title {
  font-family:   var(--font-display);
  font-size:     clamp(40px, 5vw, 72px);
  font-weight:   300;
  line-height:   1.05;
  margin-bottom: 20px;
  animation:     fade-up 0.7s 0.1s ease both;
}

/* الوصف */
.page-hero-desc {
  font-size:     var(--fs-base);
  color:         var(--text-muted);
  line-height:   1.8;
  font-weight:   300;
  max-width:     520px;
  margin-bottom: var(--space-lg);
  animation:     fade-up 0.7s 0.15s ease both;
}

/* الأزرار */
.service-hero-btns {
  display:   flex;
  gap:       var(--space-sm);
  flex-wrap: wrap;
  animation: fade-up 0.7s 0.2s ease both;
}

.service-hero-btns .btn-primary,
.service-hero-btns .btn-secondary {
  padding:   13px 28px;
  font-size: var(--fs-base);
}

/* بطاقة الإحصاءات السريعة */
.service-hero-stat {
  position:    relative;
  z-index:     2;
  display:     flex;
  align-items: center;
  gap:         var(--space-lg);
  margin-top:  var(--space-xl);
  padding:     var(--space-md) var(--space-lg);
  background:  rgba(13, 22, 16, 0.7);
  border:      0.5px solid var(--border-gold);
  backdrop-filter: blur(10px);
  width:       fit-content;
  animation:   fade-up 0.7s 0.3s ease both;
}

.hero-stat-item {
  display:        flex;
  flex-direction: column;
  gap:            4px;
  text-align:     center;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size:   36px;
  font-weight: 600;
  color:       var(--color-gold);
  line-height: 1;
}

.hero-stat-label {
  font-size:   11px;
  color:       var(--text-muted);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.hero-stat-divider {
  width:      1px;
  height:     48px;
  background: var(--border-gold);
  flex-shrink: 0;
}

/* Breadcrumb */
.breadcrumb {
  position:      relative;
  z-index:       2;
  display:       flex;
  align-items:   center;
  gap:           8px;
  margin-bottom: 40px;
  animation:     fade-up 0.6s ease both;
}

.breadcrumb a {
  font-size:   var(--fs-xs);
  color:       var(--text-muted);
  letter-spacing: 1px;
  transition:  color 0.2s ease;
}

.breadcrumb a:hover     { color: var(--color-gold); }
.breadcrumb-sep         { font-size: var(--fs-xs); color: var(--text-faint); }
.breadcrumb span:last-child {
  font-size: var(--fs-xs); color: var(--color-gold); letter-spacing: 1px;
}


/* ============================================================
   2. Service Overview — نظرة عامة
============================================================ */
#service-overview {
  padding:    var(--space-2xl) 48px;
  background: var(--bg-dark);
  display:    grid;
  grid-template-columns: 1fr 1fr;
  gap:        var(--space-xl);
  align-items: start;
}

.overview-content .section-title {
  margin-bottom: var(--space-md);
}

.overview-text {
  font-size:     var(--fs-base);
  color:         var(--text-muted);
  line-height:   1.9;
  font-weight:   300;
  margin-bottom: var(--space-md);
}

/* أنواع الخدمة */
.overview-types {
  display:        flex;
  flex-direction: column;
}

.types-title {
  font-family:   var(--font-arabic);
  font-size:     var(--fs-base);
  font-weight:   700;
  color:         var(--text-primary);
  margin-bottom: var(--space-md);
  padding-bottom: 12px;
  border-bottom:  0.5px solid var(--border-gold);
}

.types-grid {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   var(--space-sm);
}

.type-card {
  background:  var(--bg-dark);
  border:      0.5px solid var(--bg-mid);
  padding:     var(--space-md);
  transition:  background 0.3s ease, border-color 0.3s ease;
}

.type-card:hover {
  background:   var(--bg-mid);
  border-color: var(--border-gold);
}

.type-icon {
  display:       block;
  font-size:     24px;
  margin-bottom: 10px;
  line-height:   1;
}

.type-card h4 {
  font-family:   var(--font-arabic);
  font-size:     var(--fs-sm);
  font-weight:   700;
  color:         var(--text-primary);
  margin-bottom: 6px;
}

.type-card p {
  font-size:   12px;
  color:       var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}


/* ============================================================
   3. Service Steps — الخطوات
============================================================ */
#service-steps {
  padding:    var(--space-2xl) 48px;
  background: var(--bg-dark);
}

.steps-list {
  display:        flex;
  flex-direction: column;
  gap:            0;
  margin-top:     var(--space-xl);
  max-width:      720px;
}

.step-item {
  display:     grid;
  grid-template-columns: 60px 2px 1fr;
  gap:         0 var(--space-md);
  align-items: start;
  padding-bottom: var(--space-lg);
}

.step-item:last-child {
  padding-bottom: 0;
}

.step-item:last-child .step-connector {
  display: none;
}

/* الرقم */
.step-num {
  font-family: var(--font-display);
  font-size:   40px;
  font-weight: 600;
  color:       var(--color-green-light);
  line-height: 1;
  transition:  color 0.3s ease;
}

.step-item:hover .step-num {
  color: var(--color-gold);
}

/* الخط الرأسي الرابط */
.step-connector {
  width:      2px;
  background: linear-gradient(
    to bottom,
    var(--color-green),
    rgba(26, 92, 58, 0.1)
  );
  margin-top:    8px;
  align-self:    stretch;
  min-height:    60px;
}

/* المحتوى */
.step-content {
  padding-top: 6px;
}

.step-content h4 {
  font-family:   var(--font-arabic);
  font-size:     var(--fs-md);
  font-weight:   700;
  color:         var(--text-primary);
  margin-bottom: 8px;
}

.step-content p {
  font-size:   var(--fs-sm);
  color:       var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
}


/* ============================================================
   4. Requirements — المتطلبات
============================================================ */
#service-requirements {
  padding:    var(--space-2xl) 48px;
  background: var(--bg-dark);
}

.requirements-grid {
  display:               grid;
  grid-template-columns: repeat(2, 1fr);
  gap:                   var(--space-md);
}

.req-item {
  display:     flex;
  gap:         16px;
  align-items: flex-start;
  padding:     var(--space-md);
  background:  var(--bg-dark);
  border:      0.5px solid var(--bg-mid);
  transition:  border-color 0.3s ease, background 0.3s ease;
}

.req-item:hover {
  border-color: var(--border-gold);
  background:   var(--bg-mid);
}

/* علامة الصح */
.req-check {
  display:         flex;
  align-items:     center;
  justify-content: center;
  width:           28px;
  height:          28px;
  background:      rgba(26, 92, 58, 0.15);
  border:          0.5px solid var(--color-green);
  color:           var(--color-green-light);
  font-size:       14px;
  font-weight:     700;
  flex-shrink:     0;
  margin-top:      2px;
}

.req-item strong {
  display:       block;
  font-size:     var(--fs-sm);
  font-weight:   700;
  color:         var(--text-primary);
  margin-bottom: 4px;
}

.req-item p {
  font-size:   12px;
  color:       var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}

/* ملاحظة أسفل المتطلبات */
.req-note {
  margin-top:   var(--space-lg);
  padding:      var(--space-md);
  background:   rgba(201, 168, 76, 0.05);
  border:       0.5px solid var(--border-gold);
  border-right: 3px solid var(--color-gold);
  font-size:    var(--fs-sm);
  color:        var(--text-muted);
  line-height:  1.7;
}


/* ============================================================
   5. FAQ — الأسئلة الشائعة
============================================================ */
#service-faq {
  padding:    var(--space-2xl) 48px;
  background: var(--bg-dark);
}

.faq-list {
  display:        flex;
  flex-direction: column;
  gap:            2px;
  max-width:      800px;
}

/* السؤال + الجواب */
.faq-item {
  background: var(--bg-dark);
  border:      0.5px solid var(--bg-mid);
  overflow:    hidden;
  transition:  border-color 0.3s ease;
}

.faq-item:hover {
  border-color: var(--border-gold);
}

/* زر السؤال */
.faq-question {
  width:      100%;
  display:    flex;
  align-items: center;
  justify-content: space-between;
  gap:        var(--space-md);
  padding:    20px var(--space-md);
  background: transparent;
  border:     none;
  cursor:     pointer;
  text-align: right;
  font-family: var(--font-arabic);
  font-size:  var(--fs-base);
  font-weight: 700;
  color:      var(--text-primary);
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--color-gold);
}

/* أيقونة + / - */
.faq-icon {
  font-size:   24px;
  color:       var(--color-gold);
  font-weight: 300;
  flex-shrink: 0;
  transition:  transform 0.3s ease;
  line-height: 1;
}

/* عند الفتح */
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-item.open .faq-question {
  color: var(--color-gold);
}

/* الجواب — مخفي افتراضياً */
.faq-answer {
  max-height: 0;
  overflow:   hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding:    0 var(--space-md);
}

/* عند الفتح */
.faq-item.open .faq-answer {
  max-height: 300px;
  padding:    0 var(--space-md) var(--space-md);
}

.faq-answer p {
  font-size:   var(--fs-sm);
  color:       var(--text-muted);
  line-height: 1.8;
  font-weight: 300;
  border-top:  0.5px solid var(--border-gold);
  padding-top: var(--space-sm);
}


/* ============================================================
   6. Other Services — خدمات أخرى
============================================================ */
#other-services {
  padding:    var(--space-2xl) 48px;
  background: var(--bg-dark);
}

.other-services-grid {
  display:               grid;
  grid-template-columns: repeat(4, 1fr);
  gap:                   var(--space-sm);
}

.other-service-card {
  display:        flex;
  flex-direction: column;
  padding:        var(--space-md);
  background:     var(--bg-dark);
  border:         0.5px solid var(--bg-mid);
  text-decoration: none;
  position:       relative;
  transition:     background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.other-service-card:hover {
  background:   var(--bg-mid);
  border-color: var(--border-gold);
  transform:    translateY(-4px);
}

.other-icon {
  font-size:     28px;
  margin-bottom: 12px;
  line-height:   1;
}

.other-service-card h4 {
  font-family:   var(--font-arabic);
  font-size:     var(--fs-base);
  font-weight:   700;
  color:         var(--text-primary);
  margin-bottom: 8px;
}

.other-service-card p {
  font-size:   var(--fs-sm);
  color:       var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
  flex-grow:   1;
}

.other-arrow {
  display:     block;
  margin-top:  var(--space-md);
  font-size:   var(--fs-sm);
  color:       var(--color-gold);
  opacity:     0;
  transform:   translateX(6px);
  transition:  opacity 0.3s ease, transform 0.3s ease;
}

.other-service-card:hover .other-arrow {
  opacity:   1;
  transform: translateX(0);
}


/* ============================================================
   7. CTA
============================================================ */
#cta-banner {
  padding:     var(--space-2xl) 48px;
  background:  var(--bg-dark);
  text-align:  center;
  position:    relative;
  overflow:    hidden;
}

.cta-glow {
  position:       absolute;
  top:            50%;
  left:           50%;
  transform:      translate(-50%, -50%);
  width:          600px;
  height:         600px;
  border-radius:  50%;
  background:     radial-gradient(circle, rgba(26,92,58,0.08), transparent 65%);
  pointer-events: none;
}

#cta-banner h2 {
  font-family:   var(--font-display);
  font-size:     clamp(32px, 4.5vw, 60px);
  font-weight:   300;
  line-height:   1.1;
  margin-bottom: var(--space-sm);
  position:      relative;
  z-index:       1;
}

#cta-banner p {
  font-size:    var(--fs-base);
  color:        var(--text-muted);
  line-height:  1.75;
  max-width:    440px;
  margin:       0 auto var(--space-lg);
  position:     relative;
  z-index:      1;
}

.cta-buttons {
  display:         flex;
  gap:             var(--space-sm);
  justify-content: center;
  flex-wrap:       wrap;
  position:        relative;
  z-index:         1;
}

.cta-buttons .btn-primary,
.cta-buttons .btn-secondary {
  padding:   14px 36px;
  font-size: var(--fs-base);
}


/* ============================================================
   8. Responsive — الجوال
============================================================ */
@media (max-width: 1024px) {

  .other-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {

  #service-hero {
    padding: 48px var(--space-md) 40px;
  }

  #service-overview {
    grid-template-columns: 1fr;
    padding:               var(--space-xl) var(--space-md);
  }

  .types-grid {
    grid-template-columns: 1fr;
  }

  #service-steps {
    padding: var(--space-xl) var(--space-md);
  }

  .step-item {
    grid-template-columns: 50px 2px 1fr;
  }

  #service-requirements {
    padding: var(--space-xl) var(--space-md);
  }

  .requirements-grid {
    grid-template-columns: 1fr;
  }

  #service-faq {
    padding: var(--space-xl) var(--space-md);
  }

  #other-services {
    padding: var(--space-xl) var(--space-md);
  }

  .other-services-grid {
    grid-template-columns: 1fr;
  }

  #cta-banner {
    padding: var(--space-xl) var(--space-md);
  }

  .service-hero-stat {
    flex-wrap: wrap;
    gap:       var(--space-md);
  }
}

@media (max-width: 600px) {

  .service-hero-btns {
    flex-direction: column;
  }

  .cta-buttons {
    flex-direction: column;
    align-items:    center;
  }

  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary {
    width:      100%;
    max-width:  320px;
    text-align: center;
  }
}
