/* رزام — الموقع التعريفي. أخضر الأرز + النحاس، خط واحد (تجوال) بتباين الأوزان. */
@font-face { font-family: 'Tajawal'; font-weight: 100 600; src: url('/letterhead/fonts/Tajawal-Regular.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Tajawal'; font-weight: 700; src: url('/letterhead/fonts/Tajawal-Bold.ttf') format('truetype'); font-display: swap; }
@font-face { font-family: 'Tajawal'; font-weight: 800 1000; src: url('/letterhead/fonts/Tajawal-Black.ttf') format('truetype'); font-display: swap; }
:root {
  --cedar: #12322A; --cedar-2: #1B4438; --ink: #18211D; --mute: #56625C; --paper: #F3F5F2; --white: #FFFFFF;
  --brass: #B48A3C; --brass-2: #C9A25A; --brass-tint: #EFE6D2; --sage: #DCE3DE; --ok: #1E7A4C; --err: #A52A21;
  --r-s: 8px; --r-m: 14px; --wrap: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif; background: var(--paper); color: var(--ink); line-height: 1.75; font-size: 17px; }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--brass-2); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--brass); color: #fff; padding: 8px 14px; border-radius: var(--r-s); z-index: 50; }
.skip:focus { top: 10px; }
.staging { background: #A52A21; color: #fff; text-align: center; font-weight: 800; padding: 6px; font-size: 14px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ── التنقل ── */
.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 10px 20px; background: rgba(18, 50, 42, .97); color: #fff; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { font-weight: 900; font-size: 22px; line-height: 1.1; }
.brand small { display: block; font-weight: 400; font-size: 11.5px; color: #CFC3A6; }
.nav nav { display: flex; gap: 2px; margin-inline-start: auto; }
.nav nav a { text-decoration: none; padding: 8px 12px; border-radius: var(--r-s); font-size: 15px; color: #E7EDE9; }
.nav nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; border-radius: var(--r-s); padding: 12px 20px; font-size: 16px; }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: #A07A31; }
.btn-line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-line:hover { background: rgba(255, 255, 255, .08); }
.nav-cta { padding: 9px 16px; font-size: 15px; }
@media (max-width: 900px) {
  .nav { flex-wrap: wrap; gap: 8px; padding: 8px 14px; }
  .nav nav { order: 3; width: 100%; overflow-x: auto; margin: 0; padding-bottom: 2px; scrollbar-width: none; }
  .nav nav a { white-space: nowrap; font-size: 14px; padding: 6px 10px; }
  .nav-cta { margin-inline-start: auto; }
  .brand small { display: none; }
}

/* ── الواجهة: العنوان + الحاسبة الحية ── */
.hero { background: var(--cedar); color: #fff; padding: 56px 0 64px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; inset-inline-end: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(201, 162, 90, .25); }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-weight: 900; font-size: clamp(34px, 5.2vw, 60px); line-height: 1.18; letter-spacing: -.5px; max-width: 14ch; }
.hero .lede { margin-top: 18px; font-size: 19px; color: #D3DED8; max-width: 46ch; }
.hero .acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero .trust { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; color: #B9C8C1; }
.hero .trust b { color: #fff; font-weight: 800; }
@media (max-width: 900px) { .hero { padding: 34px 0 40px; } .hero-in { grid-template-columns: 1fr; gap: 28px; } }

/* الحاسبة: ورقة بخط نحاسي (مثل صك) */
.deed { background: var(--white); color: var(--ink); border-radius: var(--r-m); padding: 22px 22px 18px; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); border-top: 6px solid var(--brass); }
.deed h2 { font-size: 19px; font-weight: 900; }
.deed .src { font-size: 13px; color: var(--mute); margin-top: 2px; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 14px; }
.f-grid .full { grid-column: 1 / -1; }
label.f { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 4px; color: #2F3A35; }
.in { width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border: 1.5px solid var(--sage); border-radius: var(--r-s); background: #FBFCFB; color: var(--ink); }
.in:focus { border-color: var(--brass); outline: none; box-shadow: 0 0 0 3px rgba(180, 138, 60, .18); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; border: 1.5px solid var(--sage); border-radius: 30px; padding: 6px 12px; font-size: 14px; }
.seg input:checked + span { background: var(--cedar); color: #fff; border-color: var(--cedar); }
.seg input:focus-visible + span { outline: 3px solid var(--brass-2); }
.result { margin-top: 16px; border-top: 1px dashed var(--sage); padding-top: 14px; }
.result .total { font-weight: 900; font-size: clamp(34px, 6vw, 46px); line-height: 1; color: var(--cedar); font-variant-numeric: tabular-nums; }
.result .total small { font-size: 16px; font-weight: 700; color: var(--mute); margin-inline-start: 6px; }
.result .lines { margin-top: 10px; font-size: 14px; color: #3B4842; }
.result .lines div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.result .lines b { font-variant-numeric: tabular-nums; }
.result .basis { font-size: 12.5px; color: var(--mute); margin-top: 8px; }
.result .cta { margin-top: 14px; }
.small { font-size: 13px; color: var(--mute); }

/* ── الأقسام ── */
.sec { padding: 72px 0; }
.sec h2.t { font-weight: 900; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.25; max-width: 22ch; }
.sec .sub { color: var(--mute); margin-top: 10px; max-width: 60ch; }
@media (max-width: 700px) { .sec { padding: 48px 0; } }

/* التخصصات: صفوف بسؤال كبير لا بطاقات */
.areas { margin-top: 34px; border-top: 1.5px solid var(--ink); }
.area { display: grid; grid-template-columns: 1.1fr 1fr auto; gap: 24px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--sage); text-decoration: none; }
.area .q { font-weight: 900; font-size: clamp(21px, 2.4vw, 27px); line-height: 1.35; }
.area .k { display: block; font-weight: 700; font-size: 14px; color: var(--brass); margin-bottom: 6px; }
.area p { color: #3B4842; font-size: 16px; }
.area .go { font-weight: 800; color: var(--cedar); white-space: nowrap; padding-top: 4px; }
.area:hover .q { color: var(--cedar-2); text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 6px; }
@media (max-width: 800px) { .area { grid-template-columns: 1fr; gap: 8px; } }

/* خطوات العمل: تسلسل حقيقي */
.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 34px; }
.steps li { counter-increment: s; padding: 4px 22px 4px 0; border-inline-start: 1.5px solid var(--sage); padding-inline-start: 22px; }
.steps li:first-child { border-inline-start: 0; padding-inline-start: 0; }
.steps li::before { content: counter(s, arabic-indic); display: block; font-weight: 900; font-size: 44px; color: var(--brass); line-height: 1; margin-bottom: 10px; }
.steps b { display: block; font-size: 19px; font-weight: 900; }
.steps p { color: var(--mute); font-size: 15.5px; margin-top: 4px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 22px; } .steps li { border: 0; padding: 0; } }

/* الفريق */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px; margin-top: 30px; }
.member img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-m); background: var(--sage); }
.member .ph { width: 100%; aspect-ratio: 4/5; border-radius: var(--r-m); background: var(--cedar); color: var(--brass-2); display: flex; align-items: center; justify-content: center; font-size: 72px; font-weight: 900; }
.member b { display: block; margin-top: 12px; font-size: 18px; font-weight: 900; }
.member span { display: block; color: var(--brass); font-weight: 700; font-size: 14px; }
.member p { color: var(--mute); font-size: 15px; margin-top: 6px; }

/* الأرقام والتقييمات */
.band { background: var(--white); border-block: 1px solid var(--sage); }
.stats { display: flex; flex-wrap: wrap; gap: 18px 56px; }
.stat b { display: block; font-weight: 900; font-size: 44px; color: var(--cedar); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--mute); font-size: 15px; }
.quotes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin-top: 30px; }
.quote { border-inline-start: 4px solid var(--brass); padding: 4px 16px 4px 0; padding-inline-start: 16px; }
.quote p { font-size: 17px; }
.quote footer { margin-top: 8px; color: var(--mute); font-size: 14px; }
.stars { color: #C58B12; letter-spacing: 2px; }

/* المقالات */
.posts { margin-top: 26px; display: grid; gap: 0; }
.post { display: grid; grid-template-columns: 140px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--sage); text-decoration: none; }
.post time { color: var(--mute); font-size: 14px; }
.post b { font-size: 19px; font-weight: 900; display: block; }
.post p { color: var(--mute); font-size: 15.5px; margin-top: 4px; }
.post:hover b { color: var(--cedar-2); text-decoration: underline; text-decoration-color: var(--brass); }
@media (max-width: 640px) { .post { grid-template-columns: 1fr; gap: 4px; } }

/* صفحة الخدمة والمقال */
.page-head { background: var(--cedar); color: #fff; padding: 46px 0 40px; }
.page-head h1 { font-weight: 900; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.2; max-width: 20ch; }
.page-head p { color: #D3DED8; margin-top: 12px; font-size: 18px; max-width: 60ch; }
.page-head .crumbs { font-size: 14px; color: #B9C8C1; margin-bottom: 12px; }
.page-head .crumbs a { color: #E7EDE9; }
.cols { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.aside { position: sticky; top: 84px; background: var(--white); border-radius: var(--r-m); padding: 20px; border-top: 6px solid var(--brass); }
.aside b { font-size: 18px; font-weight: 900; display: block; }
.aside .btn { width: 100%; margin-top: 10px; }
@media (max-width: 900px) { .cols { grid-template-columns: 1fr; } .aside { position: static; } }
.prose { max-width: 68ch; }
.prose h2 { font-weight: 900; font-size: 25px; margin: 30px 0 10px; }
.prose h3 { font-weight: 800; font-size: 20px; margin: 22px 0 8px; }
.prose p, .prose li { font-size: 17.5px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { padding-inline-start: 22px; margin-bottom: 14px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--cedar-2); text-decoration-color: var(--brass); }
.prose blockquote { border-inline-start: 4px solid var(--brass); padding-inline-start: 14px; color: #3B4842; margin: 14px 0; }
.faq details { border-bottom: 1px solid var(--sage); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--brass); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin-top: 8px; color: #3B4842; }
.disclaimer { margin-top: 26px; font-size: 14px; color: var(--mute); border-top: 1px solid var(--sage); padding-top: 12px; }

/* النماذج العامة */
.form-card { background: var(--white); border-radius: var(--r-m); padding: 22px; border: 1px solid var(--sage); max-width: 560px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; margin-top: 12px; }
.check input { width: 18px; height: 18px; margin-top: 4px; flex: none; accent-color: var(--cedar); }
.msg { padding: 10px 12px; border-radius: var(--r-s); font-size: 15px; margin-top: 12px; }
.msg.ok { background: #E3F2EA; color: var(--ok); } .msg.err { background: #FBE8E6; color: var(--err); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* التذييل */
.foot { background: var(--ink); color: #C9D2CD; padding: 44px 0 24px; margin-top: 0; }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.foot b { color: #fff; font-size: 17px; }
.facts { margin-top: 10px; display: grid; gap: 4px; font-size: 14px; }
.facts div { display: flex; gap: 8px; flex-wrap: wrap; }
.facts dt { color: #8FA197; } .facts dd { color: #E7EDE9; }
.foot-contact, .foot-links { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.foot a { color: #E7EDE9; text-decoration: none; } .foot a:hover { text-decoration: underline; }
.soc { display: flex; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.fine { max-width: var(--wrap); margin: 26px auto 0; padding: 14px 20px 0; border-top: 1px solid #2E3934; font-size: 13px; color: #8FA197; }
@media (max-width: 800px) { .foot-in { grid-template-columns: 1fr; } }
.wa-float { position: fixed; inset-inline-start: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: #1FA855; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); z-index: 40; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
.en { font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; }
.en .hero h1 { letter-spacing: -1px; }
.foot-contact a[dir=ltr], .facts dd[dir=ltr] { text-align: right; unicode-bidi: isolate; }
/* v22: نموذج صفحات الهبوط */
.lf { margin-top: 10px; display: grid; gap: 4px; }
.lf .in { width: 100%; }
.lf textarea.in { resize: vertical; min-height: 80px; }
.lf .check { margin-top: 6px; }
