/* Abmankef — الصفحة الرئيسية، أسلوب "فخامة": كحلي عميق، فضي الشعار، لمسة ذهبية */
:root {
  --navy: #0b1630;
  --navy-2: #142a55;
  --silver: #c9d2e3;
  --blue: #2559d9;
  --gold: #c9a46a;
  --gold-light: #e7d0a4;
  --navy-rgb: 11, 22, 48;
  --gold-rgb: 201, 164, 106;
  --ink: #14203a;
  --muted: #5b6680;
  --line: #e3e8f2;
  --bg-soft: #f3f6fc;
  --whatsapp: #1fa855;
  --radius: 22px;
  --radius-lg: 30px;
  --font-display: 'El Messiri', 'Tajawal', sans-serif;
  --font-body: 'Tajawal', 'El Messiri', sans-serif;
  --ease: cubic-bezier(0.22, 0.8, 0.26, 1);
  --shadow: 0 2px 6px rgba(var(--navy-rgb), 0.04), 0 18px 40px -20px rgba(var(--navy-rgb), 0.24);
  --shadow-lg: 0 4px 10px rgba(var(--navy-rgb), 0.05), 0 36px 70px -30px rgba(var(--navy-rgb), 0.4);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.85; color: var(--ink); background: #fff; direction: rtl; text-align: right; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.35; margin: 0; text-wrap: balance; }
p { margin: 0; }
img { max-width: 100%; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 10px; right: 10px; z-index: 300; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--navy); color: #fff; border-radius: 10px; }
.container { width: min(1120px, 100% - clamp(16px, 4vw, 32px) * 2); margin-inline: auto; }

/* الأزرار */
.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 28px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s ease; }
.btn::after { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; width: 40%; right: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent); transform: skewX(-20deg); transition: right 0.7s var(--ease); }
.btn:hover::after { right: 120%; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy); box-shadow: 0 14px 30px -14px rgba(var(--gold-rgb), 0.9); }
.btn-glass { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.16); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: 0.95rem; }
.btn i { font-size: 1.15em; }

/* الرأس */
.site-header { position: fixed; z-index: 60; top: 0; inset-inline: 0; height: 76px; display: flex; align-items: center; transition: background 0.4s ease, box-shadow 0.4s ease, height 0.4s var(--ease); }
.site-header .inner { display: flex; align-items: center; gap: 20px; }
.site-header.scrolled { background: rgba(11, 22, 48, 0.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6); height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: 0.02em; }
.brand img { width: 42px; height: 42px; border-radius: 23%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16); transition: transform 0.5s var(--ease); }
.brand:hover img { transform: translateY(-2px) scale(1.06); }
.main-nav { display: flex; gap: 2px; margin-inline-start: auto; }
.main-nav a { position: relative; padding: 8px 14px; color: rgba(255, 255, 255, 0.82); text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.main-nav a::after { content: ''; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transition: transform 0.35s var(--ease); }
.main-nav a:hover, .main-nav a.active { color: #fff; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

/* الواجهة: الخلفية بلون الشعار نفسه (#0B1630) حتى يذوب مستطيله فيها، والإضاءات في الأطراف فقط */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; background: var(--navy); overflow: hidden; isolation: isolate; padding: 110px 0 80px; }
.hero-glow span { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); animation: drift 20s ease-in-out infinite alternate; }
.hero-glow .g1 { width: 34vmax; height: 34vmax; top: -18vmax; inset-inline-end: -14vmax; background: rgba(37, 89, 217, 0.45); }
.hero-glow .g2 { width: 28vmax; height: 28vmax; bottom: -16vmax; inset-inline-start: -12vmax; background: rgba(var(--gold-rgb), 0.22); animation-duration: 26s; }
@keyframes drift { to { transform: translate3d(3vmax, 2vmax, 0) scale(1.08); } }
.hero-content { max-width: 860px; }
.chip { display: inline-block; padding: 6px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.05); color: var(--gold-light); font-size: 0.95rem; }
.wordmark { margin: 26px auto 6px; width: min(620px, 92%); }
.wordmark img { width: 100%; height: auto; }
.name { font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.6rem); color: var(--silver); }
.name span { color: var(--gold-light); }
.lead { max-width: 620px; margin: 18px auto 32px; color: rgba(255, 255, 255, 0.8); font-size: clamp(1.02rem, 1.9vw, 1.15rem); }
.lead strong { color: #fff; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.intro > * { opacity: 0; transform: translateY(22px); animation: rise 1s var(--ease) forwards; }
.intro > :nth-child(1) { animation-delay: 0.1s; } .intro > :nth-child(2) { animation-delay: 0.25s; }
.intro > :nth-child(3) { animation-delay: 0.45s; } .intro > :nth-child(4) { animation-delay: 0.6s; } .intro > :nth-child(5) { animation-delay: 0.75s; }
.intro-done .intro > * { opacity: 1; transform: none; animation: none; }
@keyframes rise { to { opacity: 1; transform: none; } }
.scroll-cue { position: absolute; bottom: 18px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 14px; }
.scroll-cue::after { content: ''; position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 80%, 100% { opacity: 0; transform: translateY(12px); } }

/* الأقسام */
.section { position: relative; padding: clamp(72px, 10vw, 116px) 0; overflow: hidden; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: radial-gradient(ellipse at top, var(--navy-2), var(--navy) 70%); color: #fff; }
.section-head { text-align: center; max-width: 700px; margin: 0 auto clamp(36px, 5vw, 56px); }
.kicker { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 0.95rem; color: var(--gold); }
.section-head h2, .contact h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 10px 0 12px; }
.section-head p, .contact > p { color: var(--muted); font-size: 1.08rem; }
.section.dark .section-head p { color: rgba(255, 255, 255, 0.72); }
.divider { display: block; width: 72px; height: 3px; margin: 18px auto 0; border-radius: 3px; background: linear-gradient(to left, var(--gold), var(--gold-light)); transform: scaleX(0); transition: transform 1s var(--ease) 0.3s; }
.in .divider { transform: scaleX(1); }
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 110ms); }
.js [data-reveal="zoom"] { transform: scale(0.95); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* الخدمات */
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.service { padding: 28px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: center; box-shadow: 0 2px 6px rgba(var(--navy-rgb), 0.04); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.3s ease; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(var(--gold-rgb), 0.5); }
.ico { width: 62px; height: 62px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; background: var(--navy); color: var(--gold-light); font-size: 1.35rem; box-shadow: 0 12px 24px -14px rgba(var(--navy-rgb), 0.8); transition: transform 0.5s var(--ease); }
.service:hover .ico { transform: rotate(-8deg) scale(1.06); }
.service h3 { font-size: 1.2rem; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: 0.97rem; }

/* الخطوات */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding: 26px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); transition: transform 0.45s var(--ease), border-color 0.3s ease; }
.steps li:hover { transform: translateY(-6px); border-color: rgba(var(--gold-rgb), 0.45); }
.steps .n { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; margin-bottom: 14px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--navy); background: linear-gradient(135deg, var(--gold-light), var(--gold)); }
.steps h3 { font-size: 1.2rem; margin-bottom: 6px; }
.steps p { color: rgba(255, 255, 255, 0.72); font-size: 0.97rem; }

