/* ========================= */
/*  Hero Segment (Standalone)
/*  وابسته به: main.css و make-project-bar.css
/* ========================= */

.hero-segment {
  display: flex;
  justify-content: center;
  padding: 48px 12px 56px;
  background: var(--color-bg, #0c0a22);
}

/* کارت اصلی داخل سکشن */
.hero-segment__card {
  width: min(1160px, 100vw);
  border-radius: 24px;
  position: relative;
  text-align: center;
  padding: 46px 20px 54px;
  overflow: hidden;

  /* پس‌زمینه نزدیک به طرح */
  background: radial-gradient(100% 89% at 50% 110%, #24D3A7 0%, #2D84DA 55%, #01509e00 100%);
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 12px 40px rgba(0, 0, 0, 0.35);
  z-index: 0;
}

.hero-segment__card:before {
    content: "";
    background: radial-gradient(49% 69% at 50% 109%, #24D3A7 0%, #2D84DA 55%, #01509e00 100%);
    width: 170%;
    position: absolute;
    right: -35%;
    height: 100%;
    bottom: 0;
    z-index: -1;
}

/* ---------- دکمه‌های راست/چپ با آیکن تصویر ---------- */
.hero-segment__chev {
  position: absolute;
  bottom: 90px;
  width: 44px;
  height: 55px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
  z-index: 2;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  background: none;
  border: none;
}

.hero-segment__chev img{
    height: 69px;
}

.hero-segment__chev--left {
  left: 15%;
}

.hero-segment__chev--right {
  right: 15%;
}

.hero-segment__chev:hover {
  transform: translateY(-2px);
  opacity: .96;
}

.hero-segment__chev:active {
  transform: translateY(0);
  opacity: .92;
}

.hero-segment__chev:focus-visible {
  outline: 2px solid var(--color-link-hover, #00FFD1);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 255, 209, 0.15);
}

/* ---------- برند ---------- */
.hero-segment__brand {
  display: grid;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.hero-segment__logo {
  width: 74px;
  height: 74px;
  margin-inline: auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, .35));
  background: radial-gradient(circle at 65% 35%, #fff 0%, #24D3A7 38%, #2D84DA 72%, #01509E 100%);
}

.hero-segment__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-segment__name {
  font-weight: 800;
  letter-spacing: .2px;
  color: #cfe3ff;
  line-height: 1.05;
  display: grid;
}

.hero-segment__name strong {
  font-size: 27.87px;
  color: var(--color-white);
  font-family: inter-display,iransansXV,iransansx,iranyekanweb,iransans,yekan,Vazirmatn,sans-serif;
  font-weight:700;
}

.hero-segment__name span {
  font-size: 27.87px;
  color: var(--color-white);
  font-family: inter-display,iransansXV,iransansx,iranyekanweb,iransans,yekan,Vazirmatn,sans-serif;
  font-weight: 500;
}

/* ---------- تیتر ---------- */
.hero-segment__title {
  color: #fff;
  font-size: 34px;
  margin: 12px 0 20px;
  font-weight: 600;
}

/* ---------- نوار سفارش (از make-project-bar.css استفاده می‌کند) ---------- */
.hero-segment .make-project-bar {
  margin: 18px auto 18px;
}

/* ---------- متن‌های کمکی ---------- */
.hero-segment__hint {
  color: var(--color-white);
  font-size: 15px;
  opacity: .95;
}

.hero-segment__hint p {
  margin: 6px 0;
}

/* ---------- سه نقطه پایین ---------- */
.hero-segment__dots {
  display: inline-flex;
  gap: 6px;
  margin-top: 14px;
}

.hero-segment__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .7);
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 640px) {
  .hero-segment__card {
    padding: 38px 14px 46px;
  }

  .hero-segment__chev {
    display: none;
  }

  /* دکمه‌های کناری در موبایل پنهان می‌شوند */
}


/* ---------- اسلایدر متن راهنما ---------- */
.hero-segment__hint {
  position: relative;
  margin-top: 6px;
  color: var(--color-white);
  font-size: 15px;
  opacity: .95;
}

.hint-slider {
  position: relative;
  overflow: hidden;
}

/* همه اسلایدها روی هم، خارج از جریان؛
   display: flow-root برای جلوگیری از margin-collapse داخلی */
.hint-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(0);
  transition: transform 420ms ease, opacity 420ms ease;
  will-change: transform, opacity;
  pointer-events: none;
  z-index: 0;
  display: flow-root;
  font-weight: 500;
  font-size: 20px;
}

/* فعال */
.hint-slide.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

/* فاصله‌ی اسلاید هنگام ورود/خروج؛ اگر بیشتر/کمتر می‌خواهی تغییر بده */
:root {
  --hint-shift: 64px;
}

.hint-slide.enter-from-left {
  transform: translateX(calc(var(--hint-shift) * -1));
  opacity: 0;
}

.hint-slide.enter-from-right {
  transform: translateX(var(--hint-shift));
  opacity: 0;
}

.hint-slide.leave-to-left {
  transform: translateX(calc(var(--hint-shift) * -1));
  opacity: 0;
}

.hint-slide.leave-to-right {
  transform: translateX(var(--hint-shift));
  opacity: 0;
}

/* نقطه‌ها */
.hero-segment__dots {
  display: inline-flex;
  gap: 6px;
  margin-top: 14px;
  flex-direction: row-reverse;
}

.hero-segment__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  opacity: .55;
  transition: opacity .25s ease, transform .25s ease, background-color .25s ease;
}

.hero-segment__dots span.is-active {
  background: #fff;
  opacity: 1;
  transform: scale(1.15);
}

@media (prefers-reduced-motion: reduce) {
  .hint-slide {
    transition: none;
  }
}

@media (max-width: 640px) {
    .hero-segment{
        padding-right: 0!important;
        padding-left: 0!important;
    }
}

/* اسکرول عمودی آزاد، افقی در اختیار ما (برای Swipe) */
.hint-slider { touch-action: pan-y; }

