/* ==========================================================================
   TEKSJM — base.css
   Shared reset, layout primitives, typography scale, structural components.
   Color/skin tokens are defined per-variant in professional.css / creative.css.
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
  color: var(--ink, #1a2230);
  background: var(--bg, #ffffff);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; width: 100%; }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(56px, 8vw, 104px); position: relative; }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.grid { display: grid; gap: 28px; }
.center { text-align: center; }
.stack > * + * { margin-top: 18px; }

/* ---------- Typography scale ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent, #2e6fbf);
}
h1, h2, h3 { font-family: var(--font-head, inherit); line-height: 1.1; color: var(--ink-strong, #0f1726); font-weight: 800; }
.h-hero { font-size: clamp(2.4rem, 5.4vw, 4.1rem); letter-spacing: -.02em; }
.h-sec  { font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -.01em; }
.h-card { font-size: 1.22rem; font-weight: 700; }
.lead   { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-soft, #475067); max-width: 60ch; }
.muted  { color: var(--ink-soft, #5a6b80); }
.sec-head { max-width: 64ch; margin-inline: auto; }
.sec-head.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: var(--btn-radius, 10px);
  font-weight: 700; font-size: .98rem; line-height: 1;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent, #2e6fbf); color: #fff; box-shadow: var(--shadow-btn, 0 8px 20px rgba(46,111,191,.25)); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-btn-hover, 0 12px 28px rgba(46,111,191,.34)); }
.btn-ghost { background: var(--ghost-bg, #fff); color: var(--ink-strong, #0f1726); border: 1.5px solid var(--line, #e2e7ee); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent, #2e6fbf); color: var(--accent, #2e6fbf); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg, rgba(255,255,255,.86));
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--header-line, rgba(20,30,50,.07));
}
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h, 74px); }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.01em; }
.brand .logo-mark { width: 38px; height: 38px; flex: none; }
.brand .logo-text { font-size: 1.32rem; font-family: var(--font-head, inherit); }
.brand .logo-text b { color: var(--accent, #2e6fbf); }
.brand .logo-tag { display: block; font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft, #7b8597); margin-top: 1px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-weight: 600; font-size: .96rem; color: var(--ink-soft, #4a5468); transition: color .15s; }
.nav-links a:hover { color: var(--accent, #2e6fbf); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 10px; color: var(--ink-strong); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Cards / surfaces ---------- */
.card {
  background: var(--surface, #fff);
  border: 1px solid var(--line, #e7ebf2);
  border-radius: var(--card-radius, 16px);
  padding: 30px;
  transition: transform .25s ease, box-shadow .3s ease, border-color .25s ease;
}
.icon-badge {
  width: 58px; height: 58px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--badge-bg, #eef4fc); color: var(--accent, #2e6fbf);
}
.icon-badge svg { width: 30px; height: 30px; }

/* ---------- Pills / chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  background: var(--pill-bg, #eef3fa); color: var(--pill-ink, #2e6fbf);
}

/* ---------- Stat blocks ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; }
.stat .num { font-family: var(--font-head, inherit); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--accent, #2e6fbf); line-height: 1; }
.stat .lbl { margin-top: 8px; font-size: .92rem; color: var(--ink-soft, #5a6b80); font-weight: 600; }

/* ---------- Process timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.timeline .step { position: relative; text-align: center; }
.timeline .step .dot {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
  background: var(--accent, #2e6fbf); color: #fff; position: relative; z-index: 2;
}
.timeline .step:not(:last-child)::after {
  content: ""; position: absolute; top: 28px; left: 50%; width: 100%; height: 2px;
  background: var(--line, #d8e0ec); z-index: 1;
}
.timeline .step h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.timeline .step p { font-size: .86rem; color: var(--ink-soft, #5a6b80); }

/* ---------- Contact form (UI only) ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .82rem; font-weight: 700; margin-bottom: 7px; color: var(--ink-strong); }
.field input, .field select, .field textarea {
  padding: 13px 15px; border-radius: 10px; border: 1.5px solid var(--line, #dde3ec);
  background: var(--input-bg, #fff); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent, #2e6fbf); box-shadow: 0 0 0 4px var(--focus-ring, rgba(46,111,191,.14));
}
.field--full { grid-column: 1 / -1; }
.field textarea { min-height: 120px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg, #0f1726); color: var(--footer-ink, #c4ccda); padding-block: 64px 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h5 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: var(--footer-ink, #c4ccda); font-size: .94rem; line-height: 2; transition: color .15s; }
.site-footer h5 ~ a { display: block; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .86rem; color: #8b95a7; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
.reveal[data-d="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Mobile nav drawer ---------- */
.nav-drawer { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 28px; }
  .timeline .step:not(:last-child)::after { display: none; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open + .nav-drawer,
  .nav-drawer.open { display: block; }
  .nav-drawer {
    position: fixed; inset: var(--nav-h, 74px) 0 auto 0; z-index: 55;
    background: var(--bg, #fff); border-bottom: 1px solid var(--line, #e7ebf2);
    padding: 18px 24px 26px; box-shadow: 0 20px 40px rgba(10,20,40,.12);
  }
  .nav-drawer a { display: block; padding: 13px 4px; font-weight: 600; border-bottom: 1px solid var(--line, #eef1f6); color: var(--ink-strong); }
  .nav-drawer .btn { width: 100%; justify-content: center; margin-top: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 26px; }
  .h-hero { font-size: clamp(2.1rem, 8vw, 3rem); }
}
@media (max-width: 460px) {
  .container { padding-inline: 18px; }
  .stats { grid-template-columns: 1fr 1fr; }
}
