/* ═══════════════════════════════════════════
   Throttle Fitness — Homepage Upgraded Styles
   Hero with imagery, gallery, video, animations
   ═══════════════════════════════════════════ */

/* ── Upgraded Hero ── */
.hero-upgraded {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0014 0%, #1a0033 40%, #0d001a 100%);
  padding: 6rem 0 4rem;
}

.hero-upgraded::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/gallery/BG.jpg') center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
}

.hero-upgraded::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 80%, rgba(70, 0, 130, 0.3) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 20%, rgba(133, 51, 255, 0.15) 0%, transparent 50%);
  z-index: 1;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}

.hero-figure {
  position: absolute;
  bottom: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-figure-left {
  left: -2%;
}

.hero-figure-right {
  right: -2%;
}

.hero-figure img {
  height: 75vh;
  max-height: 600px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(133, 51, 255, 0.3));
  animation: heroFloat 6s ease-in-out infinite;
}

.hero-figure-left img {
  animation-delay: 0s;
}

.hero-figure-right img {
  animation-delay: 3s;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-center {
  text-align: center;
  z-index: 5;
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}

.hero-upgraded h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  color: #fff;
}

.hero-upgraded h1 .text-glow {
  background: linear-gradient(135deg, #8533FF 0%, #c084fc 50%, #8533FF 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-upgraded p.lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-upgraded .hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.hero-upgraded .hero-actions .btn-primary {
  background: linear-gradient(135deg, #8533FF, #6D00C9);
  border: none;
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(133, 51, 255, 0.4);
  transition: all 0.3s ease;
}

.hero-upgraded .hero-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(133, 51, 255, 0.5);
}

.hero-upgraded .hero-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.hero-upgraded .hero-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-features-upgraded {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero-features-upgraded span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-features-upgraded span::before {
  content: '✓';
  color: #8533FF;
  font-weight: 800;
  font-size: 0.85rem;
}

.hero-stats-upgraded {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  justify-content: center;
}

.hero-stat-upgraded h3 {
  font-size: 2.25rem;
  font-weight: 900;
  color: #8533FF;
  margin-bottom: 0.15rem;
}

.hero-stat-upgraded small {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ── Promo Badge (Upgraded) ── */
.promo-badge-upgraded {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.5rem;
  border-radius: 9999px;
  background: rgba(133, 51, 255, 0.15);
  border: 1px solid rgba(133, 51, 255, 0.35);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  animation: badge-float-pulse 3s ease-in-out infinite;
  backdrop-filter: blur(8px);
}

.promo-badge-upgraded .price {
  font-size: 1.25rem;
  font-weight: 900;
  color: #c084fc;
  margin: 0 0.3rem;
}

/* ── Gallery Section ── */
.gallery-section {
  padding: 5rem 0;
  background: var(--bg-primary);
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ── How It Works Section ── */
.how-it-works {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.step-upgraded {
  text-align: center;
  padding: 2.5rem 2rem;
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow), var(--glass-glow);
  transition: all var(--transition);
}

.step-upgraded:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow-hover), var(--glass-glow);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 900;
  margin: 0 auto 1.25rem;
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
}

.step-upgraded h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.step-upgraded p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── Video Showcase ── */
.video-showcase {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
  background: linear-gradient(135deg, #0a0014 0%, #1a0033 100%);
}

.video-showcase-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.video-showcase-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.video-showcase .container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.video-showcase h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
}

.video-showcase p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 550px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.video-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(133, 51, 255, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  opacity: 0.9;
  transition: all 0.3s ease;
  pointer-events: none;
}

.video-card:hover::after {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
}

/* ── CTA Upgraded ── */
.cta-upgraded {
  background: linear-gradient(135deg, var(--primary) 0%, #2A004E 50%, #0d001a 100%);
  padding: 5.5rem 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-upgraded::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(133, 51, 255, 0.2) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-upgraded h2 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: #fff;
  position: relative;
  z-index: 1;
}

.cta-upgraded p {
  opacity: 0.85;
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}

.cta-upgraded .btn {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  font-weight: 700;
  padding: 0.9rem 2.5rem;
  font-size: 1rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.cta-upgraded .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* ── Section Heading Upgraded ── */
.section-heading-upgraded {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-heading-upgraded h2 {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-heading-upgraded p {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.section-heading-upgraded .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  background: var(--primary-glow);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

/* ── Feature Cards Upgraded ── */
.features-upgraded {
  padding: 5rem 0;
}

.feature-card-upgraded {
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow), var(--glass-glow);
  transition: all var(--transition);
}

.feature-card-upgraded:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow-hover), var(--glass-glow);
  border-color: rgba(var(--primary-rgb), 0.3);
}

.feature-icon-upgraded {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--primary-glow);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
  transition: all 0.3s ease;
}

.feature-card-upgraded:hover .feature-icon-upgraded {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.3);
}

.feature-card-upgraded h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.feature-card-upgraded p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── Trainer Cards Upgraded ── */
.featured-trainers-section {
  padding: 5rem 0;
  background: var(--bg-secondary);
}

.trainer-card-upgraded {
  display: flex;
  flex-direction: column;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: var(--glass-shadow), var(--glass-glow);
  text-decoration: none;
  color: inherit;
}

.trainer-card-upgraded:hover {
  transform: translateY(-6px);
  box-shadow: var(--glass-shadow-hover), var(--glass-glow);
  border-color: rgba(var(--primary-rgb), 0.3);
  color: inherit;
}

.trainer-card-img-upgraded {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: var(--bg-tertiary);
  transition: transform 0.5s ease;
}

.trainer-card-upgraded:hover .trainer-card-img-upgraded {
  transform: scale(1.03);
}

.trainer-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.trainer-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.trainer-card-body .loc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.trainer-card-body .tags {
  margin-bottom: 0.5rem;
}

.trainer-card-footer-upgraded {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border-subtle);
}

.trainer-price-upgraded {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero-figure img {
    height: 55vh;
    max-height: 450px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-upgraded {
    min-height: auto;
    padding: 8rem 0 4rem;
  }

  .hero-figure {
    display: none;
  }

  .hero-upgraded h1 {
    font-size: 2.25rem;
  }

  .hero-stats-upgraded {
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .video-showcase h2 {
    font-size: 1.75rem;
  }

  .cta-upgraded h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .hero-upgraded h1 {
    font-size: 1.8rem;
  }

  .hero-stats-upgraded {
    flex-direction: column;
    gap: 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-features-upgraded {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
}
