/* service-header.css — ترويسة موحّدة لصفحات الخدمات الإلكترونية (تصميم فقط، بلا أي منطق) */
.svc-header.page-header{position:relative;background:var(--maroon,#3E1115);color:#fff;padding:0;text-align:start;border-top:3px solid var(--red,#C3161B);border-bottom:3px solid var(--gold,#CDA052);overflow:hidden;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72'%3E%3Cpath d='M36 8l8 13 15-3-3 15 13 8-13 8 3 15-15-3-8 13-8-13-15 3 3-15-13-8 13-8-3-15 15 3z' fill='none' stroke='%23CDA052' stroke-opacity='.14' stroke-width='1.2'/%3E%3C/svg%3E");}
.svc-header .sh-wrap{max-width:1180px;margin:0 auto;padding:0 20px;}

/* صف التنقل */
.sh-nav{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid rgba(233,206,156,.18);}
.sh-crumb{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:.88rem;color:rgba(255,255,255,.82);min-width:0;}
.sh-crumb i{font-style:normal;opacity:.5;}
.sh-crumb b{color:var(--gold-light,#E9CE9C);font-weight:800;}
.sh-back{flex:none;display:inline-flex;align-items:center;gap:9px;color:#fff;font-family:var(--font-body,'Cairo',sans-serif);font-weight:800;font-size:.86rem;padding:9px 20px 9px 16px;border-radius:999px;border:1.5px solid rgba(233,206,156,.55);background:rgba(255,255,255,.08);text-decoration:none;transition:transform .2s,background .2s,color .2s,border-color .2s,box-shadow .2s;-webkit-tap-highlight-color:transparent;}
.sh-back svg{transition:transform .25s;}
.sh-back:hover{background:var(--gold-light,#E9CE9C);color:var(--maroon,#3E1115);border-color:var(--gold-light,#E9CE9C);transform:translateY(-2px);box-shadow:0 8px 20px rgba(0,0,0,.35);}
.sh-back:hover svg{transform:translateX(4px);}
.sh-back:active{transform:scale(.96);}
.sh-back:focus-visible,.sh-crest:focus-visible{outline:3px solid var(--gold-light,#E9CE9C);outline-offset:3px;}

/* الجسم */
.sh-main{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px 0 34px;}
.sh-id{display:flex;align-items:center;gap:22px;min-width:0;}
.sh-txt{min-width:0;}
.sh-badge{display:inline-flex;align-items:center;gap:7px;border:1.5px solid rgba(233,206,156,.55);color:var(--gold-light,#E9CE9C);border-radius:999px;padding:4px 14px;font-size:.8rem;font-weight:700;margin-bottom:8px;}
.svc-header .sh-title{font-family:var(--font-display,'Aref Ruqaa',serif);font-size:2.9rem;line-height:1.5;font-weight:700;color:#fff;}
.sh-sub{display:flex;align-items:flex-start;gap:9px;margin-top:6px;font-size:.98rem;line-height:1.8;color:rgba(255,255,255,.88);}
.sh-sub svg{flex:none;margin-top:5px;color:var(--gold,#CDA052);}

/* شعار البوابة الحركي (نفس شعار أقسام المديرية) */
.sh-crest{position:relative;flex:none;display:flex;align-items:center;justify-content:center;width:112px;height:112px;border-radius:50%;background:#fff;border:3px solid var(--gold,#CDA052);box-shadow:0 10px 26px rgba(0,0,0,.35),0 0 0 6px rgba(201,154,75,.22);text-decoration:none;cursor:pointer;animation:shCrestIn .7s cubic-bezier(.2,1.4,.4,1) both,shFloat 4.5s ease-in-out .8s infinite;transition:box-shadow .3s;-webkit-tap-highlight-color:transparent;}
.sh-crest:hover{box-shadow:0 14px 32px rgba(0,0,0,.45),0 0 0 9px rgba(201,154,75,.35);}
.sh-crest img{width:82px;height:auto;object-fit:contain;transition:transform .5s;}
.sh-crest:hover img{transform:rotate(-6deg) scale(1.1);}
.sh-ring{position:absolute;inset:-8px;border-radius:50%;border:2px solid var(--gold-light,#E9CE9C);opacity:0;animation:shPulse 3.2s ease-out 1.2s infinite;pointer-events:none;}
.sh-crest::after{content:"";position:absolute;inset:0;border-radius:50%;background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.75) 50%,transparent 65%);background-size:250% 100%;background-position:150% 0;animation:shShine 5s ease-in-out 2s infinite;pointer-events:none;}
@keyframes shCrestIn{from{opacity:0;transform:scale(.3) rotate(-20deg)}to{opacity:1;transform:scale(1) rotate(0)}}
@keyframes shFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes shPulse{0%{opacity:.8;transform:scale(.96)}70%,100%{opacity:0;transform:scale(1.28)}}
@keyframes shShine{0%,60%{background-position:150% 0}100%{background-position:-50% 0}}

/* أيقونة الخدمة (حاسبة فقط) */
.sh-tile{position:relative;flex:none;width:150px;height:150px;display:grid;place-items:center;}
.sh-tile::before,.sh-tile::after{content:"";position:absolute;border-radius:50%;border:1.5px solid rgba(233,206,156,.3);}
.sh-tile::before{inset:0;animation:shRing 4s ease-in-out infinite;}
.sh-tile::after{inset:-22px;border-style:dashed;border-color:rgba(233,206,156,.2);animation:shRing 4s ease-in-out 1.3s infinite;}
@keyframes shRing{0%,100%{opacity:.5;transform:scale(1)}50%{opacity:1;transform:scale(1.04)}}
.sh-tile span{width:92px;height:92px;border-radius:26px;background:var(--gold-light,#E9CE9C);color:var(--maroon,#3E1115);display:grid;place-items:center;font-size:2.6rem;box-shadow:0 14px 30px rgba(0,0,0,.4);transform:rotate(-8deg);transition:transform .4s cubic-bezier(.2,.8,.2,1);}
.sh-tile:hover span{transform:rotate(0) scale(1.08);}

/* الترويسة المصغّرة الثابتة */
.sh-sticky{position:fixed;top:0;left:0;right:0;z-index:900;background:var(--maroon,#3E1115);border-top:3px solid var(--red,#C3161B);border-bottom:2px solid var(--gold,#CDA052);box-shadow:0 8px 24px rgba(0,0,0,.28);transform:translateY(-110%);transition:transform .3s ease;visibility:hidden;}
.sh-sticky.show{transform:none;visibility:visible;}
.sh-sticky .in{max-width:1180px;margin:0 auto;padding:6px 20px;display:flex;align-items:center;gap:12px;}
.sh-sticky .sh-crest{width:44px;height:44px;border-width:2px;box-shadow:0 3px 10px rgba(0,0,0,.35);animation:none;}
.sh-sticky .sh-crest img{width:32px;}
.sh-sticky .sh-ring,.sh-sticky .sh-crest::after{display:none;}
.sh-sticky .t{flex:1;min-width:0;}
.sh-sticky .t small{display:block;font-size:.72rem;color:var(--gold-light,#E9CE9C);font-weight:700;}
.sh-sticky .t b{display:block;font-family:var(--font-display,'Aref Ruqaa',serif);font-size:1.25rem;color:#fff;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.sh-sticky .sh-back{padding:7px 14px 7px 12px;font-size:.8rem;}

@media (max-width:1000px){
  .sh-tile{display:none;}
  .svc-header .sh-title{font-size:2.4rem;}
}
@media (max-width:700px){
  .svc-header .sh-wrap{padding:0 14px;}
  .sh-nav{padding:10px 0;border-bottom:none;}
  .sh-crumb{font-size:.8rem;gap:6px;}
  .sh-crumb .hm,.sh-crumb .hm + i,.sh-crumb b,.sh-crumb span + i + b,.sh-crumb span + i:last-of-type{display:none;}
  .sh-back{padding:0;width:40px;height:40px;justify-content:center;border-radius:12px;}
  .sh-back span{display:none;}
  .sh-main{flex-direction:column;padding:2px 0 24px;gap:0;}
  .sh-id{flex-direction:column;text-align:center;gap:10px;}
  .sh-crest{width:84px;height:84px;}
  .sh-crest img{width:60px;}
  .sh-badge{font-size:.74rem;margin-bottom:4px;}
  .svc-header .sh-title{font-size:2rem;}
  .sh-sub{justify-content:center;text-align:center;font-size:.86rem;}
  .sh-sub svg{display:none;}
  .sh-sticky .in{padding:5px 12px;gap:10px;}
  .sh-sticky .sh-back{width:36px;height:36px;padding:0;border-radius:10px;}
  .sh-sticky .t b{font-size:1.1rem;}
}
@media (prefers-reduced-motion:reduce){.sh-crest,.sh-ring,.sh-crest::after,.sh-tile::before,.sh-tile::after{animation:none !important;}.sh-ring{display:none;}.sh-sticky{transition:none;}}
@media print{.svc-header.page-header,.sh-sticky{display:none !important;}}
