/* law1 — المستشار الكلاسيكي (كحلي × ذهبي) — 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: 84px; }
.hand, .hand-note, .why-hand { font-family: 'Aref Ruqaa','Cairo',serif; }
.rich { line-height: 2; }
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex-direction: row-reverse;
  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 svg { width: 19px; height: 19px; }
.btn-gold:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-gold.sm { height: 44px; padding: 0 24px; font-size: 13.5px; }

/* الهيدر */
.site-header { position: fixed; top: 0; right: 0; left: 0; z-index: 110; background: transparent; transition: background .35s, box-shadow .35s; }
.site-header.scrolled { background: rgba(6,13,26,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.header-in { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 14px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { width: 46px; height: 46px; color: var(--gold); flex-shrink: 0; }
.brand-mark svg { width: 100%; height: 100%; stroke-width: 2.6; }
.brand-txt { line-height: 1.5; }
.brand-txt b { display: block; font-size: 17px; font-weight: 900; color: #fff; white-space: nowrap; }
.brand-txt small { display: block; font-size: 10.5px; color: #C9D6E2; font-weight: 700; white-space: nowrap; }
.main-links { display: flex; gap: 22px; align-items: center; font-weight: 700; font-size: 14px; color: #fff; }
.main-links a { position: relative; padding: 8px 2px; white-space: nowrap; }
.main-links a::after { content: ''; position: absolute; bottom: 2px; right: 0; left: 0; height: 2.5px; background: var(--gold); border-radius: 99px; transform: scaleX(0); transform-origin: right; transition: .3s; }
.main-links a:hover::after, .main-links a.active::after { transform: scaleX(1); }
.main-links a.active { font-weight: 800; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.btn-book {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-direction: row-reverse;
  background: var(--gold-btn); color: #0A1628 !important; font-weight: 800; font-size: 14px;
  height: 46px; padding: 0 26px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 10px 22px -8px rgba(201,162,75,.6);
}
.btn-book svg { width: 18px; height: 18px; }
.btn-book:hover { transform: translateY(-2px); }
.burger { display: none; 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; }

/* الهيرو */
.hero { background: linear-gradient(135deg, #0D2138 0%, #0A1628 55%, #060D1A 100%); overflow: hidden; padding: 118px 0 0; color: #fff; }
.hero-bgimg { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-bgimg img { width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.hero-bgimg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(13,33,56,.9), rgba(6,13,26,.94)); }
.hero-statue { position: absolute; bottom: 40px; left: -30px; width: 190px; height: 340px; object-fit: cover; object-position: top; z-index: 1; opacity: .9;
  -webkit-mask-image: linear-gradient(180deg,#000 70%,transparent), radial-gradient(ellipse 60% 60% at 50% 50%, #000 55%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(180deg,#000 70%,transparent), radial-gradient(ellipse 60% 60% at 50% 50%, #000 55%, transparent 100%);
}
.hero-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 24px; align-items: center; position: relative; z-index: 2; }
.hero-media { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 540px; }
.doc-img { position: relative; z-index: 3; width: 100%; max-width: 430px; height: 530px; object-fit: cover; object-position: top center;
  -webkit-mask-image: radial-gradient(ellipse 52% 52% at 50% 40%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 52% 52% at 50% 40%, #000 55%, transparent 100%);
}
.hero-media { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 540px; }
.law-books { position: absolute; z-index: 4; bottom: 50px; left: 60px; display: flex; flex-direction: column; gap: 5px; }
.law-books span { background: linear-gradient(-90deg, #1a1206, #3a2a10); border: 1px solid rgba(201,162,75,.55); border-right: 4px solid var(--gold); color: var(--gold-light); font-size: 11px; font-weight: 700; padding: 5px 12px 5px 26px; border-radius: 4px 8px 8px 4px; box-shadow: 0 8px 18px rgba(0,0,0,.4); white-space: nowrap; }
.hero-text { text-align: center; padding-bottom: 30px; }
.hero-badge { color: #D7E3EE; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.hero-text h1 { font-weight: 900; line-height: 1.4; margin-bottom: 4px; font-size: clamp(40px,5vw,64px); color: #fff; text-shadow: 0 4px 24px rgba(0,0,0,.4); }
.hero-text h1 .gold-w { display: block; font-size: .72em; color: var(--gold-light); }
.hero-spec { color: var(--gold-light); font-weight: 800; font-size: clamp(19px,2.2vw,27px); }
.hero-l1 { color: #fff; font-weight: 700; font-size: clamp(14px,1.5vw,18px); margin-top: 8px; }
.hero-feats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 20px auto 24px; max-width: 560px; }
.feat { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.feat + .feat { border-inline-start: 1px solid rgba(255,255,255,.16); padding-inline-start: 10px; }
.feat-ic { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(232,200,118,.6); display: flex; align-items: center; justify-content: center; color: var(--gold-light); }
.feat-ic svg { width: 22px; height: 22px; }
.feat span:last-child { font-size: 12px; font-weight: 700; color: #E8EFF6; line-height: 1.8; }
.hero-btns { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; }
.btn-play { display: inline-flex; align-items: center; gap: 11px; flex-direction: row-reverse; font-weight: 800; color: #fff; font-size: 15px; }
.play-ic { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6); display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.08); transition: .3s; flex-shrink: 0; }
.play-ic svg { width: 20px; height: 20px; fill: #fff; }
.btn-play:hover .play-ic { background: #fff; }
.btn-play:hover .play-ic svg { fill: #0A1628; }
.hero-media { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 540px; }
.hand-note { position: absolute; z-index: 3; top: 230px; right: 38%; font-size: 22px; line-height: 2.1; color: #fff; transform: rotate(-6deg); text-shadow: 0 2px 14px rgba(0,0,0,.6); display: flex; flex-direction: column; white-space: nowrap; }
.hero-wave { margin-top: -6px; line-height: 0; position: relative; z-index: 5; }
.hero-wave svg { width: 100%; height: 70px; display: block; fill: #fff; }

/* الخدمات */
.serv-sec { background: #fff; padding: 50px 0 56px; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 30px; }
.sec-head h2 { font-size: clamp(26px,3.2vw,38px); font-weight: 900; color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 16px; }
.sec-head h2 i { display: block; width: 54px; height: 3px; background: var(--gold); border-radius: 99px; }
.sec-head p { color: var(--muted); font-weight: 600; }
.svc-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 16px; }
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 12px 22px; text-align: center; box-shadow: var(--shadow-sm); transition: .3s; }
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.svc-ic { width: 56px; height: 56px; margin: 0 auto 12px; color: #8a6d2f; display: block; }
.svc-ic svg { width: 100%; height: 100%; }
.svc-ic .ic-emoji { font-size: 40px; }
.svc-card h3 { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.svc-card p { font-size: 12px; color: var(--muted); font-weight: 600; }

/* عن المستشار */
.about-sec { background: #fff; padding: 10px 0 60px; }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr 1fr; gap: 34px; align-items: center; }
.about-stats { display: flex; flex-direction: column; gap: 18px; }
.astat { display: flex; align-items: center; gap: 12px; }
.aic { width: 48px; height: 48px; flex-shrink: 0; color: #8a6d2f; }
.aic svg { width: 100%; height: 100%; }
.astat b { display: block; font-size: 22px; font-weight: 900; color: var(--ink); }
.astat small { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.about-txt { text-align: center; }
.sec-label { color: var(--ink); font-weight: 800; font-size: 20px; }
.about-txt h2 { font-size: clamp(30px,3.6vw,46px); font-weight: 900; margin-bottom: 10px; }
.about-txt h2 .gold-w { color: #b08a3e; }
.about-txt .rich { color: var(--muted); font-weight: 600; margin-bottom: 20px; }
.about-photo { border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); min-height: 380px; position: relative; }
.about-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* لماذا تختارنا */
.why-sec { background: linear-gradient(135deg, #0C1E38, #060D1A); color: #fff; padding: 54px 0 60px; text-align: center; overflow: hidden; }
.why-sec h2 { font-size: clamp(24px,3vw,34px); font-weight: 900; margin-bottom: 28px; }
.why-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; max-width: 1000px; margin: 0 auto; }
.why-item { display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; }
.why-item + .why-item { border-inline-start: 1px solid rgba(255,255,255,.14); }
.wic { width: 52px; height: 52px; color: var(--gold-light); }
.wic svg { width: 100%; height: 100%; }
.why-hand { position: absolute; top: 50%; transform: translateY(-50%) rotate(-6deg); right: 4%; font-size: 30px; line-height: 2; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.6); display: flex; flex-direction: column; }

/* الفوتر */
.site-footer { background: #0A1628; color: #D7E3EE; padding: 44px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr .8fr; gap: 26px; }
.f-brand .brand-mark { width: 54px; height: 54px; color: var(--gold); display: block; margin-bottom: 8px; }
.f-brand .brand-mark svg { width: 100%; height: 100%; }
.f-brand b { display: block; color: #fff; font-size: 18px; }
.f-brand small { font-size: 12px; color: #9DB3AD; }
.f-block b { display: block; color: #fff; margin-bottom: 10px; font-size: 15.5px; }
.f-block span { display: block; font-size: 13.5px; margin-bottom: 6px; }
.f-block a:hover { color: var(--gold-light); }
.socials { display: flex; gap: 8px; }
.socials a { width: 36px; height: 36px; 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: 15px; font-weight: 800; transition: .3s; }
.socials a:hover { border-color: var(--gold); color: var(--gold-light); transform: translateY(-3px); }
.foot-copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 26px; padding: 14px 24px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: #9DB3AD; max-width: 1200px; margin-inline: auto; }

/* كتل المحتوى الإضافية */
.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; color: var(--ink); }
.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: var(--gold); 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); }
  .why-grid { grid-template-columns: repeat(3,1fr); gap: 20px; }
  .why-hand { display: none; }
  .xgallery { grid-template-columns: repeat(2,1fr); }
  .xtestis, .xpages { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { order: -1; }
  .hero-media { min-height: 440px; }
  .doc-img { height: 430px; max-width: 360px; }
  .about-grid { grid-template-columns: 1fr; text-align: center; }
  .about-stats { flex-direction: row; flex-wrap: wrap; justify-content: center; }
  .about-photo { min-height: 300px; max-width: 560px; margin: 0 auto; width: 100%; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .main-links { position: absolute; top: 78px; right: 16px; left: 16px; background: #fff; flex-direction: column; padding: 20px; border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.3); display: none; z-index: 99; }
  .main-links a { color: var(--ink); }
  .main-links.open { display: flex; }
  .burger { display: block; }
  .hero-statue { display: none; }
  .hand-note { display: none; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header-in { min-height: 66px; }
  .brand-txt b { font-size: 14px; }
  .btn-book { padding: 0 14px; font-size: 12px; height: 42px; }
  .hero { padding-top: 100px; }
  .hero-feats { grid-template-columns: 1fr 1fr; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn-gold { width: 100%; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .law-books { display: none; }
  .xtestis, .xpages { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; text-align: center; }
  .f-brand .brand-mark { margin: 0 auto 8px; }
  .socials { justify-content: center; }
  .foot-copy { flex-direction: column; text-align: center; }
}
