/* Saudi China Tech — clean medtech restyle
   Lighter surfaces, larger type scale, generous whitespace, soft layered shadows. */
:root{
  --bg:#fbfcfe;
  --surface:#ffffff;
  --surface-alt:#f4f7fc;
  --ink:#12203a;
  --ink-soft:#4a5876;
  --ink-mute:#77839c;
  --primary:#2f6fe4;
  --primary-dark:#1f55bd;
  --primary-tint:#eaf1fe;
  --accent:#0fb5a5;
  --line:#e4eaf3;
  --line-soft:#eef2f8;
  --r-sm:.625rem;
  --r:1rem;
  --r-lg:1.5rem;
  --container:1180px;
  --sh-xs:0 1px 2px rgba(18,32,58,.05);
  --sh-sm:0 2px 8px rgba(18,32,58,.06);
  --sh:0 8px 28px rgba(18,32,58,.08);
  --sh-lg:0 20px 56px rgba(18,32,58,.12);
  --ease:cubic-bezier(.16,.84,.44,1);
}

*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink-soft);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  font-size:17px;
  line-height:1.68;
  letter-spacing:-.003em;
  -webkit-font-smoothing:antialiased;
  display:flex;flex-direction:column;min-height:100vh;
}
img,video{max-width:100%;height:auto;display:block}
a{color:var(--primary);text-decoration:none;transition:color .2s var(--ease)}
a:hover{color:var(--primary-dark)}
h1,h2,h3,h4{margin:0 0 .5em;color:var(--ink);font-weight:680;letter-spacing:-.022em;line-height:1.14}
p{margin:0 0 1.1em}
main{flex:1}
:focus-visible{outline:2.5px solid var(--primary);outline-offset:3px;border-radius:6px}

.container{width:100%;max-width:var(--container);margin-inline:auto;padding-inline:1.5rem}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- header ---------- */
.site-header{
  position:sticky;top:0;z-index:50;width:100%;
  background:rgba(251,252,254,.82);
  backdrop-filter:saturate(180%) blur(14px);
  -webkit-backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid transparent;
  transition:border-color .3s var(--ease),box-shadow .3s var(--ease);
}
.site-header.is-stuck{border-bottom-color:var(--line);box-shadow:var(--sh-xs)}
.header-inner{display:flex;height:4.75rem;align-items:center;justify-content:space-between;gap:1rem}
.brand{display:flex;align-items:center;gap:.55rem;color:var(--primary);font-weight:700;font-size:1.3rem;letter-spacing:-.028em}
.brand svg{flex:none}
.nav{display:flex;align-items:center;gap:.35rem}
.nav a{
  position:relative;color:var(--ink-soft);font-size:.9375rem;font-weight:500;
  padding:.5rem .85rem;border-radius:var(--r-sm);
  transition:color .2s var(--ease),background .2s var(--ease);
}
.nav a:hover{color:var(--ink);background:var(--surface-alt)}
.nav a[aria-current=page]{color:var(--primary);background:var(--primary-tint)}
.nav-toggle{display:none;background:none;border:0;padding:.5rem;cursor:pointer;color:var(--ink);border-radius:var(--r-sm)}
.nav-toggle:hover{background:var(--surface-alt)}

