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

@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.9;

}

/* ===============================
   هدر
   =============================== */
.header {
  background: linear-gradient(90deg, #d4af37 0%, #b9962f 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

/* لوگو */
.logo {
  font-size: 1.6rem;
  font-weight: 700;
  color: #000;
  margin: 0;
}

/* منو */
.nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 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: #000;
}

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

/* ===============================
   بخش معرفی
   =============================== */
.intro {
  background: url("../images/zcc.png") no-repeat left center;
  text-align: center;
  color: #fff;
  padding: 120px 20px;
  position: relative;
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.intro .content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.intro h2 {
  font-size: 2.3rem;
  margin-bottom: 15px;
  color: #d4af37;
}

.intro p {
  font-size: 1.1rem;
  color: #f5f5f5;
  line-height: 1.8;
}

/* ===============================
   بخش پروژه‌ها
   =============================== */
.projects {
  padding: 80px 0;
  background-color: #fafafa;
  text-align: center;
}

.projects h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 40px;
  position: relative;
}

.projects h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: #d4af37;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* گرید پروژه‌ها */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.project-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 15px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

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

.project-card h3 {
  margin: 15px 0 8px;
  font-size: 1.1rem;
  color: #000;
}

.project-card p {
  font-size: 0.95rem;
  color: #555;
  padding: 0 15px 20px;
  line-height: 1.7;
}

/* ===============================
   فوتر
   =============================== */
.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: 768px) {
  .header .container {
    flex-direction: row;
  }

  .menu-btn {
    display: flex;
  }

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

  .nav.active {
    display: flex;
  }

  .nav ul {
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
  }

  .intro {
    padding: 80px 20px;
  }

  .intro h2 {
    font-size: 1.8rem;
  }
}
