/* =========================================================
   مكتب الأستاذ عمر حسن صبحي — للمحاماة والاستشارات القانونية
   ملف الأنماط المشترك (style.css)
   ========================================================= */

/* ---------- المتغيّرات اللونية والهوية البصرية ---------- */
:root{
  --navy:        #0b1f3a;
  --navy-dark:   #081628;
  --navy-soft:   #12294a;
  --gold:        #c9a227;
  --gold-soft:   #e0c25a;
  --cream:       #f7f4ec;
  --cream-dark:  #efe9da;
  --text:        #1c2433;
  --muted:       #5d6678;
  --white:       #ffffff;

  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 18px 50px -20px rgba(8,22,40,.45);
  --shadow-gold: 0 14px 36px -14px rgba(201,162,39,.55);
  --maxw:        1180px;
  --header-h:    78px;

  --font-head: "Amiri", "Cairo", serif;
  --font-body: "Cairo", system-ui, sans-serif;
}

/* ---------- إعادة الضبط ---------- */
*,*::before,*::after{ box-sizing:border-box; margin:0; padding:0; }

html{ scroll-behavior:smooth; }

body{
  font-family:var(--font-body);
  color:var(--text);
  background:var(--cream);
  line-height:1.85;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  /* منع تحديد ونسخ النصوص */
  -webkit-user-select:none;
  -moz-user-select:none;
  -ms-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
}
/* السماح بالكتابة والتحديد داخل حقول الفورم فقط */
input, textarea, select{
  -webkit-user-select:text;
  -moz-user-select:text;
  -ms-user-select:text;
  user-select:text;
}

img{ max-width:100%; display:block; -webkit-user-drag:none; user-drag:none; pointer-events:none; }
.cert-item img, .lightbox img, .brand img, .footer-brand img{ pointer-events:auto; }
a{ text-decoration:none; color:inherit; }
ul{ list-style:none; }

h1,h2,h3,h4{ font-family:var(--font-head); font-weight:700; line-height:1.4; color:var(--navy); }

/* ---------- أدوات عامة ---------- */
.container{ width:100%; max-width:var(--maxw); margin-inline:auto; padding-inline:22px; }

.section{ padding-block:90px; position:relative; }
.section--cream{ background:var(--cream); }
.section--cream-alt{ background:var(--cream-dark); }
.section--navy{ background:var(--navy); color:var(--cream); }
.section--navy h2,.section--navy h3{ color:var(--white); }

