/* ==========================================================================
   SERVICE FEATURES  (OurService.php → "مميزات الخدمة")
   Numbered cards: 1 column on phones, 2 from tablets up.
   An odd last card spans the full row so the grid never ends with a gap.
   ========================================================================== */

.sf {
  --sf-ink: #141414;
  --sf-muted: #71757b;
  --sf-line: #ebe9e4;
  --sf-soft: #f6f5f2;
  --sf-gold: #9c7a45;
  --sf-gold-light: #e6cf9f;

  max-width: 1040px;
  margin: 72px auto;
  text-align: start;
}

.sf-head {
  margin-bottom: 32px;
  text-align: center;
}
.sf-heading {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin: 0;
  color: var(--sf-ink);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.3;
}
.sf-heading::after {
  content: "";
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: var(--sf-gold);
}

.sf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
@media (min-width: 768px) {
  .sf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .sf-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

.sf-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  padding: 20px 22px;
  border: 1px solid var(--sf-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(20, 20, 20, 0.03);
  animation: sf-in 0.5s ease both;
  animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes sf-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (hover: hover) {
  .sf-item { transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease; }
  .sf-item:hover {
    border-color: #d9d4ca;
    box-shadow: 0 16px 32px -20px rgba(20, 20, 20, 0.3);
    transform: translateY(-2px);
  }
  .sf-num { transition: background-color 0.25s ease, color 0.25s ease; }
  .sf-item:hover .sf-num { background: var(--sf-ink); color: var(--sf-gold-light); }
}

.sf-num {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--sf-soft);
  color: var(--sf-gold);
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.sf-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding-top: 2px;
}
.sf-title {
  margin: 0;
  color: var(--sf-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
}
.sf-desc {
  margin: 0;
  color: var(--sf-muted);
  font-size: 14.5px;
  line-height: 1.8;
}
/* a title with no description sits centred against the number */
.sf-item:has(.sf-title:only-child) { align-items: center; }
.sf-item:has(.sf-title:only-child) .sf-text { padding-top: 0; }

@media (max-width: 480px) {
  .sf { margin: 48px auto; }
  .sf-head { margin-bottom: 22px; }
  .sf-item { gap: 14px; padding: 16px; border-radius: 16px; }
  .sf-num { width: 40px; height: 40px; border-radius: 12px; font-size: 15px; }
  .sf-title { font-size: 16px; }
  .sf-desc { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .sf-item { animation: none; transition: none; }
}
