/* ===== إنجاز | الخدمات العامة وتخليص المعاملات ===== */
:root {
  --rose: #22c55e;
  --plum: #065f46;
  --gold: #86efac;
  --wa: #25d366;
  --bg: #ffffff;
  --bg-2: #f0fdf4;
  --card: #ffffff;
  --text: #052e16;
  --muted: #4b6355;
  --line: #d1fae5;
  --shadow: 0 20px 50px -20px rgba(6, 95, 70, .35);
  --grad: linear-gradient(120deg, var(--plum), #16a34a 55%, var(--rose));
  --radius: 22px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #04130c; --bg-2: #071d13; --card: #0b2618; --text: #ecfdf5;
  --muted: #a7c4b5; --line: #14432c; --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #04130c; --bg-2: #071d13; --card: #0b2618; --text: #ecfdf5;
    --muted: #a7c4b5; --line: #14432c; --shadow: 0 20px 50px -20px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Tajawal', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'El Messiri', 'Tajawal', serif; line-height: 1.35; }
a { color: inherit; text-decoration: none; }
svg { display: block; max-width: 100%; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.grad-text {
  background: var(--grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { 50% { background-position: 100% center; } }

/* progress + top bar */
.progress { position: fixed; top: 0; inset-inline: 0; height: 3px; background: var(--grad); transform-origin: right; transform: scaleX(0); z-index: 100; }
.top-bar {
  background: var(--grad); background-size: 200% auto; animation: shine 8s linear infinite;
  color: #fff; text-align: center; font-size: .92rem; font-weight: 700; padding: 9px 16px;
  display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap;
}
.top-bar a { background: #fff; color: var(--plum); padding: 3px 14px; border-radius: 99px; font-weight: 800; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.7); } 70% { box-shadow: 0 0 0 10px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'El Messiri', serif; font-weight: 700; font-size: 1.35rem; }
.logo-mark { width: 42px; height: 42px; border-radius: 13px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 22px -10px rgba(22,163,74,.7); }
.logo-mark svg { width: 24px; height: 24px; }
.logo small { display: block; font-family: 'Tajawal', sans-serif; font-size: .72rem; color: var(--muted); font-weight: 600; line-height: 1; }
.nav-links { display: flex; gap: 26px; list-style: none; font-weight: 600; }
.nav-links a { position: relative; color: var(--muted); transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; bottom: -4px; right: 0; width: 0; height: 2px; background: var(--grad); transition: width .3s; }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}
.menu-btn { display: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 99px; font-weight: 800; font-size: 1rem; border: 0; cursor: pointer; transition: transform .25s, box-shadow .25s; font-family: inherit; position: relative; overflow: hidden; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--grad); background-size: 200% auto; color: #fff; box-shadow: 0 14px 30px -10px rgba(22,163,74,.6); animation: shine 6s linear infinite; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 14px 30px -10px rgba(37,211,102,.6); }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn::before { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg); transition: left .7s; }
.btn:hover::before { left: 130%; }

/* hero */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; animation: float 14s ease-in-out infinite; pointer-events: none; }
.b1 { width: 420px; height: 420px; background: var(--rose); top: -120px; right: -100px; }
.b2 { width: 380px; height: 380px; background: var(--plum); bottom: -140px; left: -80px; animation-delay: -5s; }
.b3 { width: 260px; height: 260px; background: var(--gold); top: 40%; left: 40%; animation-delay: -9s; opacity: .3; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 33% { transform: translate(40px, -30px) scale(1.08); } 66% { transform: translate(-30px, 25px) scale(.95); } }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-weight: 700; font-size: .9rem; color: var(--rose); box-shadow: var(--shadow); }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); margin: 22px 0 18px; }
.rotator { display: inline-block; min-width: 4ch; border-bottom: 3px solid var(--gold); }
.rotator::after { content: "|"; color: var(--rose); animation: blink .8s infinite; margin-right: 2px; -webkit-text-fill-color: var(--rose); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 58ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 30px; }
.phone-pill { display: inline-flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 16px; background: var(--card); border: 1px dashed var(--plum); font-weight: 800; flex-wrap: wrap; }
.phone-pill .ltr { font-size: 1.35rem; letter-spacing: .03em; }
.phone-pill .tag { background: var(--grad); color: #fff; padding: 4px 12px; border-radius: 10px; font-size: .85rem; }
.copy-btn { font: inherit; font-size: .85rem; font-weight: 800; cursor: pointer; border: 1px solid var(--line); background: var(--bg-2); color: var(--plum); padding: 4px 12px; border-radius: 10px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; max-width: 520px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; text-align: center; }
.stat b { display: block; font-size: 1.6rem; font-family: 'El Messiri', serif; }
.stat span { font-size: .85rem; color: var(--muted); }

/* phone mockup */
.mock-wrap { position: relative; display: grid; place-items: center; min-height: 560px; }
.phone { width: 290px; height: 560px; border-radius: 44px; background: #022c1c; padding: 12px; box-shadow: 0 40px 80px -30px rgba(6,95,70,.65), inset 0 0 0 2px #14432c; animation: bob 6s ease-in-out infinite; position: relative; z-index: 2; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(1deg); } }
.screen { height: 100%; border-radius: 34px; background: #ffffff; overflow: hidden; color: #052e16; display: flex; flex-direction: column; }
.notch { width: 110px; height: 24px; background: #022c1c; border-radius: 0 0 16px 16px; margin: 0 auto; flex: none; }
.s-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; font-family: 'El Messiri', serif; font-weight: 700; }
.s-head i { width: 22px; height: 22px; border-radius: 7px; background: var(--grad); }
.s-banner { margin: 4px 12px 10px; border-radius: 18px; padding: 14px 16px; color: #fff; background: var(--grad); background-size: 200% auto; animation: shine 5s linear infinite; }
.s-banner b { display: block; font-family: 'El Messiri', serif; font-size: 1.1rem; }
.s-banner small { opacity: .9; }
.s-list { display: grid; gap: 8px; padding: 0 12px; }
.s-item { display: flex; align-items: center; gap: 10px; border-radius: 14px; background: #fff; border: 1px solid #d1fae5; padding: 9px 10px; animation: pop .6s backwards; }
.s-item:nth-child(2) { animation-delay: .15s; } .s-item:nth-child(3) { animation-delay: .3s; } .s-item:nth-child(4) { animation-delay: .45s; }
@keyframes pop { from { opacity: 0; transform: scale(.85); } }
.s-item .ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 1rem; background: #dcfce7; }
.s-item b { display: block; font-size: .78rem; line-height: 1.4; }
.s-item small { font-size: .66rem; font-weight: 800; }
.st-done { color: #16a34a; } .st-run { color: #16a34a; } .st-new { color: #065f46; }
.s-cta { margin: auto 12px 12px; background: #052e16; color: #fff; border-radius: 14px; padding: 10px; text-align: center; font-weight: 800; font-size: .8rem; }

.float-card { position: absolute; z-index: 3; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 700; animation: drift 7s ease-in-out infinite; }
.float-card small { display: block; color: var(--muted); font-weight: 500; font-size: .75rem; }
.float-card .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-size: 1.2rem; background: var(--bg-2); }
.fc1 { top: 40px; right: -10px; }
.fc2 { bottom: 70px; left: -20px; animation-delay: -3s; }
.fc3 { top: 47%; right: -40px; animation-delay: -5s; }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* marquee */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; gap: 46px; width: max-content; animation: scroll 38s linear infinite; }
.marquee span { white-space: nowrap; font-weight: 800; font-size: 1.05rem; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.marquee span::after { content: "✦"; color: var(--gold); margin-right: 46px; }
@keyframes scroll { to { transform: translateX(50%); } }

/* sections */
section { scroll-margin-top: 90px; }
.section { padding: 96px 0; position: relative; }
.section.alt { background: var(--bg-2); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.eyebrow { display: inline-block; font-weight: 800; color: var(--rose); margin-bottom: 8px; }
.sec-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin-bottom: 12px; }
.sec-head p { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 22px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; transition: transform .35s, box-shadow .35s, border-color .35s; }
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--plum) 40%, var(--line)); }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--rose) 12%, transparent), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.3rem; margin: 14px 0 8px; }
.card p { color: var(--muted); }
.ico { width: 56px; height: 56px; border-radius: 17px; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.6rem; box-shadow: 0 12px 24px -10px rgba(22,163,74,.6); transition: transform .4s; }
.card:hover .ico { transform: scale(1.1) rotate(-8deg); }

/* checks list */
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-2); color: var(--rose); display: grid; place-items: center; font-weight: 900; font-size: .8rem; margin-top: 4px; }

