/* LiteCMS — تصميم الموقع العام (RTL) */
:root {
  --p: #0d9488;
  --pd: #0f766e;
  --pl: #ccfbf1;
  --ink: #0f172a;
  --mut: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --line: #e2e8f0;
  --wa: #22c55e;
  --r: 16px;
  --sh: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pd); text-decoration: none; }
ul { list-style: none; }
.wrap { width: min(1140px, 92%); margin-inline: auto; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.center-flex { justify-content: center; }
.mt { margin-top: 2.2rem; }
.skip { position: absolute; inset-inline-start: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 99; }
.skip:focus { inset-inline-start: 0; }

/* أزرار */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: .2s; font-family: inherit;
}
.btn-sm { padding: .45rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--p); color: #fff; }
.btn-primary:hover { background: var(--pd); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--pd); border-color: var(--p); }
.btn-ghost:hover { background: var(--p); color: #fff; }
.btn-light { background: #fff; color: var(--pd); }
.btn-light:hover { transform: translateY(-1px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(.94); }

/* الترويسة */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.logo { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; color: var(--ink); }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav > a { color: #334155; font-weight: 600; font-size: .95rem; }
.nav > a:hover { color: var(--p); }
.topbar-actions { display: flex; align-items: center; gap: .8rem; }
.phone { display: flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--pd); }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.burger span { display: block; width: 24px; height: 2.5px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* البطل */
.hero { background: linear-gradient(135deg, var(--pd) 0%, #115e59 55%, #134e4a 100%); color: #fff; overflow: hidden; position: relative; }
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .25;
  background-image: radial-gradient(rgba(255,255,255,.35) 1px, transparent 1.4px); background-size: 26px 26px;
}
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; padding: 4.2rem 0; position: relative; z-index: 1; }
.hero .chip { display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); padding: .28rem 1rem; border-radius: 999px; font-size: .82rem; font-weight: 600; margin-bottom: 1rem; color: #fff; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.7rem); font-weight: 800; line-height: 1.35; margin-bottom: .8rem; }
.hero .lead { color: #d1fae5; font-size: 1.08rem; max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.65); }
.hero .btn-ghost:hover { background: #fff; color: var(--pd); }
.hero-img img { border-radius: var(--r); box-shadow: 0 24px 60px rgba(0,0,0,.3); }

/* الإحصائيات */
.stats { background: var(--ink); color: #fff; }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.6rem 0; text-align: center; }
.stat b { display: block; font-size: 1.7rem; color: #5eead4; font-weight: 800; }
.stat span { font-size: .88rem; color: #cbd5e1; }

/* الأقسام */
.sec { padding: 3.6rem 0; }
.sec.alt { background: #fff; }
.sec-head { text-align: center; margin-bottom: 2.2rem; }
.sec-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
.sec-head p { color: var(--mut); margin-top: .4rem; }

/* البطاقات */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.3rem; }
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: .25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: #99f6e4; }
.card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.card-b { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.card-b h3 { font-size: 1.05rem; font-weight: 700; }
.card-b p { color: var(--mut); font-size: .92rem; flex: 1; }
.more { color: var(--p); font-weight: 700; font-size: .88rem; }
.date { color: var(--mut); font-size: .8rem; }
.chip { display: inline-block; background: var(--pl); color: var(--pd); border-radius: 999px; padding: .2rem .85rem; font-size: .8rem; font-weight: 700; }
.chip-sm { align-self: flex-start; }

/* لماذا نحن */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.why { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem 1.4rem; }
.why-ic { display: inline-flex; width: 46px; height: 46px; border-radius: 12px; background: var(--pl); color: var(--pd); align-items: center; justify-content: center; margin-bottom: .9rem; }
.why-ic svg { width: 24px; height: 24px; }
.why h3 { font-size: 1rem; margin-bottom: .35rem; }
.why p { color: var(--mut); font-size: .9rem; }

/* الأسئلة */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: .7rem; overflow: hidden; }
.faq summary { cursor: pointer; font-weight: 700; padding: 1rem 1.2rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 1.1rem; color: var(--p); font-size: 1.3rem; top: 50%; transform: translateY(-50%); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 1.2rem 1.1rem; color: var(--mut); }

/* شريط الدعوة */
.cta-band { background: linear-gradient(120deg, var(--pd), var(--p)); color: #fff; padding: 2.6rem 0; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-in h2 { font-size: 1.5rem; font-weight: 800; }
.cta-in p { color: #ccfbf1; }
.cta-inline { border-radius: var(--r); margin-top: 2.4rem; }

/* رأس الصفحات الداخلية */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 2.2rem 0; }
.page-head h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; }
.page-head .lead { color: var(--mut); margin-top: .3rem; }
.crumbs { display: flex; gap: .5rem; color: var(--mut); font-size: .84rem; margin-bottom: .7rem; flex-wrap: wrap; }
.crumbs a { color: var(--mut); }
.crumbs b { color: var(--pd); font-weight: 600; }

/* صفحة الخدمة */
.svc-head { background: linear-gradient(135deg, #f0fdfa, #fff); }
.svc-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.4rem; align-items: center; }
.svc-grid h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: .6rem 0; }
.svc-grid .lead { color: var(--mut); }
.svc-img img { border-radius: var(--r); box-shadow: var(--sh); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.svc-body { display: grid; grid-template-columns: 1fr 300px; gap: 2.2rem; padding: 3rem 0 4rem; align-items: start; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; margin-bottom: 2rem; }
.feature { display: flex; align-items: center; gap: .6rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .75rem 1rem; font-weight: 600; font-size: .92rem; }
.feature svg { width: 18px; height: 18px; color: var(--p); flex-shrink: 0; }
.svc-aside { position: sticky; top: 90px; }
.aside-card { background: var(--ink); color: #fff; border-radius: var(--r); padding: 1.5rem; display: flex; flex-direction: column; gap: .7rem; }
.aside-card h3 { margin-bottom: .3rem; }
.aside-info { margin-top: .8rem; border-top: 1px solid rgba(255,255,255,.15); padding-top: .8rem; display: flex; flex-direction: column; gap: .4rem; font-size: .88rem; color: #cbd5e1; }
.price-box { background: var(--pl); border: 1px solid #99f6e4; border-radius: var(--r); padding: 1.3rem 1.5rem; margin: 1.8rem 0; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.price-box b { color: var(--pd); }
.price-box p { flex: 1; min-width: 200px; }
.rel-cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.card-sm img { aspect-ratio: 16/9; }

/* المحتوى النصي */
.prose { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.8rem 2rem; }
.prose h2 { font-size: 1.3rem; font-weight: 800; margin: 1.6rem 0 .7rem; padding-inline-start: .8rem; border-inline-start: 4px solid var(--p); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin: 1.3rem 0 .5rem; }
.prose p { margin-bottom: 1rem; color: #334155; }
.prose ul { list-style: disc; padding-inline-start: 1.5rem; margin-bottom: 1rem; color: #334155; }
.prose li { margin-bottom: .35rem; }
.prose img { border-radius: 12px; margin: 1rem auto; }
.prose a { text-decoration: underline; }

/* المقال */
.article h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.4; margin-top: .5rem; }
.a-meta { display: flex; gap: 1.2rem; color: var(--mut); font-size: .88rem; margin: .8rem 0 1.4rem; }
.a-cover { border-radius: var(--r); margin-bottom: 1.6rem; aspect-ratio: 2/1; object-fit: cover; width: 100%; }
.article .prose { background: transparent; border: 0; padding: 0; }

/* تواصل */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: .8rem; }
.c-item { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; color: var(--ink); }
.c-item b { color: var(--pd); font-size: .9rem; }
.c-item span { color: var(--mut); font-size: .95rem; }
.contact-form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.8rem; }
.alert { border-radius: 12px; padding: .9rem 1.2rem; margin-bottom: 1.2rem; font-weight: 600; }
.alert.ok { background: #dcfce7; color: #166534; }
.alert.err { background: #fee2e2; color: #991b1b; }
.form { display: flex; flex-direction: column; gap: 1rem; }
.form label { display: flex; flex-direction: column; gap: .35rem; font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea {
  font-family: inherit; font-size: .95rem; padding: .7rem .9rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); transition: .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--p); background: #fff; }
.hp { position: absolute; inset-inline-start: -9999px; }

/* الفوتر */
.footer { background: var(--ink); color: #cbd5e1; margin-top: 2rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding: 3rem 0 2rem; }
.foot-logo { color: #fff; margin-bottom: .8rem; }
.foot-about { font-size: .9rem; color: #94a3b8; }
.socials { display: flex; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; }
.socials a { background: rgba(255,255,255,.08); border-radius: 999px; padding: .3rem .9rem; font-size: .82rem; color: #e2e8f0; }
.socials a:hover { background: var(--p); }
.footer h4 { color: #fff; margin-bottom: .9rem; font-size: .95rem; }
.footer ul { display: flex; flex-direction: column; gap: .45rem; font-size: .9rem; }
.footer ul a { color: #94a3b8; }
.footer ul a:hover { color: #5eead4; }
.foot-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .84rem; color: #94a3b8; }
.foot-links { display: flex; gap: 1rem; }

/* عناصر عائمة */
.wa-float {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 40;
  width: 54px; height: 54px; border-radius: 50%; background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(34, 197, 94, .45); transition: .2s;
}
.wa-float:hover { transform: scale(1.08); }
.mobile-cta {
  display: none; position: fixed; bottom: 0; inset-inline: 0; z-index: 45;
  background: #fff; border-top: 1px solid var(--line); padding: .6rem .8rem; gap: .6rem;
}
.mobile-cta a { flex: 1; text-align: center; padding: .65rem; border-radius: 10px; font-weight: 700; background: var(--ink); color: #fff; }
.mobile-cta a.wa { background: var(--wa); }

/* 404 */
.notfound { padding: 5rem 0; }
.nf-num { font-size: 5rem; font-weight: 800; color: var(--p); line-height: 1; }

@media (max-width: 900px) {
  .hero-in, .svc-grid, .contact-grid { grid-template-columns: 1fr; }
  .svc-body { grid-template-columns: 1fr; }
  .svc-aside { position: static; }
  .stats-in { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .nav {
    display: none; position: fixed; inset: 68px 0 auto 0; flex-direction: column;
    background: #fff; padding: 1.2rem 5%; gap: 1rem; border-bottom: 1px solid var(--line);
    box-shadow: var(--sh); z-index: 49; align-items: stretch;
  }
  .nav.open { display: flex; }
  .burger { display: block; }
  .phone span { display: none; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 64px; }
}
