/* ============================================================
   SIE — Solutions in Excellence
   theme.css : design tokens, base layer, typography, utilities
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --ink-900: #070b16;
  --ink-800: #0d1424;
  --ink-700: #141d33;
  --ink-600: #1d2942;
  --ink-500: #33415c;
  --ink-400: #55637d;
  --ink-300: #7b8aa3;
  --ink-200: #a9b5c8;
  --ink-100: #d8dfea;
  --ink-50:  #f2f5f9;
  --white:   #ffffff;

  --brand-50:  #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-300: #a5b4fc;
  --brand-400: #818cf8;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;
  --brand-700: #4338ca;
  --brand-800: #3730a3;
  --brand-900: #312e81;

  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --teal-500:   #14b8a6;
  --teal-600:   #0d9488;
  --emerald-500:#10b981;
  --emerald-600:#059669;
  --amber-500:  #f59e0b;
  --amber-600:  #d97706;
  --rose-500:   #f43f5e;
  --rose-600:   #e11d48;
  --sky-500:    #0ea5e9;
  --sky-600:    #0284c7;

  --ok: #059669;
  --warn: #d97706;
  --danger: #e11d48;

  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-mute: #eef2f8;
  --bg-dark: var(--ink-900);
  --border: #e3e9f2;
  --border-strong: #cfd8e6;

  --text: #0f1729;
  --text-soft: #4c586e;
  --text-mute: #71809a;
  --text-invert: #f6f8fc;

  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(13, 20, 36, .06);
  --shadow-sm: 0 2px 8px rgba(13, 20, 36, .06), 0 1px 2px rgba(13, 20, 36, .04);
  --shadow: 0 12px 28px -12px rgba(13, 20, 36, .18), 0 2px 6px rgba(13, 20, 36, .05);
  --shadow-lg: 0 30px 60px -24px rgba(13, 20, 36, .28), 0 8px 20px -12px rgba(13, 20, 36, .14);
  --shadow-brand: 0 18px 40px -18px rgba(79, 70, 229, .5);

  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --container: 1220px;
  --gutter: 22px;
  --header-h: 76px;

  --grad-brand: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #2563eb 100%);
  --grad-soft: linear-gradient(180deg, #f7f9fc 0%, #ffffff 100%);
  --grad-dark: linear-gradient(160deg, #070b16 0%, #131d38 55%, #1c1440 100%);
  --grad-sheen: linear-gradient(120deg, rgba(255,255,255,.14), rgba(255,255,255,0) 40%);

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: .35s;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.68;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--brand-700); }
button { font: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

h1, h2, h3, h4, h5 {
  margin: 0 0 .6em;
  color: var(--ink-900);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -.028em;
}
h1 { font-size: clamp(2.15rem, 1.35rem + 3.3vw, 3.9rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.72rem, 1.24rem + 1.7vw, 2.65rem); }
h3 { font-size: clamp(1.24rem, 1.08rem + .6vw, 1.6rem); }
h4 { font-size: clamp(1.06rem, 1rem + .3vw, 1.22rem); }
p  { margin: 0 0 1.1em; color: var(--text-soft); }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink-800); font-weight: 650; }

::selection { background: var(--brand-200); color: var(--brand-900); }

:focus-visible {
  outline: 3px solid var(--brand-400);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Urdu / RTL ---------- */
html[dir="rtl"] body {
  font-family: var(--font-urdu);
  line-height: 2.05;
  letter-spacing: 0;
}
html[dir="rtl"] h1, html[dir="rtl"] h2,
html[dir="rtl"] h3, html[dir="rtl"] h4 {
  letter-spacing: 0;
  line-height: 1.85;
  font-family: var(--font-urdu);
}
html[dir="rtl"] p, html[dir="rtl"] li { line-height: 1.95; }
html[dir="rtl"] .ltr-only { direction: ltr; }
[dir="auto"] { unicode-bidi: isolate; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 880px; }
.container--wide { max-width: 1420px; }

