/* ====== SERVICES SECTION ====== */
.services-section {
  background: linear-gradient(180deg, var(--bg), var(--bg2));
  padding: 100px 40px;
  text-align: center;
}

.services-section .section-title {
  font-size: 34px;
  font-weight: 800;
  color: #222;
  margin-bottom: 8px;
}
.services-section .section-title span {
  color: var(--orange);
}

.section-sub {
  font-size: 15px;
  color: #666;
  margin-bottom: 60px;
}

/* ===== GRID ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: auto;
}
.service-card.wide { grid-column: span 2; }

/* ===== CARD ===== */
.service-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(255, 145, 77, 0.15);
  transition: all 0.6s ease;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(50px);
}

/* دخول احترافي من اليمين / اليسار / تحت */
.service-card.from-left { transform: translateX(-80px); }
.service-card.from-right { transform: translateX(80px); }
.service-card.from-bottom { transform: translateY(80px); }

.service-card.show {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

/* ===== IMAGE ===== */
.service-img {
  position: relative;
  overflow: hidden;
  height: 320px;
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 1s ease, filter 0.4s ease;
  clip-path: polygon(0 0, 100% 0, 100% 75%, 0 100%);
}
.service-card:hover .service-img img {
  transform: scale(1.15);
  filter: brightness(1.1);
  clip-path: polygon(0 10%, 100% 0, 100% 90%, 0 85%);
}

/* ===== CONTENT ===== */
.service-content {
  padding: 25px;
  text-align: left;
}
.service-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin-bottom: 8px;
}
.service-content p {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 14px;
}
.service-points {
  list-style: none;
  padding: 0;
  margin: 0;
}
.service-points li {
  font-size: 14px;
  color: #444;
  margin: 6px 0;
  padding-left: 14px;
  border-left: 3px solid var(--orange);
  background: rgba(255, 145, 77, 0.05);
  border-radius: 4px;
  line-height: 1.5;
}
@media (max-width: 768px) {
  #services {
    padding: 50px 12px;
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    justify-items: center;
    align-items: stretch;
  }

  .service-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;

    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 175px;
    min-height: 290px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-align: center;
  }

  .service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 145, 77, 0.5);
  }

  .service-img {
    width: 100%;
    height: 120px;
    overflow: hidden;
  }

  .service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
  }

  .service-card:hover .service-img img {
    transform: scale(1.07);
  }

  .service-content {
    padding: 10px;
  }

  .service-content h3 {
    font-size: 13px;
    margin-bottom: 4px;
    color: #111;
  }

  .service-content p {
    font-size: 11.5px;
    color: #555;
    line-height: 1.3;
    margin-bottom: 6px;
  }

  .service-points {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .service-points li {
    background: #fff6f1;
    border-left: 3px solid #ff914d;
    border-radius: 6px;
    padding: 4px 6px;
    font-size: 11px;
    color: #333;
    margin-bottom: 4px;
    text-align: left;
  }

  /* 🔹 الترتيب 2 + 2 + 1 */
  .services-grid .service-card:nth-child(10) {
    grid-column: span 2;
    justify-self: center;
  }
}
/* ===== Fix mobile menu visibility ===== */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed; /* ✅ غيرناها من absolute إلى fixed */
  top: 60px; /* تحت الناف مباشرة */
  left: 0;
  width: 100%;
  background: #fff;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 9999 !important; /* 🔥 يخليها فوق الكل */
  transition: all 0.3s ease;
}

.mobile-menu.active {
  display: flex;
}