﻿/* ============================================
   FEATURE STRIP · چهار مزیت اصلی — ادامه‌ی هیرو
   premium · minimal · aquatic · RTL
   ============================================ */

.ae-features {
  position: relative;
  direction: rtl;
  background: #ffffff;
  padding: 54px 0;
  overflow: hidden;
}

.ae-features__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.ae-feature {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 clamp(10px, 1.8vw, 30px);
  text-align: center;
  font-family: "Vazirmatn", "Dana", sans-serif;
  background: transparent;
  border: 0;
  box-shadow: none;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) var(--ae-delay, 0ms),
    transform 0.75s cubic-bezier(0.22, 0.61, 0.36, 1) var(--ae-delay, 0ms);
}

.ae-features.is-visible .ae-feature {
  opacity: 1;
  transform: translateY(0);
}

/* --- Icon --- */
.ae-feature__icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: #42C0F8;
  stroke-width: 1.5;
  transition:
    transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
    color 0.4s ease,
    opacity 0.4s ease;
}

/* --- Typography --- */
.ae-feature__title {
  margin: 0;
  font-family: "Vazirmatn", "Dana", sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: #1A3A5C;
  letter-spacing: -0.01em;
  transition: color 0.35s ease;
}

.ae-feature__desc {
  margin: -6px 0 0;
  font-family: "Vazirmatn", "Dana", sans-serif;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.7;
  color: #627D98;
}

/* --- Vertical separators (extremely thin, light) --- */
.ae-feature:not(:first-child)::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 70%;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(16, 42, 67, 0) 0%,
    rgba(16, 42, 67, 0.11) 22%,
    rgba(16, 42, 67, 0.11) 78%,
    rgba(16, 42, 67, 0) 100%
  );
}

/* --- Subtle hover --- */
.ae-feature:hover .ae-feature__icon,
.ae-feature:focus-within .ae-feature__icon {
  transform: translateY(-4px) scale(1.03);
  color: #0E63B8;
}

.ae-feature:hover .ae-feature__title,
.ae-feature:focus-within .ae-feature__title {
  color: #42C0F8;
}

/* ============================================
   TABLET · 2 columns × 2 rows
   ============================================ */
@media (max-width: 1024px) {
  .ae-features {
    padding: 48px 0;
  }

  .ae-features__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 38px;
  }

  .ae-feature:nth-child(odd)::before {
    display: none;
  }

  .ae-feature:nth-child(n + 3)::after {
    content: "";
    position: absolute;
    top: -19px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(
      to right,
      rgba(16, 42, 67, 0) 0%,
      rgba(16, 42, 67, 0.11) 25%,
      rgba(16, 42, 67, 0.11) 75%,
      rgba(16, 42, 67, 0) 100%
    );
  }
}

/* ============================================
   MOBILE · single column
   ============================================ */
@media (max-width: 640px) {
  .ae-features {
    padding: 34px 0 40px;
  }

  .ae-features__inner {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0;
  }

  .ae-feature {
    padding: 22px 0;
    gap: 10px;
  }

  .ae-feature__title {
    font-size: 16px;
  }

  .ae-feature__desc {
    font-size: 13px;
    margin-top: -4px;
  }

  .ae-feature:not(:first-child)::before {
    display: block;
    inset-inline-start: auto;
    left: 50%;
    right: auto;
    top: 0;
    transform: translateX(-50%);
    width: min(58%, 200px);
    height: 1px;
    background: linear-gradient(
      to right,
      rgba(16, 42, 67, 0) 0%,
      rgba(16, 42, 67, 0.12) 25%,
      rgba(16, 42, 67, 0.12) 75%,
      rgba(16, 42, 67, 0) 100%
    );
  }

  .ae-feature:nth-child(n + 3)::after {
    display: none;
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .ae-feature {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .ae-feature__icon,
  .ae-feature__title {
    transition: none !important;
  }
}