/* steps */
.steps { counter-reset: s; }
.step { text-align: center; }
.step .ico { margin: 0 auto; }
.step::after { counter-increment: s; content: counter(s); position: absolute; top: 10px; left: 18px; font-family: 'El Messiri', serif; font-size: 3.4rem; font-weight: 800; opacity: .08; }

/* form */
.contact-box { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 30px; padding: 44px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.contact-box::before { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: var(--rose); filter: blur(90px); opacity: .18; top: -100px; left: -100px; pointer-events: none; }
.contact-box h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 6px 0 12px; }
.contact-box > div > p { color: var(--muted); margin-bottom: 18px; }
.phone-line { direction: ltr; font-family: 'El Messiri', serif; font-weight: 800; font-size: 1.6rem; display: inline-block; margin-top: 18px; }
.form { display: grid; gap: 14px; position: relative; }
.form label { font-weight: 700; font-size: .9rem; display: grid; gap: 6px; }
.form input { font: inherit; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s; }
.form input:focus { border-color: var(--plum); box-shadow: 0 0 0 4px color-mix(in srgb, var(--plum) 18%, transparent); }
.form-success-msg { background: color-mix(in srgb, var(--wa) 14%, var(--card)); border: 1px solid color-mix(in srgb, var(--wa) 40%, var(--line)); border-radius: 14px; padding: 12px 14px; font-weight: 700; font-size: .92rem; }
.hidden { display: none; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 4px 22px; transition: border-color .3s; }
.faq details[open] { border-color: var(--plum); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 800; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--rose); transition: transform .3s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* cta */
.cta { text-align: center; color: #fff; border-radius: 34px; padding: 70px 30px; background: var(--grad); background-size: 200% auto; animation: shine 9s linear infinite; position: relative; overflow: hidden; }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta p { opacity: .92; margin: 10px auto 28px; max-width: 56ch; }
.cta .btn-ghost { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.4); }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.sparkle { position: absolute; color: rgba(255,255,255,.7); animation: twinkle 3s ease-in-out infinite; font-size: 1.3rem; }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1.2) rotate(90deg); } }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 60px 0 30px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h4 { font-size: 1.1rem; margin-bottom: 12px; }
.site-footer p, .site-footer li { color: var(--muted); }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.site-footer a:hover { color: var(--rose); }
.foot-bottom { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }

