/* ════════════════════════════════════════════════════════════════
   <x-numox.hero> — Full-bleed Swiper background + editorial text overlay
   Depends on tokens defined in numox/css/theme.css
   Swiper 12 (loaded globally by master.blade.php)
   ════════════════════════════════════════════════════════════════ */

.nx-hero-text {
  position: relative;
  width: 100%;
  height: calc(100vh - 76px);
  min-height: 540px;
  background: var(--nx-dark);
  overflow: hidden;
}

/* ── Swiper fills the whole section ───────────────────────── */
.nx-hero-swiper {
  position: absolute !important;
  inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.nx-hero-swiper .swiper-slide {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── Overlay layers (between image and content) ───────────── */
.nx-hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(135deg,
    rgba(10,14,46,.85) 0%,
    rgba(10,14,46,.65) 45%,
    rgba(31,46,122,.55) 75%,
    rgba(200,39,58,.40) 100%);
}
.nx-hero-text::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 36px 36px;
}

.nx-hero-blob {
  position: absolute; border-radius: 50%; filter: blur(80px);
  pointer-events: none; z-index: 1;
}
.nx-hero-blob-1 {
  width: 520px; height: 520px;
  top: -180px; inset-inline-start: -120px;
  background: radial-gradient(circle, rgba(31,46,122,.45) 0%, transparent 70%);
}
.nx-hero-blob-2 {
  width: 480px; height: 480px;
  bottom: -160px; inset-inline-end: -100px;
  background: radial-gradient(circle, rgba(200,39,58,.40) 0%, transparent 70%);
}

/* ── Foreground content ───────────────────────────────────── */
.nx-hero-foreground {
  position: relative; z-index: 2;
  width: 100%;
  padding-top: 80px; padding-bottom: 100px;
}

.nx-hero-textwrap {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 28px; text-align: start; max-width: 720px;
}

.nx-hero-meta {
  display: inline-flex; align-items: center; gap: 16px;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.65);
}
.nx-hero-meta b { color: var(--nx-red-soft); }
.nx-hero-meta-line { width: 48px; height: 1.5px; background: rgba(255,255,255,.5); }

.nx-hero-mega {
  font-size: clamp(48px, 7vw, 96px); font-weight: 900; color: #fff;
  line-height: 1.05; letter-spacing: -2.5px;
}
.nx-hero-mega .accent-italic {
  font-style: italic; font-weight: 900;
  background: linear-gradient(135deg, var(--nx-red-soft) 0%, var(--nx-red) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nx-hero-mega .underline { position: relative; display: inline-block; z-index: 1; }
.nx-hero-mega .underline::after {
  content: ''; position: absolute;
  inset-inline-start: 0; inset-inline-end: 0; bottom: 6px;
  height: 12px; background: var(--nx-red); opacity: .9;
  transform: scaleX(0); transform-origin: left; z-index: -1;
  animation: nx-mark 1s var(--ease) .9s forwards;
}

.nx-hero-lead {
  font-size: 18px; font-weight: 300;
  color: rgba(255,255,255,.78); line-height: 1.7;
  max-width: 540px; margin: 0;
}
.nx-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Mini stats row */
.nx-hero-mini {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 28px; margin-top: 8px;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15);
  align-self: stretch;
}
.nx-hero-mini-item   { display: flex; flex-direction: column; gap: 4px; }
.nx-hero-mini-item b {
  font-family: var(--font-num); font-size: 36px; font-weight: 900;
  color: #fff; line-height: 1; letter-spacing: -1px;
}
.nx-hero-mini-item:nth-child(3) b {
  background: linear-gradient(135deg, var(--nx-red-soft) 0%, var(--nx-red) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nx-hero-mini-item span {
  font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,.55); letter-spacing: .04em;
}
.nx-hero-mini-divider { width: 1px; height: 32px; background: rgba(255,255,255,.18); }

/* ── Floating swiper controls ─────────────────────────────── */
.nx-hero-swiper-controls {
  position: absolute; z-index: 3;
  inset-inline-end: 32px; bottom: 32px;
  display: inline-flex; align-items: center; gap: 14px;
  background: rgba(10,14,46,.45);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
  padding: 8px 14px;
}

.nx-hero-swiper-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  padding: 0; cursor: pointer;
  color: #fff; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .25s, color .25s, transform .25s, border-color .25s;
}
.nx-hero-swiper-btn:hover {
  background: var(--nx-grad);
  border-color: transparent;
  color: #fff; transform: scale(1.05);
}
[dir="rtl"] .nx-hero-swiper-btn svg { transform: scaleX(-1); }

.nx-hero-swiper-pagination {
  display: inline-flex; align-items: center; gap: 8px;
}
.nx-hero-bullet {
  width: 24px; height: 4px; border-radius: 4px;
  background: rgba(255,255,255,.30);
  cursor: pointer;
  transition: width .35s var(--ease), background .25s;
}
.nx-hero-bullet.is-active {
  width: 48px;
  background: #fff;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1199.98px) {
  /* Desktop header is hidden under 1200px (d-none d-xl-block).
     The hero now has the full viewport above the floating mobile nav. */
  .nx-hero-text { height: 100vh; }
}

@media (max-width: 768px) {
  .nx-hero-text         { height: 70vh; min-height: 460px; }
  .nx-hero-foreground   { padding: 56px 0 80px; }
  .nx-hero-mega         { font-size: 40px; letter-spacing: -1.2px; }
  .nx-hero-lead         { font-size: 15px; }
  .nx-hero-mini         { gap: 16px; padding-top: 18px; }
  .nx-hero-mini-item b  { font-size: 26px; }
  .nx-hero-mini-divider { height: 24px; }

  .nx-hero-swiper-controls {
    inset-inline-end: 16px; bottom: 16px;
    gap: 10px; padding: 6px 10px;
  }
  .nx-hero-swiper-btn { width: 32px; height: 32px; }
  .nx-hero-bullet { width: 18px; }
  .nx-hero-bullet.is-active { width: 36px; }
}
