/* ===================================================================
   X0T — "Magnet" layer: الصفحات الداخلية
   رأس الصفحة · فتات المسار · أرشيف الخدمات · صفحة الخدمات · الوكلاء
   · الخدمة المفردة · الوكيل المفرد · تواصل معنا · المدونة · 404
   =================================================================== */

/* ===================================================================
   1) رأس الصفحة الداخلية (.phero) — على طراز Magnet
   =================================================================== */
body.x0t-mg .phero{
  position:relative;overflow:hidden;background:var(--mg-bg);color:var(--mg-text);
  padding-block:clamp(56px,9vw,132px) clamp(40px,6vw,88px);
  border-bottom:1px solid var(--mg-hair);
}
body.x0t-mg .phero::before{
  content:"";position:absolute;top:-40vh;inset-inline-start:-14vw;z-index:0;pointer-events:none;
  width:70vw;height:70vw;max-width:1000px;max-height:1000px;border-radius:50%;
  background:radial-gradient(circle,rgba(var(--mg-a-rgb),var(--mg-glow)),rgba(var(--mg-b-rgb),calc(var(--mg-glow) * .5)) 45%,transparent 66%);
  filter:blur(50px);
}
body.x0t-mg .phero .wrap{position:relative;z-index:2;max-width:var(--wrap);padding-inline:var(--mg-shell)}

