/* ═══════════════════════════════════════════════
   AlSaif Off-Plan — Frontend Styles v2.1
   Primary: #026F6C  |  Secondary: #BDAC66
═══════════════════════════════════════════════ */
:root {
  --alsaif-primary:   #026F6C;
  --alsaif-secondary: #BDAC66;
  --alsaif-white:     #ffffff;
  --alsaif-dark:      #1a1a1a;
  --alsaif-gray:      #f4f5f7;
  --alsaif-text:      #444444;
  --alsaif-radius:    14px;
  --alsaif-shadow:    0 4px 28px rgba(2,111,108,0.12);
}

/* Reset & Base */
.alsaif-op-section *,
.alsaif-op-section *::before,
.alsaif-op-section *::after { box-sizing: border-box; }

.alsaif-op-section {
  direction: rtl;
  font-family: 'GE Hili AlSaif', 'Tajawal', 'Cairo', sans-serif;
  font-size: 18px;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.alsaif-container {
  max-width: 1290px;
  margin: 0 auto;
  padding: 60px 32px;
  position: relative;
  z-index: 2;
}

.alsaif-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.alsaif-hero,
.alsaif-impact,
.alsaif-final-cta {
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .alsaif-hero,
  .alsaif-impact,
  .alsaif-final-cta {
    background-attachment: scroll;
  }
}

/* ══════════════════════════
   TYPOGRAPHY
══════════════════════════ */

/* ===== تعديل 1: section-badge يصبح زيتي وكبير، section-title يصبح بيجي وأصغر ===== */
.section-badge {
  font-size: 36px;
  font-weight: 700 !important;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: block;
  color: var(--alsaif-secondary) !important;
}

.section-title {
  font-weight: 700 !important;
  line-height: 1.8 !important; /* تزويد المسافة بين السطرين ليكون الشكل مريح للعين */
  margin: 0 auto 18px auto !important; /* توسيط الحاوية نفسها في منتصف الشاشة */
  color: var(--alsaif-primary) !important;
  font-size: 20px !important;

}

.section-title.light {
  color: var(--alsaif-white) !important;
}

/* override inline font-size for section-title (allow inline style on desktop for badge only) */
@media (min-width: 769px) {
  .section-badge {
    font-size: 30px;
  }
  .section-title {
    font-size: 22px !important;
  }
}

@media (max-width: 768px) {
  .section-badge {
    font-size: 24px;
  font-weight: 700 !important;
  }
  .section-title {
    font-size: 18px !important;
  font-weight: 700 !important;
  }
}

.alsaif-center-header .section-badge,
.alsaif-center-header .section-title,
.alsaif-center-header .ecosystem-intro,
.alsaif-center-header .ecosystem-footer,
.alsaif-center-header .about-intro {
  text-align: center;
}

.section-divider {
  width: 70px;
  height: 3px;
  border-radius: 3px;
  margin: 0 auto 48px;
  background: var(--alsaif-secondary);
}

/* ══════════════════════════
   BUTTONS
══════════════════════════ */
.alsaif-btn {
  display: inline-block;
  padding: 16px 38px;
  border-radius: 10px;
  font-weight: 700 !important;
  font-size: 18px;
  text-decoration: none;
  transition: all .25s ease;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'GE Hili AlSaif', 'Tajawal', sans-serif;
}

.alsaif-btn-primary {
  background: #015958;
  color: #fff;
  border: 2px solid var(--alsaif-primary);
  font-weight: 700 !important;
}
.alsaif-btn-primary:hover {
  background: var(--alsaif-primary);
  border-color: #015958;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(2,111,108,0.30);
}

.alsaif-btn-secondary {
  background: #bdac66;
  color: #ffffff !important;
  border: 2px solid var(--alsaif-secondary);
  font-weight: 700 !important;
}
.alsaif-btn-secondary:hover {
  background: var(--alsaif-primary);
  color: #ffffff !important;
  border-color: #a89050;
  transform: translateY(-2px);
}

.alsaif-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.7);
}
.alsaif-btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

/* CTA box */
.section-cta-box {
  border: 2px solid var(--alsaif-secondary);
  border-radius: var(--alsaif-radius);
  padding: 36px 48px;
  margin-top: 56px;
  text-align: center;
  background: rgba(189,172,102,0.05);
}
.section-cta-box p {
  font-size: 19px;
  color: var(--alsaif-text);
  margin-bottom: 24px;
  line-height: 1.8;
  text-align: justify !important;
}
.section-cta-box .alsaif-btn { margin: 0 auto; }

/* ══════════════════════════
   SECTION 1 — HERO
══════════════════════════ */
.alsaif-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.alsaif-hero .alsaif-container {
  text-align: center;
  padding: 140px 32px 80px;
}

