* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
}

body {
  font-family: Tahoma, Arial, sans-serif;
  background: #f6f7fb;
  color: #222;
  direction: rtl;
  overflow-x: hidden;
}

/* لینک‌ها هیچ‌وقت آبی نشوند */
a,
a:visited,
a:hover,
a:active {
  color: inherit;
}

/* هدر */
.header {
  background: #4b0082;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-container {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  color: #fff !important;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 28px;
  flex-wrap: nowrap;
  align-items: center;
}

.nav a {
  color: #fff !important;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: 0.25s ease;
}

.nav a:hover {
  opacity: 0.8;
}

.contact-btn {
  color: #4b0082 !important;
  background: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.25s ease;
}

.contact-btn:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

/* هیرو */
.hero {
  padding: 60px 5%;
  background: linear-gradient(135deg, #4b0082, #7a2fe0);
  color: #fff;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 34px;
  margin-bottom: 18px;
  line-height: 1.4;
}

.hero-text p {
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 28px;
  max-width: 600px;
}

.main-btn {
  display: inline-block;
  background: #fff;
  color: #4b0082 !important;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  width: 100%;
  max-width: 460px;
  border-radius: 18px;
  display: block;
  margin: 0 auto;
}

/* بخش‌ها */
.services,
.about,
.description {
  padding: 70px 5%;
}

.section-title {
  text-align: center;
  color: #4b0082;
  font-size: 28px;
  margin-bottom: 34px;
}

/* خدمات */
.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
}

.card h3 {
  color: #4b0082;
  margin-bottom: 10px;
  font-size: 20px;
}

.card p {
  line-height: 1.8;
  font-size: 15px;
}

/* درباره و توضیحات */
.about-box,
.desc-box {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  text-align: center;
  line-height: 2;
}

/* فوتر */
.footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

/* موبایل */
@media (max-width: 768px) {
  .header-container {
    width: 92%;
  }

  .logo {
    font-size: 18px;
  }

  .nav {
    display: none;
  }

  .contact-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 26px;
  }

  .hero-text p {
    font-size: 15px;
    margin-left: auto;
    margin-right: auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .card img {
    height: 200px;
  }
}


/* بنر شناور */
.floating-banner {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9999;
  background: #4b0082;
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  max-width: 320px;
  width: calc(100% - 40px);
}

.floating-banner a {
  color: #fff !important;
  font-weight: 700;
  display: block;
  line-height: 1.8;
}

#closeBannerBtn {
  position: absolute;
  top: 6px;
  left: 8px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 768px) {
  .floating-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
    padding: 14px 16px;
  }
}