.section { padding-block: clamp(56px, 6vw, 104px); position: relative; }
.section--tight { padding-block: clamp(40px, 4vw, 68px); }
.section--soft { background: var(--bg-soft); }
.section--mute { background: var(--bg-mute); }
.section--dark { background: var(--ink-900); color: var(--text-invert); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark p { color: rgba(255,255,255,.72); }
.section--gradient { background: radial-gradient(1200px 520px at 12% -10%, #eef2ff 0%, transparent 60%), var(--bg); }

.section-head { max-width: 760px; margin-bottom: clamp(30px, 3.4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.06rem; color: var(--text-soft); }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
.grid-auto-lg { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }

.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.gap-sm { gap: 10px; }
.gap { gap: 18px; }
.gap-lg { gap: 30px; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 18px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 18px; }
.mb-3 { margin-bottom: 30px; }
.text-center { text-align: center; }
.text-end { text-align: end; }
.hidden { display: none !important; }
.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;
}

/* ---------- Icons ---------- */
.ico { flex: none; stroke-width: 1.8; }
.ico--sm { width: 18px; height: 18px; }
.ico--lg { width: 26px; height: 26px; }
.ico--xl { width: 34px; height: 34px; }

.icon-badge {
  display: inline-grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 15px;
  background: var(--brand-50);
  color: var(--brand-600);
  box-shadow: inset 0 0 0 1px rgba(79,70,229,.1);
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.icon-badge--sm { width: 42px; height: 42px; border-radius: 12px; }
.icon-badge--lg { width: 62px; height: 62px; border-radius: 18px; }
.icon-badge--violet  { background: #f5f3ff; color: var(--violet-600); }
.icon-badge--teal    { background: #ecfdfa; color: var(--teal-600); }
.icon-badge--emerald { background: #ecfdf5; color: var(--emerald-600); }
.icon-badge--amber   { background: #fffbeb; color: var(--amber-600); }
.icon-badge--rose    { background: #fff1f3; color: var(--rose-600); }
.icon-badge--sky     { background: #f0f9ff; color: var(--sky-600); }
.icon-badge--slate   { background: #f3f6fb; color: var(--ink-500); }
.icon-badge--dark    { background: rgba(255,255,255,.08); color: #c7d2fe; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }

/* ---------- Accent helpers ---------- */
.accent-indigo  { --accent: var(--brand-600); --accent-soft: var(--brand-50); --accent-ink: var(--brand-700); }
.accent-violet  { --accent: var(--violet-600); --accent-soft: #f5f3ff; --accent-ink: #6d28d9; }
.accent-teal    { --accent: var(--teal-600); --accent-soft: #ecfdfa; --accent-ink: #0f766e; }
.accent-emerald { --accent: var(--emerald-600); --accent-soft: #ecfdf5; --accent-ink: #047857; }
.accent-amber   { --accent: var(--amber-600); --accent-soft: #fffbeb; --accent-ink: #b45309; }
.accent-rose    { --accent: var(--rose-600); --accent-soft: #fff1f3; --accent-ink: #be123c; }
.accent-sky     { --accent: var(--sky-600); --accent-soft: #f0f9ff; --accent-ink: #0369a1; }
.accent-slate   { --accent: var(--ink-500); --accent-soft: #f3f6fb; --accent-ink: var(--ink-700); }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  background: var(--ink-50); color: var(--ink-500);
  white-space: nowrap;
}
.badge--info   { background: #eff6ff; color: #1d4ed8; }
.badge--warn   { background: #fffbeb; color: #b45309; }
.badge--accent { background: #eef2ff; color: var(--brand-700); }
.badge--ok     { background: #ecfdf5; color: #047857; }
.badge--muted  { background: var(--ink-50); color: var(--ink-400); }
.badge--rose   { background: #fff1f3; color: #be123c; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: #fff;
  font-size: .84rem; font-weight: 550; color: var(--ink-500);
  transition: all var(--dur) var(--ease);
}
.chip .ico { width: 16px; height: 16px; }
.chip:hover { border-color: var(--brand-300); color: var(--brand-700); box-shadow: var(--shadow-xs); }
.chip--active { background: var(--grad-brand); border-color: transparent; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--grad-brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: #fff;
  font-size: .94rem; font-weight: 600; line-height: 1.2;
  letter-spacing: -.01em;
  cursor: pointer; white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  box-shadow: var(--shadow-brand);
}
.btn:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 22px 44px -18px rgba(79,70,229,.62); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 18px; height: 18px; }

.btn--sm { padding: 9px 17px; font-size: .85rem; }
.btn--lg { padding: 16px 32px; font-size: 1.02rem; }
.btn--block { width: 100%; }

.btn--outline { background: #fff; color: var(--ink-700); border-color: var(--border-strong); box-shadow: var(--shadow-xs); }
.btn--outline:hover { border-color: var(--brand-400); color: var(--brand-700); box-shadow: var(--shadow-sm); }

.btn--ghost { background: transparent; color: var(--ink-600); box-shadow: none; }
.btn--ghost:hover { background: var(--ink-50); color: var(--ink-900); box-shadow: none; }

.btn--dark { background: var(--ink-900); box-shadow: 0 16px 34px -18px rgba(7,11,22,.65); }
.btn--dark:hover { background: var(--ink-800); }

.btn--white { background: #fff; color: var(--brand-700); box-shadow: 0 18px 36px -20px rgba(7,11,22,.5); }
.btn--white:hover { color: var(--brand-800); }

.btn--whatsapp { background: linear-gradient(135deg, #25d366 0%, #1eae54 100%); box-shadow: 0 16px 32px -16px rgba(37,211,102,.65); }
.btn--whatsapp:hover { box-shadow: 0 22px 42px -18px rgba(37,211,102,.72); }

.btn--outline-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.24); box-shadow: none; }
.btn--outline-light:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.4); color: #fff; }

.btn--danger { background: var(--danger); box-shadow: 0 14px 28px -16px rgba(225,29,72,.6); }
.btn--subtle { background: var(--ink-50); color: var(--ink-700); box-shadow: none; }
.btn--subtle:hover { background: var(--ink-100); color: var(--ink-900); box-shadow: none; }

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: .92rem; color: var(--brand-600);
}
.link-arrow .ico { width: 17px; height: 17px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover .ico { transform: translateX(4px); }
html[dir="rtl"] .link-arrow .ico { transform: scaleX(-1); }
html[dir="rtl"] .link-arrow:hover .ico { transform: scaleX(-1) translateX(4px); }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity .62s var(--ease), transform .62s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
[data-reveal-delay="5"] { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--ink-50); }
::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: 999px; border: 3px solid var(--ink-50); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-300); }



