/* ============================================================
   AZFIT PROGRAM — Style v4
   RTL Arabic · Dark Fitness Aesthetic · Orange + Gold
   ============================================================ */

/* ---------- Google Fonts import (fallback if CDN offline) -- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;900&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --black:       #0A0A0A;
  --card:        #141414;
  --orange:      #FF6B00;
  --orange-glow: rgba(255, 107, 0, 0.18);
  --gold:        #FFD700;
  --white:       #FFFFFF;
  --muted:       #999999;
  --border:      rgba(255, 107, 0, 0.15);
  --radius:      16px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  direction: rtl;
  font-family: 'Cairo', sans-serif;
  background: var(--black);
  color: var(--white);
  scroll-behavior: smooth;
}

body { overflow-x: hidden; }

img { max-width: 100%; }

a { text-decoration: none; }

/* ============================================================
   GLOBAL COMPONENTS
   ============================================================ */

/* Section shared header */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 12px;
}
.section-sub {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}
.section-pill {
  display: inline-block;
  background: var(--orange-glow);
  border: 1px solid rgba(255, 107, 0, 0.35);
  color: var(--orange);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.text-orange { color: var(--orange); }

/* CTA button (generic) */
.btn-cta {
  display: inline-block;
  background: linear-gradient(135deg, #FF6B00, #FF8C00);
  color: white;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 16px 44px;
  border-radius: 60px;
  text-decoration: none;
  box-shadow: 0 6px 32px rgba(255, 107, 0, 0.4);
  transition: transform 0.2s, box-shadow 0.3s;
}
.btn-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 48px rgba(255, 107, 0, 0.65);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   FLOATING ELEMENTS
   ============================================================ */

/* WhatsApp float */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
  z-index: 200;
  animation: bounce 2.4s ease-in-out infinite;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.1); }

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

/* Sticky bottom CTA bar (mobile) */
.sticky-cta-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 12px 20px;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 107, 0, 0.2);
  z-index: 199;
}
.sticky-btn {
  width: 100%;
  text-align: center;
  display: block;
  font-size: 1rem;
  padding: 14px 20px;
}
@media (max-width: 768px) {
  .sticky-cta-bar { display: block; }
}

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0, 0, 0, 0.93);
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.active { display: flex; }
.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(255, 107, 0, 0.2);
}
.lightbox-close {
  position: absolute;
  top: 20px; left: 20px;
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.lightbox-close:hover { opacity: 1; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  position: sticky; top: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 107, 0, 0.1);
}
.nav-logo { height: 48px; object-fit: contain; }
.nav-logo-fallback {
  display: none;
  color: var(--orange);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: 2px;
}
.btn-nav-cta {
  background: var(--orange);
  color: white;
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: box-shadow 0.3s;
}
.btn-nav-cta:hover { box-shadow: 0 0 30px rgba(255, 107, 0, 0.65); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: url('../images/gym-bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.50) 38%,
    rgba(255,107,0,0.10) 62%,
    rgba(0,0,0,0.97) 100%
  );
}
.hero > * { position: relative; z-index: 1; }
/* Fallback when gym-bg.png is missing */
.hero:not([style]) {
  background-image: url('../images/gym-bg.png'),
    linear-gradient(135deg, #0A0A0A 0%, #1a0800 50%, #0A0A0A 100%);
}

.hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 100px;
  gap: 26px;
}
.hero-badge {
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.4);
  color: var(--orange);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  animation: fadeDown 0.8s ease both;
}
h1, .hero-title {
  font-size: clamp(2.8rem, 9vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.55);
  animation: fadeUp 0.9s ease 0.1s both;
}
.hero-sub {
  font-size: 1.1rem;
  color: #ccc;
  max-width: 560px;
  line-height: 1.8;
  animation: fadeUp 0.9s ease 0.2s both;
}