/* ---- صورة الخلفية تتحوّل إلى لوحة جانبية معتّمة (تنقلها magnet.js) ---- */
body.x0t-mg .phero--art{background-image:none!important;background-color:var(--mg-bg)!important}
body.x0t-mg .phero-art{
  position:absolute;z-index:0;inset-block:0;
  inset-inline-start:0;width:100%;
  background-size:cover;background-position:center;background-repeat:no-repeat;
  filter:saturate(.62) brightness(.56) contrast(1.04);
  -webkit-mask-image:linear-gradient(to right,#000 0%,#000 58%,transparent 100%);
  mask-image:linear-gradient(to right,#000 0%,#000 58%,transparent 100%);
  pointer-events:none;
}
/* في RTL يكون الطرف المنطقي هو اليمين، فنعكس اتجاه القناع */
body.x0t-mg[dir=rtl] .phero-art,
[dir=rtl] body.x0t-mg .phero-art{
  -webkit-mask-image:linear-gradient(to left,#000 0%,#000 58%,transparent 100%);
  mask-image:linear-gradient(to left,#000 0%,#000 58%,transparent 100%);
}
/* حجاب إضافي يضمن تباين العنوان فوق أي صورة */
body.x0t-mg .phero--art::after{
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(to left,rgba(var(--mg-bg-rgb),.10),rgba(var(--mg-bg-rgb),.66) 58%,rgba(var(--mg-bg-rgb),.94) 100%);
}
@media (max-width:860px){
  body.x0t-mg .phero-art{width:100%;
    -webkit-mask-image:linear-gradient(to bottom,#000,transparent 88%);
    mask-image:linear-gradient(to bottom,#000,transparent 88%);
  }
  body.x0t-mg[dir=rtl] .phero-art,
  [dir=rtl] body.x0t-mg .phero-art{
    -webkit-mask-image:linear-gradient(to bottom,#000,transparent 88%);
    mask-image:linear-gradient(to bottom,#000,transparent 88%);
  }
  body.x0t-mg .phero--art::after{
    background:linear-gradient(to bottom,rgba(var(--mg-bg-rgb),.55),rgba(var(--mg-bg-rgb),.9) 70%,var(--mg-bg));
  }
}
body.x0t-mg .phero .eyebrow{margin-bottom:18px}
body.x0t-mg .phero h1{
  font-size:clamp(1.7rem,3.6vw,3.05rem);font-weight:900;letter-spacing:0;line-height:1.32;
  color:var(--mg-text);max-width:min(880px,100%);margin:0;
}
body.x0t-mg .phero > .wrap > p{
  color:var(--mg-muted);font-size:clamp(15px,1.3vw,18px);line-height:1.7;
  max-width:min(680px,100%);margin:18px 0 0;
}

/* فتات المسار */
body.x0t-mg .crumbs{
  font-size:12.5px;font-weight:600;letter-spacing:.04em;color:var(--mg-dim);margin-bottom:18px;
}
body.x0t-mg .crumbs a{color:var(--mg-muted);transition:color .3s var(--mg-ease)}
body.x0t-mg .crumbs a:hover{color:var(--mg-soft)}

/* ===================================================================
   2) أرشيف الخدمات — بطاقات بصورة كاملة كبطاقات الأعمال
   =================================================================== */
body.x0t-mg .cards-media{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,1.8vw,24px);
}
body.x0t-mg .cards-media .card{
  position:relative;isolation:isolate;overflow:hidden;
  background:var(--mg-panel);border:1px solid var(--mg-hair);border-radius:8px;
  padding:0;display:flex;flex-direction:column;
  transition:transform .5s var(--mg-ease),border-color .5s var(--mg-ease);
}
body.x0t-mg .cards-media .card:hover{transform:translateY(-8px);border-color:var(--mg-hair2)}
body.x0t-mg .cards-media .card-media{
  margin:0;aspect-ratio:16/10;border-radius:0;background:var(--mg-field);position:relative;overflow:hidden;
}
body.x0t-mg .cards-media .card-media::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,transparent 40%,rgba(var(--mg-scrim-rgb),.75));
}
body.x0t-mg .cards-media .card-media img{
  width:100%;height:100%;object-fit:cover;transition:transform .8s var(--mg-ease);
}
body.x0t-mg .cards-media .card:hover .card-media img{transform:scale(1.07)}
body.x0t-mg .cards-media .card h3{
  margin:clamp(20px,2.2vw,26px) clamp(20px,2.2vw,26px) 0;
  font-size:clamp(1.05rem,1.5vw,1.3rem);font-weight:900;line-height:1.4;
}
body.x0t-mg .cards-media .card p{
  margin:10px clamp(20px,2.2vw,26px) 0;color:var(--mg-muted);font-size:14px;line-height:1.7;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
body.x0t-mg .cards-media .card .more{
  display:inline-flex;align-items:center;gap:9px;
  margin:auto clamp(20px,2.2vw,26px) clamp(20px,2.2vw,26px);padding-top:18px;
  font-size:13.5px;font-weight:700;color:var(--mg-soft);
  transition:gap .35s var(--mg-ease);
}
body.x0t-mg .cards-media .card .more:hover{gap:14px}
body.x0t-mg .cards-media .card .more svg{width:16px;height:16px}
@media (max-width:1100px){body.x0t-mg .cards-media{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:680px){body.x0t-mg .cards-media{grid-template-columns:1fr}}

/* ===================================================================
   3) صفحة الخدمات — صفوف متبادلة
   =================================================================== */
body.x0t-mg .srow{
  display:grid;grid-template-columns:1fr 1fr;gap:clamp(28px,4vw,64px);align-items:center;
  margin-bottom:clamp(40px,6vw,96px);padding-bottom:clamp(40px,6vw,96px);
  border-bottom:1px solid var(--mg-hair);
}
body.x0t-mg .srow:last-child{border-bottom:0;margin-bottom:0;padding-bottom:0}
body.x0t-mg .srow-media{
  border-radius:10px;overflow:hidden;box-shadow:none;background:var(--mg-panel);
  border:1px solid var(--mg-hair);aspect-ratio:16/11;
}
body.x0t-mg .srow-media img{transition:transform .8s var(--mg-ease)}
body.x0t-mg .srow:hover .srow-media img{transform:scale(1.04)}
body.x0t-mg .srow h2{
  font-size:clamp(1.3rem,2.4vw,2.05rem);font-weight:900;letter-spacing:0;line-height:1.34;
  margin-bottom:16px;
}
body.x0t-mg .srow .lead,
body.x0t-mg .srow .lead p{color:var(--mg-muted);font-size:15px;line-height:1.85}
body.x0t-mg .srow li{color:var(--mg-muted)}
body.x0t-mg .srow li svg{color:var(--mg-soft)}
/* الأيقونة تأتي بستايل سطري فاتح من القالب */
body.x0t-mg .srow .ic{
  background:transparent!important;border:1px solid var(--mg-hair2);
  color:var(--mg-soft)!important;border-radius:50%!important;
}
@media (max-width:860px){
  body.x0t-mg .srow{grid-template-columns:1fr}
  body.x0t-mg .srow:nth-child(even) .srow-media{order:0}
}

/* ===================================================================
   4) الوكلاء والمدونة — شبكة بطاقات
   =================================================================== */
body.x0t-mg .posts{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,1.8vw,24px);
}
body.x0t-mg .post{
  display:flex;flex-direction:column;overflow:hidden;
  background:var(--mg-panel);border:1px solid var(--mg-hair);border-radius:8px;
  box-shadow:none;color:var(--mg-text);
  transition:transform .5s var(--mg-ease),border-color .5s var(--mg-ease);
}
body.x0t-mg .post:hover{transform:translateY(-8px);border-color:var(--mg-hair2)}
body.x0t-mg .post > img{
  width:100%;aspect-ratio:16/10;object-fit:cover;background:var(--mg-field);
  transition:transform .8s var(--mg-ease);
}
body.x0t-mg .post:hover > img{transform:scale(1.05)}
body.x0t-mg .post-body{padding:clamp(20px,2.2vw,26px);display:flex;flex-direction:column;gap:10px}
body.x0t-mg .post-body .meta{font-size:12px;letter-spacing:.08em;color:var(--mg-dim)}
body.x0t-mg .post-body h3{font-size:clamp(1.02rem,1.4vw,1.24rem);font-weight:900;line-height:1.45;margin:0}
body.x0t-mg .post-body p{color:var(--mg-muted);font-size:14px;line-height:1.7;margin:0}
@media (max-width:1100px){body.x0t-mg .posts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:680px){body.x0t-mg .posts{grid-template-columns:1fr}}

/* شبكة الوكلاء المخصّصة */
body.x0t-mg .mga-grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(16px,1.8vw,24px);
}
body.x0t-mg .mga{
  position:relative;display:flex;flex-direction:column;overflow:hidden;
  background:var(--mg-panel);border:1px solid var(--mg-hair);border-radius:8px;
  transition:transform .5s var(--mg-ease),border-color .5s var(--mg-ease);
}
body.x0t-mg .mga:hover{transform:translateY(-8px);border-color:var(--mg-hair2)}
body.x0t-mg .mga__media{position:relative;aspect-ratio:16/10;overflow:hidden;background:var(--mg-field)}
body.x0t-mg .mga__media img{width:100%;height:100%;object-fit:cover;transition:transform .8s var(--mg-ease)}
body.x0t-mg .mga:hover .mga__media img{transform:scale(1.07)}
body.x0t-mg .mga__media::after{
  content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(var(--mg-scrim-rgb),.8));
}
body.x0t-mg .mga__ico{
  position:absolute;z-index:2;inset-block-start:clamp(16px,1.8vw,22px);
  inset-inline-start:clamp(16px,1.8vw,22px);
  width:44px;height:44px;border-radius:50%;display:grid;place-items:center;
  background:rgba(var(--mg-scrim-rgb),.6);backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.22);color:#fff;
}
body.x0t-mg .mga__ico svg{width:20px;height:20px}
body.x0t-mg .mga__body{padding:clamp(20px,2.2vw,26px);display:flex;flex-direction:column;gap:10px;flex:1}
body.x0t-mg .mga__role{font-size:11.5px;font-weight:700;letter-spacing:.14em;color:var(--mg-soft)}
body.x0t-mg .mga__title{font-size:clamp(1.02rem,1.4vw,1.26rem);font-weight:900;line-height:1.45;margin:0}
body.x0t-mg .mga__desc{
  color:var(--mg-muted);font-size:14px;line-height:1.7;margin:0;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;
}
body.x0t-mg .mga__more{
  display:inline-flex;align-items:center;gap:9px;margin-top:auto;padding-top:16px;
  font-size:13.5px;font-weight:700;color:var(--mg-soft);transition:gap .35s var(--mg-ease);
}
body.x0t-mg .mga:hover .mga__more{gap:14px}
body.x0t-mg .mga__more .mg-arrow{width:16px;height:16px;flex:none}
body.x0t-mg .mga__link{position:absolute;inset:0;z-index:3}
@media (max-width:1100px){body.x0t-mg .mga-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:680px){body.x0t-mg .mga-grid{grid-template-columns:1fr}}

/* ===================================================================
   5) صفحة تواصل معنا
   =================================================================== */
body.x0t-mg .contact-grid{
  display:grid;grid-template-columns:.95fr 1.05fr;gap:clamp(24px,3.4vw,56px);align-items:start;
}
body.x0t-mg .contact-grid .info-card,
body.x0t-mg .contact-grid .form{
  background:var(--mg-panel);border:1px solid var(--mg-hair);border-radius:12px;
  padding:clamp(22px,2.6vw,38px);box-shadow:none;
}
body.x0t-mg .contact-grid .info-card h3{
  font-size:clamp(1.1rem,1.8vw,1.45rem);font-weight:900;letter-spacing:0;line-height:1.4;
}
body.x0t-mg .contact-grid .info-card > p{color:var(--mg-muted);font-size:14.5px;line-height:1.7}

/* صفوف التواصل — كل صفّ لوح داكن كما في Magnet */
body.x0t-mg .info-list{list-style:none;margin:26px 0 0;padding:0;display:flex;flex-direction:column;gap:12px}
body.x0t-mg .info-list li{
  display:flex;align-items:center;gap:14px;margin:0;
  background:var(--mg-field);border:1px solid var(--mg-hair);border-radius:10px;
  padding:14px 16px;transition:border-color .35s var(--mg-ease);
}
body.x0t-mg .info-list li:hover{border-color:var(--mg-hair2)}
body.x0t-mg .info-list .ic{
  flex:none;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;
  background:transparent;border:1px solid var(--mg-hair2);color:var(--mg-soft);
}
body.x0t-mg .info-list .ic svg{width:18px;height:18px}
body.x0t-mg .info-list li > div{display:flex;flex-direction:column;gap:3px;min-width:0}
body.x0t-mg .info-list b{
  font-size:11.5px;font-weight:700;letter-spacing:.1em;color:var(--mg-dim);
}
body.x0t-mg .info-list span,
body.x0t-mg .info-list span a{
  font-size:15px;font-weight:700;color:var(--mg-text);
  overflow-wrap:anywhere;transition:color .3s var(--mg-ease);
}
body.x0t-mg .info-list span a:hover{color:var(--mg-soft)}

body.x0t-mg .map{
  margin-top:20px;border-radius:10px;overflow:hidden;border:1px solid var(--mg-hair);
  filter:grayscale(.35) contrast(1.05) brightness(.85);
}
body.x0t-mg .map iframe{display:block}

/* ===================================================================
   6) الخدمة المفردة — تصحيح المواضع الفاتحة في service.css
   =================================================================== */
body.x0t-mg .hero-card,
body.x0t-mg .feature-card,
body.x0t-mg .highlight-item,
body.x0t-mg .portfolio-card,
body.x0t-mg .contact-info-item,
body.x0t-mg .stat-item,
body.x0t-mg .process-steps .step{
  background:var(--mg-panel)!important;border:1px solid var(--mg-hair)!important;
  color:var(--mg-text)!important;box-shadow:none!important;
}
body.x0t-mg .feature-card:hover,
body.x0t-mg .highlight-item:hover,
body.x0t-mg .portfolio-card:hover{border-color:var(--mg-hair2)!important;transform:translateY(-6px)}
body.x0t-mg .feature-icon,
body.x0t-mg .hero-card-icon{
  background:var(--mg-grad)!important;color:#fff!important;box-shadow:none!important;
}
body.x0t-mg .section-title,
body.x0t-mg .hero-content h1,
body.x0t-mg .hero-text h1{color:var(--mg-text)!important;letter-spacing:0!important}
body.x0t-mg .section-subtitle,
body.x0t-mg .feature-card p,
body.x0t-mg .highlight-item p,
body.x0t-mg .portfolio-content p{color:var(--mg-muted)!important}
body.x0t-mg .section-badge,
body.x0t-mg .hero-badge{
  background:rgba(var(--mg-a-rgb),.14)!important;color:var(--mg-soft)!important;
  border:1px solid var(--mg-hair2)!important;
}
body.x0t-mg .hero-stat-value,
body.x0t-mg .stat-item strong{color:var(--mg-text)!important}
body.x0t-mg .hero-stat-label{color:var(--mg-muted)!important}
body.x0t-mg .features,
body.x0t-mg .highlights,
body.x0t-mg .portfolio,
body.x0t-mg .process,
body.x0t-mg .contact{background:var(--mg-bg)!important}
body.x0t-mg .contact-wrapper,
body.x0t-mg .contact-container .contact-cta{
  background:var(--mg-panel)!important;border:1px solid var(--mg-hair)!important;border-radius:12px;
}
body.x0t-mg .process-timeline::before,
body.x0t-mg .process-steps::before{background:var(--mg-hair)!important}
body.x0t-mg .portfolio-image{background:#0a0a0f!important}
body.x0t-mg .form-group input,
body.x0t-mg .form-group textarea,
body.x0t-mg .form-group select{
  background:var(--mg-field)!important;border:1px solid var(--mg-hair)!important;
  color:var(--mg-text)!important;border-radius:8px!important;
}
body.x0t-mg .form-group label{color:var(--mg-text)!important}

/* ===================================================================
   7) المدونة والمقال المفرد و404 والترقيم
   =================================================================== */
body.x0t-mg .x0t-pagination .page-numbers{
  background:transparent;border:1px solid var(--mg-hair);color:var(--mg-text);border-radius:8px;
}
body.x0t-mg .x0t-pagination .page-numbers:hover,
body.x0t-mg .x0t-pagination .page-numbers.current{
  background:var(--mg-grad);border-color:transparent;color:#fff;
}
body.x0t-mg .entry-content{color:var(--mg-muted);font-size:16.5px;line-height:1.95}
body.x0t-mg .entry-content h2,
body.x0t-mg .entry-content h3,
body.x0t-mg .entry-content h4{color:var(--mg-text);margin-top:1.6em}
body.x0t-mg .entry-content a{color:var(--mg-soft);text-decoration:underline;text-underline-offset:3px}
body.x0t-mg .entry-content blockquote{
  border-inline-start:2px solid var(--mg-a);background:var(--mg-panel);
  padding:18px 22px;border-radius:0 8px 8px 0;color:var(--mg-text);
}
body.x0t-mg .entry-content img{border-radius:8px}
body.x0t-mg .entry-content code,
body.x0t-mg .entry-content pre{background:var(--mg-field);border:1px solid var(--mg-hair);border-radius:8px}
body.x0t-mg .widget{background:var(--mg-panel);border:1px solid var(--mg-hair);border-radius:10px}
body.x0t-mg .widget-title{color:var(--mg-text)}
body.x0t-mg .searchform input[type=search],
body.x0t-mg .search-field{
  background:var(--mg-field);border:1px solid var(--mg-hair);color:var(--mg-text);border-radius:100px;
}

/* ===================================================================
   8) الاستجابة
   =================================================================== */
@media (max-width:900px){
  body.x0t-mg .contact-grid{grid-template-columns:1fr}
}
@media (max-width:640px){
  body.x0t-mg .phero{padding-block:clamp(40px,10vw,64px) clamp(30px,8vw,48px)}
  body.x0t-mg .info-list li{align-items:flex-start}
}
