/* Arabic landing page (Views/Home/IndexAr.cshtml). */

:root {
  --ar-red: var(--primary, #a30b00);
  --ar-red-dark: #6f0700;
  --ar-olive: var(--secondary, #2e321b);
  --ar-olive-soft: rgba(46, 50, 27, 0.07);
  --ar-ink: #16181d;
  --ar-muted: #5b606c;
  --ar-soft: #f7f3ee;
  --ar-line: rgba(46, 50, 27, 0.25); /* brand olive #2e321b at 25% */
  --ar-radius: 22px;
}

body.ar-page {
  font-family: "Tajawal", "Poppins", sans-serif;
  color: var(--ar-ink);
  background: #fff;
  overflow-x: hidden;
}
.ar-page h1, .ar-page h2, .ar-page h3 { font-family: "Tajawal", "Poppins", sans-serif; }

.ar-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.ar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.7rem;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.ar-btn:hover { transform: translateY(-2px); }
.ar-btn-sm { padding: 0.5rem 1.1rem; font-size: 0.95rem; border-radius: 12px; }
.ar-btn-light { background: #fff; color: var(--ar-red); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18); }
.ar-btn-light:hover { background: #f4f1ea; color: var(--ar-red-dark); }
.ar-btn-red { background: var(--ar-red); color: #fff; box-shadow: 0 6px 0 var(--ar-red-dark); }
.ar-btn-red:hover { background: var(--ar-red-dark); color: #fff; }
.ar-btn-outline { background: #fff; color: var(--ar-olive); border-color: var(--ar-olive); }
.ar-btn-outline:hover { background: var(--ar-olive); color: #fff; }
.ar-btn-ghost-light { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.ar-btn-ghost-light:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.ar-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Header */
.ar-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
}
.ar-header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 76px; }
.ar-logo img { height: 64px; display: block; }
.ar-nav { display: flex; gap: 1.5rem; margin-inline-start: 1rem; }
.ar-nav a, .ar-link { color: var(--ar-ink); text-decoration: none; font-weight: 600; }
.ar-nav a:hover, .ar-link:hover { color: var(--ar-red); }
.ar-header-actions { display: flex; align-items: center; gap: 1rem; margin-inline-start: auto; }
.ar-lang {
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ar-muted);
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 0.2rem 0.55rem;
}

/* Hero */
.ar-hero {
  padding: 70px 0 80px;
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 199, 39, 0.22), transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(163, 11, 0, 0.1), transparent 45%),
    var(--ar-soft);
}
.ar-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--ar-line);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}
.ar-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1.25rem;
}
.ar-mark {
  color: var(--ar-red);
  background: linear-gradient(transparent 64%, rgba(163, 11, 0, 0.14) 64%);
  padding: 0 0.15em;
}
.ar-hero-lead { font-size: 1.2rem; line-height: 1.9; color: var(--ar-muted); max-width: 560px; margin-bottom: 2rem; }

.ar-video {
  border-radius: var(--ar-radius);
  overflow: hidden;
  border: 2px solid var(--ar-line);
  box-shadow: 0 18px 40px rgba(46, 50, 27, 0.16);
  background: #000;
}

.ar-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3.5rem;
  padding: 1rem;
  background: #fff;
  border: 2px solid var(--ar-line);
  border-radius: var(--ar-radius);
}
.ar-stat {
  text-align: center;
  padding: 1rem 0.5rem;
  border-radius: 16px;
  border: 1px solid #eee;
}
.ar-stat strong { display: block; font-size: 1.9rem; font-weight: 800; color: var(--ar-ink); line-height: 1.2; }
.ar-stat span { color: var(--ar-muted); font-size: 0.95rem; }

/* Sections */
.ar-section { padding: 80px 0; }
.ar-section-soft { background: var(--ar-soft); }
.ar-head { max-width: 720px; margin-bottom: 2.5rem; }
.ar-head-center { margin-inline: auto; text-align: center; }
.ar-eyebrow { display: inline-block; font-weight: 700; color: var(--ar-red); margin-bottom: 0.5rem; }
.ar-eyebrow-light { color: rgba(255, 255, 255, 0.85); }
.ar-title { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; line-height: 1.35; margin-bottom: 0.75rem; }
.ar-title-light { color: #fff; }
.ar-text { font-size: 1.1rem; line-height: 1.9; color: var(--ar-muted); }

/* Founder */
.ar-founder {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2.5rem;
  border: 2px solid var(--ar-line);
  border-radius: 28px;
  background: #fff;
}
.ar-founder-badge {
  width: 180px;
  height: 180px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-size: 4rem;
  color: #fff;
  background: linear-gradient(135deg, var(--ar-red), var(--ar-red-dark));
}
.ar-founder-role { font-weight: 600; color: var(--ar-red); margin-top: -0.25rem; }

/* Cards */
.ar-card {
  height: 100%;
  padding: 1.75rem;
  background: #fff;
  border: 2px solid var(--ar-line);
  border-radius: var(--ar-radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ar-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(46, 50, 27, 0.12); }
.ar-card h3, .ar-feature h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.4rem; }
.ar-card p, .ar-feature p { color: var(--ar-muted); margin: 0; line-height: 1.8; }
.ar-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--ar-olive-soft);
  color: var(--ar-olive);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

