/* =========================================
   APOLLO GROUP TV – LUXURY HERO (Optimized)
   Works with: .hero-bg + .hero-overlay + .hero-content
========================================= */

.hero-section{
  position: relative;
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding-top: 120px;
  overflow:hidden;
  background:
    radial-gradient(circle at 20% 10%, rgba(245,158,11,0.08), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(14,165,233,0.08), transparent 45%),
    linear-gradient(180deg, #070707 0%, #0a0a0a 100%);
  isolation: isolate; /* ✅ يمنع تداخل الطبقات */
}

/* Background image wrapper */
.hero-bg{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
}

/* LCP friendly: cover, no CLS */
.hero-bg img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transform: scale(1.02); /* subtle cinematic */
  will-change: transform;
}

/* Overlay (uses the actual HTML element) */
.hero-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.65) 60%, rgba(0,0,0,.92) 100%);
}

/* Cinematic glow layer (cheap + beautiful) */
.hero-section::after{
  content:"";
  position:absolute;
  width: 640px;
  height: 640px;
  top: -240px;
  right: -240px;
  background: radial-gradient(circle, rgba(245,158,11,.16), transparent 60%);
  filter: blur(80px);
  opacity: .85;
  z-index:0;
  pointer-events:none;
  animation: heroGlow 6s ease-in-out infinite;
}

@keyframes heroGlow{
  0%,100%{ opacity: .75; transform: translateY(0); }
  50%{ opacity: 1; transform: translateY(10px); }
}

/* Content container */
.hero-content{
  position: relative;
  z-index: 2;
  max-width: 880px;
  text-align:center;
  padding: 2rem 1.25rem;
}

/* Tagline */
.hero-tagline{
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  margin-bottom: 1.4rem;
}

/* Title */
.hero-title{
  font-size: clamp(2.55rem, 6vw, 4.15rem);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 1.35rem;
  letter-spacing: -.03em;
  background: linear-gradient(90deg, #ffffff 0%, rgba(245,158,11,0.96) 42%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Description */
.hero-description{
  font-size: 1.15rem;
  color: rgba(255,255,255,.78);
  max-width: 66ch;
  margin: 0 auto 2.2rem;
  line-height: 1.7;
}

/* CTA */
.hero-cta{
  display:flex;
  justify-content:center;
  gap: 1rem;
  flex-wrap:wrap;
}

.hero-cta .btn{
  min-height: 54px;          /* ✅ touch target */
  border-radius: 16px;
  padding: 1rem 1.25rem;
  font-weight: 900;
}

/* Primary CTA (Luxury Gold) */
.hero-cta .btn-primary{
  background: linear-gradient(135deg, rgba(245,158,11,0.95), rgba(255,255,255,0.85));
  color:#0a0a0a;
  box-shadow: 0 12px 30px rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

/* Secondary (Ghost / Outline) */
.hero-cta .btn-ghost{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.hero-cta .btn-outline{
  border: 1px solid rgba(255,255,255,.28);
  color: rgba(255,255,255,.92);
  background: transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

/* Hover فقط لأجهزة hover */
@media (hover:hover) and (pointer:fine){
  .hero-cta .btn-primary:hover{
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.65);
  }
  .hero-cta .btn-outline:hover{
    background: rgba(255,255,255,.08);
    transform: translateY(-2px);
  }
  .hero-cta .btn-ghost:hover{
    background: rgba(255,255,255,.09);
    border-color: rgba(14,165,233,.45);
    transform: translateY(-2px);
  }
}

/* Focus visible */
.hero-cta a:focus-visible{
  outline: 2px solid rgba(14,165,233,.75);
  outline-offset: 4px;
}

/* Note */
.hero-note{
  margin-top: 1.6rem;
  font-size: .86rem;
  color: rgba(255,255,255,.55);
}

/* Mobile */
@media (max-width: 768px){
  .hero-section{
    padding-top: 100px;
    min-height: 92vh; /* يخفف طول مبالغ فيه على الموبايل */
  }
  .hero-description{ font-size: 1.02rem; margin-bottom: 1.8rem; }
  .hero-cta{ flex-direction: column; gap: .9rem; }
  .hero-cta .btn{ width: 100%; }
}

/* Reduce motion (performance) */
@media (prefers-reduced-motion: reduce){
  .hero-section::after{ animation: none !important; }
  .hero-cta .btn-primary,
  .hero-cta .btn-outline,
  .hero-cta .btn-ghost{ transition: none !important; }
}