.section-head{ text-align:center; max-width:680px; margin:0 auto 56px; }
.section-head .kicker{
  display:inline-block; font-family:var(--font-body); font-weight:700; font-size:.82rem;
  letter-spacing:2px; color:var(--gold); text-transform:uppercase; margin-bottom:14px;
  position:relative; padding-inline:54px;
}
.section-head .kicker::before,
.section-head .kicker::after{
  content:""; position:absolute; top:50%; width:40px; height:1px; background:var(--gold); opacity:.6;
}
.section-head .kicker::before{ right:0; }
.section-head .kicker::after{ left:0; }
.section-head h2{ font-size:clamp(1.9rem,4vw,2.7rem); margin-bottom:14px; }
.section-head p{ color:var(--muted); font-size:1.05rem; }
.section--navy .section-head p{ color:#c8d2e2; }

/* ---------- الأزرار ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  font-family:var(--font-body); font-weight:700; font-size:1rem;
  padding:14px 30px; border-radius:50px; border:1.5px solid transparent;
  cursor:pointer; transition:.3s ease; white-space:nowrap;
}
.btn svg{ width:20px; height:20px; }
.btn--gold{ background:var(--gold); color:var(--navy-dark); box-shadow:var(--shadow-gold); }
.btn--gold:hover{ background:var(--gold-soft); transform:translateY(-3px); }
.btn--outline{ background:transparent; color:var(--cream); border-color:rgba(201,162,39,.7); }
.btn--outline:hover{ background:var(--gold); color:var(--navy-dark); border-color:var(--gold); }
.btn--navy{ background:var(--navy); color:var(--cream); }
.btn--navy:hover{ background:var(--navy-dark); transform:translateY(-3px); }
.btn--ghost{ background:transparent; color:var(--navy); border-color:var(--navy); }
.btn--ghost:hover{ background:var(--navy); color:var(--cream); }

/* =========================================================
   الهيدر / شريط التنقّل
   ========================================================= */
.site-header{
  position:fixed; inset-block-start:0; inset-inline:0; z-index:1000;
  height:var(--header-h);
  display:flex; align-items:center;
  background:rgba(8,22,40,.55);
  backdrop-filter:blur(10px);
  transition:.35s ease;
  border-block-end:1px solid rgba(201,162,39,.18);
}
.site-header.scrolled{ background:var(--navy-dark); box-shadow:0 10px 30px -18px rgba(0,0,0,.7); }
.site-header .container{ display:flex; align-items:center; justify-content:space-between; gap:20px; }

.brand{ display:flex; align-items:center; gap:12px; }
.brand img{ width:42px; height:42px; }
.brand-text{ display:flex; flex-direction:column; line-height:1.25; }
.brand-text strong{ font-family:var(--font-head); font-size:1.18rem; color:var(--white); }
.brand-text span{ font-size:.72rem; color:var(--gold-soft); letter-spacing:.5px; }

.nav{ display:flex; align-items:center; gap:6px; }
.nav a{
  color:#e7ecf5; font-weight:600; font-size:.97rem; padding:9px 15px; border-radius:50px;
  position:relative; transition:.25s;
}
.nav a:hover{ color:var(--gold-soft); }
.nav a.active{ color:var(--gold); }
.nav a.active::after{
  content:""; position:absolute; inset-block-end:2px; inset-inline:15px; height:2px;
  background:var(--gold); border-radius:2px;
}
.nav .btn{ padding:9px 20px; font-size:.92rem; margin-inline-start:8px; }

.nav-toggle{
  display:none; flex-direction:column; gap:5px; background:none; border:0; cursor:pointer; padding:8px;
}
.nav-toggle span{ width:26px; height:2.5px; background:var(--gold); border-radius:2px; transition:.3s; }
.nav-toggle.open span:nth-child(1){ transform:translateY(7.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity:0; }
.nav-toggle.open span:nth-child(3){ transform:translateY(-7.5px) rotate(-45deg); }

/* =========================================================
   الهيرو
   ========================================================= */
.hero{
  position:relative; min-height:100vh; display:flex; align-items:center;
  color:var(--cream); padding-block:calc(var(--header-h) + 40px) 60px; overflow:hidden;
}
.hero::before{
  content:""; position:absolute; inset:0; z-index:-2;
  background:linear-gradient(110deg,var(--navy-dark) 0%, var(--navy) 45%, var(--navy-soft) 100%);
}
.hero__bg{
  position:absolute; inset:0; z-index:-1;
  background-image:linear-gradient(90deg, rgba(8,22,40,.96) 8%, rgba(8,22,40,.78) 45%, rgba(8,22,40,.35) 100%), var(--hero-img,none);
  background-size:cover; background-position:center top;
}
.hero__inner{ max-width:680px; }
.hero .kicker{
  display:inline-block; color:var(--gold); font-weight:700; letter-spacing:3px;
  font-size:.85rem; margin-bottom:18px; padding-inline-start:50px; position:relative;
}
.hero .kicker::before{
  content:""; position:absolute; inset-inline-start:0; top:50%; width:38px; height:2px; background:var(--gold);
}
.hero h1{ color:var(--white); font-size:clamp(2.3rem,6vw,4rem); margin-bottom:20px; line-height:1.3; }
.hero h1 .accent{ color:var(--gold); }
.hero p.lead{ font-size:clamp(1.05rem,2.5vw,1.3rem); color:#d6deea; margin-bottom:36px; max-width:560px; }
.hero__actions{ display:flex; gap:16px; flex-wrap:wrap; }
.hero__scroll{
  position:absolute; inset-block-end:26px; inset-inline-start:50%; transform:translateX(-50%);
  color:var(--gold); font-size:.8rem; letter-spacing:1px; opacity:.8;
  display:flex; flex-direction:column; align-items:center; gap:8px; animation:bob 2s infinite;
}
.hero__scroll span{ width:22px; height:36px; border:2px solid var(--gold); border-radius:14px; position:relative; }
.hero__scroll span::after{
  content:""; position:absolute; inset-inline-start:50%; top:8px; transform:translateX(-50%);
  width:4px; height:7px; background:var(--gold); border-radius:3px; animation:dot 2s infinite;
}
@keyframes bob{ 0%,100%{ transform:translate(-50%,0);} 50%{ transform:translate(-50%,8px);} }
@keyframes dot{ 0%{ opacity:0; top:6px;} 50%{ opacity:1;} 100%{ opacity:0; top:18px;} }

/* الترويسة الداخلية لباقي الصفحات */
.page-hero{
  position:relative; padding-block:calc(var(--header-h) + 70px) 70px; text-align:center; color:var(--cream);
  background:linear-gradient(120deg,var(--navy-dark),var(--navy-soft));
  overflow:hidden;
}
.page-hero::after{
  content:""; position:absolute; inset:0; opacity:.07;
  background:radial-gradient(circle at 80% 20%, var(--gold), transparent 55%);
}
.page-hero h1{ color:var(--white); font-size:clamp(2rem,5vw,3rem); margin-bottom:12px; position:relative; }
.page-hero p{ color:#cdd6e4; max-width:620px; margin:0 auto; position:relative; }
.breadcrumb{ margin-top:18px; font-size:.9rem; color:var(--gold-soft); position:relative; }
.breadcrumb a:hover{ color:var(--white); }

/* =========================================================
   بطاقات عامة
   ========================================================= */
.grid{ display:grid; gap:28px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }

.card{
  background:var(--white); border-radius:var(--radius); padding:34px 30px;
  box-shadow:var(--shadow); border:1px solid rgba(11,31,58,.06);
  transition:.35s ease; position:relative; overflow:hidden;
}
.card::before{
  content:""; position:absolute; inset-block-start:0; inset-inline:0; height:4px;
  background:linear-gradient(90deg,var(--gold),var(--gold-soft)); transform:scaleX(0);
  transform-origin:inline-end; transition:.4s;
}
.card:hover{ transform:translateY(-8px); box-shadow:0 28px 60px -24px rgba(8,22,40,.5); }
.card:hover::before{ transform:scaleX(1); transform-origin:inline-start; }

.card__icon{
  width:64px; height:64px; border-radius:16px; display:grid; place-items:center; margin-bottom:22px;
  background:linear-gradient(135deg,var(--navy),var(--navy-soft)); color:var(--gold);
}
.card__icon svg{ width:32px; height:32px; }
.card h3{ font-size:1.4rem; margin-bottom:12px; }
.card p{ color:var(--muted); font-size:.98rem; }
.card .card__link{
  display:inline-flex; align-items:center; gap:6px; margin-top:18px; color:var(--gold);
  font-weight:700; font-size:.95rem;
}
.card .card__link svg{ width:16px; height:16px; transition:.3s; }
.card:hover .card__link svg{ transform:translateX(-5px); }

/* =========================================================
   نبذة مختصرة (رئيسية) + عن المكتب
   ========================================================= */
.about-split{ display:grid; grid-template-columns:1fr 1fr; gap:54px; align-items:center; }
.about-figure{ position:relative; }
.about-figure img{
  border-radius:var(--radius); box-shadow:var(--shadow); width:100%;
  aspect-ratio:4/5; object-fit:cover; object-position:top center;
}
.about-figure .frame{
  content:""; position:absolute; inset-block-start:24px; inset-inline-start:-24px;
  width:100%; height:100%; border:2px solid var(--gold); border-radius:var(--radius); z-index:-1;
}
.about-figure .badge{
  position:absolute; inset-block-end:-22px; inset-inline-end:24px;
  background:var(--gold); color:var(--navy-dark); padding:16px 24px; border-radius:14px;
  box-shadow:var(--shadow-gold); text-align:center;
}
.about-figure .badge strong{ display:block; font-family:var(--font-head); font-size:1.9rem; line-height:1; }
.about-figure .badge span{ font-size:.78rem; font-weight:600; }

.about-content h2{ font-size:clamp(1.8rem,4vw,2.5rem); margin-bottom:8px; }
.about-content .sub{ color:var(--gold); font-weight:700; margin-bottom:20px; }
.about-content p{ color:var(--muted); margin-bottom:16px; }
.about-content .signature{
  font-family:var(--font-head); font-size:1.5rem; color:var(--navy); margin-top:10px;
}

/* قائمة مميّزات بعلامة صح */
.check-list{ display:grid; gap:14px; margin:24px 0; }
.check-list li{ display:flex; gap:12px; align-items:flex-start; color:var(--text); }
.check-list li svg{ width:22px; height:22px; color:var(--gold); flex-shrink:0; margin-top:5px; }

/* =========================================================
   لماذا نحن — مزايا
   ========================================================= */
.feature{ text-align:center; padding:30px 22px; }
.feature__num{
  font-family:var(--font-head); font-size:2.4rem; color:var(--gold); display:block; margin-bottom:6px;
}
.feature__icon{
  width:72px; height:72px; margin:0 auto 18px; border-radius:50%;
  display:grid; place-items:center; color:var(--gold);
  background:rgba(201,162,39,.12); border:1px solid rgba(201,162,39,.35);
}
.feature__icon svg{ width:34px; height:34px; }
.feature h3{ font-size:1.25rem; margin-bottom:10px; }
.section--navy .feature p{ color:#bcc7d8; }
.feature p{ color:var(--muted); font-size:.95rem; }

/* شريط إحصائيات */
.stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; text-align:center; }
.stat strong{ font-family:var(--font-head); font-size:clamp(2rem,5vw,3rem); color:var(--gold); display:block; }
.stat span{ color:#c8d2e2; font-size:.95rem; }

/* =========================================================
   الشهادات
   ========================================================= */
.testi{
  background:var(--white); border-radius:var(--radius); padding:34px 30px 30px;
  box-shadow:var(--shadow); position:relative; border:1px solid rgba(11,31,58,.06);
}
.testi__quote{ font-family:var(--font-head); font-size:4rem; color:var(--gold); line-height:.6; opacity:.35; }
.testi p{ color:var(--text); font-style:normal; margin:6px 0 22px; }
.testi__person{ display:flex; align-items:center; gap:14px; }
.testi__avatar{
  width:50px; height:50px; border-radius:50%; background:linear-gradient(135deg,var(--navy),var(--navy-soft));
  color:var(--gold); display:grid; place-items:center; font-family:var(--font-head); font-size:1.3rem; font-weight:700;
}
.testi__person strong{ display:block; color:var(--navy); font-size:1rem; }
.testi__person span{ color:var(--muted); font-size:.85rem; }
.stars{ color:var(--gold); letter-spacing:2px; margin-bottom:6px; }

/* =========================================================
   تواصل سريع (CTA)
   ========================================================= */
.cta-band{
  background:linear-gradient(120deg,var(--navy-dark),var(--navy-soft));
  border-radius:var(--radius); padding:54px 40px; text-align:center; color:var(--cream);
  position:relative; overflow:hidden;
}
.cta-band::after{
  content:""; position:absolute; inset:0; opacity:.1;
  background:radial-gradient(circle at 15% 20%,var(--gold),transparent 50%);
}
.cta-band h2{ color:var(--white); font-size:clamp(1.7rem,4vw,2.4rem); margin-bottom:14px; position:relative; }
.cta-band p{ color:#cdd6e4; max-width:560px; margin:0 auto 30px; position:relative; }
.cta-band .hero__actions{ justify-content:center; position:relative; }

/* =========================================================
   الخدمات — بطاقات تفصيلية
   ========================================================= */
.service-detail{
  background:var(--white); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow);
  display:grid; grid-template-columns:auto 1fr; gap:0; border:1px solid rgba(11,31,58,.06);
  transition:.35s;
}
.service-detail:hover{ transform:translateY(-6px); box-shadow:0 28px 60px -24px rgba(8,22,40,.5); }
.service-detail__icon{
  background:linear-gradient(150deg,var(--navy),var(--navy-soft)); color:var(--gold);
  display:grid; place-items:center; width:110px;
}
.service-detail__icon svg{ width:46px; height:46px; }
.service-detail__body{ padding:30px 30px; }
.service-detail__body h3{ font-size:1.5rem; margin-bottom:10px; }
.service-detail__body p{ color:var(--muted); margin-bottom:16px; }
.service-detail__body .tags{ display:flex; flex-wrap:wrap; gap:8px; }
.service-detail__body .tag{
  background:var(--cream-dark); color:var(--navy); font-size:.82rem; font-weight:600;
  padding:5px 14px; border-radius:50px;
}

/* =========================================================
   المقالات
   ========================================================= */
.article-card{
  background:var(--white); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow);
  display:flex; flex-direction:column; transition:.35s; border:1px solid rgba(11,31,58,.06);
}
.article-card:hover{ transform:translateY(-8px); box-shadow:0 28px 60px -24px rgba(8,22,40,.5); }
.article-card__media{ position:relative; aspect-ratio:16/10; overflow:hidden; }
.article-card__media img{ width:100%; height:100%; object-fit:cover; transition:.5s; }
.article-card:hover .article-card__media img{ transform:scale(1.06); }
.article-card__tag{
  position:absolute; inset-block-start:14px; inset-inline-start:14px;
  background:var(--gold); color:var(--navy-dark); font-size:.78rem; font-weight:700;
  padding:5px 14px; border-radius:50px;
}
.article-card__body{ padding:26px 26px 28px; display:flex; flex-direction:column; flex:1; }
.article-card__meta{ display:flex; gap:16px; color:var(--muted); font-size:.83rem; margin-bottom:12px; }
.article-card__meta span{ display:flex; align-items:center; gap:5px; }
.article-card__meta svg{ width:15px; height:15px; color:var(--gold); }
.article-card h3{ font-size:1.3rem; margin-bottom:10px; }
.article-card p{ color:var(--muted); font-size:.95rem; flex:1; }
.article-card .card__link{
  display:inline-flex; align-items:center; gap:6px; margin-top:18px; color:var(--gold); font-weight:700;
}
.article-card .card__link svg{ width:16px; height:16px; transition:.3s; }
.article-card:hover .card__link svg{ transform:translateX(-5px); }

/* =========================================================
   معرض الشهادات والمؤهلات + نافذة التكبير (Lightbox)
   ========================================================= */
.certs-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.cert-item{
  background:var(--white); border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow);
  border:1px solid rgba(11,31,58,.06); cursor:pointer; transition:.35s; position:relative;
}
.cert-item:hover{ transform:translateY(-8px); box-shadow:0 28px 60px -24px rgba(8,22,40,.5); }
.cert-item__media{ position:relative; aspect-ratio:4/3; overflow:hidden; background:var(--cream-dark); }
.cert-item__media img{ width:100%; height:100%; object-fit:cover; transition:.5s; }
.cert-item:hover .cert-item__media img{ transform:scale(1.05); }
.cert-item__media::after{
  content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 55%,rgba(8,22,40,.55));
  opacity:0; transition:.35s;
}
.cert-item:hover .cert-item__media::after{ opacity:1; }
.cert-item__zoom{
  position:absolute; inset-block-end:14px; inset-inline-end:14px; width:40px; height:40px; border-radius:50%;
  background:var(--gold); color:var(--navy-dark); display:grid; place-items:center;
  opacity:0; transform:scale(.7); transition:.35s; z-index:2;
}
.cert-item:hover .cert-item__zoom{ opacity:1; transform:scale(1); }
.cert-item__zoom svg{ width:20px; height:20px; }
.cert-item__caption{ padding:18px 20px; }
.cert-item__caption h3{ font-size:1.08rem; margin-bottom:4px; line-height:1.5; }
.cert-item__caption span{ color:var(--muted); font-size:.85rem; }

.lightbox{
  position:fixed; inset:0; z-index:2000; background:rgba(8,22,40,.92);
  display:flex; align-items:center; justify-content:center; padding:40px 20px;
  opacity:0; visibility:hidden; transition:.3s; backdrop-filter:blur(4px);
}
.lightbox.open{ opacity:1; visibility:visible; }
.lightbox img{
  max-width:min(92vw,900px); max-height:86vh; border-radius:10px;
  box-shadow:0 30px 80px -20px rgba(0,0,0,.8); border:3px solid var(--gold);
}
.lightbox__close,.lightbox__nav{
  position:absolute; background:rgba(255,255,255,.12); color:var(--cream); border:0; cursor:pointer;
  width:50px; height:50px; border-radius:50%; display:grid; place-items:center; transition:.25s;
}
.lightbox__close:hover,.lightbox__nav:hover{ background:var(--gold); color:var(--navy-dark); }
.lightbox__close{ inset-block-start:24px; inset-inline-end:24px; }
.lightbox__close svg,.lightbox__nav svg{ width:26px; height:26px; }
.lightbox__nav{ inset-block-start:50%; transform:translateY(-50%); }
.lightbox__nav.prev{ inset-inline-end:24px; }
.lightbox__nav.next{ inset-inline-start:24px; }

/* =========================================================
   صفحة التواصل
   ========================================================= */
.contact-grid{ display:grid; grid-template-columns:1fr 1.2fr; gap:40px; align-items:start; }

.info-card{
  background:linear-gradient(150deg,var(--navy),var(--navy-soft)); color:var(--cream);
  border-radius:var(--radius); padding:38px 32px; box-shadow:var(--shadow);
}
.info-card h3{ color:var(--white); font-size:1.5rem; margin-bottom:8px; }
.info-card > p{ color:#cdd6e4; margin-bottom:26px; }
.info-item{ display:flex; gap:16px; align-items:flex-start; margin-bottom:22px; }
.info-item__icon{
  width:46px; height:46px; flex-shrink:0; border-radius:12px; display:grid; place-items:center;
  background:rgba(201,162,39,.15); color:var(--gold);
}
.info-item__icon svg{ width:22px; height:22px; }
.info-item strong{ display:block; color:var(--white); font-size:1rem; margin-bottom:2px; }
.info-item span,.info-item a{ color:#c8d2e2; font-size:.95rem; }
.info-item a:hover{ color:var(--gold); }
.info-socials{ display:flex; gap:12px; margin-top:28px; }
.info-socials a{
  width:42px; height:42px; border-radius:50%; display:grid; place-items:center;
  background:rgba(255,255,255,.08); color:var(--gold-soft); transition:.3s;
}
.info-socials a:hover{ background:var(--gold); color:var(--navy-dark); transform:translateY(-3px); }
.info-socials svg{ width:20px; height:20px; }

.form-card{ background:var(--white); border-radius:var(--radius); padding:38px 34px; box-shadow:var(--shadow); border:1px solid rgba(11,31,58,.06); }
.form-card h3{ font-size:1.5rem; margin-bottom:6px; }
.form-card .form-note{ color:var(--muted); font-size:.92rem; margin-bottom:24px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.field{ margin-bottom:18px; }
.field label{ display:block; font-weight:600; font-size:.92rem; margin-bottom:7px; color:var(--navy); }
.field input,.field select,.field textarea{
  width:100%; font-family:var(--font-body); font-size:1rem; color:var(--text);
  padding:13px 16px; border:1.5px solid #d8dde6; border-radius:var(--radius-sm);
  background:var(--cream); transition:.25s;
}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none; border-color:var(--gold); background:var(--white); box-shadow:0 0 0 3px rgba(201,162,39,.15);
}
.field textarea{ resize:vertical; min-height:130px; }
.form-card .btn{ width:100%; }

.map-wrap{
  margin-top:0; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow);
  border:1px solid rgba(11,31,58,.08); line-height:0;
}
.map-wrap iframe{ width:100%; height:100%; min-height:340px; border:0; filter:grayscale(.15); }

/* =========================================================
   الفوتر
   ========================================================= */
.site-footer{ background:var(--navy-dark); color:#c8d2e2; padding-block:60px 0; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.2fr; gap:40px; }
.footer-col h4{ color:var(--white); font-size:1.1rem; margin-bottom:20px; position:relative; padding-bottom:12px; }
.footer-col h4::after{ content:""; position:absolute; inset-block-end:0; inset-inline-start:0; width:38px; height:2px; background:var(--gold); }
.footer-brand{ display:flex; align-items:center; gap:12px; margin-bottom:18px; }
.footer-brand img{ width:46px; height:46px; }
.footer-brand strong{ font-family:var(--font-head); color:var(--white); font-size:1.25rem; }
.footer-brand span{ color:var(--gold-soft); font-size:.75rem; display:block; }
.footer-col p{ font-size:.94rem; color:#aab6c8; }
.footer-links li{ margin-bottom:11px; }
.footer-links a{ color:#aab6c8; font-size:.95rem; transition:.25s; display:inline-flex; align-items:center; gap:8px; }
.footer-links a::before{ content:"‹"; color:var(--gold); font-weight:bold; }
.footer-links a:hover{ color:var(--gold); padding-inline-end:4px; }
.footer-contact li{ display:flex; gap:12px; align-items:flex-start; margin-bottom:14px; font-size:.93rem; color:#aab6c8; }
.footer-contact svg{ width:18px; height:18px; color:var(--gold); flex-shrink:0; margin-top:4px; }
.footer-phones{ display:inline-flex; flex-wrap:wrap; align-items:center; gap:8px; direction:ltr; }
.footer-phones a{ color:#aab6c8; transition:.25s; }
.footer-phones a:hover{ color:var(--gold); }
.footer-phones .sep{ color:var(--gold); opacity:.6; }
.footer-socials{ display:flex; gap:10px; margin-top:18px; }
.footer-socials a{
  width:38px; height:38px; border-radius:50%; display:grid; place-items:center;
  background:rgba(255,255,255,.06); color:var(--gold-soft); transition:.3s;
}
.footer-socials a:hover{ background:var(--gold); color:var(--navy-dark); }
.footer-socials svg{ width:18px; height:18px; }
.footer-bottom{
  margin-top:50px; border-top:1px solid rgba(255,255,255,.08); padding-block:22px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size:.85rem; color:#8a98ad;
}
.footer-bottom a{ color:var(--gold-soft); }

/* =========================================================
   زر واتساب العائم + زر العودة للأعلى
   ========================================================= */
.wa-float{
  position:fixed; inset-block-end:24px; inset-inline-end:24px; z-index:900;
  width:60px; height:60px; border-radius:50%; background:#25d366; color:#fff;
  display:grid; place-items:center; box-shadow:0 12px 30px -8px rgba(37,211,102,.6);
  transition:.3s; animation:waPulse 2.4s infinite;
}
.wa-float:hover{ transform:scale(1.08); }
.wa-float svg{ width:32px; height:32px; }
@keyframes waPulse{
  0%{ box-shadow:0 0 0 0 rgba(37,211,102,.5); }
  70%{ box-shadow:0 0 0 16px rgba(37,211,102,0); }
  100%{ box-shadow:0 0 0 0 rgba(37,211,102,0); }
}
.to-top{
  position:fixed; inset-block-end:96px; inset-inline-end:30px; z-index:899;
  width:46px; height:46px; border-radius:50%; background:var(--navy); color:var(--gold);
  display:grid; place-items:center; border:1px solid rgba(201,162,39,.4);
  opacity:0; visibility:hidden; transform:translateY(10px); transition:.3s; cursor:pointer;
}
.to-top.show{ opacity:1; visibility:visible; transform:translateY(0); }
.to-top:hover{ background:var(--gold); color:var(--navy-dark); }
.to-top svg{ width:22px; height:22px; }

/* =========================================================
   حركات الظهور عند التمرير
   ========================================================= */
.reveal{ opacity:0; transform:translateY(34px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in{ opacity:1; transform:none; }
.reveal.delay-1{ transition-delay:.12s; }
.reveal.delay-2{ transition-delay:.24s; }
.reveal.delay-3{ transition-delay:.36s; }
@media (prefers-reduced-motion:reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  *{ animation:none !important; }
}

/* =========================================================
   الاستجابة (Responsive)
   ========================================================= */
@media (max-width:980px){
  .footer-grid{ grid-template-columns:1fr 1fr; gap:34px; }
  .about-split{ grid-template-columns:1fr; gap:60px; }
  .about-figure{ max-width:440px; margin-inline:auto; }
  .contact-grid{ grid-template-columns:1fr; }
}

@media (max-width:760px){
  .nav{
    position:fixed; inset-block-start:var(--header-h); inset-inline:0;
    flex-direction:column; align-items:stretch; gap:0;
    background:var(--navy-dark); padding:14px 22px 26px;
    border-block-start:1px solid rgba(201,162,39,.2);
    clip-path:inset(0 0 100% 0); transition:clip-path .4s ease; box-shadow:var(--shadow);
  }
  .nav.open{ clip-path:inset(0 0 0 0); }
  .nav a{ padding:14px 8px; border-block-end:1px solid rgba(255,255,255,.06); border-radius:0; }
  .nav a.active::after{ display:none; }
  .nav .btn{ margin:14px 0 0; justify-content:center; }
  .nav-toggle{ display:flex; }

  /* ضبط صورة الهيرو على الموبايل */
  .hero{ min-height:auto; padding-block:calc(var(--header-h) + 50px) 70px; }
  .hero__bg{
    background-image:
      linear-gradient(180deg, rgba(8,22,40,.82) 0%, rgba(8,22,40,.70) 45%, rgba(8,22,40,.92) 100%),
      var(--hero-img, none);
    background-position:center 18%;
  }
  .hero h1{ text-shadow:0 2px 16px rgba(0,0,0,.55); }
  .hero p.lead{ text-shadow:0 1px 10px rgba(0,0,0,.5); }
  .hero__scroll{ display:none; }

  .grid-2,.grid-3{ grid-template-columns:1fr; }
  .stats{ grid-template-columns:1fr 1fr; gap:34px 16px; }
  .form-row{ grid-template-columns:1fr; }
  .section{ padding-block:64px; }
  .service-detail{ grid-template-columns:1fr; }
  .service-detail__icon{ width:100%; height:90px; }
  .about-figure .frame{ display:none; }
  .footer-grid{ grid-template-columns:1fr; }
  .footer-bottom{ justify-content:center; text-align:center; }
}

@media (max-width:420px){
  .hero__actions{ flex-direction:column; align-items:stretch; }
  .hero__actions .btn{ width:100%; }
  .stats{ grid-template-columns:1fr 1fr; }
}
