* { margin:0; padding:0; box-sizing:border-box; }

:root {
  --primary: #8b5cf6;        /* بنفش براق */
  --primary-dark: #6d28d9;   /* بنفش تیره */
  --accent: #c084fc;         /* بنفش روشن */
  --bg: #f8fafc;             /* سفید مایل به خاکستری */
  --bg-card: #ffffff;        /* سفید خالص */
  --text: #1e293b;           /* متن تیره */
  --text-light: #64748b;     /* متن روشن */
  --border: #e2e8f0;
  --shadow: 0 10px 40px rgba(139, 92, 246, 0.15);
  --radius: 18px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  direction: rtl;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== هدر ===== */
.header {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 1.4rem; }
.logo-icon { font-size: 1.6rem; }
.logo-text { color: var(--primary-dark); }
.logo-sub { font-size: 0.75rem; color: var(--text-light); font-weight: 400; border-right: 2px solid var(--border); padding-right: 8px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { text-decoration: none; color: var(--text); font-weight: 500; transition: color 0.3s; font-size: 0.95rem; }
.nav a:hover, .nav a.active { color: var(--primary); }
.btn-admin { background: var(--primary); color: #fff !important; padding: 8px 18px; border-radius: 10px; }
.btn-admin:hover { background: var(--primary-dark); }

/* ===== شعار متحرک ===== */
.slogan-bar { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; text-align: center; padding: 14px 20px; }
.slogan-slider { position: relative; height: 24px; }
.slogan { position: absolute; width: 100%; opacity: 0; transform: translateY(10px); transition: opacity 0.6s, transform 0.6s; font-weight: 500; font-size: 0.95rem; }
.slogan.active { opacity: 1; transform: translateY(0); }

/* ===== هیرو ===== */
.hero { padding: 80px 0 60px; text-align: center; background: linear-gradient(180deg, var(--bg), #fff); }
.hero h1 { font-size: 2.6rem; font-weight: 900; color: var(--primary-dark); margin-bottom: 16px; line-height: 1.4; }
.hero p { font-size: 1.1rem; color: var(--text-light); margin-bottom: 32px; }
.btn-primary { display: inline-block; background: var(--primary); color: #fff; padding: 14px 40px; border-radius: 12px; text-decoration: none; font-weight: 700; transition: all 0.3s; box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ===== لیست ملک‌ها ===== */
.properties { padding: 60px 0; }
.section-title { text-align: center; font-size: 2rem; color: var(--primary-dark); margin-bottom: 40px; font-weight: 900; }
.property-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.property-card { background: var(--bg-card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.3s, box-shadow 0.3s; cursor: pointer; text-decoration: none; color: inherit; display: block; }
.property-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(139, 92, 246, 0.25); }
.property-img { width: 100%; height: 200px; object-fit: cover; background: var(--border); display: block; }
.property-body { padding: 18px; }
.property-badge { display: inline-block; background: var(--accent); color: #fff; font-size: 0.75rem; padding: 3px 10px; border-radius: 20px; margin-bottom: 8px; font-weight: 600; }
.property-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.property-meta { font-size: 0.85rem; color: var(--text-light); margin-bottom: 10px; }
.property-price { font-size: 1.1rem; font-weight: 900; color: var(--primary-dark); }
/* ===== فوتر ===== */
.footer { background: var(--primary-dark); color: #fff; text-align: center; padding: 24px 0; margin-top: 60px; font-size: 0.9rem; }

/* ===== درباره ما ===== */
.about-section { padding: 60px 0; max-width: 800px; margin: 0 auto; text-align: center; }
.about-icon { font-size: 3rem; margin-bottom: 20px; }
.about-section h1 { font-size: 2rem; color: var(--primary-dark); margin-bottom: 20px; font-weight: 900; }
.about-section p { font-size: 1.05rem; color: var(--text-light); margin-bottom: 16px; line-height: 1.9; }
.about-highlight { background: #fff; padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 24px; border-right: 4px solid var(--primary); text-align: right; }

/* ===== تماس ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; padding: 40px 0; }
.contact-card { background: #fff; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.contact-card .icon { font-size: 2.5rem; margin-bottom: 12px; }
.contact-card h3 { color: var(--primary-dark); margin-bottom: 8px; }
.contact-card p, .contact-card a { color: var(--text-light); text-decoration: none; font-size: 1rem; }

/* ===== صفحه جزئیات ملک ===== */
.property-detail { padding: 40px 0; }
.property-detail h1 { color: var(--primary-dark); margin-bottom: 20px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 30px; }
.gallery img { width: 100%; height: 160px; object-fit: cover; border-radius: 12px; cursor: pointer; transition: transform 0.3s; }
.gallery img:hover { transform: scale(1.03); }
.detail-info { background: #fff; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.detail-info p { margin-bottom: 12px; font-size: 1.05rem; }
.detail-info .price { font-size: 1.4rem; color: var(--primary); font-weight: 900; }

@media (max-width: 768px) {
  .header-inner { flex-direction: column; gap: 12px; }
  .nav { gap: 14px; flex-wrap: wrap; justify-content: center; }
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 50px 0 40px; }
  .slogan { font-size: 0.8rem; }
}
