/* ===== پایه ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Tahoma, sans-serif;
  background-color: #1c1f26;
  color: #eee;
  direction: rtl;
  line-height: 1.8;
  padding-top: 70px; /* فضای هدر */
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* ===== هدر ===== */
header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 70px;
  background: #2a2e39;
  color: #fff;
  display: flex;
  align-items: center; /* وسط عمودی */
  justify-content: center; /* لوگو وسط افقی */
  padding: 0 20px;
  z-index: 1000;
}

/* لوگو وسط */
header h1 {
  margin: 0;
  font-size: 22px;
  text-align: center;
  z-index: 10;
}


/* لینک‌های عمومی */
a {
  color: #f1c40f;  /* رنگ روشن طلایی */
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #e1b600; /* طلایی روشن‌تر هنگام هاور */
}

/* لینک‌ها سمت راست دسکتاپ */
.header-left {
  position: absolute;
  right: 20px; /* فاصله از سمت راست */
  top: 50%;
  transform: translateY(-50%);
}

.header-left ul {
  display: flex;
  list-style: none;
  gap: 18px;
}

.header-left ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}
.header-left ul li a:hover {
  color: #f1c40f;
}

/* منوی همبرگر */
.header-center .menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
}

/* موبایل */
@media (max-width: 768px) {
  header {
    justify-content: center; /* لوگو وسط */
    padding: 0 10px;
    flex-wrap: wrap;
  }

  header h1 {
    position: relative;
    transform: none;
    width: 100%;
    text-align: center;
    order: 1;
  }

  /* منوی همبرگر سمت راست */
  .header-center {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    order: 2;
  }

  .header-center .menu-toggle {
    display: block;
  }

  /* لینک‌ها زیر منو، راست‌چین */
  .header-left {
    position: absolute;
    top: 70px;
    right: 0;
    width: 220px;
    transform: none;
  }

  .header-left ul {
    flex-direction: column;
    display: none;
    background: #2a2e39;
    padding: 14px;
    border-radius: 0 0 10px 0;
    z-index: 999;
    text-align: right;
  }

  .header-left ul.active {
    display: flex;
  }
}

/* ===== سکشن ها ===== */
section { margin-bottom: 30px; }

#hero {
  text-align: center;
  background-color: #34495e;
  color: #fff;
  padding: 40px 20px;
  border-radius: 10px;
 /* فاصله از هدر و بخش بعد */
  margin-top: 10px;   /* فاصله از هدر */
  margin-bottom: 10px; /* فاصله به سکشن بعدی */
}
#hero h2 { margin-bottom: 12px; font-size: 26px; }
#hero p { margin-bottom: 18px; font-size: 16px; }

/* دکمه ها */
.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #e74c3c;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14px;
}
.btn:hover { background-color: #c0392b; }

/* باکس ها و پلن ها */
.box, .plan, .benefit {
  background-color: #2f343f;
  color: #eee;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  margin-bottom: 10px;
}
.box h3, .plan h4, .benefit h4 { margin-top: 0; margin-bottom: 16px; color: #f1c40f; }

.plans-container, .benefits-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;

}
.plan, .benefit { flex: 1 1 280px; text-align: center; }

#seo-tips ul {
  list-style-type: disc;
  padding-right: 20px;
}
#seo-tips ul li { margin-bottom: 10px; }

footer {
  background-color: #2a2e39;
  color: #fff;
  text-align: center;
  padding: 18px 10px;
  font-size: 14px;
}
footer a { color: #f1c40f; text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* فرم تماس */
.contact-form label {
  display: block;
  margin-bottom: 15px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 8px;
  border: none;
  background-color: #3a3f4d;
  color: #fff;
  resize: vertical;
}

.contact-form textarea {
  min-height: 120px;
}

.contact-form button {
  margin-top: 10px;
}

/* contact-info */
.contact-info li {
  margin-bottom: 10px;
}
.contact-info a {
  color: #f1c40f;
  text-decoration: none;
}
.contact-info a:hover {
  text-decoration: underline;
}
