/* ==========================================================================
   Fire PT — Personal Trainer Landing Page
   styles.css — كل الـ CSS في مكان واحد (بدل الـ inline styles)
   ========================================================================== */

/* ---- Webfonts (Google Fonts CDN) ---- */
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&family=Poppins:wght@600;700;800;900&display=swap");

/* ==========================================================================
   1) Design Tokens (متغيرات التصميم)
   ========================================================================== */
:root {
  /* ---- Colors ---- */
  --black-950: #0a0a0a;
  --black-900: #161616;
  --black-800: #1e1e1e;
  --gray-700: #2a2a2a;
  --gray-500: #6a6a6a;
  --gray-400: #a0a0a0;
  --gray-100: #f5f5f5;
  --white: #ffffff;

  --crimson: #b0202e;
  --fire-red: #e63946;
  --fire-red-hi: #ff4b5c;
  --gold: #d4af37;

  --bg-base: var(--black-950);
  --bg-surface: var(--black-900);
  --bg-raised: var(--black-800);
  --border-subtle: var(--gray-700);

  --text-primary: var(--gray-100);
  --text-secondary: var(--gray-400);
  --text-disabled: var(--gray-500);
  --text-on-accent: var(--white);

  --accent: var(--crimson);
  --accent-bright: var(--fire-red);
  --accent-hover: var(--fire-red-hi);

  /* ---- Typography ---- */
  --font-display: "Cairo", "Tajawal", system-ui, sans-serif;
  --font-body: "Tajawal", "Cairo", system-ui, sans-serif;

  /* ---- Radii ---- */
  --radius-btn: 12px;
  --radius-card: 20px;
  --radius-pill: 999px;

  /* ---- Shadows ---- */
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-card-hover: 0 16px 40px rgba(230, 57, 70, 0.15);
  --shadow-btn: 0 4px 20px rgba(230, 57, 70, 0.35);
  --shadow-btn-hover: 0 6px 28px rgba(230, 57, 70, 0.5);

  /* ---- Layout ---- */
  --container: 1200px;
}

/* ==========================================================================
   2) Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  padding-top: 72px;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
img,
video {
  max-width: 100%;
  display: block;
}
::selection {
  background: var(--accent-bright);
  color: #fff;
}

/* حاوية بعرض ثابت في المنتصف — تستخدمها كل الأقسام */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 96px 24px;
}

/* أي عمود Grid يقدر ينكمش لأصغر من محتواه (يمنع تمدد الصفحة أفقيًا) */
.hero-grid > *,
.why-grid > *,
.bio-grid > *,
.pricing-grid > *,
.quote-grid > * {
  min-width: 0;
}

/* خلفيات الأقسام المتبادلة */
.section--base {
  background: var(--bg-base);
}
.section--surface {
  background: var(--bg-surface);
}

/* ==========================================================================
   3) Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: all 0.3s ease;
  padding: 14px 32px; /* md */
  font-size: 17px;
}
.btn--sm {
  padding: 10px 20px;
  font-size: 15px;
}
.btn--lg {
  padding: 18px 44px;
  font-size: 19px;
}
.btn--full {
  width: 100%;
}

.btn--primary {
  background: var(--accent-bright);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-btn);
}
.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-btn-hover);
  transform: scale(1.05);
}
.btn--secondary {
  background: transparent;
  color: var(--accent-bright);
  border-color: var(--accent-bright);
}
.btn--secondary:hover {
  background: var(--accent-bright);
  color: var(--text-on-accent);
  box-shadow: var(--shadow-btn);
  transform: scale(1.05);
}
.btn:active {
  transform: scale(0.98);
}
.btn svg {
  display: inline-flex;
}

/* ==========================================================================
   4) Badge
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.badge--accent {
  background: var(--accent-bright);
  color: var(--white);
}
.badge--subtle {
  background: var(--black-800);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   5) Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 0;
  z-index: 50;
  width: 100%;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: var(--text-primary);
}
.nav-logo .accent {
  color: var(--accent-bright);
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   6) Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 72px;
}
.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 56px;
  line-height: 1.12;
  color: var(--text-primary);
}
.hero-title .accent {
  color: var(--accent-bright);
}
.hero-lead {
  margin: 24px 0 0;
  max-width: 520px;
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-badge {
  margin-bottom: 20px;
}

.hero-video {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-width: 440px;
  margin-inline-start: auto;
  border-radius: 24px;
  overflow: hidden;
  background: #0a0a0a;
  box-shadow: 0 20px 60px rgba(176, 32, 46, 0.35);
}
.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   7) Section Heading
   ========================================================================== */
.heading {
  text-align: center;
}
.heading-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--accent-bright);
  margin-bottom: 12px;
}
.heading-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  line-height: 1.2;
  color: var(--text-primary);
}
.heading-sub {
  margin: 16px auto 0;
  max-width: 640px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ==========================================================================
   8) Why Me — Feature Cards
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  text-align: right;
  transition: all 0.3s ease;
}
.feature-card:hover {
  border-color: var(--accent-bright);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-6px);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(230, 57, 70, 0.12);
  border: 1px solid rgba(230, 57, 70, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
  margin-bottom: 20px;
}
.feature-title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
}
.feature-desc {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ==========================================================================
   9) Bio (نبذة عني)
   ========================================================================== */