/* Colour block with steps */
.ar-block {
  padding: 4rem 2.5rem;
  border-radius: 32px;
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.12), transparent 40%),
    linear-gradient(135deg, var(--ar-red) 0%, var(--ar-red-dark) 100%);
}
.ar-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.ar-steps li {
  padding: 1.75rem 1.5rem;
  border-radius: var(--ar-radius);
  background: #fff;
}
.ar-steps span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ar-red);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}
.ar-steps h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.35rem; }
.ar-steps p { color: var(--ar-muted); margin: 0; line-height: 1.8; }

/* Features */
.ar-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ar-feature {
  display: flex;
  gap: 1rem;
  padding: 1.35rem;
  background: #fff;
  border: 2px solid var(--ar-line);
  border-radius: 18px;
}
.ar-feature > i {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(163, 11, 0, 0.1);
  color: var(--ar-red);
  font-size: 1.15rem;
}
.ar-feature h3 { font-size: 1.05rem; }

/* Level quiz */
.ar-quiz {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.5rem;
  border-radius: 28px;
  border: 2px solid var(--ar-line);
  background: linear-gradient(135deg, #fff 0%, var(--ar-olive-soft) 100%);
}

/* Final CTA */
.ar-cta {
  text-align: center;
  padding: 4rem 2rem;
  border-radius: 32px;
  color: #fff;
  background: var(--ar-olive);
}
.ar-cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; color: #fff; margin-bottom: 1rem; }
.ar-cta p { max-width: 560px; margin: 0 auto 2rem; font-size: 1.15rem; line-height: 1.9; color: rgba(255, 255, 255, 0.85); }
.ar-cta-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: var(--ar-red);
  color: #fff;
}

/* Footer */
.ar-footer { background: var(--ar-soft); padding: 3rem 0 1.5rem; }
.ar-footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.ar-footer-inner p { color: var(--ar-muted); max-width: 360px; margin: 0.75rem 0 0; }
.ar-footer-logo { height: 54px; }
.ar-footer-contact { display: flex; flex-direction: column; gap: 0.6rem; }
.ar-footer a { color: var(--ar-ink); text-decoration: none; }
.ar-footer a:hover { color: var(--ar-red); }
.ar-footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5ded5;
  color: var(--ar-muted);
  font-size: 0.9rem;
}
.ar-footer-bottom a { margin-inline-start: 1rem; color: var(--ar-muted); }

/* Floating WhatsApp */
.ar-wa-float {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25d366;
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4);
  text-decoration: none;
}
.ar-wa-float:hover { color: #fff; transform: scale(1.05); }

@media (max-width: 991.98px) {
  .ar-nav { display: none; }
  .ar-steps { grid-template-columns: repeat(2, 1fr); }
  .ar-features { grid-template-columns: repeat(2, 1fr); }
  .ar-section { padding: 64px 0; }
}

@media (max-width: 575.98px) {
  .ar-container { padding: 0 16px; }
  .ar-container .row { --bs-gutter-x: 2rem; }
  .ar-header-inner { gap: 0.75rem; min-height: 64px; }
  .ar-logo img { height: 50px; }
  .ar-link { display: none; }
  .ar-hero { padding: 40px 0 56px; }
  .ar-actions .ar-btn { width: 100%; }
  .ar-stats { gap: 0.5rem; padding: 0.5rem; }
  .ar-stat strong { font-size: 1.3rem; }
  .ar-stat span { font-size: 0.8rem; }
  .ar-founder { grid-template-columns: 1fr; padding: 1.5rem; text-align: center; }
  .ar-founder-badge { width: 110px; height: 110px; font-size: 2.6rem; margin: 0 auto; }
  .ar-block { padding: 2.5rem 1.25rem; border-radius: 24px; }
  .ar-steps, .ar-features { grid-template-columns: 1fr; }
  .ar-quiz { flex-direction: column; align-items: stretch; text-align: center; padding: 1.75rem; }
  .ar-section { padding: 52px 0; }
}

/* Coach cards (filled by home-page.js from /api/trainers). Without these the coach
   photo shows at its full size and pushes the page far wider than a phone screen. */
.trainer-card { background: #fff; border-radius: 16px; box-shadow: 0 6px 24px rgba(0, 0, 0, .06); height: 100%; }
.trainer-card .card-body { padding: 1.5rem; }
.trainer-img-container { flex: 0 0 auto; width: 80px; height: 80px; border-radius: 50%; overflow: hidden; margin-inline-end: 15px; }
.trainer-img-container img { display: block; width: 100%; height: 100%; object-fit: cover; }
#trainersContainer img { max-width: 100%; }

/* Bootstrap row gutters stick out a few pixels on tablets; keep the page at screen width. */
html:has(body.ar-page), body.ar-page { overflow-x: clip; }
