:root {
  --primary: #A3238e;
  --primary-light: #fbe7f8;
  --text-dark: #1f2937;
  --text-muted: #4b5563;
  --bg-white: #ffffff;
  --bg-gray: #f8fafc;
  --border: #e5e7eb;
  --shadow: 0 10px 25px -5px rgba(175, 6, 164, 0.1);
}

* {
  box-sizing: border-box;
  transition: all 0.3s ease;
}

@font-face {
  font-family: peyda;
  src: url("font/Peyda-Medium.ttf");
}

body {
  font-family: peyda;
  margin: 0;
  background: radial-gradient(
    circle at top right,
    rgba(175, 6, 164, 0.02),
    transparent 32%
  ),
  linear-gradient(180deg, #fcfafc 0%, #f9f6f9 100%);
  color: var(--text-dark);
  line-height: 1.8;
  overflow-x: hidden;
  direction: rtl;
}

/* تنظیمات هدر برای مگامنو */
header {
  position: relative;
  z-index: 1001;
}

.hero {
  width: 100%;
  height: 200px;
  position: relative;
  background: #000;
  margin-top: 80px; /* برگشت به مقدار قبلی */
  z-index: 1;
}
.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  z-index: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}
.hero-title {
  color: #fff;
  font-size: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  border-right: 5px solid var(--primary);
  padding-right: 15px;
}

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
  padding: 60px 0 20px 0;
}

section {
  margin-bottom: 80px;
}
.section-title {
  text-align: center;
  margin-bottom: 50px;
}
.section-title h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 10px;
}
.section-title .line {
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 0 auto;
  border-radius: 2px;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}
.feature-card {
  background: var(--bg-gray);
  padding: 30px;
  border-radius: 20px;
  border-bottom: 4px solid transparent;
  box-shadow: var(--shadow);
}
.feature-card:hover {
  transform: translateY(-10px);
  border-bottom-color: var(--primary);
}
.feature-card h3 {
  color: var(--primary);
  margin-top: 0;
}

.stats-bar {
  background: var(--primary);
  color: white;
  padding: 50px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  text-align: center;
  border-radius: 30px;
}
.stat-item h3 {
  font-size: 2.5rem;
  margin: 0;
}
.stat-item p {
  margin: 5px 0 0;
  opacity: 0.9;
}

.process-list {
  counter-reset: step;
  list-style: none;
  padding: 0;
}
.process-item {
  position: relative;
  padding-right: 60px;
  margin-bottom: 30px;
}
.process-item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  right: 0;
  top: 0;
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.contact-strip {
  background: #fbe7f8;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
}
.btn-main {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 20px;
}
.btn-main:hover {
  filter: brightness(1.2);
}

@media (max-width: 768px) {
  .intro-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 1.5rem;
  }
  .hero {
    margin-top: 50px; /* برگشت به مقدار قبلی برای موبایل */
  }
}