/* ===============================
   استایل کامل صفحه پروژه‌ها
   طراحی هماهنگ با سایت زرند احداث
   =============================== */

/* فونت و تنظیمات کلی */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;600;700&display=swap');

body {
  margin: 0;
  font-family: "Vazirmatn", sans-serif;
  direction: rtl;
  background-color: #ffffff;
  color: #222;
  line-height: 1.8;
}

/* ===============================
   هدر سایت
   =============================== */

.header {
  background: linear-gradient(90deg, #d4af37 0%, #b9962f 100%);
  color: #fff;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-weight: 700;
  font-size: 1.6rem;
  color: #000;
}

/* نوار منو */
.nav {
  background-color: #000;
  padding: 0 20px;
  border-top: 2px solid #d4af37;
}

.nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
  margin: 0;
  padding: 12px 0;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: #d4af37;
}

/* دکمه منوی موبایل */
.menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}
.menu-btn span {
  width: 25px;
  height: 3px;
  background: #000;
  border-radius: 2px;
}

/* ===============================
   بخش پروژه‌ها
   =============================== */
.projects-section {
  padding: 70px 0 100px;
  background-color: #fff;
}

/* عنوان بالای صفحه */
.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 12px;
}

.section-header .line {
  width: 90px;
  height: 4px;
  background: #d4af37;
  margin: 0 auto;
  border-radius: 3px;
}

/* شبکه کارت‌ها */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* کارت پروژه */
.project-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 3px solid #d4af37;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
}

.card-content h3 {
  color: #000;
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 600;
}

.card-content p {
  color: #555;
  font-size: 0.93rem;
  margin-bottom: 18px;
}

.btn {
  display: inline-block;
  background: #d4af37;
  color: #fff;
  padding: 8px 18px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease;
  font-weight: 600;
}

.btn:hover {
  background: #b9962f;
}

/* ===============================
   فوتر سایت
   =============================== */
.footer {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
  border-top: 3px solid #d4af37;
}

.footer p {
  margin: 0;
}

/* ===============================
   واکنش‌گرا
   =============================== */

/* لپ‌تاپ و تبلت */
@media (max-width: 992px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* موبایل */
@media (max-width: 600px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .menu-btn {
    display: flex;
  }

  .nav {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background: #000;
    display: none;
    flex-direction: column;
    text-align: center;
  }

  .nav.open {
    display: flex;
  }

  .nav ul {
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
  }

  .nav a {
    font-size: 1rem;
  }
}