.bio-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: center;
}
.bio-photo {
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, #b0202e, #5f101a);
  box-shadow: var(--shadow-card);
}
.bio-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}
.bio-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--accent-bright);
  margin-bottom: 12px;
}
.bio-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 34px;
  color: var(--text-primary);
}
.bio-text {
  margin: 20px 0 0;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-secondary);
}
.stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}
.stat-n {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 32px;
  color: var(--accent-bright);
}
.stat-l {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ==========================================================================
   10) Pricing
   ========================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 72px;
  align-items: center;
}
.pricing-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 40px 32px 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  transition: all 0.3s ease;
}
.pricing-card:hover {
  border-color: var(--accent-bright);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-8px);
}
/* الباقة المميزة: مكبّرة دائمًا + حدود حمراء + شارة */
.pricing-card--featured {
  border: 2px solid var(--accent-bright);
  transform: scale(1.05);
  z-index: 2;
}
.pricing-card--featured:hover {
  transform: translateY(-8px) scale(1.05);
}

.ribbon {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
}
.plan-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  justify-content: center;
}
.plan-medal {
  font-size: 26px;
}
.plan-tier {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--text-primary);
}
.plan-duration {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 20px;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 28px;
  justify-content: center;
}
.price-num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 44px;
  line-height: 1;
  color: var(--text-primary);
}
.pricing-card--featured .price-num {
  color: var(--accent-bright);
}
.price-cur {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 18px;
}
.features {
  width: 100%;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  margin-inline: auto;
  max-width: 260px;
}
.features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.5;
}
.features .check {
  color: var(--accent-bright);
  font-weight: 700;
  margin-top: 1px;
  flex-shrink: 0;
}

/* ==========================================================================
   11) Testimonials
   ========================================================================== */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.quote-card {
  margin: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.quote-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 40px;
  color: var(--accent-bright);
  line-height: 0.5;
  height: 20px;
}
.quote-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-primary);
  flex: 1;
}
.quote-foot {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quote-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}
.quote-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}
.quote-meta {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ==========================================================================
   12) FAQ
   ========================================================================== */
.faq {
  max-width: 820px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 48px;
}
.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-btn);
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-item:hover,
.faq-item.open {
  border-color: var(--accent-bright);
}
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: right;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
}
.faq-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-bright);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.3s ease;
}
.faq-item.open .faq-toggle {
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  opacity: 0;
  transition: all 0.3s ease;
}
.faq-item.open .faq-a {
  max-height: 400px;
  opacity: 1;
}
.faq-a p {
  margin: 0;
  padding: 0 24px 22px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  text-align: right;
}

/* ==========================================================================
   13) Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
}
.footer .container {
  padding-top: 72px;
  padding-bottom: 72px;
  text-align: center;
}
.footer-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 38px;
  color: var(--text-primary);
}
.footer-text {
  margin: 16px auto 32px;
  max-width: 480px;
  font-size: 18px;
  color: var(--text-secondary);
}
.footer-bottom {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 20px;
  color: var(--text-primary);
}
.footer-logo .accent {
  color: var(--accent-bright);
}
.footer-copy {
  font-size: 14px;
  color: var(--text-disabled);
}

/* ==========================================================================
   14) Floating WhatsApp
   ========================================================================== */
.wa-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 60px;
  height: 60px;
  border-radius: var(--radius-pill);
  background: var(--accent-bright);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fpt-pulse 2.5s infinite;
  transition: transform 0.3s ease;
}
.wa-float:hover {
  transform: scale(1.08);
}
@keyframes fpt-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.5);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(230, 57, 70, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
  }
}

/* ==========================================================================
   15) Reveal-on-scroll animation
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.7s ease-out,
    transform 0.7s ease-out;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   16) Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-title {
    text-align: center;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-video {
    margin-inline: auto;
    max-width: 380px;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .bio-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .bio-grid .bio-photo {
    width: 100%;
    max-width: 320px;
  }
  .stats {
    justify-content: center;
  }

  /* الأسعار تتحول لعمود واحد — نلغي التكبير حتى لا يخرج الكارت */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }
  .pricing-card--featured {
    transform: none;
    margin-top: 12px;
  }
  .pricing-card--featured:hover {
    transform: translateY(-8px);
  }
}

@media (max-width: 560px) {
  .container {
    padding: 60px 18px;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
  .hero-video {
    max-width: 100%;
  }
  .hero-title {
    font-size: 40px;
  }
  .nav-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 18px;
  }
  .nav-links {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .nav-link {
    font-size: 15px;
  }
  .stats {
    gap: 24px;
    flex-wrap: wrap;
  }
  .hero-cta .btn {
    flex: 1 1 auto;
  }
}