@media(max-width:900px){
  .nav-toggle{display:inline-flex}
  .nav{
    position:absolute;top:4.75rem;left:0;right:0;
    flex-direction:column;align-items:stretch;gap:.15rem;
    background:var(--surface);border-bottom:1px solid var(--line);
    box-shadow:var(--sh);padding:.75rem 1.5rem 1.25rem;display:none;
  }
  .nav.is-open{display:flex}
  .nav a{padding:.8rem .75rem}
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.5rem;
  padding:.8rem 1.6rem;border-radius:100px;border:1px solid transparent;
  font-size:.9375rem;font-weight:600;letter-spacing:-.008em;cursor:pointer;
  transition:transform .2s var(--ease),background .2s var(--ease),box-shadow .2s var(--ease),color .2s var(--ease);
}
.btn-primary{background:var(--primary);color:#fff;box-shadow:0 4px 14px rgba(47,111,228,.28)}
.btn-primary:hover{background:var(--primary-dark);color:#fff;transform:translateY(-1px);box-shadow:0 8px 22px rgba(47,111,228,.34)}
.btn-outline{background:var(--surface);color:var(--primary);border-color:var(--line);box-shadow:var(--sh-xs)}
.btn-outline:hover{background:var(--primary-tint);border-color:#cddcfa;transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn[disabled]{opacity:.55;cursor:not-allowed;transform:none}

/* ---------- hero ---------- */
.hero{position:relative;width:100%;height:calc(100vh - 4.75rem);min-height:460px;max-height:720px;overflow:hidden;background:#0d1729}
.hero-slide{position:absolute;inset:0;opacity:0;transition:opacity .9s var(--ease);pointer-events:none}
.hero-slide.is-active{opacity:1;pointer-events:auto}
.hero-slide img{width:100%;height:100%;object-fit:cover;transform:scale(1.04)}
.hero-slide.is-active img{animation:heroDrift 14s ease-out forwards}
@keyframes heroDrift{from{transform:scale(1.04)}to{transform:scale(1.11)}}
.hero-slide::after{
  content:"";position:absolute;inset:0;
  background:
    radial-gradient(ellipse 72% 58% at 50% 50%,rgba(8,15,30,.60),rgba(8,15,30,0) 78%),
    linear-gradient(180deg,rgba(8,15,30,.52),rgba(8,15,30,.44) 45%,rgba(8,15,30,.72));
}
.hero-copy{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:2rem 1.5rem 5.5rem;color:#fff}
.hero-copy h2{
  color:#fff;font-size:clamp(2.25rem,6.2vw,4.25rem);font-weight:700;
  letter-spacing:-.035em;margin-bottom:.3em;max-width:16ch;
  text-shadow:0 2px 30px rgba(0,0,0,.3);
}
.hero-copy p{
  max-width:46rem;font-size:clamp(1.02rem,1.7vw,1.2rem);color:rgba(255,255,255,.9);
  margin-bottom:2.25rem;text-shadow:0 1px 16px rgba(0,0,0,.35);
}
.hero-dots{position:absolute;bottom:2rem;left:0;right:0;z-index:3;display:flex;justify-content:center;gap:.5rem}
.hero-dots button{
  width:2rem;height:.25rem;padding:0;border:0;border-radius:100px;cursor:pointer;
  background:rgba(255,255,255,.35);transition:background .3s var(--ease),width .3s var(--ease);
}
.hero-dots button:hover{background:rgba(255,255,255,.6)}
.hero-dots button[aria-selected=true]{background:#fff;width:2.75rem}
.hero-arrow{
  position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  width:3rem;height:3rem;display:flex;align-items:center;justify-content:center;
  border:1px solid rgba(255,255,255,.22);border-radius:50%;cursor:pointer;color:#fff;
  background:rgba(10,18,34,.32);backdrop-filter:blur(8px);
  opacity:0;transition:opacity .3s var(--ease),background .2s var(--ease);
}
.hero:hover .hero-arrow,.hero-arrow:focus-visible{opacity:1}
.hero-arrow:hover{background:rgba(10,18,34,.6)}
.hero-arrow.prev{left:1.5rem}
.hero-arrow.next{right:1.5rem}
@media(max-width:900px){.hero-arrow{display:none}}

/* ---------- sections ---------- */
.section{padding:6rem 0}
@media(max-width:700px){.section{padding:4rem 0}}
.section h1{
  font-size:clamp(2.1rem,4.6vw,3.15rem);color:var(--ink);text-align:center;
  letter-spacing:-.032em;margin-bottom:.4em;
}
.section h2.section-title{font-size:clamp(1.6rem,3vw,2.25rem);text-align:center;margin-bottom:3rem;letter-spacing:-.028em}
.lede{max-width:46rem;margin:0 auto 4rem;text-align:center;font-size:1.09rem;color:var(--ink-mute);line-height:1.72}

/* ---------- cards ---------- */
.grid{display:grid;gap:1.5rem}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(270px,1fr))}
.grid-4{grid-template-columns:repeat(auto-fill,minmax(262px,1fr))}
.card{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  overflow:hidden;display:flex;flex-direction:column;color:inherit;
  box-shadow:var(--sh-xs);
  transition:box-shadow .35s var(--ease),transform .35s var(--ease),border-color .35s var(--ease);
}
.card:hover{box-shadow:var(--sh-lg);transform:translateY(-6px);border-color:#d5e1f6}
.card-media{aspect-ratio:16/10;background:var(--surface-alt);overflow:hidden}
.card-media img{width:100%;height:100%;object-fit:cover;transition:transform .55s var(--ease)}
.card:hover .card-media img{transform:scale(1.06)}
.card-body{padding:1.5rem 1.5rem 1.75rem;flex:1}
.card-body h3{font-size:1.09rem;margin-bottom:.4em;letter-spacing:-.018em}
.card-body p{color:var(--ink-mute);font-size:.9375rem;line-height:1.62;margin:0}

.feature{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:2.5rem 1.75rem;text-align:center;box-shadow:var(--sh-xs);
  transition:box-shadow .35s var(--ease),transform .35s var(--ease);
}
.feature:hover{box-shadow:var(--sh);transform:translateY(-4px)}
.feature .icon{
  width:3.25rem;height:3.25rem;margin:0 auto 1.35rem;display:flex;align-items:center;justify-content:center;
  border-radius:1rem;background:var(--primary-tint);color:var(--primary);
}
.feature h3{font-size:1.15rem;margin-bottom:.45em}
.feature p{color:var(--ink-mute);font-size:.9375rem;line-height:1.65;margin:0}

/* ---------- partners ---------- */
.partner{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:2rem 1.5rem;text-align:center;display:flex;flex-direction:column;
  box-shadow:var(--sh-xs);
  transition:box-shadow .35s var(--ease),transform .35s var(--ease),border-color .35s var(--ease);
}
.partner:hover{box-shadow:var(--sh-lg);transform:translateY(-6px);border-color:#d5e1f6}
.partner-logo{height:76px;display:flex;align-items:center;justify-content:center;margin-bottom:1.5rem}
.partner-logo img{max-height:76px;width:auto;object-fit:contain}
.partner h3{font-size:1.05rem;margin-bottom:.4em;letter-spacing:-.018em}
.partner p{color:var(--ink-mute);font-size:.9375rem;line-height:1.6;flex:1}
.partner .btn{margin-top:1.35rem;align-self:center}

/* ---------- detail / article ---------- */
.back-link{
  display:inline-flex;align-items:center;gap:.45rem;font-size:.9375rem;font-weight:500;
  margin-bottom:2rem;color:var(--ink-mute);
}
.back-link:hover{color:var(--primary)}
.detail-media{
  border-radius:var(--r-lg);overflow:hidden;border:1px solid var(--line);
  background:var(--surface);margin-bottom:3rem;box-shadow:var(--sh);
}
.detail-media img,.detail-media video{width:100%;display:block}
.prose{max-width:50rem;margin-inline:auto}
.prose h2{font-size:1.65rem;margin-top:0;margin-bottom:.6em}
.prose p{font-size:1.06rem;line-height:1.78;color:var(--ink-soft)}
.cta-row{margin-top:3rem;text-align:center}

.work-block{
  margin-bottom:1.5rem;padding:1.5rem 1.75rem;
  background:var(--surface);border:1px solid var(--line-soft);
  border-left:3px solid var(--primary);border-radius:var(--r);
}
.work-block strong{display:block;color:var(--ink);margin-bottom:.4rem;font-weight:640;font-size:1.02rem}
.work-block p{color:var(--ink-mute);margin:0;font-size:.98rem;line-height:1.7}

/* ---------- contact ---------- */
.contact-grid{display:grid;grid-template-columns:1fr 1.3fr;gap:3rem;align-items:start}
@media(max-width:900px){.contact-grid{grid-template-columns:1fr;gap:2rem}}
.info-card{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  padding:1.5rem;margin-bottom:1rem;box-shadow:var(--sh-xs);display:flex;gap:1.1rem;
  transition:box-shadow .3s var(--ease),transform .3s var(--ease);
}
.info-card:hover{box-shadow:var(--sh-sm);transform:translateY(-2px)}
.info-card .icon{
  flex:none;width:2.75rem;height:2.75rem;display:flex;align-items:center;justify-content:center;
  border-radius:.85rem;background:var(--primary-tint);color:var(--primary);
}
.info-card h3{font-size:.9375rem;margin-bottom:.25em;letter-spacing:-.01em}
.info-card p,.info-card a{margin:0;color:var(--ink-mute);font-size:.9375rem}
.info-card a:hover{color:var(--primary)}

.form-card{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);
  padding:2.5rem;box-shadow:var(--sh);
}
@media(max-width:700px){.form-card{padding:1.75rem}}
.form-card h2{font-size:1.5rem;margin-bottom:.3em}
.form-card .form-sub{color:var(--ink-mute);font-size:.9375rem;margin-bottom:2rem}
.field{margin-bottom:1.35rem}
.field label{display:block;font-size:.875rem;font-weight:600;color:var(--ink);margin-bottom:.5rem;letter-spacing:-.008em}
.field input,.field textarea{
  width:100%;padding:.85rem 1rem;font:inherit;font-size:.9688rem;color:var(--ink);
  background:var(--surface-alt);border:1px solid var(--line);border-radius:var(--r-sm);
  transition:border-color .2s var(--ease),box-shadow .2s var(--ease),background .2s var(--ease);
}
.field input::placeholder,.field textarea::placeholder{color:#9aa5bb}
.field input:focus,.field textarea:focus{
  outline:0;background:#fff;border-color:var(--primary);
  box-shadow:0 0 0 4px rgba(47,111,228,.13);
}
.field textarea{min-height:150px;resize:vertical}
.field .err{display:none;color:#cf3b32;font-size:.8125rem;margin-top:.4rem}
.field.has-error .err{display:block}
.field.has-error input,.field.has-error textarea{border-color:#e2564c;background:#fef7f6}
.hp{position:absolute;left:-9999px;opacity:0;height:0;width:0}
.form-status{margin-top:1.15rem;padding:.95rem 1.15rem;border-radius:var(--r-sm);font-size:.9375rem;display:none;line-height:1.55}
.form-status.is-visible{display:block}
.form-status.ok{background:#e9f8ef;color:#166b3c;border:1px solid #b9e6cb}
.form-status.bad{background:#fdeeec;color:#a3322a;border:1px solid #f5c6c1}
.form-status.info{background:#fff8e3;color:#7a5b08;border:1px solid #f2e0a6}
.form-card button[type=submit]{width:100%;margin-top:.25rem}

/* ---------- footer ---------- */
.site-footer{
  background:var(--surface-alt);color:var(--ink-mute);
  border-top:1px solid var(--line);padding:4.5rem 0 0;margin-top:auto;
}
.footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1.3fr;gap:3rem}
@media(max-width:900px){.footer-grid{grid-template-columns:1fr;gap:2.5rem}}
.site-footer h3{font-size:.8125rem;color:var(--ink);margin-bottom:1.2em;text-transform:uppercase;letter-spacing:.09em;font-weight:680}
.site-footer ul{list-style:none;margin:0;padding:0}
.site-footer li{margin-bottom:.75rem;display:flex;gap:.7rem;align-items:flex-start;font-size:.9375rem}
.site-footer li svg{flex:none;margin-top:.3rem;color:var(--primary)}
.site-footer a{color:var(--ink-mute)}
.site-footer a:hover{color:var(--primary)}
.site-footer .brand{margin-bottom:1.1rem}
.footer-tagline{max-width:25rem;font-size:.9375rem;line-height:1.7}
.footer-bottom{
  margin-top:3.5rem;padding:1.75rem 0;border-top:1px solid var(--line);
  text-align:center;font-size:.875rem;color:var(--ink-mute);
}

@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
  .hero-slide.is-active img{animation:none;transform:scale(1.04)}
}
