/* =========================================================
   TekGeex Consulting — shared stylesheet
   Tokens: color, type, layout primitives, components
   ========================================================= */

:root {
  /* --- Color: light (default) --- */
  --bg: #F6F8FC;
  --surface: #FFFFFF;
  --surface-alt: #EEF2FA;
  --surface-sunk: #E7ECF6;
  --ink: #0B1F3F;
  --ink-soft: #48546C;
  --ink-faint: #7C8AA5;
  --border: #DCE3F0;
  --border-strong: #C4D0E5;
  --accent: #1D4ED8;
  --accent-2: #4FA8FF;
  --navy: #0B1F3F;
  --navy-deep: #071328;
  --on-navy: #F2F6FD;
  --on-navy-soft: #9DAEC9;
  --shadow-sm: 0 1px 2px rgba(11,31,63,0.05), 0 4px 14px rgba(11,31,63,0.05);
  --shadow-md: 0 4px 8px rgba(11,31,63,0.06), 0 16px 40px rgba(11,31,63,0.08);
  --grid-line: rgba(11,31,63,0.055);
  --node-line: rgba(79,168,255,0.5);

  /* --- Type --- */
  --font-display: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* --- Layout --- */
  --maxw: 1180px;
  --maxw-narrow: 760px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A1220;
    --surface: #101B30;
    --surface-alt: #15213A;
    --surface-sunk: #0C1626;
    --ink: #F1F5FC;
    --ink-soft: #AEBBD4;
    --ink-faint: #7C8AA5;
    --border: #223353;
    --border-strong: #2C4066;
    --accent: #4FA8FF;
    --accent-2: #7DD3FC;
    --navy: #0B1F3F;
    --navy-deep: #060D1A;
    --on-navy: #F2F6FD;
    --on-navy-soft: #9DAEC9;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3), 0 4px 14px rgba(0,0,0,0.25);
    --shadow-md: 0 4px 10px rgba(0,0,0,0.35), 0 20px 44px rgba(0,0,0,0.4);
    --grid-line: rgba(255,255,255,0.05);
    --node-line: rgba(125,211,252,0.35);
  }
}

/* --- Reset --- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; cursor: pointer; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* --- Typography scale --- */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  font-size: clamp(38px, 5.4vw, 60px);
  text-wrap: balance;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.12;
  font-size: clamp(28px, 3.6vw, 38px);
  text-wrap: balance;
}
h3, .h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  font-size: 21px;
}
.lede {
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink-soft);
  max-width: 58ch;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}

/* --- Layout primitives --- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.narrow { max-width: var(--maxw-narrow); }
section { position: relative; }
.section-pad { padding: 96px 0; }
@media (max-width: 720px) { .section-pad { padding: 64px 0; } }
.divider-top { border-top: 1px solid var(--border); }

.bg-grid {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 34px 34px;
}
.bg-navy { background: var(--navy); color: var(--on-navy); }
.bg-navy .ink-soft-on-navy { color: var(--on-navy-soft); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost-navy {
  background: transparent;
  color: var(--on-navy);
  border-color: rgba(255,255,255,0.28);
}
.btn-ghost-navy:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-alt); }
.btn svg { width: 16px; height: 16px; }

/* --- Header / nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .brand-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand .brand-word span { font-weight: 500; color: var(--ink-faint); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 9px 14px;
  border-radius: 999px;
  transition: color 0.15s ease, background 0.15s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-alt); }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 76px 0 0 0; background: var(--bg); flex-direction: column; align-items: stretch; gap: 2px; padding: 18px; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.18s ease, transform 0.18s ease; }
  .nav-links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { font-size: 17px; padding: 14px 16px; border-radius: 12px; }
  .nav-cta { margin-left: 0; margin-top: 8px; }
  .nav-cta .btn { width: 100%; justify-content: center; }
  .nav-toggle { display: inline-flex; }
}

/* --- Footer --- */
.site-footer {
  background: var(--navy);
  color: var(--on-navy);
  padding: 64px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 720px) { .footer-top { grid-template-columns: 1fr; gap: 32px; } }
.footer-top .brand .brand-word { color: var(--on-navy); }
.footer-top .brand .brand-word span { color: var(--on-navy-soft); }
.footer-top p.foot-desc { margin-top: 14px; color: var(--on-navy-soft); font-size: 14px; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-navy-soft);
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--on-navy-soft); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--on-navy); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-navy-soft);
}

/* --- Cards --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 30px; }

/* --- Grids --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* --- Spec chip / mono stat --- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--on-navy-soft);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 12px;
  border-radius: 999px;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 3px rgba(79,168,255,0.18); flex: none; }

/* --- Service / capability icon tile --- */
.icon-tile {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--navy), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.icon-tile svg { width: 26px; height: 26px; stroke: #fff; fill: none; }

/* --- Page hero (non-home) --- */
.page-hero {
  padding: 64px 0 56px;
}
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 { margin-bottom: 18px; }

/* --- Breadcrumb-ish tag row --- */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-faint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 11px;
}

/* --- CTA band --- */
.cta-band {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 55%, var(--accent));
  color: var(--on-navy);
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--on-navy); max-width: 22ch; }

/* --- Utility --- */
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.mt-8{margin-top:8px;} .mt-16{margin-top:16px;} .mt-24{margin-top:24px;} .mt-32{margin-top:32px;} .mt-48{margin-top:48px;}
.center-text { text-align: center; margin-left: auto; margin-right: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
