/* law2 — القائمة الجانبية (كحلي × ذهبي) — Cairo RTL */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy: #0A1628; --navy-deep: #060D1A; --navy-soft: #14263F;
  --gold: #C9A24B; --gold-light: #E8C876; --gold-btn: linear-gradient(135deg, #E8C876, #C9A24B);
  --ink: #101828; --muted: #5B6B82; --line: #E6EAF0; --white: #fff;
  --shadow-sm: 0 8px 24px rgba(10,22,40,.08); --shadow: 0 24px 55px -18px rgba(10,22,40,.3);
}
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: 'Cairo', Tahoma, sans-serif; background: var(--white); color: var(--ink); overflow-x: hidden; line-height: 1.9; -webkit-font-smoothing: antialiased; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }
a { color: inherit; text-decoration: none; transition: .3s; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
section { position: relative; }
section[id] { scroll-margin-top: 24px; }
.rich { line-height: 2; }
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  background: var(--gold-btn); color: #0A1628 !important; font-weight: 800; font-size: 15px;
  height: 52px; padding: 0 34px; border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap;
  box-shadow: 0 14px 28px -10px rgba(201,162,75,.6);
}
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-gold.full { width: 100%; }

/* القائمة الجانبية */
.side {
  position: fixed; top: 0; bottom: 0; left: 0; width: 212px; z-index: 120;
  background: linear-gradient(180deg, #0C1E38, #060D1A);
  color: #fff; display: flex; flex-direction: column; align-items: stretch;
  padding: 26px 18px; gap: 14px; overflow-y: auto;
  border-right: 1px solid rgba(201,162,75,.25);
}
.side-brand { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.side-mark { width: 68px; height: 68px; color: var(--gold); }
.side-mark svg { width: 100%; height: 100%; stroke-width: 2.2; }
.side-brand b { font-size: 16px; font-weight: 900; }
.side-brand small { font-size: 12px; color: var(--gold-light); font-weight: 700; }
.side-brand .dim { font-size: 10.5px; color: #9DB3AD; }
.side-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.side-nav a { padding: 10px 14px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: #D7E3EE; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.active { background: rgba(201,162,75,.18); color: var(--gold-light); }
.side-social { display: flex; gap: 8px; justify-content: center; margin-top: 4px; }
.side-social a { width: 32px; height: 32px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; }
.side-social a:hover { border-color: var(--gold); color: var(--gold-light); }
.side-call {
  border: 1.5px solid var(--gold); color: var(--gold-light) !important; text-align: center;
  border-radius: 999px; padding: 10px; font-weight: 800; font-size: 14px;
}
.side-call:hover { background: var(--gold); color: #0A1628 !important; }
.side-quote { margin-top: auto; text-align: center; color: var(--gold-light); font-family: 'Aref Ruqaa','Cairo',serif; font-size: 15px; }
.side .burger { display: none; }
.page-body { margin-left: 212px; }

/* الهيرو */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; background: #0A1628; color: #fff; padding: 60px 0 0; }
.hero-bgimg { position: absolute; inset: 0; }
.hero-bgimg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero-bgimg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(-90deg, rgba(6,13,26,.55) 0%, rgba(6,13,26,.88) 60%, #0A1628 100%); }
.hero-doc { position: absolute; bottom: 0; left: 0; height: 94%; width: min(52%, 620px); object-fit: cover; object-position: top center; z-index: 1;
  -webkit-mask-image: radial-gradient(ellipse 55% 62% at 50% 42%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 55% 62% at 50% 42%, #000 60%, transparent 100%);
}
.hero-in { position: relative; z-index: 2; display: flex; justify-content: flex-start; }
.hero-text { max-width: 500px; text-align: center; padding: 30px 0 60px; margin-left: 50px; }
.hero-badge { color: #D7E3EE; font-weight: 700; font-size: 14.5px; margin-bottom: 8px; }
.hero-text h1 { font-size: clamp(42px,5.4vw,72px); font-weight: 900; line-height: 1.4; text-shadow: 0 4px 24px rgba(0,0,0,.5); }
.hero-text h1 .gold-w { display: block; font-size: .62em; color: #fff; font-weight: 800; }
.hero-sub { color: #E8EFF6; font-weight: 700; font-size: clamp(15px,1.6vw,19px); margin: 10px 0 24px; }
.hero-mini { color: var(--gold-light); font-weight: 700; font-size: 13.5px; margin-top: 12px; }
.hero-wave { line-height: 0; position: relative; z-index: 3; margin-top: auto; }
.hero-wave svg { width: 100%; height: 60px; display: block; fill: #fff; }

/* عن المكتب */
.about-sec { background: #fff; padding: 56px 0; }
.about-grid { display: grid; grid-template-columns: .9fr 1.2fr .9fr; gap: 30px; align-items: center; }
.about-feats { display: flex; flex-direction: column; }
.gfeat { display: flex; align-items: center; gap: 12px; padding: 14px 4px; }
.gfeat + .gfeat { border-top: 1px solid var(--line); }
.gic { width: 46px; height: 46px; flex-shrink: 0; color: #8a6d2f; }
.gic svg { width: 100%; height: 100%; }
.gfeat b { display: block; font-size: 15.5px; color: var(--ink); }
.gfeat small { font-size: 12.5px; color: var(--muted); }
.about-txt { text-align: center; }
.sec-label { color: #8a6d2f; font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.about-txt h2 { font-size: clamp(24px,2.8vw,34px); font-weight: 900; color: var(--ink); margin-bottom: 10px; }
.about-txt .rich { color: var(--muted); font-weight: 600; margin-bottom: 20px; }
.about-photo { position: relative; border-radius: 8px; overflow: hidden; min-height: 420px; box-shadow: var(--shadow); }
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,13,26,.15), rgba(6,13,26,.72)); }
.about-ov { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 30px; font-family: 'Aref Ruqaa','Cairo',serif; font-size: 26px; line-height: 2; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.6); }

/* الخدمات */
.serv-sec { background: #fff; padding: 10px 0 56px; }
.sec-head { text-align: center; max-width: 700px; margin: 0 auto 28px; }
.sec-head h2 { font-size: clamp(24px,3vw,34px); font-weight: 900; color: var(--ink); }
.sec-head p { color: var(--muted); font-weight: 600; }
.svc-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; }
.svc-card { background: #F5F7FA; border-radius: 16px; padding: 24px 10px 20px; text-align: center; transition: .3s; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); background: #fff; border: 1px solid var(--gold); }
.svc-ic { width: 50px; height: 50px; margin: 0 auto 10px; color: #8a6d2f; display: block; }
.svc-ic svg { width: 100%; height: 100%; }
.svc-ic .ic-emoji { font-size: 38px; }
.svc-card h3 { font-size: 14px; font-weight: 800; }
.svc-card p { font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* العدادات */
.stats-sec { position: relative; background: #0A1628; overflow: hidden; }
.stats-bgimg { position: absolute; inset: 0; }
.stats-bgimg img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.stats-bgimg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,13,26,.75), rgba(6,13,26,.9)); }
.stats-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4,1fr); padding: 46px 24px; }
.stat { text-align: center; padding: 6px 10px; }
.stat + .stat { border-inline-start: 1px solid rgba(255,255,255,.14); }
.stat b { display: block; font-size: clamp(26px,3vw,38px); font-weight: 900; color: var(--gold-light); }
.stat small { color: #D7E3EE; font-weight: 700; font-size: 13px; }

/* التواصل */
.contact-sec { background: #fff; padding: 56px 0 60px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: stretch; }
.contact-photo { position: relative; border-radius: 20px; overflow: hidden; min-height: 480px; box-shadow: var(--shadow); }
.contact-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,13,26,.1), rgba(6,13,26,.7)); }
.contact-ov { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 36px; font-family: 'Aref Ruqaa','Cairo',serif; font-size: 27px; line-height: 2.1; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.contact-ov i { display: block; width: 70px; height: 3px; background: var(--gold); border-radius: 99px; margin-top: 10px; }
.contact-form { background: #F7F9FC; border: 1px solid var(--line); border-radius: 20px; padding: 34px 30px; }
.contact-form h2 { font-size: 24px; font-weight: 900; text-align: center; }
.contact-form .csub { text-align: center; color: var(--muted); font-size: 13.5px; font-weight: 600; margin-bottom: 18px; }
.contact-form label { display: block; font-weight: 800; font-size: 13.5px; margin-bottom: 10px; color: var(--ink); }
.contact-form input, .contact-form textarea { width: 100%; margin-top: 6px; padding: 12px 14px; border: 2px solid #E2E8F0; border-radius: 12px; font-family: inherit; font-size: 14px; background: #fff; color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(201,162,75,.15); }

/* الفوتر */
.site-footer { background: #0A1628; color: #D7E3EE; padding: 20px 0; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.f-copy small { display: block; color: #9DB3AD; font-size: 11.5px; }
.f-contact a:hover { color: var(--gold-light); }
.socials { display: flex; gap: 8px; }
.socials a { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.25); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; }
.socials a:hover { border-color: var(--gold); color: var(--gold-light); }

/* كتل إضافية */
.xblock { padding: 44px 0; background: #fff; }
.xblock:nth-of-type(even) { background: #F7F5EF; }
.xhead { text-align: center; max-width: 720px; margin: 0 auto 24px; }
.xhead h2 { font-size: clamp(22px,2.8vw,32px); font-weight: 900; }
.xhead p { color: var(--muted); font-weight: 600; }
.xvideo { max-width: 860px; margin: 0 auto; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/9; background: #000; }
.xvideo iframe, .xvideo video { width: 100%; height: 100%; border: 0; }
.xgallery { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.xgallery img, .xgallery video { width: 100%; height: 200px; object-fit: cover; border-radius: 16px; }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.faq-q { width: 100%; background: none; border: 0; padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 15px; cursor: pointer; color: var(--ink); font-family: inherit; }
.faq-q .plus { color: #8a6d2f; font-size: 22px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a .rich { padding: 0 18px 16px; color: var(--muted); }
.xtestis { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.xtesti { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.xtesti b { color: #8a6d2f; }
.xpages { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.xpage { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.xpage img { width: 100%; height: 180px; object-fit: cover; }
.xpage h3 { padding: 14px 16px 0; font-size: 16px; }
.xpage p { padding: 0 16px 16px; }
.xpage a { color: #8a6d2f; font-weight: 800; }

.reveal { opacity: 0; transform: translateY(26px); transition: .7s cubic-bezier(.4,0,.2,1); }
.reveal.vis { opacity: 1; transform: none; }
.float-wa { position: fixed; bottom: 22px; left: 22px; z-index: 99; background: #25D366; color: #fff; width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 8px 22px rgba(0,0,0,.25); }
.to-top { position: fixed; bottom: 22px; right: 22px; z-index: 99; width: 48px; height: 48px; border-radius: 50%; background: #0A1628; color: #fff; border: 1px solid rgba(255,255,255,.2); font-size: 20px; cursor: pointer; opacity: 0; pointer-events: none; transition: .3s; display: flex; align-items: center; justify-content: center; }
.to-top.show { opacity: 1; pointer-events: auto; }
.pwa-banner { position: fixed; z-index: 999; bottom: 90px; right: 18px; left: 18px; margin-inline: auto; max-width: 430px; background: #fff; color: #0f172a; border-radius: 20px; padding: 16px; box-shadow: 0 25px 70px rgba(0,0,0,.35); display: none; gap: 12px; align-items: center; }
.pwa-app-icon { width: 56px; height: 56px; border-radius: 14px; background: #0A1628; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; overflow: hidden; flex-shrink: 0; }
.pwa-app-icon img { width: 100%; height: 100%; object-fit: cover; }
.pwa-banner .t { font-weight: 900; font-size: 14.5px; }
.pwa-banner small { color: #64748b; font-size: 12px; }
.pwa-banner .row { display: flex; gap: 8px; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; font-weight: 800; border: 0; cursor: pointer; }
.btn-sm { height: 40px; padding: 0 20px; font-size: 13px; }
.btn-ghost { background: #f1f5f9; color: #475569; }

@media (max-width: 1100px) {
  .svc-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 1024px) {
  .side { position: fixed; top: 0; right: 0; left: 0; bottom: auto; width: 100%; flex-direction: row; align-items: center; padding: 10px 16px; gap: 12px; }
  .side-brand { flex-direction: row; text-align: right; }
  .side-mark { width: 40px; height: 40px; }
  .side-brand b { font-size: 14px; }
  .side-brand small, .side-brand .dim, .side-social, .side-quote, .side-call { display: none; }
  .side-nav { position: absolute; top: 100%; right: 12px; left: 12px; background: #0C1E38; border-radius: 16px; padding: 16px; display: none; border: 1px solid rgba(201,162,75,.3); }
  .side.open .side-nav { display: flex; }
  .side .burger { display: block; margin-inline-start: auto; background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.4); width: 44px; height: 44px; border-radius: 12px; font-size: 22px; cursor: pointer; }
  .page-body { margin-left: 0; padding-top: 64px; }
  .hero-doc { max-width: 60%; opacity: .9; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { min-height: 320px; }
  .contact-grid { grid-template-columns: 1fr; }
  .xtestis, .xpages, .xgallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero-text h1 { font-size: 40px; }
  .hero-doc { position: relative; max-width: 78%; height: 340px; margin: 0 auto; left: auto; }
  .hero-in { justify-content: center; }
  .hero-text { padding-bottom: 30px; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
  .stat + .stat { border-inline-start: 0; }
  .xtestis, .xpages, .xgallery { grid-template-columns: 1fr; }
  .foot-in { flex-direction: column; text-align: center; }
}
