/* =========================================
   AHMED STUDIO — Enhanced Features
   نسخة بخط أكبر وأكثر وضوحًا
   ========================================= */

.s-block--enhanced-features {
  --brand-brown: #905b3b;       /* RGB(144, 91, 59) */
  --brand-brown-dark: #593823;
  --brand-brown-light: #b98461;
  --brand-ivory: #fbf9f7;
  --brand-cream: #f3ebe5;
  --text-dark: #3f2a1e;
  --text-muted: #6f6057;

  padding-top: 30px;
  padding-bottom: 30px;
  direction: rtl;
  background-color: var(--brand-ivory);
}

/* شبكة البطاقات */
.s-block--enhanced-features > .grid {
  align-items: stretch;
}

/* البطاقة */
.s-block--enhanced-features__item {
  position: relative;
  isolation: isolate;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  min-height: 285px;
  padding: 34px 24px 28px;

  text-align: center;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.96),
      rgba(251, 249, 247, 0.99)
    );

  border: 1px solid rgba(144, 91, 59, 0.16);
  border-radius: 22px;

  box-shadow:
    0 12px 32px rgba(67, 40, 24, 0.07),
    0 3px 9px rgba(67, 40, 24, 0.04);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

/* إضاءة داخلية ناعمة */
.s-block--enhanced-features__item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;

  border-radius: inherit;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(144, 91, 59, 0.09),
      transparent 47%
    );

  opacity: 0;
  transition: opacity 0.35s ease;
}

/* إخفاء الخطوط الأصلية المتحركة الموجودة في HTML */
.s-block--enhanced-features__item > .absolute {
  display: none !important;
}

