/* ═══════════════════════════════════════════════════════
   AviationHub — Hero (video background + GSAP text intro)
═══════════════════════════════════════════════════════ */

.avhub-hero {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
  height: 100svh;   /* ارتفاع امن موبایل (بدون پرش نوار آدرس) */
  min-height: 560px;
  max-height: 1000px;
  overflow: hidden;
  background: #05070c;
  font-family: 'Inter', -apple-system, sans-serif;
  display: flex;
  align-items: center;
}

/* ─ ویدیو ─ */
.avhub-hero-bg {
  position: absolute; inset: 0; overflow: hidden;
  will-change: transform;   /* زوم Ken-Burns روی همین لایه اعمال می‌شود */
}
.avhub-hero .avhub-hero-video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;   /* هیچ ترنسفورمی روی خود ویدیو (باگ موبایل) */
}
/* پیش‌فرض: دسکتاپ افقی دیده شود، موبایل مخفی */
.avhub-hero-video-mobile { display: none !important; }
.avhub-hero-video-desktop { display: block !important; }

/* ─ لایه‌ی تیره برای خوانایی ─ */
.avhub-hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,30,61,.45) 0%, rgba(7,30,61,.10) 35%, rgba(7,30,61,.65) 100%),
    linear-gradient(90deg,  rgba(7,30,61,.80) 0%, rgba(7,30,61,.30) 45%, rgba(7,30,61,0) 78%);
}

/* ─ متن ─ */
.avhub-hero-inner {
  position: relative; z-index: 3;
  padding: 0 80px;
  max-width: 760px;
}
.avhub-hero-kicker {
  font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: #A8C6E0 !important; margin-bottom: 22px;
}
.avhub-hero-title {
  font-size: clamp(40px, 6.5vw, 92px);
  font-weight: 300; line-height: 1.02; letter-spacing: -.02em;
  color: #fff !important; margin: 0 0 24px;
}
.avhub-hero-sub {
  font-size: 16px; font-weight: 300; line-height: 1.65;
  color: rgba(255,255,255,.78) !important; max-width: 500px; margin: 0 0 36px;
}

/* ─ دکمه‌ها ─ */
.avhub-hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.avhub-h-btn-p, .avhub-h-btn-g {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: 14px 30px; border-radius: 4px; cursor: pointer;
  text-decoration: none; transition: background .2s, border-color .2s, color .2s, transform .2s;
}
.avhub-h-btn-p {
  background: #1A6ABF; color: #fff !important; border: 1px solid #1A6ABF;
}
.avhub-h-btn-p:hover { background: #1A4A7A; border-color: #1A4A7A; transform: translateY(-1px); }
.avhub-h-btn-g {
  background: rgba(255,255,255,.06); color: #fff !important;
  border: 1px solid rgba(168,198,224,.45);
}
.avhub-h-btn-g:hover { border-color: #A8C6E0; background: rgba(255,255,255,.12); transform: translateY(-1px); }

/* ─ راهنمای اسکرول ─ */
.avhub-hero-scroll {
  position: absolute; bottom: 40px; left: 80px; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  color: rgba(168,198,224,.7);
  font-size: 9.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
}
.avhub-hero-scroll-line {
  width: 46px; height: 1px; background: rgba(168,198,224,.25);
  position: relative; overflow: hidden;
}
.avhub-hero-scroll-line::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%; background: rgba(168,198,224,.9);
  animation: avhubScan 1.9s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes avhubScan { to { left: 100%; } }

/* حالت اولیه‌ی عناصر انیمیت‌شونده (GSAP کنترل می‌کند) */
.avhub-anim { opacity: 0; }
/* اگر JS/GSAP لود نشد، متن باز هم دیده شود */
.no-gsap .avhub-anim { opacity: 1; }

/* ─ موبایل ─ */
@media (max-width: 900px) {
  /* تمام‌صفحه‌ی واقعی (svh = بدون پرش نوار آدرس) */
  .avhub-hero { height: 100vh; height: 100svh; min-height: 560px; align-items: flex-end; }
  /* ویدیوی عمودی مخصوص موبایل — کل صفحه را بدون فضای خالی پر می‌کند */
  .avhub-hero-video-desktop { display: none !important; }
  .avhub-hero-video-mobile  { display: block !important; }
  .avhub-hero .avhub-hero-video-mobile {
    object-fit: cover !important;
    object-position: center !important;
  }
  .avhub-hero-inner { padding: 0 28px 130px; }
  .avhub-hero-sub { font-size: 14px; margin-bottom: 28px; }
  .avhub-hero-title { font-size: clamp(34px, 9vw, 52px); }
  .avhub-hero-scroll { left: 28px; bottom: 32px; }
  /* اسکریم موبایل */
  .avhub-hero-scrim {
    background: linear-gradient(180deg, rgba(7,30,61,.5) 0%, rgba(7,30,61,.12) 30%, rgba(7,30,61,.2) 55%, rgba(7,30,61,.78) 100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .avhub-hero-scroll-line::after { animation: none; }
}