/* التواصل */
.contact { max-width: 760px; margin: 0 auto; text-align: center; padding: clamp(34px, 6vw, 56px) clamp(18px, 5vw, 48px); border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.contact > p { margin-bottom: 26px; }
.contact-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-card { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); text-decoration: none; text-align: right; cursor: pointer; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(var(--gold-rgb), 0.5); }
.contact-card > i { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; background: var(--navy); color: var(--gold-light); }
.contact-card.wa > i { background: var(--whatsapp); color: #fff; }
.contact-card strong { display: block; font-size: 1rem; }
.contact-card bdi { display: block; color: var(--muted); font-size: 0.98rem; unicode-bidi: isolate; overflow-wrap: anywhere; }
.copy-hint { position: absolute; top: 10px; inset-inline-end: 12px; font-style: normal; font-size: 0.75rem; font-weight: 700; color: var(--blue); }
.contact-card.copied .copy-hint { color: var(--whatsapp); }
.mail-link { display: inline-block; margin-top: 16px; color: var(--muted); font-size: 0.92rem; }

/* التذييل */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.72); padding: 30px 0 max(30px, env(safe-area-inset-bottom)); }
.site-footer .container { display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center; font-size: 0.92rem; }
.site-footer img { width: 36px; height: 36px; border-radius: 23%; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16); }

/* إشعار النسخ */
.toast { position: fixed; z-index: 120; bottom: max(24px, env(safe-area-inset-bottom)); left: 50%; translate: -50% 20px; padding: 12px 20px; border-radius: 16px; background: var(--navy); color: #fff; border-inline-start: 3px solid var(--gold); box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity 0.35s ease, translate 0.45s var(--ease); }
.toast.show { opacity: 1; translate: -50% 0; }

/* تجاوب */
@media (max-width: 960px) {
  .services, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .main-nav { display: none; }
  .site-header .btn { margin-inline-start: auto; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .services, .steps, .contact-actions { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .site-header .btn span { display: none; }
  .site-header .btn { width: 42px; padding: 0; }
  .brand { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .intro > *, .js [data-reveal] { opacity: 1; transform: none; }
}
