/* JUST START — refinement layer (loaded last). Apple-grade type, calmer surfaces, gallery. */

/* 1. Type: SF on Apple devices, closest free match everywhere else. */
:root,
html[data-theme=dark] {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Arabic", "Inter", "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  --latin: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
body, button, input, select, textarea { font-family: var(--font); font-feature-settings: "kern", "liga"; text-rendering: optimizeLegibility; }
.brand__name { font-family: var(--latin); font-weight: 800; letter-spacing: -0.03em; }

/* Arabic letters must stay connected: never track Arabic text. */
html[lang=ar] h1, html[lang=ar] h2, html[lang=ar] h3, html[lang=ar] p,
html[lang=ar] .btn, html[lang=ar] summary, html[lang=ar] a { letter-spacing: 0 !important; }
html[lang=ar] [dir=ltr] { letter-spacing: revert; }
html[lang=en] h1, html[lang=en] h2 { letter-spacing: -0.035em; }
h1, h2 { font-weight: 700; text-wrap: balance; }
h3 { font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
html[lang=ar] h1 { line-height: 1.3; }
html[lang=en] h1 { line-height: 1.05; }
html[lang=en] h2 { line-height: 1.1; }

/* Small labels: quiet, precise, no decorative tracking noise. */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0; }
.eyebrow-line { display: none; }
.feature-number, .step-number, .cine-index { font-family: var(--latin); font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* 2. Strong, consistent icons. */
.i-arrow, .i-down { display: inline-block; flex: none; vertical-align: -3px; margin-inline-start: 8px; transition: transform .25s var(--ease); }
[dir=rtl] .i-arrow { transform: scaleX(-1); }
a:hover > .i-arrow { transform: translate(3px, -3px); }
[dir=rtl] a:hover > .i-arrow { transform: scaleX(-1) translate(3px, -3px); }
a:hover > .i-down { transform: translateY(3px); }
.store-arrow { display: inline-flex; }
.store-arrow .i-arrow { margin: 0; }

/* 3. Calmer surfaces: drop template glows, gradients and coloured shadows. */
.btn { box-shadow: none; font-weight: 600; transition: background-color .2s var(--ease), transform .2s var(--ease), filter .2s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.98); }
.start-panel { background: var(--surface) !important; }
.benefit, .benefit-training { background: var(--card) !important; }
.form-card { box-shadow: none; }
.hero::before { display: none; }

/* 4. Cinematic gallery. */
.cine-section { padding: 110px 0 100px; overflow: hidden; }
.cine-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 40px; }
.cine-head h2 { margin: 0; }
.cine-controls { display: flex; align-items: center; gap: 10px; flex: none; }
.cine-count { font-family: var(--latin); font-variant-numeric: tabular-nums; font-size: 14px; color: var(--muted); margin-inline-end: 12px; }
.cine-count b { color: var(--ink); font-weight: 600; }
.cine-btn { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--ink); cursor: pointer; transition: background-color .2s var(--ease), opacity .2s; }
.cine-btn:hover:not(:disabled) { background: color-mix(in oklab, var(--ink) 8%, transparent); }
.cine-btn:disabled { opacity: .3; cursor: default; }
.cine-btn:focus-visible, .cine-track:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
[dir=rtl] .cine-btn svg { transform: scaleX(-1); }

.cine-track {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-inline: max(32px, calc((100vw - 1240px) / 2 + 32px));
  scroll-padding-inline: max(32px, calc((100vw - 1240px) / 2 + 32px));
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.cine-track::-webkit-scrollbar { display: none; }
.cine-slide { flex: 0 0 min(72vw, 980px); margin: 0; scroll-snap-align: start; cursor: pointer; }
.cine-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 20px; background: var(--surface); }
.cine-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); filter: saturate(.85) contrast(1.04); transition: transform 1.2s var(--ease), filter .8s var(--ease), opacity .8s; opacity: .55; }
.cine-slide.is-active .cine-frame img { transform: scale(1); filter: saturate(1) contrast(1.02); opacity: 1; }
.cine-slide figcaption { display: flex; align-items: baseline; gap: 14px; padding: 18px 2px 0; opacity: .45; transition: opacity .6s var(--ease); }
.cine-slide.is-active figcaption { opacity: 1; }
.cine-slide figcaption b { font-size: 17px; font-weight: 600; }
.cine-slide figcaption span:last-child { color: var(--muted); font-size: 15px; }
.cine-index { font-size: 13px; color: var(--red-ink); }
.cine-progress { height: 2px; background: var(--border); margin-top: 36px; border-radius: 2px; overflow: hidden; }
.cine-progress span { display: block; height: 100%; width: 25%; background: var(--ink); transition: width .5s var(--ease); }

