/* 7asan Design — ثيم عاجي فاتح (طلب حسن 10-17): عاجي #F6F2E9 + ذهبي عميق + أوبسيديان للنص والأزرار · IBM Plex Sans Arabic + Space Grotesk (+ Aref Ruqaa لمعاينة الاسم)
   ملاحظة: أسماء الرموز --ink/--fg-d بقيت للتوافق مع الصفحات، لكن قيمها صارت فاتحة */
:root {
  --ink: #F6F2E9; --ink2: #FFFDF8; --ink3: #EFE8DA; --line-d: #E2D8C5; --obs: #12171F;
  --ivory: #F6F2E9; --ivory2: #EFE8DA; --paper: #FFFDF8; --line-l: #E2D8C5;
  --gold: #A9813A; --gold-hi: #E9CF96; --gold-lo: #8A6527; --gold-deep: #A9813A;
  --fg-d: #1A1F27; --mute-d: #5E6672; --fg-l: #1A1F27; --mute-l: #5E6672;
  --wa: #25D366;
  --f-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --f-lat: "Space Grotesk", "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  --f-cal: "Aref Ruqaa", "Amiri", "IBM Plex Sans Arabic", serif;
  --r: 18px;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--fg-d); font-family: var(--f-ar); font-size: 17px; line-height: 1.75; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; text-wrap: balance; }
p { margin: 0; }
.lat { font-family: var(--f-lat); }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* أزرار */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 22px; border-radius: 999px; font-weight: 500; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .2s, background .2s, border-color .2s; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, #E9CF96, #C9A158 45%, #9C7433); color: var(--obs); }
.btn-line { border-color: var(--line-d); color: var(--fg-d); background: transparent; }
.btn-line:hover { border-color: var(--gold); }
.btn-wa { background: var(--obs); color: #F6F2E9; }
.btn-wa svg { color: #E9CF96; }
.btn-wa:hover { background: #000; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* الترويسة */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--ink) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-d); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--mute-d); transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.top .btn { padding: 9px 16px; font-size: 14.5px; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line-d); background: transparent; color: inherit; cursor: pointer; place-items: center; }
.menu-btn svg { width: 22px; height: 22px; }
.top .wrap > .right { display: flex; align-items: center; gap: 10px; }
@media (max-width: 1080px) {
  .menu-btn { display: grid; }
  .nav { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; gap: 0; padding: 8px max(18px, env(safe-area-inset-right, 0px)) 14px max(18px, env(safe-area-inset-left, 0px)); background: var(--ink); border-bottom: 1px solid var(--line-d); }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line-d); font-size: 16px; color: var(--fg-d); }
  .top.open .nav { display: flex; }
  .top .wrap { position: relative; }
}

/* البطل */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, color-mix(in srgb, #E9CF96 38%, transparent), transparent); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding-block: 70px 60px; }
.eyebrow { color: var(--gold); font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.hero h1 { font-size: clamp(36px, 5.6vw, 66px); font-weight: 700; margin-top: 12px; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, #C9A158, #9C7433 55%, #7A5A22); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: var(--mute-d); font-size: 19px; margin-top: 18px; max-width: 54ch; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: var(--mute-d); font-size: 14.5px; }
.hero .trust b { color: var(--fg-d); font-family: var(--f-lat); }
.phones { position: relative; height: 520px; }
.phone { position: absolute; width: 210px; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; background: var(--ink3); border: 1px solid var(--line-d); box-shadow: 0 24px 50px rgba(70, 55, 25, .18); transition: transform .5s cubic-bezier(.2,.9,.3,1); }
.phone video { width: 100%; height: 100%; object-fit: cover; }
.phone:nth-child(1) { inset-inline-start: 0; top: 60px; transform: rotate(6deg); }
.phone:nth-child(2) { inset-inline-start: 50%; translate: 50% 0; top: 0; z-index: 2; width: 236px; }
.phone:nth-child(3) { inset-inline-end: 0; top: 70px; transform: rotate(-6deg); }
.phones:hover .phone:nth-child(1) { transform: rotate(9deg) translateX(10px); }
.phones:hover .phone:nth-child(3) { transform: rotate(-9deg) translateX(-10px); }
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 40px; }
  .phones { height: 400px; max-width: 520px; width: 100%; margin: 0 auto; }
  .phone { width: 150px; } .phone:nth-child(2) { width: 176px; }
}

/* الأقسام */
section { padding-block: 72px; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 42px); }
.sec-head p { color: var(--mute-d); max-width: 60ch; margin-top: 8px; }
.kicker { color: var(--gold); font-size: 14px; font-weight: 500; display: block; margin-bottom: 8px; }

/* بطاقات الخدمات */
.svc { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--ink2); border: 1px solid var(--line-d); box-shadow: 0 1px 0 rgba(70, 55, 25, .04); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; transition: border-color .25s, transform .25s; min-width: 0; }
.card:hover { border-color: color-mix(in srgb, var(--gold) 60%, var(--line-d)); transform: translateY(-3px); }
.card .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold); }
.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 21px; }
.card p { color: var(--mute-d); font-size: 15.5px; }
.card .price { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line-d); font-size: 15px; color: var(--fg-d); }
.card .price b { color: var(--gold); font-family: var(--f-lat); font-size: 20px; }
.svc .card:nth-child(1), .svc .card:nth-child(2) { grid-column: span 3; }
.svc .card:nth-child(n+3) { grid-column: span 2; }
.svc .card.feature { background: linear-gradient(150deg, color-mix(in srgb, var(--gold) 14%, var(--ink2)), var(--ink2) 60%); }
@media (max-width: 920px) { .svc { grid-template-columns: 1fr 1fr; } .svc .card:nth-child(n) { grid-column: span 1; } }
@media (max-width: 560px) { .svc { grid-template-columns: 1fr; } }

