/* ==========================================================================
   نادي قوة — Stylesheet
   Design system: industrial iron-gym aesthetic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lalezar&family=Cairo:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #171715;
  --panel: #201f1c;
  --panel-2: #262521;
  --line: #3a3934;
  --text: #f2efe8;
  --text-muted: #9d9a92;
  --yellow: #f5d400;
  --yellow-dim: #cdb200;
  --red: #e8432b;
  --radius: 4px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: 'Cairo', sans-serif;
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Lalezar', 'Cairo', sans-serif;
  font-weight: 400;
  margin: 0;
  line-height: 1.15;
  letter-spacing: 0.5px;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.hairline {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

section { position: relative; }

/* ---------------------------------- nav ---------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(23, 23, 21, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand .mark {
  font-family: 'Lalezar', sans-serif;
  font-size: 1.6rem;
  color: var(--yellow);
}

.brand .word {
  font-family: 'Lalezar', sans-serif;
  font-size: 1.6rem;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 34px;
  font-weight: 600;
  font-size: 0.98rem;
}

.nav-links a {
  color: var(--text-muted);
  transition: color 0.15s ease;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  border-color: var(--yellow);
}

.nav-cta {
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: none;
  font-family: 'Cairo', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
}

.nav-cta:hover { background: var(--yellow-dim); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 9px 14px;
  border-radius: var(--radius);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
}

/* --------------------------------- hero ---------------------------------- */

.hero {
  padding: 90px 0 70px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
}

.hero-eyebrow-free {
  color: var(--yellow);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 18px;
  display: inline-block;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.2rem);
  color: var(--text);
}

.hero h1 span { color: var(--yellow); }

.hero p.lead {
  margin-top: 22px;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 46ch;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: 'Cairo', sans-serif;
}

.btn-primary { background: var(--yellow); color: var(--ink); }
.btn-primary:hover { background: var(--yellow-dim); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--text); }

.hero-stats {
  margin-top: 54px;
  display: flex;
  gap: 44px;
}

.hero-stats .stat b {
  font-family: 'Lalezar', sans-serif;
  font-size: 2.1rem;
  color: var(--yellow);
  display: block;
}

.hero-stats .stat span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-art { position: relative; }

/* -------------------------------- sections -------------------------------- */

.section {
  padding: 86px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 46px;
}

.section-head h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--text);
}

.section-head p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-alt { background: var(--panel); }

/* -------------------------------- schedule -------------------------------- */

.day-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.day-tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-muted);
  padding: 11px 20px;
  border-radius: var(--radius);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.day-tab:hover { border-color: var(--text-muted); color: var(--text); }

.day-tab.active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.schedule-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.schedule-row {
  display: grid;
  grid-template-columns: 130px 1fr 140px;
  gap: 20px;
  padding: 20px 26px;
  align-items: center;
}

.schedule-row + .schedule-row { border-top: 1px solid var(--line); }

.schedule-row .time {
  font-family: 'Lalezar', sans-serif;
  color: var(--yellow);
  font-size: 1.15rem;
}

.schedule-row .info b {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 3px;
}

.schedule-row .info span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.schedule-row .tag {
  justify-self: start;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  width: fit-content;
}

.rest-row {
  padding: 34px 26px;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* -------------------------------- pricing -------------------------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.plan {
  padding: 44px 34px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}

.plan:last-child { border-right: none; }

.plan.featured {
  background: var(--panel-2);
  padding-top: 34px;
}

.plan .badge {
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 18px;
  height: 18px;
}

.plan h3 {
  font-size: 1.5rem;
  color: var(--text);
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
}

.plan .price {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plan .price b {
  font-family: 'Lalezar', sans-serif;
  font-size: 2.8rem;
  color: var(--text);
}

.plan .price span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.plan .old-price {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 0.95rem;
  margin-top: 4px;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  flex-grow: 1;
}

.plan li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.plan li:first-child { border-top: none; }

.plan .btn { margin-top: 28px; text-align: center; }

/* --------------------------------- offer ---------------------------------- */

.offer {
  background: var(--yellow);
  color: var(--ink);
  padding: 54px 0;
}

.offer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.offer h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  max-width: 16ch;
}

.offer p {
  margin-top: 10px;
  font-weight: 600;
  font-size: 1.05rem;
}

.offer-timer {
  display: flex;
  gap: 14px;
}

.offer-timer .unit {
  background: var(--ink);
  color: var(--yellow);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-align: center;
  min-width: 76px;
}

.offer-timer .unit b {
  font-family: 'Lalezar', sans-serif;
  font-size: 1.9rem;
  display: block;
}

.offer-timer .unit span {
  font-size: 0.78rem;
  color: #cfcac0;
}

.offer .btn-primary {
  background: var(--ink);
  color: var(--yellow);
}
.offer .btn-primary:hover { background: #000; }

/* -------------------------------- coaches --------------------------------- */

.coach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.coach {
  background: var(--ink);
  padding: 30px 24px;
}

.coach .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lalezar', sans-serif;
  color: var(--yellow);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.coach h3 {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
}

.coach span {
  color: var(--yellow);
  font-size: 0.88rem;
  font-weight: 600;
}

.coach p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* -------------------------------- footer ---------------------------------- */

.footer {
  background: var(--panel);
  padding: 60px 0 30px;
}

.footer .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer .brand { margin-bottom: 14px; }

.footer p { color: var(--text-muted); font-size: 0.95rem; max-width: 32ch; }

.footer h4 {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer ul { list-style: none; padding: 0; margin: 0; }

.footer li { margin-bottom: 10px; }

.footer a { color: var(--text-muted); font-size: 0.95rem; }
.footer a:hover { color: var(--yellow); }

.footer-bottom {
  margin-top: 50px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* -------------------------------- helpers ---------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* -------------------------------- responsive ------------------------------- */

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .pricing-grid { grid-template-columns: 1fr; }
  .plan { border-right: none; border-top: 1px solid var(--line); }
  .plan:first-child { border-top: none; }
  .coach-grid { grid-template-columns: repeat(2, 1fr); }
  .footer .wrap { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    padding: 8px 28px 18px;
  }
  /* تفتح القائمة بـ class بدل style مباشر */
  .nav-links.nav-open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: block; }
  .schedule-row { grid-template-columns: 1fr; text-align: center; gap: 8px; }
  .schedule-row .tag { justify-self: center; }
  .hero-stats { flex-wrap: wrap; gap: 28px; }
  .coach-grid { grid-template-columns: 1fr; }
  .footer .wrap { grid-template-columns: 1fr; }
  .offer .wrap { flex-direction: column; align-items: flex-start; }
}