@media (max-width: 760px) {
  .cine-section { padding: 72px 0 64px; }
  .cine-head { margin-bottom: 26px; }
  .cine-count { display: none; }
  .cine-btn { width: 42px; height: 42px; }
  .cine-track { gap: 12px; padding-inline: 20px; scroll-padding-inline: 20px; }
  .cine-slide { flex-basis: 86vw; }
  .cine-frame { aspect-ratio: 4 / 5; border-radius: 16px; }
  .cine-slide figcaption { flex-wrap: wrap; gap: 4px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .cine-frame img, .cine-progress span, .i-arrow { transition: none; }
}


/* صفحات الأقسام (وكيل SEO) */
.section-page{padding-block:32px 56px;max-width:860px}
.section-page h1{font-size:clamp(30px,6vw,52px);line-height:1.15;margin:8px 0 12px}
.section-page h2{font-size:clamp(20px,3.6vw,26px);margin:36px 0 12px}
.crumbs{display:flex;gap:8px;align-items:center;font-size:13px;opacity:.75;margin-bottom:18px}
.crumbs a{color:inherit}
.feature-list{display:grid;gap:10px;padding:0;margin:0;list-style:none}
.feature-list li{padding:14px 16px;border:1px solid rgba(255,255,255,.1);border-radius:16px;line-height:1.7}
[data-theme="light"] .feature-list li{border-color:rgba(0,0,0,.1)}
.page-faq details{padding:14px 0;border-bottom:1px solid rgba(127,127,127,.2)}
.page-faq summary{cursor:pointer;font-weight:700}
.page-faq p{margin:8px 0 0;line-height:1.8;opacity:.85}
.page-cta{margin-top:36px;display:grid;gap:10px;justify-items:start}
.page-cta p{font-size:13px;opacity:.75;margin:0}
.foot-links{display:flex;flex-wrap:wrap;gap:6px 10px;justify-content:center;margin:18px 0 6px;font-size:13px}
.section-page .foot-links{justify-content:flex-start;margin-top:40px}
.foot-links a{color:inherit;opacity:.8}
.foot-mini{display:flex;gap:16px;justify-content:center;padding-block:20px;font-size:13px}
.foot-mini a{color:inherit;opacity:.8}
.skip{position:absolute;inset-inline-start:12px;top:-60px;z-index:50;padding:8px 14px;border-radius:10px;background:#e5232f;color:#fff;font-weight:700}
.skip:focus{top:12px}

/* صور JUST START الحقيقية: قصّات جاهزة على مقاس كل مكان */
.feature-media [data-feature-image] img{object-position:50% 45%}
.feature-media [data-feature-image=nutrition] img{object-position:65% center}
.life-photo--gym img{object-position:50% 40%}

/* منشورات حساباتنا */
.posts-section{padding-bottom:40px}
.posts-head{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:36px}
.posts-head h2{margin:0}
.posts-head .eyebrow{margin-bottom:16px}
.posts-track{display:flex;gap:16px;list-style:none;margin:0;overflow-x:auto;scroll-snap-type:x mandatory;padding:0 max(32px, calc((100vw - 1240px) / 2 + 32px)) 8px;scroll-padding-inline:max(32px, calc((100vw - 1240px) / 2 + 32px));scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.posts-track::-webkit-scrollbar{display:none}
.posts-track li{flex:0 0 300px;scroll-snap-align:start}
.posts-track a{display:block;aspect-ratio:4/5;border-radius:18px;overflow:hidden;background:var(--surface)}
.posts-track img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .8s var(--ease)}
.posts-track a:hover img{transform:scale(1.03)}
@media(max-width:760px){.posts-section{padding-bottom:24px}.posts-head{display:block;margin-bottom:24px}.posts-head .feature-cta{margin-top:12px}.posts-track{gap:12px;padding-inline:20px;scroll-padding-inline:20px}.posts-track li{flex-basis:72vw}}
@media(prefers-reduced-motion:reduce){.posts-track img{transition:none}}

/* صور صفحات الأقسام */
.page-photos{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:28px 0 4px}
.page-photos figure{margin:0;aspect-ratio:4/5;border-radius:18px;overflow:hidden;background:var(--surface)}
.page-photos img{display:block;width:100%;height:100%;object-fit:cover}
@media(max-width:760px){.page-photos{gap:10px;margin-top:22px}.page-photos figure{border-radius:14px}}

/* صور «من داخل النادي» بدون كتابة */
.posts-track figure{margin:0;aspect-ratio:4/5;border-radius:18px;overflow:hidden;background:var(--surface)}
.posts-track figure img{display:block;width:100%;height:100%;object-fit:cover}
.posts-track--photos li{flex-basis:260px}
.photos-section{padding-top:72px}
@media(max-width:760px){.posts-track--photos li{flex-basis:62vw}.photos-section{padding-top:48px}}

/* صور طولية في الأماكن العرضية */
.cine-frame picture{display:block;width:100%;height:100%}
.life-photo--home img{object-position:40% 45%}
@media(min-width:761px){
  .movement-chapter{background:#0b0e15}
  .movement-chapter>picture{inset-block:0;inset-inline-start:auto;inset-inline-end:0;width:52%}
  .movement-chapter img{object-position:50% 30%}
  .movement-chapter:after{background:linear-gradient(270deg,#0b0e15 46%,#0b0e1500 62%)}
  [dir=ltr] .movement-chapter:after{background:linear-gradient(90deg,#0b0e15 46%,#0b0e1500 62%)}
}
/* شعار JUST START على اللبس لازم ما ينعكس */
[dir=rtl] .movement-chapter img,[dir=ltr] .hero-photo img{transform:none}
@media(max-width:760px){.movement-chapter img{object-position:50% 15%}}
