/* ==========================================================================
   الصفحات الداخلية | Inner pages
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 88px) clamp(40px, 5vw, 64px); background: var(--bg-alt); border-bottom: 1px solid var(--border); text-align: center; }
.page-hero::before { content: ""; position: absolute; inset: -40% 10% auto; height: 420px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 14%, transparent), transparent); pointer-events: none; }
.page-hero .container { position: relative; max-width: 820px; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.25; margin: 1rem 0 .75rem; }
.page-hero .lead { color: var(--muted); font-size: 1.15rem; margin: 0 auto; max-width: 640px; }
.crumbs { display: inline-flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .92rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--brand-text); font-weight: 700; }
.article .crumbs { margin-bottom: 1.25rem; }
.main-nav a.is-active, .main-nav a[aria-current="page"] { color: var(--brand-text); }
.header-login { display: inline-grid; }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 760px; display: grid; gap: 1rem; }
.timeline li { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; box-shadow: var(--shadow-sm); }
.timeline b { font-size: 1.35rem; color: var(--brand-text); }

/* filters & pager */
.filter-chips .chip { cursor: pointer; font-family: inherit; color: var(--text); }
.filter-chips .chip.is-active { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
[data-cat][hidden] { display: none !important; }
.pager { display: flex; justify-content: center; gap: .5rem; margin-top: 2.5rem; }
.pager .is-active { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }

/* article extras */
.byline { display: flex; gap: .75rem; align-items: center; margin: 1rem 0 1.5rem; }
.byline small { display: block; }
.pull { margin: 2rem 0; padding: 1.25rem 1.5rem; border-inline-start: 4px solid var(--brand); background: var(--brand-soft); border-radius: var(--radius-sm); font-size: 1.2rem; font-weight: 700; }
.share { display: flex; align-items: center; gap: .5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* auth */
.auth { display: grid; grid-template-columns: minmax(0, 480px) 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.auth-card { padding: clamp(1.5rem, 4vw, 2.5rem); }
.auth-card h1 { font-size: 1.9rem; margin: 0 0 .25rem; }
.auth-card .logo-mark { display: grid; }
.sso { display: grid; gap: .6rem; margin-top: 1.25rem; }
.or { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .9rem; margin: 1.25rem 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.pass { position: relative; }
.pass input { padding-inline-end: 3rem; }
.pass .tool-btn { position: absolute; inset-inline-end: .35rem; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.auth-side h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.auth-side .mock { margin-top: 1.5rem; }

/* legal */
.legal { display: grid; grid-template-columns: 260px 1fr; gap: 3rem; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 1rem); padding: 1.25rem 1.5rem; }
.legal-toc .toc { margin: .75rem 0 0; padding-inline-start: 1.1rem; display: grid; gap: .4rem; }
.legal .article { margin: 0; max-width: none; }
.legal h2 { scroll-margin-top: calc(var(--header-h) + 1rem); }

/* status pages */
.status-page { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.big-num { font-size: clamp(5rem, 18vw, 9rem); font-weight: 900; line-height: 1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; }
.done-icon { width: 88px; height: 88px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); margin-bottom: 1rem; }
.done-icon .icon { width: 44px; height: 44px; }
.status-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

/* case study / jobs / services */
.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 2rem 0; }
.case-meta div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; }
.case-meta small { display: block; color: var(--muted); }
.case-cover { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.case-cover svg { width: 100%; height: auto; display: block; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.result-grid div { text-align: center; padding: 1.5rem; border-radius: var(--radius); background: var(--brand-soft); }
.result-grid b { display: block; font-size: 2.2rem; color: var(--brand-text); }
.job { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.job h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
.job .tags { display: flex; gap: .5rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.jobs { display: grid; gap: 1rem; max-width: 900px; margin: 0 auto; }
.service-card .price-from { margin-top: auto; padding-top: 1rem; font-weight: 800; color: var(--brand-text); }
.service-card { display: flex; flex-direction: column; }
.work a { color: inherit; text-decoration: none; display: block; }
.work:hover { box-shadow: var(--shadow); transform: translateY(-2px); transition: .2s; }

@media (max-width: 900px) {
  .auth, .legal { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .case-meta { grid-template-columns: repeat(2, 1fr); }
  .result-grid { grid-template-columns: 1fr; }
  .auth-side .mock { display: none; }
}
@media (max-width: 560px) { .header-login { display: none; } .timeline li { grid-template-columns: 70px 1fr; } }

/* ---- v1.2 real preview photos ---- */
.thumb img, .case-cover img, .article .cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-cover { aspect-ratio: 16 / 10; }
.case-cover.case-main { aspect-ratio: 21 / 9; }
.article .cover { aspect-ratio: 16 / 8; }
.avatar.has-photo { background: var(--surface-2); padding: 0; overflow: hidden; }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.hm-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hm-split .hm-copy h1 { font-size: clamp(2.3rem, 4.1vw, 3.7rem); }
.hero-media { position: relative; min-height: 500px; }
.hero-media .hm-main { position: absolute; top: 0; bottom: 56px; inset-inline-start: 0; inset-inline-end: 64px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px -25px rgb(15 23 42 / 45%); }
.hero-media .hm-small { position: absolute; width: 44%; aspect-ratio: 4 / 3; bottom: 0; inset-inline-end: 0; border-radius: var(--radius); overflow: hidden; border: 6px solid var(--bg); box-shadow: 0 20px 40px -20px rgb(15 23 42 / 45%); }
.hero-media .hm-third { position: absolute; width: 24%; aspect-ratio: 1; top: -18px; inset-inline-start: -18px; border-radius: 50%; overflow: hidden; border: 6px solid var(--bg); box-shadow: 0 16px 30px -16px rgb(15 23 42 / 40%); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media .hm-card { position: absolute; top: 36px; inset-inline-end: 0; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem 1rem; display: flex; gap: .7rem; align-items: center; box-shadow: 0 18px 36px -18px rgb(15 23 42 / 45%); font-size: .92rem; max-width: 300px; white-space: nowrap; }
.hero-media .hm-card b { display: block; font-size: 1.3rem; color: var(--brand-text); }
.service-card .thumb { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; margin-bottom: 1rem; background: var(--surface-2); }
.service-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ph-banner-wrap { padding-top: 0; }
.ph-banner { margin: 0; aspect-ratio: 21 / 7; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px -30px rgb(15 23 42 / 40%); }
.ph-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.status-media { margin: 0 auto 1.5rem; max-width: 460px; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; }
.status-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auth.has-media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; max-width: 1100px; }
.auth-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; position: relative; }
.auth-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) { .auth.has-media { grid-template-columns: 1fr; } .auth-media { aspect-ratio: 16 / 9; } .ph-banner { aspect-ratio: 16 / 7; } }
@media (max-width: 960px) { .hm-split { grid-template-columns: 1fr; } .hero-media { min-height: 360px; } }
@media (max-width: 520px) { .hero-media { min-height: 300px; } .hero-media .hm-third { display: none; } }