/* حاوية الأيقونة */
.s-block--enhanced-features__item .feature-icon {
  width: 82px;
  height: 82px;
  margin-bottom: 22px;

  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  color: var(--brand-brown);

  background:
    linear-gradient(
      145deg,
      #ffffff,
      var(--brand-cream)
    );

  border: 1px solid rgba(144, 91, 59, 0.2);
  border-radius: 22px;

  box-shadow:
    0 9px 22px rgba(144, 91, 59, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);

  transition:
    transform 0.35s ease,
    color 0.35s ease,
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

/* حجم أيقونات سلة */
.s-block--enhanced-features__item .feature-icon i {
  font-size: 38px;
  line-height: 1;
}

/* عنوان البطاقة */
.s-block--enhanced-features__item h2 {
  margin: 0 0 12px;

  color: var(--text-dark);

  font-family:
    "Alexandria",
    "IBM Plex Sans Arabic",
    "Cairo",
    sans-serif;

  font-size: 20px;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: 0;

  text-wrap: balance;

  transition: color 0.35s ease;
}

/* وصف البطاقة */
.s-block--enhanced-features__item p {
  max-width: 285px;
  margin: 0;

  color: var(--text-muted);

  font-family:
    "Alexandria",
    "IBM Plex Sans Arabic",
    "Cairo",
    sans-serif;

  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;

  text-wrap: pretty;
}

/* الخط السفلي البسيط */
.s-block--enhanced-features__item::after {
  content: "";

  width: 38px;
  height: 2px;
  margin-top: auto;
  padding-top: 20px;

  border-bottom: 2px solid rgba(144, 91, 59, 0.45);

  transform: scaleX(0.7);

  transition:
    width 0.35s ease,
    transform 0.35s ease,
    border-color 0.35s ease;
}

/* تأثير التحويم */
@media (hover: hover) {
  .s-block--enhanced-features__item:hover {
    transform: translateY(-7px);

    border-color: rgba(144, 91, 59, 0.36);

    box-shadow:
      0 22px 45px rgba(67, 40, 24, 0.12),
      0 5px 14px rgba(67, 40, 24, 0.06);
  }

  .s-block--enhanced-features__item:hover::before {
    opacity: 1;
  }

  .s-block--enhanced-features__item:hover .feature-icon {
    color: #ffffff;
    background: var(--brand-brown);
    border-color: var(--brand-brown);

    transform:
      translateY(-3px)
      rotate(-2deg)
      scale(1.04);

    box-shadow:
      0 14px 28px rgba(144, 91, 59, 0.26);
  }

  .s-block--enhanced-features__item:hover h2 {
    color: var(--brand-brown-dark);
  }

  .s-block--enhanced-features__item:hover::after {
    width: 60px;
    transform: scaleX(1);
    border-color: var(--brand-brown);
  }
}

/* الشاشات المتوسطة */
@media (max-width: 1024px) {
  .s-block--enhanced-features__item {
    min-height: 265px;
    padding: 30px 20px 25px;
    border-radius: 19px;
  }

  .s-block--enhanced-features__item .feature-icon {
    width: 74px;
    height: 74px;
    margin-bottom: 19px;
    border-radius: 19px;
  }

  .s-block--enhanced-features__item .feature-icon i {
    font-size: 34px;
  }

  .s-block--enhanced-features__item h2 {
    font-size: 18px;
    line-height: 1.6;
  }

  .s-block--enhanced-features__item p {
    font-size: 14px;
    line-height: 1.85;
  }
}

/* الجوال */
@media (max-width: 640px) {
  .s-block--enhanced-features {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .s-block--enhanced-features > .grid {
    gap: 12px !important;
  }

  .s-block--enhanced-features__item {
    min-height: 245px;
    padding: 24px 13px 20px;
    border-radius: 17px;
  }

  .s-block--enhanced-features__item .feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    border-radius: 17px;
  }

  .s-block--enhanced-features__item .feature-icon i {
    font-size: 30px;
  }

  .s-block--enhanced-features__item h2 {
    margin-bottom: 9px;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.65;
  }

  .s-block--enhanced-features__item p {
    max-width: 100%;

    font-size: 13px;
    line-height: 1.8;
  }

  .s-block--enhanced-features__item::after {
    padding-top: 14px;
  }
}

/* شاشات الجوال الصغيرة جدًا */
@media (max-width: 380px) {
  .s-block--enhanced-features__item {
    min-height: 235px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .s-block--enhanced-features__item h2 {
    font-size: 14px;
  }

  .s-block--enhanced-features__item p {
    font-size: 12px;
  }
}

/* تقليل الحركة عند تفعيل الخيار من الجهاز */
@media (prefers-reduced-motion: reduce) {
  .s-block--enhanced-features__item,
  .s-block--enhanced-features__item::before,
  .s-block--enhanced-features__item::after,
  .s-block--enhanced-features__item .feature-icon,
  .s-block--enhanced-features__item h2 {
    transition: none !important;
  }
}
/* Icon Hover */
.s-block--enhanced-features__item:hover .feature-icon {
    background: #905B3B !important;
    border-color: #905B3B !important;
}

.s-block--enhanced-features__item:hover .feature-icon i {
    color: #ffffff !important;
}
/* نبض زر الواتساب */
#wa-selia {
    position: fixed;
    z-index: 9999;
    animation: whatsapp-heartbeat 1.6s ease-in-out infinite;
    transform-origin: center;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.35);
}

/* الحلقة الخارجية */
#wa-selia::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.35);
    z-index: -1;
    animation: whatsapp-wave 1.6s ease-out infinite;
    pointer-events: none;
}

/* نبض القلب */
@keyframes whatsapp-heartbeat {
    0%,
    100% {
        transform: scale(1);
    }

    10% {
        transform: scale(1.12);
    }

    20% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.12);
    }

    45% {
        transform: scale(1);
    }
}

/* موجة خارجية */
@keyframes whatsapp-wave {
    0% {
        transform: scale(1);
        opacity: 0.65;
    }

    70%,
    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

/* إيقاف النبض عند تمرير الماوس */
#wa-selia:hover {
    animation-play-state: paused;
    transform: scale(1.08);
}

#wa-selia:hover::before {
    animation-play-state: paused;
}