/* floating actions */
.fab-wa { position: fixed; bottom: 24px; left: 24px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -8px rgba(37,211,102,.7); animation: pulse-wa 2.2s infinite; }
.fab-wa svg { width: 30px; height: 30px; }
@keyframes pulse-wa { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.mobile-bar { display: none; }

/* reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: none; }

/* toast */
.toast { position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--text); color: var(--bg); padding: 10px 20px; border-radius: 99px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 120; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mock-wrap { min-height: 520px; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .contact-box { grid-template-columns: 1fr; padding: 30px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-links { display: none; position: absolute; top: 72px; inset-inline: 0; flex-direction: column; gap: 0; background: var(--card); border-bottom: 1px solid var(--line); padding: 8px 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 10px 0; }
  .menu-btn { display: grid; }
  .nav-actions .btn-wa { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: 40px 0 60px; }
  .section { padding: 64px 0; }
  .g3, .g4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .stat { padding: 10px 6px; }
  .stat b { font-size: 1.25rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .phone { width: 250px; height: 500px; }
  .mock-wrap { min-height: 480px; }
  .fc1 { right: 0; } .fc3 { right: 0; } .fc2 { left: 0; }
  .float-card { font-size: .78rem; padding: 8px 10px; }
  .foot-grid { grid-template-columns: 1fr; }
  .contact-box { padding: 22px; border-radius: 22px; }
  .cta { padding: 50px 20px; border-radius: 24px; }
  .fab-wa { display: none; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; bottom: 0; inset-inline: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mobile-bar .btn { padding: 12px 10px; }
  body { padding-bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
