/* ========= پایه ========= */
body {
  font-family: Vazirmatn, IRANSans, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  background: #fff;
  color: #0f172a; /* slate-900 */
}

/* ناوبری */
.navbar .nav-link {
  font-weight: 500;
}
.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: #0d6efd; /* primary */
}

/* باکس جستجو در نوار بالا */
.search-box .form-control {
  min-width: 180px;
}

/* ========= هِرو اسلایدر ========= */
.hero-slider {
  position: relative;
  min-height: 70vh;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: contrast(1.02) saturate(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,10,25,.35), rgba(5,10,25,.55));
  z-index: 1;
}
.hero-caption {
  position: relative;
  z-index: 2;
  height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  max-width: 720px;
}

/* نقاط ناوبری پایین اسلایدر کمی پایین‌تر و خواناتر */
.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.carousel-indicators {
  z-index: 3;
}

/* ریسپانسیو */
@media (max-width: 992px) {
  .hero-caption h1 {
    font-size: 1.75rem;
  }
  .hero-caption p.lead {
    font-size: 1rem;
  }
  .search-box .form-control {
    min-width: 120px;
  }
}

/* جلوگیری از گرفتن کلیک توسط لایه‌ها */
.hero-overlay, .hero-bg { pointer-events: none; }

/* کنترل‌ها و نقاط روی همه‌چیز دیده شوند */
.carousel-control-prev,
.carousel-control-next,
.carousel-indicators { z-index: 4; }


/* انیمیشن ملایم برای ناوبری */
#mainNavbar { transition: box-shadow .2s ease, padding .2s ease, background-color .2s ease; }
#mainNavbar.nav-scrolled {
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  background-color: #ffffffcc; /* کمی شفاف */
  backdrop-filter: blur(6px);
  padding-top: .35rem !important;
  padding-bottom: .35rem !important;
}

/* اسکرول نرم برای کل صفحه */
html { scroll-behavior: smooth; }