/* شريط فاتح للمواليد */
.light { background: var(--ivory); color: var(--fg-l); border-block: 1px solid var(--line-d); }
.light .sec-head p, .light .muted { color: var(--mute-l); }
.light .kicker { color: var(--gold-deep); }
.samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sample { background: var(--paper); border: 1px solid var(--line-l); border-radius: 22px; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.sample .vid { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 9 / 16; background: var(--ivory2); }
.sample video { width: 100%; height: 100%; object-fit: cover; }
.sample .play { position: absolute; inset-inline-start: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(18, 23, 31, .72); color: #fff; display: grid; place-items: center; cursor: pointer; }
.sample .play svg { width: 18px; height: 18px; }
.sample h3 { font-size: 18px; padding-inline: 6px; }
.sample p { font-size: 14.5px; color: var(--mute-l); padding-inline: 6px; padding-bottom: 6px; }
@media (max-width: 820px) { .samples { grid-template-columns: 1fr 1fr; } .samples .sample:nth-child(3) { display: none; } }

.pkgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.pkg { background: var(--paper); border: 1px solid var(--line-l); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.pkg.hot { border-color: var(--gold-deep); box-shadow: 0 0 0 1px var(--gold-deep) inset; position: relative; }
.pkg.hot::before { content: attr(data-badge); position: absolute; top: -12px; inset-inline-end: 18px; background: var(--gold-deep); color: var(--paper); font-size: 12.5px; padding: 2px 12px; border-radius: 999px; }
.pkg h3 { font-size: 20px; }
.pkg .amt { font-family: var(--f-lat); font-size: 40px; font-weight: 700; color: var(--fg-l); line-height: 1; }
.pkg .amt small { font-family: var(--f-ar); font-size: 15px; font-weight: 500; color: var(--mute-l); }
.pkg .was { color: var(--mute-l); text-decoration: line-through; font-size: 15px; }
.pkg ul { margin: 6px 0 0; padding: 0 18px 0 0; color: var(--mute-l); font-size: 15px; }
.pkg .btn { margin-top: auto; }
.light .btn-line { border-color: var(--line-l); color: var(--fg-l); }
.light .btn-line:hover { border-color: var(--gold-deep); }
@media (max-width: 820px) { .pkgs { grid-template-columns: 1fr; } }

/* ليش 7asan */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.why div { border-top: 1px solid var(--line-d); padding-top: 16px; }
.why b { display: block; font-size: 18px; margin-bottom: 6px; }
.why p { color: var(--mute-d); font-size: 15.5px; }
.why .n { font-family: var(--f-lat); color: var(--gold); font-size: 30px; font-weight: 700; display: block; line-height: 1.1; margin-bottom: 6px; }
@media (max-width: 820px) { .why { grid-template-columns: 1fr 1fr; } }

/* شعار + أنظمة (عمودين) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split .media { border-radius: 22px; overflow: hidden; border: 1px solid var(--line-d); background: var(--ink3); }
.split h2 { font-size: clamp(26px, 3.2vw, 38px); }
.split p { color: var(--mute-d); margin-top: 12px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: "✦"; color: var(--gold); font-size: 13px; }
.split .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* الخط الزمني */
.since { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; position: relative; margin-top: 10px; }
.since::before { content: ""; position: absolute; top: 9px; inset-inline: 4%; height: 2px; background: linear-gradient(270deg, var(--line-d), var(--gold)); }
.since div { position: relative; padding-top: 30px; }
.since div::before { content: ""; position: absolute; top: 2px; inset-inline-start: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 3px solid var(--gold); }
.since b { font-family: var(--f-lat); color: var(--gold); }
.since p { color: var(--mute-d); font-size: 15px; }
@media (max-width: 720px) { .since { grid-template-columns: 1fr 1fr; } .since::before { display: none; } }

/* التواصل */
.contact { text-align: center; }
.contact h2 { font-size: clamp(30px, 4vw, 48px); }
.contact p { color: var(--mute-d); margin: 14px auto 0; max-width: 56ch; }
.contact .cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.contact .num { font-family: var(--f-lat); direction: ltr; unicode-bidi: isolate; user-select: all; }

footer { border-top: 1px solid var(--line-d); padding-block: 30px 40px; color: var(--mute-d); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* زر واتساب العائم */
.fab { position: fixed; z-index: 40; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); inset-inline-start: calc(18px + env(safe-area-inset-left, 0px)); width: 56px; height: 56px; border-radius: 50%; background: var(--obs); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(40, 30, 10, .28); color: #E9CF96; }
.fab svg { width: 28px; height: 28px; }

/* ظهور ناعم (الحالة الساكنة ظاهرة) */
.rise { animation: rise .8s cubic-bezier(.2,.9,.3,1) both; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .16s; } .rise.d3 { animation-delay: .24s; }
@keyframes rise { from { opacity: .001; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* تنقلات التمرير (مثل demo.7asan.design) — يفعّلها site.js فقط، ولا تعمل مع «تقليل الحركة» */
.top { transition: background-color .45s ease, box-shadow .45s ease, border-color .45s ease; }
.brand img { transition: transform .45s ease; transform-origin: right center; }
.js-fx .top:not(.scrolled):not(.open) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: transparent; }
.js-fx .top.scrolled { background: color-mix(in srgb, var(--ink) 82%, transparent); border-bottom-color: transparent; box-shadow: 0 1px 0 color-mix(in srgb, var(--gold) 38%, transparent), 0 14px 34px -22px rgba(40, 30, 10, .35); }
.js-fx .top.scrolled .brand img { transform: scale(.9); }
.hero::before { translate: 0 calc(var(--hp, 0) * 140px); }
.rv { transition: opacity .85s cubic-bezier(.22,1,.36,1), translate .85s cubic-bezier(.22,1,.36,1) !important; }
.rv:not(.in) { opacity: 0; translate: 0 28px; }

/* شريط واتساب العائم (يُبنى من .fab في site.js) */
.fab { transition: opacity .35s ease, transform .35s ease; }
body.fab-off .fab { opacity: 0; transform: scale(.6) translateY(12px); pointer-events: none; }
.dock { position: fixed; z-index: 45; inset-inline: 0; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); margin-inline: auto; width: min(560px, calc(100% - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px))); display: flex; align-items: center; gap: 12px; padding: 9px 9px 9px 12px; border-radius: 20px; background: color-mix(in srgb, var(--obs) 95%, transparent); color: #F6F2E9; border: 1px solid rgba(233, 207, 150, .2); box-shadow: 0 22px 50px -14px rgba(18, 23, 31, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transform: translateY(150%); opacity: 0; pointer-events: none; transition: transform .7s cubic-bezier(.22,1,.36,1), opacity .45s ease; }
body.dock-on .dock { transform: none; opacity: 1; pointer-events: auto; }
body.dock-on footer { padding-bottom: 110px; }
.dock-mark { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(233, 207, 150, .08); border: 1px solid rgba(233, 207, 150, .14); }
.dock-mark svg { width: 30px; height: 30px; }
.dock-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.dock-txt small { color: rgba(246, 242, 233, .58); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-txt b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-btn { flex: none; position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 7px; padding: 10px 17px; border-radius: 999px; background: linear-gradient(120deg, #F0DCAA, #C9A158 60%, #B08A45); color: var(--obs); font-weight: 700; font-size: 14.5px; text-decoration: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 6px 18px -6px rgba(201, 161, 88, .6); transition: transform .25s ease, filter .25s ease; }
.dock-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.dock-btn svg { width: 18px; height: 18px; flex: none; }
.dock-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .6) 50%, transparent 65%); transform: translateX(130%); animation: dock-shine 5s 1.5s ease-in-out infinite; }
@keyframes dock-shine { 0%, 72% { transform: translateX(130%); } 100% { transform: translateX(-130%); } }
.dock-x { flex: none; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: rgba(246, 242, 233, .45); font-size: 14px; cursor: pointer; transition: color .2s, background-color .2s; }
.dock-x:hover { color: #F6F2E9; background: rgba(246, 242, 233, .08); }
@media (max-width: 420px) { .dock { gap: 9px; } .dock-txt small { display: none; } .dock-txt b { font-size: 14px; } .dock-btn { padding: 9px 13px; } .dock-mark { width: 38px; height: 38px; } }
@media (prefers-reduced-motion: reduce) { .dock-btn::after { display: none; } }
