/* Saudi Center public site — enhancement layer v1 (no markup or links replaced). */
:root{--sx-red:#ed1c24;--sx-red-dark:#7f222d;--sx-teal:#1498a3;--sx-gold:#f3a51f;--sx-ink:#1d2730;--sx-muted:#67727c;--sx-line:#eee1df}

/* fix: the anti-spam field sat 9999px off-screen and made the page ~10,000px wide on phones */
input[name="website"][tabindex="-1"]{left:auto !important;right:0 !important;top:0;clip-path:inset(50%);pointer-events:none}
html,body{overflow-x:clip}

/* skip link */
.sx-skip{position:absolute;top:-60px;inset-inline-start:12px;z-index:3000;background:var(--sx-red-dark);color:#fff;padding:10px 18px;border-radius:0 0 12px 12px;font-weight:700;text-decoration:none;transition:top .2s}
.sx-skip:focus{top:0}

/* reading progress */
.sx-progress{position:fixed;top:0;inset-inline:0;height:3px;z-index:2000;pointer-events:none;
  background:linear-gradient(90deg,var(--sx-gold),var(--sx-red));transform-origin:right center;transform:scaleX(0)}
body.ltr .sx-progress{transform-origin:left center}

/* sticky menu bar that slides in once the big logo header has scrolled away */
.sx-nav-spacer{display:none}
body.sx-stuck .sx-nav-spacer{display:block}
/* the header's backdrop-filter would trap position:fixed inside it */
body.sx-stuck .header{-webkit-backdrop-filter:none !important;backdrop-filter:none !important;transform:none !important;filter:none !important}
body.sx-stuck .header .header-nav{position:fixed !important;top:0 !important;left:0 !important;right:0 !important;z-index:1500;background:rgba(255,255,255,.94);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);box-shadow:0 10px 30px rgba(63,25,30,.12);animation:sx-drop .35s cubic-bezier(.2,.8,.2,1)}
@keyframes sx-drop{from{transform:translateY(-100%)}to{transform:none}}
.nav a.sx-active:not(.platform-btn){color:var(--sx-red-dark) !important;position:relative}
.nav a.sx-active:not(.platform-btn)::after{content:"";position:absolute;inset-inline:10%;bottom:-2px;height:2.5px;border-radius:3px;background:var(--sx-red)}

/* back to top */
.sx-top{position:fixed;bottom:22px;left:22px;z-index:1400;width:48px;height:48px;border:0;border-radius:50%;cursor:pointer;display:grid;place-items:center;
  color:#fff;background:linear-gradient(140deg,var(--sx-red),var(--sx-red-dark));box-shadow:0 12px 26px rgba(127,34,45,.35);
  opacity:0;transform:translateY(14px) scale(.9);pointer-events:none;transition:.3s}
.sx-top.show{opacity:1;transform:none;pointer-events:auto}
.sx-top:hover{filter:brightness(1.08)}
body.ltr .sx-top{left:auto;right:22px}

/* "coming soon" sections: a designed empty state instead of a bare line of text */
.cards:has(> p:only-child){display:block}
.cards > p:only-child{
  position:relative;max-width:560px;margin:8px auto 0;padding:38px 28px 30px;text-align:center;border-radius:24px;
  color:var(--sx-muted);font-size:16px;line-height:1.9;background:linear-gradient(180deg,#fff,#fff7f6);border:1.5px dashed #ebcfcc;
}
.cards > p:only-child::before{
  content:"";display:block;width:64px;height:64px;margin:0 auto 14px;border-radius:20px;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f222d' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='m21 15-4.5-4.5L8 19'/%3E%3C/svg%3E") no-repeat center/30px;
  box-shadow:0 0 0 6px #fdeceb,0 12px 26px rgba(127,34,45,.14)
}
#videos .cards > p:only-child::before{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237f222d' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='15' height='14' rx='3'/%3E%3Cpath d='m17 10 5-3v10l-5-3'/%3E%3C/svg%3E")
}
.cards > p:only-child::after{content:"";display:block;width:46px;height:3px;margin:16px auto 0;border-radius:3px;background:linear-gradient(90deg,var(--sx-gold),var(--sx-red))}

/* gentle depth on cards */
.card,.news-card,.article-card,.service-card,.stat{transition:transform .28s cubic-bezier(.2,.8,.2,1),box-shadow .28s}
.service-card:hover,.news-card:hover,.article-card:hover{transform:translateY(-5px);box-shadow:0 18px 36px rgba(63,25,30,.10)}
.stat strong{font-variant-numeric:tabular-nums}

/* keyboard focus that is always visible */
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--sx-gold);outline-offset:3px;border-radius:8px}

/* reveal on scroll (only while JS runs; respects reduced motion) */
@media(prefers-reduced-motion:no-preference){
  html.sx-js .sx-reveal{opacity:0;transform:translateY(22px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.8,.2,1)}
  html.sx-js .sx-reveal.sx-in{opacity:1;transform:none}
}
@media(max-width:700px){.sx-top{bottom:16px;left:16px;width:44px;height:44px}body.ltr .sx-top{right:16px}}
@media print{.sx-progress,.sx-top,.sx-skip{display:none !important}body.sx-stuck .header-nav{position:static}}

/* anchors land below the sticky bar */
section[id],#careerForm,#contactForm{scroll-margin-top:84px}