@media (max-width: 768px) {
  .alsaif-hero .alsaif-container {
    padding: 120px 20px 60px;
  }
}
.hero-logo { margin-bottom: 44px; }
.hero-logo img {
  max-width: 220px;
  height: auto;
  filter: brightness(0) invert(1);
}
.hero-title {
  color: #fff;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero-divider {
  width: 90px;
  height: 5px;
  background: var(--alsaif-secondary);
  margin: 22px auto;
  border-radius: 3px;
}
.hero-subtitle {
  color: rgba(255,255,255,0.90);
  max-width: 820px;
  margin: 0 auto 36px;
  line-height: 1.9;
}
.hero-cta-text {
  color: var(--alsaif-secondary);
  font-size: 20px;
  font-weight: 700 !important;
  margin-bottom: 40px;
}
.hero-btns {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════════════════
   SECTION 2 — WHY
══════════════════════════ */
.why-card {
  background: #fff;
  border-radius: var(--alsaif-radius);
  padding: 48px;
  box-shadow: var(--alsaif-shadow);
  display: flex;
  gap: 36px;
  align-items: flex-start;
  border-right: 6px solid var(--alsaif-primary);
}
.why-icon { flex-shrink: 0; color: var(--alsaif-primary); }
.why-content {
  color: var(--alsaif-text);
  line-height: 2;
  font-size: 19px;
  margin: 0;
}

/* ══════════════════════════
   SECTION 3 — COVERAGE (Slider)
══════════════════════════ */

/* Outer flex container: arrows on sides, viewport in middle */
.coverage-slider {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 auto 8px;
  max-width: 100%;
}

/* Viewport clips the sliding track */
.coverage-slider-viewport {
  flex: 1 1 0;
  overflow: hidden;
  min-width: 0;
}

/* Track: all slides in a row, JS moves with translateX */
.coverage-slider-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
  will-change: transform;
}

/* Each slide wrapper — 3 per view on desktop */
.coverage-slide {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  display: flex;
}

/* The card itself */
.coverage-card {
  background: #fff;
  border: 1px solid rgba(2,111,108,0.12);
  border-top: 5px solid var(--alsaif-primary);
  border-radius: var(--alsaif-radius);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  box-shadow: 0 4px 20px rgba(2,111,108,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}
.coverage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(2,111,108,0.15);
}

.coverage-number {
  display: inline-flex;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  margin-bottom: 20px;
  flex-shrink: 0;
  background: var(--alsaif-primary);
}

.coverage-card p {
  color: var(--alsaif-text);
  line-height: 1.9;
  font-size: 17px;
  margin: 0;
}

/* Arrows */
.coverage-arrow {
  background: var(--alsaif-primary);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
  flex-shrink: 0;
  z-index: 3;
}
.coverage-arrow:hover {
  background: #015958;
  transform: scale(1.08);
}

/* Dots row — full width below slider */
.coverage-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  align-items: center;
  margin-top: 24px;
  width: 100%;
  flex-basis: 100%;
}
.coverage-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--alsaif-primary);
  opacity: 0.3;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  border: none;
  padding: 0;
}
.coverage-dot.active {
  opacity: 1;
  transform: scale(1.35);
}

/* Mobile: 1 card per view */
@media (max-width: 768px) {
  .coverage-slide {
    flex: 0 0 100%;
  }
  .coverage-slider {
    gap: 8px;
  }
  .coverage-arrow {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
  #alsaif-s3 a {
    font-size: 14px !important;
    padding: 12px 24px !important;
    text-align: center !important;
  }
}

/* ══════════════════════════
   SECTION 4 — IMPACT
══════════════════════════ */
.alsaif-impact .alsaif-container { text-align: center; }
.impact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin: 52px 0;
  text-align: right;
}
.impact-item {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--alsaif-radius);
  padding: 28px 32px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  backdrop-filter: blur(4px);
  transition: background .25s ease;
}
.impact-item:hover { background: rgba(255,255,255,0.18); }
.impact-check {
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
}
.impact-item span:last-child {
  color: rgba(255,255,255,0.95);
  font-size: 18px;
  line-height: 1.8;
}
.impact-cta { margin-top: 24px; }
.impact-cta-note {
  color: rgba(255,255,255,0.85);
  font-size: 19px;
  margin-bottom: 30px;
  font-style: italic;
}

/* ══════════════════════════
   SECTION 5 — ECOSYSTEM
══════════════════════════ */
.alsaif-ecosystem .alsaif-container { text-align: center; }
.ecosystem-intro {
  font-size: 19px;
  color: var(--alsaif-text);
  margin-bottom: 48px;
}


.ecosystem-footer {
  font-size: 18px;
  color: var(--alsaif-primary);
  font-weight: 600;
  max-width: 750px;
  margin: 0 auto 36px;
  line-height: 1.9;
}

/* ══════════════════════════
   SECTION 6 — ABOUT (لماذا عبدالله السيف) - Gradient Background
══════════════════════════ */
.alsaif-about {
  background: linear-gradient(135deg, rgba(240,164,72,0.12) 0%, rgba(34,129,126,0.12) 100%) !important;
}

