/* موقع رؤيا الأعمال الاحترافية: نسخة ويب من بروفايل رؤيا (التدرّج الرسمي، الموجات، الزاوية المقصوصة، البكسل) */
@font-face { font-family: 'Alexandria'; font-weight: 400; font-display: swap; src: url(/fonts/alexandria-regular.woff2) format('woff2'); }
@font-face { font-family: 'Alexandria'; font-weight: 500; font-display: swap; src: url(/fonts/alexandria-medium.woff2) format('woff2'); }
@font-face { font-family: 'Alexandria'; font-weight: 600; font-display: swap; src: url(/fonts/alexandria-semibold.woff2) format('woff2'); }

:root {
  --night: #291D52;
  --violet: #65328D;
  --fuchsia: #E9128B;
  --fuchsia-dk: #C90D76;
  --lilac: #F6F3FA;
  --line: #E2DBEC;
  --pink: #FBE9F3;
  --ink: #291D52;
  --body: #463D6B;
  --muted: #6E6680;
  --on-dark: #D9D2EA;
  --pink-on-dark: #F7A8D1;
  --wa: #25D366;
  --cut: 22px;
  --wrap: 1200px;
  --gut: clamp(20px, 4vw, 40px);
  --sec: clamp(80px, 10vw, 136px);
  --font: 'Alexandria', 'Segoe UI', Tahoma, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
html, body { overflow-x: clip; }
body { margin: 0; background: #fff; color: var(--body); font-family: var(--font); font-size: 17px; line-height: 1.85; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { color: var(--ink); font-weight: 600; line-height: 1.4; }
html[lang='en'] h1, html[lang='en'] h2 { letter-spacing: -0.015em; line-height: 1.2; }
::selection { background: var(--fuchsia); color: #fff; }
:focus-visible { outline: 3px solid var(--fuchsia); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; z-index: 60; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip:focus { width: auto; height: auto; clip-path: none; top: 8px; inset-inline-start: 8px; background: var(--night); color: #fff; padding: 12px 18px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sec); position: relative; }
.tint { background: var(--lilac); }
.cut { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.ic { width: 22px; height: 22px; flex: none; }
html[dir='rtl'] .arr { transform: scaleX(-1); }

/* العنوان الصغير فوق الأقسام: مربع البكسل من الشعار */
.label { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--fuchsia-dk); margin-bottom: 14px; }
.label i { width: 9px; height: 9px; background: var(--fuchsia); }
.sec-head { max-width: 860px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head h2 { font-size: clamp(30px, 3.2vw, 44px); }
.sec-head p { margin-top: 14px; font-size: 18px; color: var(--muted); }
.sec-head.center { text-align: center; margin-inline: auto; }
.h3 { font-size: clamp(24px, 2.4vw, 32px); }

/* الأزرار: زاوية مقصوصة صغيرة متل الهوية */
.btn { --cut: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 0; font-size: 16px; font-weight: 600; cursor: pointer; white-space: nowrap; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); transition: background .2s, color .2s, transform .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
html[dir='rtl'] .btn:hover .arr { transform: scaleX(-1) translateX(4px); }
.btn-primary { background: var(--fuchsia); color: #fff; }
.btn-primary:hover { background: var(--fuchsia-dk); }
.btn-light { background: #fff; color: var(--night); }
.btn-light:hover { background: var(--pink); }
.btn-ghost { clip-path: none; background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1.5px #fff; }
.btn-outline { clip-path: none; background: #fff; color: var(--night); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--night); }
.btn-lg { min-height: 58px; padding: 0 32px; font-size: 17px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--fuchsia-dk); transition: gap .25s var(--ease), color .2s; }
.text-link:hover { gap: 14px; color: var(--night); }
.text-link .ic { width: 18px; height: 18px; }

/* ——— الشريط العلوي ——— */
.site-head { position: fixed; z-index: 40; top: 0; inset-inline: 0; transition: background .3s, box-shadow .3s; }
.head-row { display: flex; align-items: center; gap: 24px; height: 104px; transition: height .3s; }
.logo { position: relative; width: 86px; height: 82px; flex: none; transition: width .3s, height .3s; }
.site-head.scrolled .logo { width: 66px; height: 62px; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .3s; }
.logo-dark { opacity: 0; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.main-nav a:not(.btn) { color: #fff; font-size: 15.5px; font-weight: 500; padding: 10px 14px; position: relative; transition: color .2s; }
.main-nav a:not(.btn)::after { content: ''; position: absolute; inset-inline: 14px; bottom: 4px; height: 2px; background: var(--fuchsia); transform: scaleX(0); transition: transform .25s var(--ease); }
.main-nav a:not(.btn):hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav .lang { margin-inline-start: 8px; opacity: .85; }
.main-nav .nav-cta { margin-inline-start: 12px; min-height: 46px; padding: 0 20px; font-size: 15px; }
.head-cta, .menu-btn { display: none; }
.site-head.scrolled { background: #fff; box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(41, 29, 82, .35); }
.site-head.scrolled .head-row { height: 76px; }
.site-head.scrolled .logo-light { opacity: 0; }
.site-head.scrolled .logo-dark { opacity: 1; }
.site-head.scrolled .main-nav a:not(.btn) { color: var(--night); }

/* ——— الواجهة الأولى ——— */
.hero { position: relative; isolation: isolate; color: #fff; min-height: min(100svh, 940px); display: flex; align-items: center; padding: 150px 0 104px; overflow: hidden; background: var(--night); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url(/brand/waves-wide.svg) left bottom / cover no-repeat; }
html[dir='ltr'] .hero::before { transform: scaleX(-1); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { color: #fff; font-size: clamp(36px, 3.9vw, 56px); line-height: 1.35; max-width: 13em; }
html[lang='en'] .hero h1 { max-width: 16ch; }
.hero-sub { margin-top: 22px; font-size: clamp(17px, 1.4vw, 20px); color: var(--on-dark); max-width: 46ch; }
/* الخدمات: أيقونة فوق الاسم بأعمدة، متل الجوال */
.hero-services { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 600px; margin-top: 34px; font-size: 13.5px; line-height: 1.55; color: var(--on-dark); }
.hero-services li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 2px 6px; border-inline-start: 1px solid rgba(255, 255, 255, .18); }
.hero-services li:first-child { border-inline-start: 0; }
.hero-services .ic { width: 28px; height: 28px; color: var(--pink-on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-quote { background: transparent; color: #fff; clip-path: none; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .55); }
.hero-quote:hover { background: rgba(255, 255, 255, .08); }
/* الصورة الرئيسية: وحدة بالكمبيوتر والجوال */
.hero-main { --cut: 28px; position: relative; margin: 0; aspect-ratio: 6 / 5; overflow: hidden; background: var(--violet); }
.hero-main img { width: 100%; height: 100%; object-fit: cover; }

/* ——— الشركاء ——— */
.partners { padding: 64px 0 72px; border-bottom: 1px solid var(--line); }
.partners-head { text-align: center; margin-bottom: 36px; }
.partners-head .label { margin-bottom: 8px; }
.logo-rail { overflow: hidden; direction: ltr; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; gap: 18px; width: max-content; animation: rail 55s linear infinite; }
.logo-rail:hover .logo-track { animation-play-state: paused; }
.logo-card { --cut: 16px; width: 200px; height: 112px; flex: none; display: grid; place-items: center; padding: 18px 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.logo-card img { max-width: 100%; max-height: 66px; width: auto; height: auto; object-fit: contain; }
.logo-card span { font-size: 15px; font-weight: 600; color: var(--night); text-align: center; line-height: 1.5; }

/* ——— من نحن ——— */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-text h2 { font-size: clamp(34px, 4vw, 54px); margin-bottom: 22px; }
.about-text .lead { font-size: clamp(19px, 1.6vw, 22px); color: var(--ink); font-weight: 500; line-height: 1.75; margin-bottom: 16px; }
.about-text > p:not(.lead) { color: var(--muted); max-width: 60ch; }
.values { margin-top: 32px; }
.values h3 { font-size: 16px; margin-bottom: 12px; }
.values ul { display: flex; flex-wrap: wrap; gap: 8px; }
.values li { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; background: var(--lilac); color: var(--ink); font-size: 15px; font-weight: 500; }
.values li::before { content: ''; width: 7px; height: 7px; background: var(--fuchsia); }
.about-media { position: relative; padding-bottom: 28px; padding-inline-end: 28px; }
.am-main { aspect-ratio: 1 / 1.06; }
.am-main img { width: 100%; height: 100%; object-fit: cover; }
.am-card { --cut: 16px; position: absolute; bottom: 0; inset-inline-end: 0; background: var(--night); color: #fff; padding: 22px 26px; display: grid; gap: 2px; max-width: 220px; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.am-card strong { font-size: 52px; line-height: 1; font-weight: 600; color: #fff; }
.am-card span { font-size: 15px; color: var(--on-dark); line-height: 1.6; }

.vm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: clamp(80px, 9vw, 120px); }
.vm-head { grid-column: 1 / -1; max-width: 720px; margin-bottom: 12px; }
.vm-head p { margin-top: 12px; color: var(--muted); font-size: 18px; }
.vm-card { background: var(--lilac); padding: 40px 36px 44px; display: flex; flex-direction: column; gap: 14px; }
.vm-card h3 { font-size: 24px; }
.vm-card p { color: var(--body); }
.vm-ic { width: 46px; height: 46px; color: var(--violet); stroke-width: 1.5; }
.vm-dark { background: var(--night); }
.vm-dark h3 { color: #fff; }
.vm-dark p { color: var(--on-dark); }
.vm-dark .vm-ic { color: var(--pink-on-dark); }
.vm-photo { min-height: 320px; }
.vm-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ——— الخدمات ——— */
.svc-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; }
.svc-card { grid-column: span 2; background: #fff; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.svc-card:nth-child(4), .svc-card:nth-child(5) { grid-column: span 3; }
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(41, 29, 82, .45); }
.svc-card:nth-child(n+4) .svc-img { aspect-ratio: 2 / 1; }
.svc-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.svc-card:hover .svc-img img { transform: scale(1.05); }
.svc-body { padding: 0 30px 32px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.svc-ic { --cut: 12px; width: 56px; height: 56px; display: grid; place-items: center; background: var(--fuchsia); color: #fff; margin-top: -28px; position: relative; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.svc-ic .ic { width: 26px; height: 26px; }
.svc-body h3 { font-size: 22px; margin-top: 6px; }
.svc-body p { color: var(--muted); font-size: 16.5px; line-height: 1.8; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 4px 8px; }
.tags li { font-size: 13.5px; padding: 5px 11px; background: var(--lilac); color: var(--violet); font-weight: 500; }
.svc-body .text-link { margin-top: auto; align-self: flex-start; }

/* ——— الأعمال ——— */
.work-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: clamp(36px, 4vw, 52px); }
.work-head .sec-head { margin-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); padding: 10px 18px; font-size: 15px; font-weight: 500; color: var(--body); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.filters button:hover { box-shadow: inset 0 0 0 1.5px var(--violet); color: var(--night); }
.filters button[aria-pressed='true'] { background: var(--night); color: #fff; box-shadow: none; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 24px; }
.work-grid:not(.expanded) [data-extra] { display: none; }
.w[hidden] { display: none !important; }
.w-open { all: unset; box-sizing: border-box; display: flex; flex-direction: column; width: 100%; cursor: pointer; }
.w-open:focus-visible { outline: 3px solid var(--fuchsia); outline-offset: 4px; }
.w-img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.w-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.w-open:hover .w-img img { transform: scale(1.06); }
.w-plus { --cut: 10px; position: absolute; bottom: 16px; inset-inline-end: 16px; width: 46px; height: 46px; display: grid; place-items: center; background: var(--fuchsia); color: #fff; opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s var(--ease); clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.w-open:hover .w-plus, .w-open:focus-visible .w-plus { opacity: 1; transform: none; }
.w-cat { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--fuchsia-dk); }
.w-title { margin-top: 2px; font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.5; }
.more-row { display: flex; justify-content: center; margin-top: 56px; }
.work-grid.expanded + .more-row { display: none; }

.lightbox { border: 0; padding: 0; width: min(1120px, calc(100vw - 32px)); max-height: calc(100svh - 32px); background: #fff; color: var(--body); overflow: auto; }
.lightbox::backdrop { background: rgba(20, 12, 46, .82); }
.lightbox[open] { animation: pop .35s var(--ease); }
.lb-inner { display: grid; grid-template-columns: 1.35fr 1fr; position: relative; }
.lb-photo { background: var(--lilac); min-height: 360px; max-height: calc(100svh - 32px); }
.lb-photo img { width: 100%; height: 100%; object-fit: cover; }
.lb-text { padding: 56px 44px 44px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.lb-cat { font-size: 14px; font-weight: 600; color: var(--fuchsia-dk); }
.lb-text h3 { font-size: clamp(24px, 2.4vw, 32px); }
.lb-sub { font-weight: 600; color: var(--violet); }
.lb-desc { color: var(--muted); margin-bottom: 18px; }
.lb-text .btn { margin-top: auto; }
.lb-close { position: absolute; top: 0; inset-inline-end: 0; width: 52px; height: 52px; border: 0; background: var(--night); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.lb-close:hover { background: var(--fuchsia); }


/* ——— تواصل وطلب عرض سعر ——— */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; align-items: stretch; }
.c-panel { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: #fff; padding: 40px 36px; display: flex; flex-direction: column; gap: 32px; }
.c-panel::after { content: ''; position: absolute; z-index: -1; inset: auto 0 0 0; height: 42%; background: url(/brand/waves-wide.svg) left bottom / 1100px auto no-repeat; -webkit-mask-image: linear-gradient(to top, #000 55%, transparent); mask-image: linear-gradient(to top, #000 55%, transparent); }
html[dir='ltr'] .c-panel::after { transform: scaleX(-1); }
.c-list li > * { display: flex; align-items: center; gap: 16px; padding-block: 16px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.c-list li:last-child > * { border-bottom: 0; }
.c-list a { transition: opacity .2s; }
.c-list a:hover b { color: var(--pink-on-dark); }
.c-ic { --cut: 10px; width: 48px; height: 48px; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%); }
.c-tx { display: grid; line-height: 1.6; }
.c-tx small { font-size: 13.5px; color: var(--on-dark); }
.c-tx b { font-size: 16.5px; font-weight: 600; color: #fff; transition: color .2s; }
html[dir='rtl'] .c-tx b[dir='ltr'] { text-align: right; }
.open-state { font-style: normal; font-size: 13px; font-weight: 600; margin-top: 4px; display: inline-flex; align-items: center; gap: 7px; color: var(--on-dark); }
.open-state:empty { display: none; }
.open-state::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #9C93B8; }
.open-state.is-open { color: #9FF0C1; }
.open-state.is-open::before { background: #3DDC84; }
.c-social { margin-top: auto; }
.c-social p { font-size: 14px; color: var(--on-dark); margin-bottom: 10px; }
.c-social div, .foot-social { display: flex; flex-wrap: wrap; gap: 8px; }
.c-social a, .foot-social a { width: 44px; height: 44px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); color: #fff; transition: background .2s, box-shadow .2s; }
.c-social a:hover, .foot-social a:hover { background: var(--fuchsia); box-shadow: none; }
.c-social .ic, .foot-social .ic { width: 20px; height: 20px; }

.q-form { background: #fff; padding: clamp(28px, 4vw, 44px); display: grid; gap: 20px; align-content: start; }
.q-form h3 { font-size: clamp(24px, 2.2vw, 30px); }
.q-sub { color: var(--muted); margin-top: -12px; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 10px; padding: 0; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.chip span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; font-size: 14.5px; font-weight: 500; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--body); transition: background .2s, color .2s, box-shadow .2s; }
.chip .ic { width: 18px; height: 18px; color: var(--violet); }
.chip:hover span { box-shadow: inset 0 0 0 1.5px var(--violet); }
.chip input:checked + span { background: var(--night); color: #fff; box-shadow: none; }
.chip input:checked + span .ic { color: var(--pink-on-dark); }
.chip input:focus-visible + span { outline: 3px solid var(--fuchsia); outline-offset: 2px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 15px; font-weight: 600; color: var(--ink); }
.field small { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #FBFAFD; border: 1.5px solid var(--line); padding: 0 14px; min-height: 52px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s; border-radius: 0; }
.field textarea { padding: 12px 14px; min-height: 130px; resize: vertical; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: #A39DB5; }
.field input:focus, .field textarea:focus { border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px rgba(101, 50, 141, .12); }
.field.wide { grid-column: 1 / -1; }
.field.bad input, .field.bad textarea { border-color: #C2185B; background: #FFF6FA; }
.hp { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.q-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.wa-alt { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; color: var(--ink); border-bottom: 1.5px solid var(--line); padding-block: 4px; transition: border-color .2s; }
.wa-alt .ic { color: #1FA855; }
.wa-alt:hover { border-color: #1FA855; }
.q-status { font-size: 16px; }
.q-status:empty { display: none; }
.q-status.ok { background: #ECF8F1; color: #1C6B45; padding: 14px 18px; }
.q-status.err { background: #FDEEF4; color: #A3124F; padding: 14px 18px; }
.q-done { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 32px); overflow: visible; }
.q-done::backdrop { background: rgba(20, 12, 46, .55); }
.q-done[open] .q-done-card { animation: qPop .45s cubic-bezier(.2, 1.25, .35, 1) both; }
.q-done-card { width: min(420px, calc(100vw - 32px)); background: #fff; border-radius: 28px; padding: 38px 28px 28px; text-align: center; box-shadow: 0 30px 80px -24px rgba(20, 10, 50, .55); }
.q-done-ic { width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 50%; background: #22C55E; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 26px -10px rgba(34, 197, 94, .75); }
.q-done-ic svg { width: 46px; height: 46px; }
.q-done-ic path { stroke-dasharray: 24; stroke-dashoffset: 24; }
.q-done[open] .q-done-ic path { animation: qDraw .45s .25s ease-out forwards; }
.q-done h3 { color: var(--ink); font-size: clamp(24px, 3vw, 30px); line-height: 1.4; }
.q-done p { color: var(--muted); font-size: 16.5px; margin-top: 6px; }
.q-done-offer { margin-top: 22px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(90deg, #6A2CA8, var(--fuchsia)); color: #fff; display: grid; gap: 2px; box-shadow: 0 14px 30px -14px rgba(233, 18, 139, .7); }
.q-done-offer strong { font-size: 24px; line-height: 1.4; font-weight: 600; }
.q-done-offer span { font-size: 17px; line-height: 1.6; }
.q-done[open] .q-done-offer { animation: qPop .5s .35s cubic-bezier(.2, 1.25, .35, 1) both; }
@media (max-width: 420px) { .q-done-card { padding-inline: 20px; } .q-done-offer { padding-inline: 12px; } .q-done-offer span { font-size: 15px; } }
.q-done .q-done-ref { font-size: 13.5px; margin-top: 10px; }
.q-done .q-done-ref:empty { display: none; }
.q-done-ok { margin-top: 24px; min-width: 150px; }
@keyframes qPop { from { opacity: 0; transform: scale(.88) translateY(10px); } }
@keyframes qDraw { to { stroke-dashoffset: 0; } }

/* ——— الفوتر ——— */
.site-foot { background: var(--night); color: var(--on-dark); padding-top: clamp(64px, 8vw, 96px); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 48px; }
.foot-logo { display: inline-block; cursor: default; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: transform .3s; }
.foot-logo img { height: 112px; width: auto; }
.foot-logo.pressing { transform: scale(.96); }
.foot-brand p { margin-top: 20px; font-size: 15px; line-height: 1.9; max-width: 38ch; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; font-size: 15px; }
.foot-col h2 { color: #fff; font-size: 16px; margin-bottom: 10px; }
.foot-col a { transition: color .2s; }
.foot-col a:hover { color: #fff; }
.foot-col p { line-height: 1.8; }
.foot-social { margin-top: 12px; }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: clamp(48px, 6vw, 72px); padding-block: 24px 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }

.wa-float { position: fixed; z-index: 35; bottom: 22px; inset-inline-end: 22px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 12px 28px -8px rgba(18, 140, 70, .55); transition: transform .25s var(--ease); }
.wa-float .ic { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.07); }

/* ——— الحركة ——— */
@keyframes rail { to { transform: translateX(-50%); } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } }
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }
/* الواجهة الأولى تظهر بالـ CSS مباشرة بدون ما تستنى الجافاسكربت */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } }
.js .hero [data-reveal] { opacity: 1; transform: none; transition: none; animation: fadeUp .8s var(--ease) both; }
.js .hero [data-reveal]:nth-child(2) { animation-delay: .08s; } .js .hero [data-reveal]:nth-child(3) { animation-delay: .16s; } .js .hero [data-reveal]:nth-child(4) { animation-delay: .24s; } .js .hero [data-reveal]:nth-child(5) { animation-delay: .32s; }
.js .hero-main { animation: rise 1s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .logo-track, .js .hero-main, .js .hero [data-reveal] { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* ——— الشاشات المتوسطة ——— */
@media (max-width: 1100px) {
  .main-nav a:not(.btn) { padding: 10px 9px; font-size: 15px; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-card, .svc-card:nth-child(4), .svc-card:nth-child(5) { grid-column: span 1; }
  .svc-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .vm { grid-template-columns: 1fr 1fr; }
  .vm-photo { grid-column: 1 / -1; min-height: 0; aspect-ratio: 16 / 7; }
}

/* ——— الجوال والتابلت ——— */
@media (max-width: 920px) {
  html { scroll-padding-top: 76px; }
  .head-row, .site-head.scrolled .head-row { height: 68px; gap: 10px; }
  .logo, .site-head.scrolled .logo { width: 54px; height: 52px; }
  .menu-btn { display: grid; place-items: center; width: 46px; height: 46px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
  .site-head.scrolled .menu-btn { background: var(--lilac); color: var(--night); }
  .menu-btn .i-close { display: none; }
  .head-cta { display: inline-flex; margin-inline-start: auto; min-height: 44px; padding: 0 16px; font-size: 14.5px; }
  .main-nav { position: fixed; inset: 68px 0 auto; height: calc(100svh - 68px); flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 12px var(--gut) 32px; background: #fff; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .main-nav a:not(.btn) { color: var(--night) !important; font-size: 20px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav .lang { margin: 0; opacity: 1; }
  .main-nav .nav-cta { margin: 24px 0 0; min-height: 56px; font-size: 17px; }
  .site-head.nav-open { background: #fff; }
  .site-head.nav-open .logo-light { opacity: 0; }
  .site-head.nav-open .logo-dark { opacity: 1; }
  .site-head.nav-open .menu-btn { background: var(--lilac); color: var(--night); }
  .site-head.nav-open .menu-btn .i-open { display: none; }
  .site-head.nav-open .menu-btn .i-close { display: block; }
  .site-head.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }

  .hero { min-height: 0; padding: 112px 0 72px; align-items: flex-start; }
  .hero::before { background-image: url(/brand/waves-mobile.svg); background-position: left bottom; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-main { order: -1; width: 100%; max-width: 680px; justify-self: center; }
  .hero-text { text-align: center; }
  .hero h1, .hero-sub { max-width: none; }
  .hero-services { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; }
  .q-form { order: -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 34px; }
  /* الجوال: الصورة أول شي بعرض الشاشة، وبعدها العنوان والخدمات والأزرار */
  .hero { flex-direction: column; align-items: stretch; padding: 68px 0 56px; }
  .hero-grid { gap: 0; }
  .hero-main { margin-inline: calc(var(--gut) * -1); width: auto; max-width: none; justify-self: stretch; clip-path: none; }
  .hero-main::after { content: ''; position: absolute; inset: auto 0 0; height: 28%; background: linear-gradient(transparent, var(--night)); }
  .hero-text { display: flex; flex-direction: column; margin-top: 4px; }
  .offer-badge { order: -1; }
  .hero-sub { margin-top: 14px; }
  .hero-services { margin-top: 28px; font-size: 11.5px; line-height: 1.6; }
  .hero-services li { gap: 8px; padding: 2px 1px; }
  .hero-services .ic { width: 26px; height: 26px; }
  .hero-actions { flex-direction: column; gap: 12px; margin-top: 30px; }
  .hero-actions .btn { width: 100%; }
  .logo-card { width: 156px; height: 92px; padding: 14px 16px; }
  .logo-card img { max-height: 52px; }
  .vm { grid-template-columns: 1fr; gap: 16px; }
  .vm-photo { aspect-ratio: 4 / 3; }
  .vm-card { padding: 30px 26px 32px; }
  .svc-grid { grid-template-columns: 1fr; gap: 20px; }
  .svc-card:last-child:nth-child(odd) { grid-column: auto; }
  .svc-body { padding: 0 22px 26px; }
  .work-grid { grid-template-columns: 1fr; gap: 32px; }
  .filters { gap: 6px; }
  .filters button { padding: 9px 14px; font-size: 14px; }
  .lb-inner { grid-template-columns: 1fr; }
  .lb-photo { aspect-ratio: 4 / 3; min-height: 0; }
  .lb-text { padding: 28px 22px 30px; }
  .c-panel { padding: 30px 24px; }
  .fields { grid-template-columns: 1fr; }
  .q-actions .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-logo img { height: 92px; }
  .wa-float { width: 54px; height: 54px; bottom: 16px; inset-inline-end: 16px; }
}