/* Countdown */
.countdown-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: fadeUp 0.9s ease 0.3s both;
}
.countdown-label { font-size: 0.88rem; color: #aaa; }
.countdown { display: flex; align-items: center; gap: 12px; }
.cd-box {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid var(--border);
  padding: 14px 18px;
  border-radius: 12px;
  text-align: center;
  min-width: 72px;
}
.cd-box span {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--orange);
  display: block;
  font-variant-numeric: tabular-nums;
}
.cd-box small { font-size: 0.7rem; color: #aaa; }
.cd-sep { font-size: 2rem; color: var(--orange); font-weight: 900; }

/* Hero CTA */
.btn-hero-cta {
  display: inline-block;
  background: linear-gradient(135deg, #FF6B00, #FF8C00);
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
  padding: 20px 56px;
  border-radius: 60px;
  text-decoration: none;
  box-shadow: 0 0 40px rgba(255, 107, 0, 0.5);
  animation: pulse 2.2s ease-in-out infinite, fadeUp 0.9s ease 0.4s both;
  transition: transform 0.2s;
}
.btn-hero-cta:hover { transform: scale(1.04); }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 30px rgba(255, 107, 0, 0.4); }
  50%       { box-shadow: 0 0 75px rgba(255, 107, 0, 0.88); }
}
.hero-note {
  font-size: 0.82rem;
  color: #666;
  animation: fadeUp 0.9s ease 0.5s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
  padding: 70px 20px;
  background: linear-gradient(180deg, rgba(255,107,0,0.04) 0%, transparent 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.stat-item {
  flex: 1; min-width: 160px;
  text-align: center;
  padding: 20px;
}
.stat-num {
  display: block;
  font-size: clamp(2.8rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-plus { color: var(--gold); font-size: 2rem; font-weight: 900; }
.stat-label { color: var(--muted); font-size: 0.95rem; margin-top: 6px; display: block; }
.stat-divider {
  width: 1px;
  height: 70px;
  background: var(--border);
  flex-shrink: 0;
}
@media (max-width: 480px) { .stat-divider { display: none; } }

/* ============================================================
   FEATURES / WHAT'S INSIDE
   ============================================================ */
.features-section {
  padding: 100px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--orange);
  box-shadow: 0 12px 48px rgba(255, 107, 0, 0.15);
}
.feature-icon { font-size: 2.4rem; display: block; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.feature-card p  { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SUMMER CHALLENGE
   ============================================================ */
.challenge-section {
  padding: 80px 20px;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(255,107,0,0.06) 0%, transparent 70%);
}
.challenge-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid rgba(255, 107, 0, 0.3);
  border-radius: 24px;
  padding: 60px 48px;
  text-align: center;
  box-shadow: 0 0 60px rgba(255, 107, 0, 0.08);
}
.challenge-pill {
  display: inline-block;
  background: rgba(255, 107, 0, 0.12);
  border: 1px solid rgba(255, 107, 0, 0.35);
  color: var(--orange);
  padding: 6px 22px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.challenge-card h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 14px;
}
.challenge-card > p {
  color: #ccc;
  font-size: 1.05rem;
  margin-bottom: 28px;
}
.challenge-card ul {
  list-style: none;
  padding: 0;
  text-align: right;
  max-width: 440px;
  margin: 0 auto 36px;
}
.challenge-card ul li {
  padding: 10px 0;
  font-size: 0.98rem;
  color: #ddd;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.challenge-card ul li:last-child { border-bottom: none; }

@media (max-width: 600px) {
  .challenge-card { padding: 40px 24px; }
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section {
  padding: 100px 20px;
  text-align: center;
}
.how-section h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 16px; }
.steps-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  max-width: 900px;
  margin: 60px auto 48px;
  flex-wrap: wrap;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  text-align: center;
  transition: transform 0.3s, border-color 0.3s;
}
.step-card:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
}
.step-num {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B00, #FF8C00);
  color: white;
  font-size: 1.6rem;
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 24px rgba(255, 107, 0, 0.4);
}
.step-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; }
.step-card p  { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.step-arrow { font-size: 2rem; color: rgba(255,107,0,0.4); font-weight: 900; flex-shrink: 0; }
.steps-cta  { text-align: center; }

@media (max-width: 700px) {
  .step-arrow { transform: rotate(90deg); }
  .steps-grid { flex-direction: column; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  padding: 100px 20px;
  text-align: center;
  background: rgba(255,255,255,0.01);
}
.testimonials-section h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 8px; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 50px auto 0;
}
.testi-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: right;
  transition: transform 0.3s, border-color 0.3s;
}
.testi-card:hover { transform: translateY(-6px); border-color: rgba(255,107,0,0.3); }
.stars { font-size: 1.2rem; margin-bottom: 16px; }
.testi-card p  { font-size: 1rem; color: #ddd; line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testi-name    { font-size: 0.85rem; color: var(--orange); font-weight: 700; }

/* Reviews gallery */
.reviews-images-title {
  margin: 80px auto 32px;
  max-width: 600px;
}
.reviews-images-title h3 { font-size: 1.6rem; font-weight: 900; margin-bottom: 8px; }
.reviews-images-title p  { color: var(--muted); }
.reviews-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.review-img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 107, 0, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  display: block;
}
.review-img:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 48px rgba(255, 107, 0, 0.3);
}