/* ══════════════════════════
   SECTION 6 — ABOUT
══════════════════════════ */
.about-intro {
  font-size: 19px;
  color: var(--alsaif-text);
  line-height: 2;
  margin: 0 auto 52px;
  max-width: 860px;
}
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  margin-bottom: 52px;
}
.about-stat {
  border: 2px solid;
  border-radius: var(--alsaif-radius);
  padding: 32px 24px;
  text-align: center;
  transition: transform .25s ease;
}
.about-stat:hover { transform: translateY(-3px); }
.stat-number {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 12px;
}
.stat-label {
  font-size: 16px;
  color: var(--alsaif-text);
  line-height: 1.6;
}
.about-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.about-features li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 18px;
  color: var(--alsaif-text);
  padding: 18px 24px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.feature-dot {
  width: auto;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ══════════════════════════
   SECTION 7 — PARTNERS
══════════════════════════ */
.alsaif-partners .alsaif-container {
  text-align: center;
  max-width: 1140px;
}
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-bottom: 0;
}
.partner-card {
  width: calc(25% - 18px);
  background: #fff;
  border-radius: var(--alsaif-radius);
  padding: 0px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: box-shadow .25s ease, transform .25s ease;
  min-height: 160px;
  overflow: hidden;
}

.partner-card img {
  width: 100%;
  max-width: 240px;
  height: 140px;
  object-fit: contain;
  object-position: center;
  transform: scale(1.8);
  transform-origin: center center;
  transition: filter .25s ease;
  filter: grayscale(20%);
}
.partner-card:hover img { filter: grayscale(0); }

/* ══════════════════════════
   SECTION 8 — FINAL CTA
══════════════════════════ */
.alsaif-final-cta .alsaif-container { text-align: center; }
.final-cta-content {
  color: rgba(255,255,255,0.90);
  max-width: 800px;
  margin: 0 auto 44px;
  line-height: 2;
}
.final-cta-btns {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════════════════
   RESPONSIVE
══════════════════════════ */
@media (max-width: 1100px) {
  .coverage-card {
    flex: 0 0 calc((100% - 24px) / 1);
  }
}
@media (max-width: 1024px) {
  .alsaif-container { padding: 50px 24px; }
}
@media (max-width: 768px) {
  .alsaif-container { padding: 44px 20px; }
  .alsaif-hero .alsaif-container { padding: 70px 20px; }
  .hero-title    { font-size: clamp(28px, 6vw, 44px) !important; }
  .hero-subtitle { font-size: 17px !important; }
  .why-card { flex-direction: column; align-items: center; text-align: center; }
  .impact-list   { grid-template-columns: 1fr; }
  .about-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-features   { grid-template-columns: 1fr; }
  .section-cta-box  { padding: 28px 24px; }
  .hero-btns, .final-cta-btns { flex-direction: column; align-items: center; }
  .alsaif-btn { width: 100%; max-width: 320px; text-align: center !important; font-weight: 700 !important;}

  /* Partners — موبايل: تكبير الصور لتبدو زي الكمبيوتر */
  .partners-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
  .partner-card  { width: calc(50% - 8px); min-height: 140px; }
  .partner-card img {
    width: 100%;
    max-width: 100%;
    height: 120px;
    transform: scale(2);
    object-fit: contain;
  }

  /* Ecosystem */
  .eco-middle-row { flex-direction: column !important; gap: 0 !important; }
  .eco-middle-row > div[style*="height:2px"] { display: none; }
}

@media (max-width: 480px) {
  .alsaif-container { padding: 40px 16px; width: 90%; }
  .about-stats-grid { grid-template-columns: 1fr; }
  .partners-grid { gap: 12px; }
  .partner-card  { width: calc(50% - 6px); min-height: 130px; }
  .partner-card img {
    width: 100%;
    max-width: 100%;
    height: 110px;
    transform: scale(2);
    object-fit: contain;
  }
  /* Ecosystem */
  .eco-middle-row { flex-direction: column !important; gap: 0 !important; }
  .eco-middle-row > div[style*="height:2px"] { display: none; }
}

/* Ecosystem mobile circle & connectors */
.eco-line-mobile { display: none; }

/* ══════════════════════════
   ECOSYSTEM MOBILE FIX
   نفس شكل الكمبيوتر (hub & spoke) على الموبايل
══════════════════════════ */
@media (max-width: 600px) {
  .eco-line-mobile { display: none !important; }
  .eco-hub-circle  { width: 160px !important; height: 160px !important; padding: 20px !important; }

  /* Force the middle row to stay horizontal on mobile */
  .eco-middle-row {
    flex-direction: row !important;
    align-items: center !important;
    gap: 0 !important;
    width: 100% !important;
    justify-content: center !important;
  }

  /* Show horizontal connector lines */
  .eco-middle-row > div[style*="height:2px"] {
    display: block !important;
    width: 12px !important;
  }

  /* Shrink side cards text & padding on small screens */
  .eco-middle-row > div[style*="border-radius:14px"] {
    padding: 10px 8px !important;
    font-size: 14px !important;
    gap: 6px !important;
    white-space: normal !important;
    max-width: 90px;
    text-align: center;
    flex-direction: column;
    justify-content: center;
  }

  .eco-middle-row > div[style*="border-radius:14px"] > span {
    width: 28px !important;
    height: 28px !important;
    border-radius: 7px !important;
    margin: 0 auto;
  }

  .eco-middle-row > div[style*="border-radius:14px"] > span svg {
    width: 14px !important;
    height: 14px !important;
  }
}
