/* Reset + فونت */
@import url("vazirmatn.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Vazirmatn, IRANSans, sans-serif;
}

body {
  background: #f3f3f3;
  direction: rtl;
  line-height: 1.7;
  color: #333;
  padding-bottom: 90px;
  /* این خط رو اضافه کن یا عددش رو بیشتر کن */
  min-height: 100vh;
}

/* هدر اصلی دسکتاپ */
header {
  background: #0b2c4d;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 15px 40px;
  align-items: center;
  box-shadow: 0 0 10px #0004;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

header .logo img {
  width: 70px;
  border-radius: 100px;
  border: 3px solid #ffd700;
}

header .logo h2 {
  font-size: 24px;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

.menu-item {
  text-decoration: none;
  color: #ffd700;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 8px 0;
  transition: all 0.3s ease;
  position: relative;
}

.menu-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 4px;
  background: #ffd700;
  transition: width 0.4s;
}

.menu-item:hover {
  font-size: 1.25rem;
  transform: scale(1.1);
}

.menu-item:hover::after {
  width: 100%;
}

/* محتوای اصلی */
.container {
  width: 85%;
  max-width: 1200px;
  margin: 50px auto;
  text-align: center;
  padding: 20px;
}

.main-img {
  width: 75%;
  max-width: 900px;
  border-radius: 16px;
  margin: 30px auto;
  display: block;
  box-shadow: 0 10px 30px #0003;
}

.btn {
  display: inline-block;
  background: #0059ff;
  color: #fff;
  padding: 14px 32px;
  border-radius: 50px;
  margin-top: 25px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: 0.3s;
  box-shadow: 0 5px 15px #0059ff44;
}

.btn:hover {
  background: #003cd4;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px #0059ff66;
}

/* فرم‌ها */
.form-box {
  width: 70%;
  max-width: 600px;
  margin: 40px auto;
  background: #fff;
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 10px 30px #0003;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

input,
textarea {
  padding: 14px;
  font-size: 16px;
  border-radius: 10px;
  border: 1px solid #bbb;
  transition: 0.3s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #0059ff;
  box-shadow: 0 0 10px #0059ff33;
}

/* فوتر */
footer {
  background-color: #0b2c4d;
  color: #ffd700;
  text-align: center;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 999;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
  border-top: 3px solid #ffd700;
}

/* ==================== هدر موبایل ==================== */
.mobile-header {
  display: none;
  background: #0b2c4d;
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 5px 15px #0004;
}

.m-header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.m-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.m-logo img {
  width: 50px;
  border-radius: 50%;
  border: 3px solid #ffd700;
}

.m-logo h2 {
  color: #fff;
  font-size: 20px;
}

.hamburger {
  font-size: 32px;
  background: none;
  border: none;
  color: #ffd700;
  cursor: pointer;
}

.m-menu {
  display: none;
  flex-direction: column;
  background: #0b2c4d;
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px #0004;
}

.m-menu.active {
  display: flex;
}

.m-menu a {
  padding: 16px;
  color: #ffd700;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  border-bottom: 1px solid #3344;
  transition: 0.3s;
}

.m-menu a:hover {
  background: #ffd700;
  color: #0b2c4d;
  font-size: 20px;
}

/* ==================== ریسپانسیو کامل ==================== */
@media (max-width: 768px) {
  header {
    display: none !important;
    /* هدر دسکتاپ کاملاً مخفی */
  }

  .mobile-header {
    display: block !important;
  }

  .container {
    width: 95%;
    margin: 20px auto;
  }

  .form-box {
    width: 90%;
  }

  .main-img {
    width: 95%;
  }
}

@media (max-width: 480px) {
  .m-logo h2 {
    font-size: 18px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 16px;
  }
}