@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr; } }

/* ============================================================
   BEFORE / AFTER SLIDER
   ============================================================ */
.before-after-section {
  padding: 100px 20px;
  text-align: center;
}
.before-after-section h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 14px; }
.compare-wrapper { max-width: 480px; margin: 60px auto 0; }
.compare-container {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  border: 2px solid rgba(255, 107, 0, 0.35);
  box-shadow: 0 24px 80px rgba(0,0,0,0.7), 0 0 40px rgba(255,107,0,0.08);
  background: linear-gradient(135deg, #1a0800, #0A0A0A);
}
/* Placeholder when images missing */
.compare-container::after {
  content: 'صورة قبل / بعد';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,107,0,0.3);
  font-size: 1.2rem;
  font-weight: 700;
  z-index: 0;
}
.img-before, .img-after {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  pointer-events: none;
  z-index: 1;
}
.img-after-clip {
  position: absolute; inset: 0;
  width: 50%;
  overflow: hidden;
  z-index: 2;
}
/* Simple vertical line — no flex, no flex children */
.drag-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--orange);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 10;
}
/* Circle button absolutely centered on the line */
.handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 28px rgba(255, 107, 0, 0.8);
  pointer-events: all;
  cursor: ew-resize;
}
.ba-badge {
  position: absolute; top: 14px;
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  z-index: 5;
}
.ba-before { right: 14px; background: rgba(0,0,0,0.72); color: #aaa; }
.ba-after  { left:  14px; background: var(--orange); color: white; }
.compare-meta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
  color: #bbb;
  font-size: 0.88rem;
}

/* ============================================================
   APP SHOWCASE
   ============================================================ */
.app-section {
  padding: 100px 20px;
  background:
    radial-gradient(ellipse 60% 60% at 25% 50%, rgba(255,107,0,0.07) 0%, transparent 70%),
    var(--black);
  overflow: hidden;
}
.app-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.app-pill {
  display: inline-block;
  background: rgba(255,107,0,0.1);
  border: 1px solid rgba(255,107,0,0.3);
  color: var(--orange);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}
.app-text h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 16px; }
.app-text > p { color: #ccc; line-height: 1.7; margin-bottom: 0; }
.app-features {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
}
.app-features li {
  padding: 12px 0;
  font-size: 1rem;
  color: #ddd;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 12px;
}
.app-features li:last-child { border-bottom: none; }
.app-phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone-glow {
  position: absolute;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(255,107,0,0.35) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(50px);
  z-index: 0;
}
.app-phone-img {
  position: relative; z-index: 1;
  width: 100%; max-width: 340px;
  transform: perspective(1000px) rotateY(-10deg) rotateX(3deg);
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.8)) drop-shadow(0 0 30px rgba(255,107,0,0.18));
  transition: transform 0.4s ease;
}
.app-phone-img:hover {
  transform: perspective(1000px) rotateY(-5deg) rotateX(1deg) scale(1.03);
}
@media (max-width: 768px) {
  .app-inner { grid-template-columns: 1fr; }
  .app-phone-img { max-width: 260px; transform: none !important; }
  .app-text  { order: 2; }
  .app-phone-wrap { order: 1; }
}

/* ============================================================
   URGENCY BANNER
   ============================================================ */
.urgency-section {
  padding: 60px 20px;
  background: rgba(255,107,0,0.04);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.urgency-card {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: right;
}
.urgency-icon { font-size: 2.8rem; flex-shrink: 0; }
.urgency-text { flex: 1; min-width: 220px; }
.urgency-text strong { font-size: 1.05rem; display: block; margin-bottom: 6px; }
.urgency-text p { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 600px) {
  .urgency-card { text-align: center; }
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta-section {
  padding: 120px 20px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(255,107,0,0.07) 0%, transparent 70%),
    var(--black);
}
.final-cta-section h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; margin-bottom: 18px; }
.final-cta-section > p { color: #aaa; font-size: 1.05rem; margin-bottom: 40px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 50px 20px 30px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-logo { height: 40px; object-fit: contain; margin-bottom: 20px; }
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.footer-links a { color: var(--muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--orange); }
.footer-links span { color: rgba(255,255,255,0.15); }
.footer-copy { color: rgba(255,255,255,0.2); font-size: 0.82rem; }
