/* =========================================================
   HOMEPAGE.CSS
   فقط روی صفحه اصلی (front-page.php) لود می‌شود
   ========================================================= */

/* ===== هیرو صفحه اصلی ===== */
.home-hero {
  background: radial-gradient(circle at 25% 15%, rgba(255,187,0,0.18), transparent 45%),
              linear-gradient(135deg, var(--blue) 0%, #1a1030 60%, var(--dark) 100%);
  color: #fff;
  padding: 4rem 1.25rem 3rem;
  text-align: center;
}

.home-hero-inner { max-width: 640px; margin: 0 auto; }

.home-hero h1 {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.5;
  margin: 1rem 0 0.5rem;
}

.home-hero .hero-subtitle {
  color: var(--muted-on-dark);
  font-size: 1rem;
  margin-bottom: 1.75rem;
}

/* بج‌های اعتماد */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.trust-item svg { margin-bottom: 0.3rem; width: 26px; height: 26px; }
.trust-item strong {
  font-size: 1.15rem;
  color: var(--primary);
  font-weight: 800;
}
.trust-item span {
  font-size: 0.72rem;
  color: var(--muted-on-dark);
}

/* ===== بخش‌های عمومی صفحه اصلی ===== */
.home-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}
.home-section-alt { background: var(--white, #fff); }

/* سربرگ بخش (Eyebrow + Title) */
.eyebrow {
  display: block;
  text-align: center;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
.section-title-lg {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 2rem;
}

/* خدمات */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.service-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem 1rem;
  box-shadow: 0 4px 14px rgba(34,53,72,0.08);
  border-inline-start: 4px solid var(--primary);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  color: inherit;
  text-decoration: none;
}
.service-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(1,31,123,0.12);
}
.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 16px;
  margin-bottom: 0.25rem;
}
.service-box h3 { margin: 0; font-size: 1rem; color: var(--dark); }
.service-box p { font-size: 0.85rem; color: var(--muted); margin: 0; line-height: 1.7; }

/* ===== آخرین مقالات (اسکرول افقی سبک در موبایل) ===== */
.home-articles-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
  margin: -0.25rem -0.5rem 0;
  padding-inline: 0.5rem;
}
.home-articles-row::-webkit-scrollbar { display: none; }

.home-article {
  flex: 0 0 78%;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(34,53,72,0.08);
  text-decoration: none;
  color: inherit;
}
.home-article-image {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--muted), var(--blue));
}
.home-article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-article-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--muted), var(--blue));
}
.home-article-body { padding: 0.9rem 1rem 1rem; }
.home-article-body h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  color: var(--dark);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.home-article-date {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ===== سوالات متداول ===== */
.home-faq-list {
  max-width: 720px;
  margin: 0 auto;
}

/* فراخوان پایانی */
.home-cta {
  text-align: center;
  padding: 3rem 1.25rem 4rem;
  background: linear-gradient(180deg, var(--bg) 0%, #fff 100%);
  border-radius: 32px 32px 0 0;
}
.home-cta h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.home-cta p { color: var(--muted); margin-bottom: 1.5rem; }

/* ===== دسکتاپ ===== */
@media (min-width: 768px) {
  .home-hero h1 { font-size: 2.75rem; }
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .home-articles-row { overflow: visible; margin: 0; padding: 0; }
  .home-article { flex: 1 1 0; scroll-snap-align: none; }
}

/* دکمه مشاهده همه شهرها */
.cities-more-wrap {
  text-align: center;
  margin-top: 1.75rem;
}

.btn-cities-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.8rem 1.6rem;
  border-radius: 20px;
  border: 1.5px solid var(--blue);
  transition: all 0.22s ease;
}

.btn-cities-more svg {
  transform: scaleX(-1);
  transition: transform 0.22s ease;
}

.btn-cities-more:hover {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(34,53,72,0.22);
}
.btn-cities-more:hover svg {
  transform: scaleX(-1) translateX(3px);
}

.btn-cities-more:active {
  transform: scale(0.97);
}